Home
last modified time | relevance | path

Searched refs:jsObserver (Results 1 - 8 of 8) sorted by relevance

/foundation/ability/ability_runtime/frameworks/js/napi/app/app_manager/
H A Djs_app_state_observer.cpp31 wptr<JSAppStateObserver> jsObserver = this; in OnForegroundApplicationChanged() local
33 ([jsObserver, appStateData](napi_env env, NapiAsyncTask &task, int32_t status) { in OnForegroundApplicationChanged()
34 sptr<JSAppStateObserver> jsObserverSptr = jsObserver.promote(); in OnForegroundApplicationChanged()
61 wptr<JSAppStateObserver> jsObserver = this; in OnAbilityStateChanged() local
63 ([jsObserver, abilityStateData](napi_env env, NapiAsyncTask &task, int32_t status) { in OnAbilityStateChanged()
64 sptr<JSAppStateObserver> jsObserverSptr = jsObserver.promote(); in OnAbilityStateChanged()
90 wptr<JSAppStateObserver> jsObserver = this; in OnExtensionStateChanged() local
92 ([jsObserver, abilityStateData](napi_env env, NapiAsyncTask &task, int32_t status) { in OnExtensionStateChanged()
93 sptr<JSAppStateObserver> jsObserverSptr = jsObserver.promote(); in OnExtensionStateChanged()
95 TAG_LOGW(AAFwkTag::APPMGR, "null jsObserver"); in OnExtensionStateChanged()
119 wptr<JSAppStateObserver> jsObserver = this; OnProcessCreated() local
148 wptr<JSAppStateObserver> jsObserver = this; OnProcessStateChanged() local
177 wptr<JSAppStateObserver> jsObserver = this; OnProcessDied() local
[all...]
/foundation/ability/ability_runtime/frameworks/js/napi/app/js_app_manager/
H A Djs_app_state_observer.cpp40 wptr<JSAppStateObserver> jsObserver = this; in OnForegroundApplicationChanged() local
41 auto asyncTask = [jsObserver, appStateData, env = env_]() { in OnForegroundApplicationChanged()
43 sptr<JSAppStateObserver> jsObserverSptr = jsObserver.promote(); in OnForegroundApplicationChanged()
75 wptr<JSAppStateObserver> jsObserver = this; in OnAbilityStateChanged() local
76 auto asyncTask = [jsObserver, abilityStateData, env = env_]() { in OnAbilityStateChanged()
78 sptr<JSAppStateObserver> jsObserverSptr = jsObserver.promote(); in OnAbilityStateChanged()
109 wptr<JSAppStateObserver> jsObserver = this; in OnExtensionStateChanged() local
110 auto asyncTask = [jsObserver, abilityStateData, env = env_]() { in OnExtensionStateChanged()
112 sptr<JSAppStateObserver> jsObserverSptr = jsObserver.promote(); in OnExtensionStateChanged()
143 wptr<JSAppStateObserver> jsObserver in OnProcessCreated() local
177 wptr<JSAppStateObserver> jsObserver = this; OnProcessStateChanged() local
211 wptr<JSAppStateObserver> jsObserver = this; OnProcessDied() local
246 wptr<JSAppStateObserver> jsObserver = this; OnAppStarted() local
286 wptr<JSAppStateObserver> jsObserver = this; OnAppStopped() local
[all...]
H A Djs_app_foreground_state_observer.cpp38 sptr<JSAppForegroundStateObserver> jsObserver = self.promote(); in OnAppStateChanged()
39 if (jsObserver == nullptr) { in OnAppStateChanged()
43 jsObserver->HandleOnAppStateChanged(appStateData); in OnAppStateChanged()
H A Djs_ability_first_frame_state_observer.cpp36 sptr<JSAbilityFirstFrameStateObserver> jsObserver = self.promote(); in OnAbilityFirstFrameState()
37 if (jsObserver == nullptr) { in OnAbilityFirstFrameState()
41 jsObserver->HandleOnAbilityFirstFrameState(abilityFirstFrameStateData); in OnAbilityFirstFrameState()
/foundation/ability/ability_runtime/frameworks/js/napi/app/error_manager/
H A Djs_error_observer.cpp36 std::shared_ptr<JsErrorObserver> jsObserver = thisWeakPtr.lock(); in OnUnhandledException() local
37 if (jsObserver) { in OnUnhandledException()
38 jsObserver->HandleOnUnhandledException(errMsg); in OnUnhandledException()
111 std::shared_ptr<JsErrorObserver> jsObserver = thisWeakPtr.lock(); in OnExceptionObject() local
112 if (jsObserver) { in OnExceptionObject()
113 jsObserver->HandleException(errorObj); in OnExceptionObject()
/foundation/ability/ability_runtime/frameworks/js/napi/ability_manager/
H A Djs_ability_foreground_state_observer.cpp35 wptr<JSAbilityForegroundStateObserver> jsObserver = this; in OnAbilityStateChanged() local
37 [jsObserver, abilityStateData](napi_env env, NapiAsyncTask &task, int32_t status) { in OnAbilityStateChanged()
38 sptr<JSAbilityForegroundStateObserver> jsObserverSptr = jsObserver.promote(); in OnAbilityStateChanged()
/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Djs_free_install_observer.cpp35 wptr<JsFreeInstallObserver> jsObserver = this; in OnInstallFinished() local
37 ([jsObserver, bundleName, abilityName, startTime, resultCode](napi_env env, NapiAsyncTask &task, in OnInstallFinished()
39 sptr<JsFreeInstallObserver> jsObserverSptr = jsObserver.promote(); in OnInstallFinished()
54 wptr<JsFreeInstallObserver> jsObserver = this; in OnInstallFinishedByUrl() local
56 ([jsObserver, startTime, url, resultCode](napi_env env, NapiAsyncTask &task, in OnInstallFinishedByUrl()
58 sptr<JsFreeInstallObserver> jsObserverSptr = jsObserver.promote(); in OnInstallFinishedByUrl()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/sendable_preferences/src/
H A Dnapi_preferences.cpp569 auto jsObserver = std::make_shared<JSObserverImpl>(uvQueue_, callback); in Subscribe() local
574 auto errCode = instance->Subscribe(jsObserver, mode, keys); in Subscribe()
578 observers.push_back(jsObserver); in Subscribe()

Completed in 6 milliseconds