Home
last modified time | relevance | path

Searched refs:observer_ (Results 1 – 19 of 19) sorted by relevance

/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
Dapp_state_observer_test.cpp39 if (observer_ != nullptr) { in SetUp()
43 observer_ = std::make_shared<AppStateObserver>(); in SetUp()
44 ASSERT_NE(nullptr, observer_); in SetUp()
49 observer_ = nullptr; in TearDown()
60 …ASSERT_FALSE(observer_->IsProcessForeground(ServiceTestCommon::TEST_PID_1, ServiceTestCommon::TEST…
65 observer_->AddProcessToForegroundSet(stateData);
66 …ASSERT_TRUE(observer_->IsProcessForeground(ServiceTestCommon::TEST_PID_1, ServiceTestCommon::TEST_…
81 observer_->AddProcessToForegroundSet(stateData);
82 observer_->AddProcessToForegroundSet(stateData);
83 …ASSERT_TRUE(observer_->IsProcessForeground(ServiceTestCommon::TEST_PID_1, ServiceTestCommon::TEST_…
[all …]
Dapp_state_observer_test.h36 std::shared_ptr<AppStateObserver> observer_ = nullptr; variable
/base/security/access_token/services/test/mock/aafwk/
Dmock_app_mgr_service.cpp35 if (observer == nullptr || observer == observer_) { in RegisterApplicationStateObserver()
39 observer_ = observer; in RegisterApplicationStateObserver()
45 if (observer == nullptr || observer != observer_) { in UnregisterApplicationStateObserver()
49 observer_ = nullptr; in UnregisterApplicationStateObserver()
55 if (observer_ == nullptr) { in SwitchForeOrBackGround()
63 observer_->OnForegroundApplicationChanged(data); in SwitchForeOrBackGround()
Dmock_app_mgr_service.h156 sptr<IApplicationStateObserver> observer_; variable
/base/security/access_token/services/privacymanager/src/seccomp/
Dprivacy_sec_comp_enhance_agent.cpp48 observer_ = new (std::nothrow) PrivacyAppUsingSecCompStateObserver(); in PrivacySecCompEnhanceAgent()
49 if (observer_ == nullptr) { in PrivacySecCompEnhanceAgent()
53 AppManagerPrivacyClient::GetInstance().RegisterApplicationStateObserver(observer_); in PrivacySecCompEnhanceAgent()
58 if (observer_ != nullptr) { in ~PrivacySecCompEnhanceAgent()
59 AppManagerPrivacyClient::GetInstance().UnregisterApplicationStateObserver(observer_); in ~PrivacySecCompEnhanceAgent()
60 observer_= nullptr; in ~PrivacySecCompEnhanceAgent()
/base/update/updateservice/services/utils/src/
Ddupdate_net_manager.cpp28 observer_ = new NetObserver(); in NetManager()
36 if (observer_ == nullptr) { in Init()
40 observer_->SetCallback(weak_from_this()); in Init()
41 observer_->StartObserver(); in Init()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_single_kv_store.cpp51 if (observer_ != nullptr) { in InsertDataToDoCallback()
61 observer_->OnChange(change); in InsertDataToDoCallback()
68 if (observer_ != nullptr) { in UpdateDataToDoCallback()
78 observer_->OnChange(change); in UpdateDataToDoCallback()
87 if (observer_ != nullptr) { in DeleteDataToDoCallback()
97 observer_->OnChange(change); in DeleteDataToDoCallback()
192 observer_ = observer; in SubscribeKvStore()
198 observer_ = nullptr; in UnSubscribeKvStore()
/base/powermgr/thermal_manager/services/native/src/
Dthermal_service.cpp232 if (observer_ == nullptr) { in InitThermalObserver()
233 observer_ = std::make_shared<ThermalObserver>(g_service); in InitThermalObserver()
234 if (!(observer_->Init())) { in InitThermalObserver()
315 observer_->SubscribeThermalTempCallback(typeList, callback); in SubscribeThermalTempCallback()
327 observer_->UnSubscribeThermalTempCallback(callback); in UnSubscribeThermalTempCallback()
334 if (!(observer_->GetThermalSrvSensorInfo(type, sensorInfo))) { in GetThermalSrvSensorInfo()
370 observer_->SubscribeThermalActionCallback(actionList, desc, callback); in SubscribeThermalActionCallback()
384 observer_->UnSubscribeThermalActionCallback(callback); in UnSubscribeThermalActionCallback()
/base/security/access_token/services/privacymanager/include/seccomp/
Dprivacy_sec_comp_enhance_agent.h52 sptr<PrivacyAppUsingSecCompStateObserver> observer_ = nullptr;
/base/update/updateservice/services/utils/include/
Ddupdate_net_manager.h52 sptr<NetObserver> observer_ = nullptr; variable
/base/powermgr/thermal_manager/services/native/include/
Dthermal_service.h109 return observer_; in GetObserver()
177 std::shared_ptr<ThermalObserver> observer_ {nullptr};
/base/web/webview/ohos_adapter/pasteboard_adapter/src/
Dpasteboard_client_adapter_impl.cpp31 : observer_(observer) {} in PasteboardObserverAdapterImpl()
35 if (observer_) { in OnPasteboardChanged()
36 observer_->OnPasteboardChanged(); in OnPasteboardChanged()
/base/web/webview/ohos_adapter/pasteboard_adapter/include/
Dpasteboard_client_adapter_impl.h32 std::shared_ptr<PasteboardObserverAdapter> observer_;
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/include/
Dmock_single_kv_store.h394 std::shared_ptr<KvStoreObserver> observer_; variable
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
Ddlp_permission_service_test.cpp523 …std::shared_ptr<AppUninstallObserver> observer_ = std::make_shared<AppUninstallObserver>(subscribe… variable
529 observer_->OnReceiveEvent(data);
535 observer_->OnReceiveEvent(data);
538 observer_->OnReceiveEvent(data);
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_manager_service.h122 std::shared_ptr<AppAccountCommonEventObserver> observer_ = nullptr; variable
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_service_test.cpp661 g_service->observer_ = nullptr;
/base/web/webview/test/unittest/pasteboard_adapter/
Dpasteboard_client_adapter_test.cpp979 observerImpl.observer_ = nullptr;
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_manager_service.cpp41 observer_ = std::make_shared<AppAccountCommonEventObserver>(callback); in AppAccountManagerService()