Home
last modified time | relevance | path

Searched refs:ObserverType (Results 1 - 3 of 3) sorted by relevance

/foundation/ability/ability_runtime/services/appmgr/include/
H A Dapp_state_observer_manager.h44 enum class ObserverType { class
97 void AddObserverDeathRecipient(const sptr<IRemoteBroker> &observer, const ObserverType &type);
105 void OnObserverDied(const wptr<IRemoteObject> &remote, const ObserverType &type);
/foundation/ability/ability_runtime/test/unittest/app_state_observer_manager_test/
H A Dapp_state_observer_manager_test.cpp1327 ObserverType type = ObserverType::APPLICATION_STATE_OBSERVER; in HWTEST_F()
1343 ObserverType type = ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER; in HWTEST_F()
1358 ObserverType type = ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER; in HWTEST_F()
1444 ObserverType type = ObserverType::APPLICATION_STATE_OBSERVER; in HWTEST_F()
1460 ObserverType type = ObserverType in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_state_observer_manager.cpp76 AddObserverDeathRecipient(observer, ObserverType::APPLICATION_STATE_OBSERVER); in RegisterApplicationStateObserver()
124 AddObserverDeathRecipient(observer, ObserverType::APP_FOREGROUND_STATE_OBSERVER); in RegisterAppForegroundStateObserver()
171 AddObserverDeathRecipient(observer, ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER); in RegisterAbilityForegroundStateObserver()
922 void AppStateObserverManager::AddObserverDeathRecipient(const sptr<IRemoteBroker> &observer, const ObserverType &type) in AddObserverDeathRecipient()
943 if (type == ObserverType::APPLICATION_STATE_OBSERVER) { in AddObserverDeathRecipient()
945 } else if (type == ObserverType::APP_FOREGROUND_STATE_OBSERVER) { in AddObserverDeathRecipient()
947 } else if (type == ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER) { in AddObserverDeathRecipient()
950 TAG_LOGW(AAFwkTag::APPMGR, "null ObserverType"); in AddObserverDeathRecipient()
998 void AppStateObserverManager::OnObserverDied(const wptr<IRemoteObject> &remote, const ObserverType &type) in OnObserverDied()
1008 if (type == ObserverType in OnObserverDied()
[all...]

Completed in 5 milliseconds