Home
last modified time | relevance | path

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

/ohos5.0/foundation/ability/ability_runtime/services/appmgr/include/
H A Dapp_state_observer_manager.h44 enum class ObserverType { enum
93 void AddObserverDeathRecipient(const sptr<IRemoteBroker> &observer, const ObserverType &type);
101 void OnObserverDied(const wptr<IRemoteObject> &remote, const ObserverType &type);
/ohos5.0/foundation/ability/ability_runtime/test/unittest/app_state_observer_manager_test/
H A Dapp_state_observer_manager_test.cpp1219 ObserverType type = ObserverType::APPLICATION_STATE_OBSERVER;
1235 ObserverType type = ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER;
1250 ObserverType type = ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER;
1336 ObserverType type = ObserverType::APPLICATION_STATE_OBSERVER;
1352 ObserverType type = ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER;
1368 ObserverType type = ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER;
/ohos5.0/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()
843 …erManager::AddObserverDeathRecipient(const sptr<IRemoteBroker> &observer, const ObserverType &type) in AddObserverDeathRecipient()
865 if (type == ObserverType::APPLICATION_STATE_OBSERVER) { in AddObserverDeathRecipient()
867 } else if (type == ObserverType::APP_FOREGROUND_STATE_OBSERVER) { in AddObserverDeathRecipient()
869 } else if (type == ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER) { in AddObserverDeathRecipient()
921 void AppStateObserverManager::OnObserverDied(const wptr<IRemoteObject> &remote, const ObserverType in OnObserverDied()
931 if (type == ObserverType::APPLICATION_STATE_OBSERVER) { in OnObserverDied()
934 } else if (type == ObserverType::ABILITY_FOREGROUND_STATE_OBSERVER) { in OnObserverDied()
[all …]