/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/ |
H A D | ability_lifecycle_callback.h | 22 class NativeReference; variable 51 const std::shared_ptr<NativeReference> &windowStage) = 0; 63 const std::shared_ptr<NativeReference> &windowStage) = 0; 75 const std::shared_ptr<NativeReference> &windowStage) = 0; 87 const std::shared_ptr<NativeReference> &windowStage) = 0; 142 const std::shared_ptr<NativeReference> &windowStage) {} in OnWindowStageWillCreate() 154 const std::shared_ptr<NativeReference> &windowStage) {} in OnWindowStageWillDestroy() 218 const std::shared_ptr<NativeReference> &windowStage) {} in OnWindowStageWillRestore() 266 std::shared_ptr<NativeReference> jsCallback_; 271 const std::shared_ptr<NativeReference> &windowStage); [all …]
|
H A D | application_context.h | 44 void DispatchOnAbilityCreate(const std::shared_ptr<NativeReference> &ability); 46 const std::shared_ptr<NativeReference> &windowStage); 48 const std::shared_ptr<NativeReference> &windowStage); 50 const std::shared_ptr<NativeReference> &windowStage); 52 const std::shared_ptr<NativeReference> &windowStage); 59 const std::shared_ptr<NativeReference> &windowStage); 61 const std::shared_ptr<NativeReference> &windowStage); 68 void DispatchOnWillNewWant(const std::shared_ptr<NativeReference> &ability); 69 void DispatchOnNewWant(const std::shared_ptr<NativeReference> &ability); 72 const std::shared_ptr<NativeReference> &windowStage); [all …]
|
H A D | environment_callback.h | 24 class NativeReference; variable 69 std::shared_ptr<NativeReference> jsCallback_; 70 std::map<int32_t, std::shared_ptr<NativeReference>> callbacks_; 71 std::map<int32_t, std::shared_ptr<NativeReference>> callbacksSync_; 73 const std::map<int32_t, std::shared_ptr<NativeReference>> &callbacks); 75 const std::map<int32_t, std::shared_ptr<NativeReference>> &callbacks);
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/ |
H A D | ability_lifecycle_callback.cpp | 31 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in CallJsMethodInnerCommon() 90 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in CallWindowStageJsMethod() 108 const std::shared_ptr<NativeReference> &windowStage) in OnWindowStageCreate() 114 const std::shared_ptr<NativeReference> &windowStage) in OnWindowStageDestroy() 120 const std::shared_ptr<NativeReference> &windowStage) in OnWindowStageActive() 126 const std::shared_ptr<NativeReference> &windowStage) in OnWindowStageInactive() 157 const std::shared_ptr<NativeReference> &windowStage) in OnWindowStageWillRestore() 163 const std::shared_ptr<NativeReference> &windowStage) in OnWindowStageRestore() 193 …callbacksSync_.emplace(callbackId, std::shared_ptr<NativeReference>(reinterpret_cast<NativeReferen… in Register() 195 …callbacks_.emplace(callbackId, std::shared_ptr<NativeReference>(reinterpret_cast<NativeReference*>… in Register() [all …]
|
H A D | application_context.cpp | 106 void ApplicationContext::DispatchOnAbilityCreate(const std::shared_ptr<NativeReference> &ability) in DispatchOnAbilityCreate() 121 const std::shared_ptr<NativeReference> &windowStage) in DispatchOnWindowStageCreate() 136 const std::shared_ptr<NativeReference> &windowStage) in DispatchOnWindowStageDestroy() 151 const std::shared_ptr<NativeReference> &windowStage) in DispatchWindowStageFocus() 167 const std::shared_ptr<NativeReference> &windowStage) in DispatchWindowStageUnfocus() 255 const std::shared_ptr<NativeReference> &windowStage) in DispatchOnWindowStageWillRestore() 272 const std::shared_ptr<NativeReference> &windowStage) in DispatchOnWindowStageRestore() 362 void ApplicationContext::DispatchOnWillNewWant(const std::shared_ptr<NativeReference> &ability) in DispatchOnWillNewWant() 376 void ApplicationContext::DispatchOnNewWant(const std::shared_ptr<NativeReference> &ability) in DispatchOnNewWant() 406 const std::shared_ptr<NativeReference> &windowStage) in DispatchOnWindowStageWillCreate() [all …]
|
/ohos5.0/base/request/request/frameworks/cj/ffi/include/ |
H A D | cj_app_state_callback.h | 24 void OnAbilityCreate(const std::shared_ptr<NativeReference> &ability) override{}; in OnAbilityCreate() 27 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in OnWindowStageCreate() 32 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in OnWindowStageDestroy() 37 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in OnWindowStageActive() 42 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in OnWindowStageInactive() 46 void OnAbilityDestroy(const std::shared_ptr<NativeReference> &ability) override in OnAbilityDestroy() 50 void OnAbilityForeground(const std::shared_ptr<NativeReference> &ability) override; 52 void OnAbilityBackground(const std::shared_ptr<NativeReference> &ability) override in OnAbilityBackground() 56 void OnAbilityContinue(const std::shared_ptr<NativeReference> &ability) override in OnAbilityContinue()
|
/ohos5.0/base/request/request/frameworks/js/napi/include/ |
H A D | app_state_callback.h | 25 void OnAbilityCreate(const std::shared_ptr<NativeReference> &ability) override{}; in OnAbilityCreate() 28 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in OnWindowStageCreate() 33 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in OnWindowStageDestroy() 38 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in OnWindowStageActive() 43 …const std::shared_ptr<NativeReference> &ability, const std::shared_ptr<NativeReference> &windowSta… in OnWindowStageInactive() 47 void OnAbilityDestroy(const std::shared_ptr<NativeReference> &ability) override in OnAbilityDestroy() 51 void OnAbilityForeground(const std::shared_ptr<NativeReference> &ability) override; 53 void OnAbilityBackground(const std::shared_ptr<NativeReference> &ability) override in OnAbilityBackground() 57 void OnAbilityContinue(const std::shared_ptr<NativeReference> &ability) override in OnAbilityContinue()
|
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/include/ |
H A D | app_state_callback.h | 28 void OnAbilityCreate(const std::shared_ptr<NativeReference>& ability) override {} in OnAbilityCreate() 30 void OnWindowStageCreate(const std::shared_ptr<NativeReference>& ability, in OnWindowStageCreate() 31 const std::shared_ptr<NativeReference>& windowStage) override {} in OnWindowStageCreate() 33 void OnWindowStageDestroy(const std::shared_ptr<NativeReference>& ability, in OnWindowStageDestroy() 34 const std::shared_ptr<NativeReference>& windowStage) override {} in OnWindowStageDestroy() 36 void OnWindowStageActive(const std::shared_ptr<NativeReference>& ability, in OnWindowStageActive() 37 const std::shared_ptr<NativeReference>& windowStage) override {} in OnWindowStageActive() 39 void OnWindowStageInactive(const std::shared_ptr<NativeReference>& ability, in OnWindowStageInactive() 40 const std::shared_ptr<NativeReference>& windowStage) override {} in OnWindowStageInactive() 42 void OnAbilityDestroy(const std::shared_ptr<NativeReference>& ability) override {} in OnAbilityDestroy() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/registerabilitylifecyclecallback_fuzzer/ |
H A D | registerabilitylifecyclecallback_fuzzer.cpp | 39 OnAbilityCreate(const std::shared_ptr<NativeReference> &ability) override{}; in OnAbilityCreate() 41 const std::shared_ptr<NativeReference> &ability, in OnWindowStageCreate() 42 const std::shared_ptr<NativeReference> &windowStage) override{}; in OnWindowStageCreate() 44 const std::shared_ptr<NativeReference> &ability, in OnWindowStageDestroy() 45 const std::shared_ptr<NativeReference> &windowStage) override{}; in OnWindowStageDestroy() 47 const std::shared_ptr<NativeReference> &ability, in OnWindowStageActive() 48 const std::shared_ptr<NativeReference> &windowStage) override{}; in OnWindowStageActive() 50 const std::shared_ptr<NativeReference> &ability, in OnWindowStageInactive() 51 const std::shared_ptr<NativeReference> &windowStage) override{}; in OnWindowStageInactive() 55 const std::shared_ptr<NativeReference> &ability) override{}; in OnAbilityForeground() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/unregisterabilitylifecyclecallback_fuzzer/ |
H A D | unregisterabilitylifecyclecallback_fuzzer.cpp | 38 void OnAbilityCreate(const std::shared_ptr<NativeReference>& ability) override {}; in OnAbilityCreate() 39 void OnWindowStageCreate(const std::shared_ptr<NativeReference>& ability, in OnWindowStageCreate() 40 const std::shared_ptr<NativeReference>& windowStage) override {}; in OnWindowStageCreate() 41 void OnWindowStageDestroy(const std::shared_ptr<NativeReference>& ability, in OnWindowStageDestroy() 42 const std::shared_ptr<NativeReference>& windowStage) override {}; in OnWindowStageDestroy() 43 void OnWindowStageActive(const std::shared_ptr<NativeReference>& ability, in OnWindowStageActive() 44 const std::shared_ptr<NativeReference>& windowStage) override {}; in OnWindowStageActive() 45 void OnWindowStageInactive(const std::shared_ptr<NativeReference>& ability, in OnWindowStageInactive() 46 const std::shared_ptr<NativeReference>& windowStage) override {}; in OnWindowStageInactive() 47 void OnAbilityDestroy(const std::shared_ptr<NativeReference>& ability) override {}; in OnAbilityDestroy() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/ability_delegator/ |
H A D | js_ability_monitor.h | 57 void OnAbilityCreate(const std::weak_ptr<NativeReference> &abilityObj); 65 void OnAbilityForeground(const std::weak_ptr<NativeReference> &abilityObj); 73 void OnAbilityBackground(const std::weak_ptr<NativeReference> &abilityObj); 81 void OnAbilityDestroy(const std::weak_ptr<NativeReference> &abilityObj); 89 void OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj); 97 void OnWindowStageRestore(const std::weak_ptr<NativeReference> &abilityObj); 105 void OnWindowStageDestroy(const std::weak_ptr<NativeReference> &abilityObj); 129 std::unique_ptr<NativeReference> &GetJsAbilityMonitor() in GetJsAbilityMonitor() 136 const std::weak_ptr<NativeReference> &abilityObj); 142 std::unique_ptr<NativeReference> jsAbilityMonitor_ = nullptr;
|
H A D | ability_monitor.h | 24 class NativeReference; variable 59 void OnAbilityStart(const std::weak_ptr<NativeReference> &abilityObj) override; 66 void OnAbilityForeground(const std::weak_ptr<NativeReference> &abilityObj) override; 73 void OnAbilityBackground(const std::weak_ptr<NativeReference> &abilityObj) override; 80 void OnAbilityStop(const std::weak_ptr<NativeReference> &abilityObj) override; 87 void OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj) override; 94 void OnWindowStageRestore(const std::weak_ptr<NativeReference> &abilityObj) override; 101 void OnWindowStageDestroy(const std::weak_ptr<NativeReference> &abilityObj) override;
|
H A D | js_ability_monitor.cpp | 32 void JSAbilityMonitor::OnAbilityCreate(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityCreate() 38 void JSAbilityMonitor::OnAbilityForeground(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityForeground() 44 void JSAbilityMonitor::OnAbilityBackground(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityBackground() 50 void JSAbilityMonitor::OnAbilityDestroy(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityDestroy() 56 void JSAbilityMonitor::OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageCreate() 62 void JSAbilityMonitor::OnWindowStageRestore(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageRestore() 68 void JSAbilityMonitor::OnWindowStageDestroy(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageDestroy() 79 jsAbilityMonitor_ = std::unique_ptr<NativeReference>(reinterpret_cast<NativeReference*>(ref)); in SetJsAbilityMonitor() 83 const std::weak_ptr<NativeReference> &abilityObj) in CallLifecycleCBFunction()
|
H A D | ability_monitor.cpp | 35 void AbilityMonitor::OnAbilityStart(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityStart() 46 void AbilityMonitor::OnAbilityForeground(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityForeground() 57 void AbilityMonitor::OnAbilityBackground(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityBackground() 68 void AbilityMonitor::OnAbilityStop(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityStop() 79 void AbilityMonitor::OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageCreate() 91 void AbilityMonitor::OnWindowStageRestore(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageRestore() 102 void AbilityMonitor::OnWindowStageDestroy(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageDestroy()
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app_startup/ |
H A D | js_startup_task_executor.h | 28 … const std::unique_ptr<NativeReference> &startup, const std::shared_ptr<NativeReference> &context, 32 const std::unique_ptr<NativeReference> &startup, 33 const std::shared_ptr<NativeReference> &context, 34 const std::unique_ptr<NativeReference> &asynctaskexcutor, 35 const std::unique_ptr<NativeReference> &asyncTaskCallback, 39 static int32_t CallStartupInit(napi_env env, const std::unique_ptr<NativeReference> &startup, 40 …const std::shared_ptr<NativeReference> &context, std::unique_ptr<StartupTaskResultCallback> &callb… 57 const std::shared_ptr<NativeReference> &resultRef);
|
H A D | js_startup_task.h | 41 … std::unique_ptr<NativeReference> &startupJsRef, std::shared_ptr<NativeReference> &contextJsRef_); 60 std::unique_ptr<NativeReference> startupJsRef_; 61 std::shared_ptr<NativeReference> contextJsRef_; 62 std::unique_ptr<NativeReference> AsyncTaskExcutorJsRef_; 63 std::unique_ptr<NativeReference> AsyncTaskExcutorCallbackJsRef_;
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ |
H A D | js_extension_common.h | 22 class NativeReference; variable 34 JsExtensionCommon(JsRuntime &jsRuntime, NativeReference &jsObj, 35 const std::shared_ptr<NativeReference> &shellContextRef); 46 static std::shared_ptr<JsExtensionCommon> Create(JsRuntime &jsRuntime, NativeReference &jsObj, 47 const std::shared_ptr<NativeReference> &shellContextRef); 68 NativeReference& jsObj_; 69 std::shared_ptr<NativeReference> shellContextRef_ = nullptr;
|
/ohos5.0/foundation/ability/ability_runtime/test/mock/frameworks_kits_appkit_native_test/ability_delegator/ |
H A D | mock_iability_monitor.h | 42 void OnAbilityStart(const std::weak_ptr<NativeReference>& abilityObj) override; 43 void OnAbilityForeground(const std::weak_ptr<NativeReference>& abilityObj) override; 44 void OnAbilityBackground(const std::weak_ptr<NativeReference>& abilityObj) override; 45 void OnAbilityStop(const std::weak_ptr<NativeReference>& abilityObj) override; 47 void OnWindowStageCreate(const std::weak_ptr<NativeReference>& abilityObj) override; 48 void OnWindowStageRestore(const std::weak_ptr<NativeReference>& abilityObj) override; 49 void OnWindowStageDestroy(const std::weak_ptr<NativeReference>& abilityObj) override;
|
H A D | mock_iability_monitor.cpp | 36 void MockIabilityMonitor::OnAbilityStart(const std::weak_ptr<NativeReference>& abilityObj) in OnAbilityStart() 42 void MockIabilityMonitor::OnAbilityForeground(const std::weak_ptr<NativeReference>& abilityObj) in OnAbilityForeground() 48 void MockIabilityMonitor::OnAbilityBackground(const std::weak_ptr<NativeReference>& abilityObj) in OnAbilityBackground() 54 void MockIabilityMonitor::OnAbilityStop(const std::weak_ptr<NativeReference>& abilityObj) in OnAbilityStop() 60 void MockIabilityMonitor::OnWindowStageCreate(const std::weak_ptr<NativeReference>& abilityObj) in OnWindowStageCreate() 66 void MockIabilityMonitor::OnWindowStageRestore(const std::weak_ptr<NativeReference>& abilityObj) in OnWindowStageRestore() 72 void MockIabilityMonitor::OnWindowStageDestroy(const std::weak_ptr<NativeReference>& abilityObj) in OnWindowStageDestroy()
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_delegator/ |
H A D | iability_monitor.h | 94 virtual void OnAbilityStart(const std::weak_ptr<NativeReference> &abilityObj); 101 virtual void OnAbilityForeground(const std::weak_ptr<NativeReference> &abilityObj); 108 virtual void OnAbilityBackground(const std::weak_ptr<NativeReference> &abilityObj); 115 virtual void OnAbilityStop(const std::weak_ptr<NativeReference> &abilityObj); 122 virtual void OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj); 129 virtual void OnWindowStageRestore(const std::weak_ptr<NativeReference> &abilityObj); 136 virtual void OnWindowStageDestroy(const std::weak_ptr<NativeReference> &abilityObj);
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/insight_intent_executor/ |
H A D | js_insight_intent_executor.h | 23 class NativeReference; variable 80 const std::shared_ptr<NativeReference>& pageLoader, 90 static std::unique_ptr<NativeReference> LoadJsCode( 126 …static bool CheckParametersUIAbilityForeground(const std::shared_ptr<NativeReference>& windowStage… 130 const std::shared_ptr<NativeReference>& windowStage); 137 …static bool CheckParametersUIExtension(const std::shared_ptr<NativeReference>& UIExtensionContentS… 141 const std::shared_ptr<NativeReference>& UIExtensionContentSession); 150 std::unique_ptr<NativeReference> jsObj_ = nullptr; 151 std::unique_ptr<NativeReference> contextObj_ = nullptr;
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_delegator/ |
H A D | iability_monitor.cpp | 95 void IAbilityMonitor::OnAbilityStart(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityStart() 98 void IAbilityMonitor::OnAbilityForeground(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityForeground() 101 void IAbilityMonitor::OnAbilityBackground(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityBackground() 104 void IAbilityMonitor::OnAbilityStop(const std::weak_ptr<NativeReference> &abilityObj) in OnAbilityStop() 107 void IAbilityMonitor::OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageCreate() 110 void IAbilityMonitor::OnWindowStageRestore(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageRestore() 113 void IAbilityMonitor::OnWindowStageDestroy(const std::weak_ptr<NativeReference> &abilityObj) in OnWindowStageDestroy()
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/app_startup/ |
H A D | js_startup_task_executor.cpp | 29 … const std::unique_ptr<NativeReference> &startup, const std::shared_ptr<NativeReference> &context, in RunOnMainThread() 45 const std::unique_ptr<NativeReference> &startup, in RunOnTaskPool() 46 const std::shared_ptr<NativeReference> &context, in RunOnTaskPool() 47 const std::unique_ptr<NativeReference> &asyncTaskExcutor, in RunOnTaskPool() 48 const std::unique_ptr<NativeReference> &asyncTaskCallback, in RunOnTaskPool() 83 int32_t JsStartupTaskExecutor::CallStartupInit(napi_env env, const std::unique_ptr<NativeReference>… in CallStartupInit() 84 …const std::shared_ptr<NativeReference> &context, std::unique_ptr<StartupTaskResultCallback> &callb… in CallStartupInit() 158 std::shared_ptr<NativeReference> result(reinterpret_cast<NativeReference*>(resultRef)); in ResolveResultCallback() 199 const std::shared_ptr<NativeReference> &resultRef) in ReplySucceeded()
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/runtime/include/ |
H A D | js_runtime.h | 104 bool PopPreloadObj(const std::string& key, std::unique_ptr<NativeReference>& obj); 129 void FreeNativeReference(std::unique_ptr<NativeReference> reference); 130 void FreeNativeReference(std::shared_ptr<NativeReference>&& reference); 137 static std::unique_ptr<NativeReference> LoadSystemModuleByEngine(napi_env env, 139 …std::unique_ptr<NativeReference> LoadModule(const std::string& moduleName, const std::string& modu… 142 std::unique_ptr<NativeReference> LoadSystemModule( 161 std::unique_ptr<NativeReference> methodRequireNapiRef_; 162 std::unordered_map<std::string, NativeReference*> modules_; 169 std::map<std::string, std::unique_ptr<NativeReference>> preloadList_; 178 void FreeNativeReference(std::unique_ptr<NativeReference> uniqueNativeRef, [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/ |
H A D | js_timer.cpp | 40 JsTimer(napi_env env, const std::shared_ptr<NativeReference> &jsFunction, uint32_t id) in JsTimer() 83 void PushArgs(const std::shared_ptr<NativeReference> &ref) in PushArgs() 90 std::shared_ptr<NativeReference> jsFunction_; 91 std::vector<std::shared_ptr<NativeReference>> jsArgs_; 117 std::shared_ptr<NativeReference> jsFunction(reinterpret_cast<NativeReference*>(ref)); in StartTimeoutOrInterval() 126 … task->PushArgs(std::shared_ptr<NativeReference>(reinterpret_cast<NativeReference*>(taskRef))); in StartTimeoutOrInterval()
|