/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
D | app_state_observer_test.cpp | 39 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 …]
|
D | app_state_observer_test.h | 36 std::shared_ptr<AppStateObserver> observer_ = nullptr; variable
|
/base/security/access_token/services/test/mock/aafwk/ |
D | mock_app_mgr_service.cpp | 35 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()
|
D | mock_app_mgr_service.h | 156 sptr<IApplicationStateObserver> observer_; variable
|
/base/security/access_token/services/privacymanager/src/seccomp/ |
D | privacy_sec_comp_enhance_agent.cpp | 48 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/ |
D | dupdate_net_manager.cpp | 28 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/ |
D | mock_single_kv_store.cpp | 51 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/ |
D | thermal_service.cpp | 232 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/ |
D | privacy_sec_comp_enhance_agent.h | 52 sptr<PrivacyAppUsingSecCompStateObserver> observer_ = nullptr;
|
/base/update/updateservice/services/utils/include/ |
D | dupdate_net_manager.h | 52 sptr<NetObserver> observer_ = nullptr; variable
|
/base/powermgr/thermal_manager/services/native/include/ |
D | thermal_service.h | 109 return observer_; in GetObserver() 177 std::shared_ptr<ThermalObserver> observer_ {nullptr};
|
/base/web/webview/ohos_adapter/pasteboard_adapter/src/ |
D | pasteboard_client_adapter_impl.cpp | 31 : observer_(observer) {} in PasteboardObserverAdapterImpl() 35 if (observer_) { in OnPasteboardChanged() 36 observer_->OnPasteboardChanged(); in OnPasteboardChanged()
|
/base/web/webview/ohos_adapter/pasteboard_adapter/include/ |
D | pasteboard_client_adapter_impl.h | 32 std::shared_ptr<PasteboardObserverAdapter> observer_;
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/include/ |
D | mock_single_kv_store.h | 394 std::shared_ptr<KvStoreObserver> observer_; variable
|
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/ |
D | dlp_permission_service_test.cpp | 523 …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/ |
D | app_account_manager_service.h | 122 std::shared_ptr<AppAccountCommonEventObserver> observer_ = nullptr; variable
|
/base/powermgr/thermal_manager/test/unittest/src/ |
D | thermal_service_test.cpp | 661 g_service->observer_ = nullptr;
|
/base/web/webview/test/unittest/pasteboard_adapter/ |
D | pasteboard_client_adapter_test.cpp | 979 observerImpl.observer_ = nullptr;
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_manager_service.cpp | 41 observer_ = std::make_shared<AppAccountCommonEventObserver>(callback); in AppAccountManagerService()
|