Home
last modified time | relevance | path

Searched refs:callback_ (Results 1 – 25 of 174) sorted by relevance

1234567

/base/useriam/user_auth_framework/frameworks/native/client/src/
Dexecutor_callback_service.cpp28 : callback_(impl) in ExecutorCallbackService()
36 if (callback_ == nullptr) { in OnMessengerReady()
45 callback_->OnMessengerReady(wrapper, publicKey, templateIdList); in OnMessengerReady()
52 if (callback_ == nullptr) { in OnBeginExecute()
56 return callback_->OnBeginExecute(scheduleId, publicKey, command); in OnBeginExecute()
62 if (callback_ == nullptr) { in OnEndExecute()
66 return callback_->OnEndExecute(scheduleId, command); in OnEndExecute()
72 if (callback_ == nullptr) { in OnSetProperty()
76 return callback_->OnSetProperty(properties); in OnSetProperty()
82 if (callback_ == nullptr) { in OnGetProperty()
[all …]
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
Dmock_domain_has_domain_info_callback.cpp28 : callback_(callback) in TestHasDomainInfoCallback()
36 if (callback_ == nullptr) { in OnResult()
40 callback_->OnResult(errCode, hasDomainInfo_); in OnResult()
46 : callback_(callback) in TestGetDomainAccountInfoCallback()
54 if (callback_ == nullptr) { in OnResult()
57 callback_->OnResult(errCode, parcel); in OnResult()
Dmock_domain_auth_callback.cpp28 : callback_(callback) in TestDomainAuthCallback()
37 if (callback_ == nullptr) { in OnResult()
46 callback_->OnResult(errCode, emptyResult); in OnResult()
51 callback_->OnResult(resultCode, result); in OnResult()
Dmock_domain_get_access_token_callback.cpp26 : callback_(callback) in TestGetAccessTokenCallback()
34 if (callback_ == nullptr) { in OnResult()
37 callback_->OnResult(errCode, accessToken); in OnResult()
Dmock_domain_auth_callback_for_listener.cpp25 : callback_(callback) in TestDomainAuthCallbackForListener()
34 if (callback_ == nullptr) { in OnResult()
38 callback_->OnResult(resultCode, result); in OnResult()
/base/telephony/ril_adapter/test/unittest/ril_adapter_gtest/
Dril_test_util.cpp81 callback_ = new RilCallbackTest(); in Init()
82 rilInterface_->SetCallback(callback_); in Init()
92 if (callback_ == nullptr) { in WaitForInner()
96 callback_->WaitFor(WAIT_TIME_SECOND); in WaitForInner()
101 if (callback_ == nullptr) { in GetBoolResultInner()
105 return callback_->GetBoolResult(hdiId_); in GetBoolResultInner()
110 if (callback_ == nullptr) { in GetSerialIdInner()
114 return callback_->GetSerialId(); in GetSerialIdInner()
143 if (callback_ == nullptr) { in IsReadyInner()
147 return callback_->IsReady(slotId); in IsReadyInner()
[all …]
/base/powermgr/display_manager/service/native/src/
Dgradual_animator.cpp29 : name_(name), callback_(callback) in GradualAnimator()
48 if (callback_ == nullptr) { in StartAnimation()
79 if (callback_ == nullptr) { in StopAnimation()
83 callback_->OnEnd(); in StopAnimation()
103 if (callback_ == nullptr) { in NextStep()
109 callback_->OnStart(); in NextStep()
116 callback_->OnChanged(currentBrightness_); in NextStep()
117 callback_->OnEnd(); in NextStep()
122 callback_->OnChanged(currentBrightness_); in NextStep()
128 callback_->OnChanged(currentBrightness_); in NextStep()
[all …]
/base/notification/distributed_notification_service/services/distributed/src/
Ddistributed_database_callback.cpp22 …atabaseCallback::DistributedDatabaseCallback(const IDatabaseChange &callback) : callback_(callback) in DistributedDatabaseCallback()
32 if (callback_.OnInsert) { in OnChange()
36callback_.OnInsert(changeNotification.GetDeviceId(), entry.key.ToString(), entry.value.ToString()); in OnChange()
40 if (callback_.OnUpdate) { in OnChange()
44callback_.OnUpdate(changeNotification.GetDeviceId(), entry.key.ToString(), entry.value.ToString()); in OnChange()
48 if (callback_.OnDelete) { in OnChange()
52callback_.OnDelete(changeNotification.GetDeviceId(), entry.key.ToString(), entry.value.ToString()); in OnChange()
Ddistributed_device_callback.cpp22 DistributedDeviceCallback::DistributedDeviceCallback(const IDeviceChange &callback) : callback_(cal… in DistributedDeviceCallback()
30 if (callback_.OnConnected) { in OnDeviceOnline()
32 callback_.OnConnected(deviceInfo.deviceId); in OnDeviceOnline()
39 if (callback_.OnConnected) { in OnDeviceOffline()
41 callback_.OnDisconnected(deviceInfo.deviceId); in OnDeviceOffline()
/base/notification/distributed_notification_service/services/ans/include/
Dremote_death_recipient.h33 callback_ = callback; in RemoteDeathRecipient()
41 callback_ = nullptr; in ~RemoteDeathRecipient()
50 if (callback_ != nullptr) { in OnRemoteDied()
51 callback_(object); in OnRemoteDied()
56 std::function<void(const wptr<IRemoteObject> &)> callback_;
Ddistributed_kvstore_death_recipient.h34 callback_ = callback; in DistributedKvStoreDeathRecipient()
48 if (callback_ != nullptr) { in OnRemoteDied()
49 callback_(); in OnRemoteDied()
54 std::function<void()> callback_;
Dsystem_event_subscriber.h35 : EventFwk::CommonEventSubscriber(subscribeInfo), callback_(callback) in SystemEventSubscriber()
51 if (callback_ != nullptr) { in OnReceiveEvent()
52 callback_(data); in OnReceiveEvent()
57 std::function<void(const EventFwk::CommonEventData &)> callback_;
/base/account/os_account/frameworks/account_iam/src/
Daccount_iam_callback_service.cpp26 : userId_(userId), callback_(callback) in IDMCallbackService()
31 if (callback_ == nullptr) { in OnAcquireInfo()
35 callback_->OnAcquireInfo(module, acquireInfo, extraInfo); in OnAcquireInfo()
40 if (callback_ == nullptr) { in OnResult()
44 callback_->OnResult(result, extraInfo); in OnResult()
49 : callback_(callback) in GetCredInfoCallbackService()
54 if (callback_ == nullptr) { in OnCredentialInfo()
58 callback_->OnCredentialInfo(ERR_OK, infoList); in OnCredentialInfo()
62 : callback_(callback) in GetSetPropCallbackService()
67 if (callback_ == nullptr) { in OnResult()
[all …]
/base/web/webview/ohos_nweb/include/
Dnweb_save_cookie_callback.h29 if (callback_) { in OnReceiveValue()
30 callback_(result); in OnReceiveValue()
35 callback_ = callback; in SetCallBack()
39 std::function<void(bool)> callback_;
Dnweb_store_web_archive_callback.h29 if (callback_) { in OnReceiveValue()
30 callback_(result); in OnReceiveValue()
35 callback_ = callback; in SetCallBack()
39 std::function<void(std::string)> callback_;
/base/telephony/sms_mms/services/mms/
Dmms_network_manager.cpp46 callback_ = new (std::nothrow) MmsConnCallbackStub(); in AcquireNetwork()
47 if (callback_ == nullptr) { in AcquireNetwork()
52 …NetConnClient::GetInstance().RegisterNetConnCallback(specifier, callback_, NET_REGISTER_TIMEOUT_MS… in AcquireNetwork()
60 if (callback_ != nullptr) { in ReleaseNetwork()
62 NetConnClient ::GetInstance().UnregisterNetConnCallback(callback_); in ReleaseNetwork()
63 callback_ = nullptr; in ReleaseNetwork()
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_common_event_subscriber.cpp25 : CommonEventSubscriber(subscribeInfo), callback_(callback) in AppAccountCommonEventSubscriber()
30 if (callback_ != nullptr) { in OnReceiveEvent()
31 callback_(data); in OnReceiveEvent()
/base/update/updater/services/flashd/daemon/
Dcommander.cpp26 callback_(type, UpdaterState::SUCCESS, "[Success] " + msg); in NotifySuccess()
34 callback_(type, UpdaterState::FAIL, " " + msg); in NotifyFail()
58 callback_(type, UpdaterState::DOING, std::to_string(currentProcess)); in UpdateProgress()
63 if (callback_ == nullptr) { in IsCallbackVaild()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_widget_mgr_v10.cpp35 UserAuthWidgetMgr::UserAuthWidgetMgr(napi_env env) : callback_(Common::MakeShared<UserAuthWidgetCal… in UserAuthWidgetMgr()
37 if (callback_ == nullptr) { in UserAuthWidgetMgr()
46 if (callback_ == nullptr) { in Init()
75 int32_t result = UserAuthClientImpl::Instance().SetWidgetCallback(version_, callback_); in Init()
98 if (callback_ == nullptr) { in On()
128 if (callback_->HasCommandCallback()) { in On()
132 callback_->SetCommandCallback(callbackRef); in On()
142 if (callback_ == nullptr) { in Off()
176 if (!callback_->HasCommandCallback()) { in Off()
180 callback_->ClearCommandCallback(); in Off()
/base/account/os_account/services/accountmgr/src/
Daccount_event_subscribe.cpp33 : CommonEventSubscriber(subscribeInfo), callback_(callback) in AccountEventSubscriberCallback()
42 callback_.OnPackageRemoved(uid); in OnReceiveEvent()
46 …ubscriber::AccountEventSubscriber(const AccountCommonEventCallback &callback) : callback_(callback) in AccountEventSubscriber()
51 subscriber_ = std::make_shared<AccountEventSubscriberCallback>(subscribeInfo, callback_); in AccountEventSubscriber()
/base/account/os_account/frameworks/domain_account/src/
Ddomain_account_callback_service.cpp27 : callback_(callback) in DomainAccountCallbackService()
38 if (callback_ != nullptr) { in OnResult()
39 callback_(errCode, parcel); in OnResult()
/base/useriam/user_auth_framework/services/core/src/
Dresource_node_impl.cpp59 std::shared_ptr<ExecutorCallbackInterface> callback_; member in OHOS::UserIam::UserAuth::ResourceNodeImpl
66 callback_(std::move(callback)) in ResourceNodeImpl()
138 if (callback_ != nullptr) { in BeginExecute()
139 return callback_->OnBeginExecute(scheduleId, publicKey, command); in BeginExecute()
147 if (callback_ != nullptr) { in EndExecute()
148 return callback_->OnEndExecute(scheduleId, command); in EndExecute()
156 if (callback_ != nullptr) { in SetProperty()
157 return callback_->OnSetProperty(properties); in SetProperty()
165 if (callback_ != nullptr) { in GetProperty()
166 return callback_->OnGetProperty(condition, values); in GetProperty()
/base/inputmethod/imf/frameworks/js/napi/common/
Djs_callback_object.cpp26 napi_create_reference(env, callback, 1, &callback_); in JSCallbackObject()
31 if (callback_ != nullptr) { in ~JSCallbackObject()
33 napi_delete_reference(env_, callback_); in ~JSCallbackObject()
46 napi_delete_reference(jsObject->env_, jsObject->callback_); in ~JSCallbackObject()
/base/msdp/device_status/libs/test/unittest/src/
Ddevice_status_mock_test.cpp136 …std::shared_ptr<DeviceStatusMsdpClientImpl> callback_ = std::make_shared<DeviceStatusMsdpClientImp… variable
137 EXPECT_TRUE(g_testMock->RegisterCallback(callback_) == ERR_OK);
150 …std::shared_ptr<DeviceStatusMsdpClientImpl> callback_ = std::make_shared<DeviceStatusMsdpClientImp… variable
151 EXPECT_TRUE(g_testMock->RegisterCallback(callback_) == ERR_OK);
166 …std::shared_ptr<DeviceStatusMsdpClientImpl> callback_ = std::make_shared<DeviceStatusMsdpClientImp… variable
167 EXPECT_TRUE(g_testMock->RegisterCallback(callback_) == ERR_OK);
182 …std::shared_ptr<DeviceStatusMsdpClientImpl> callback_ = std::make_shared<DeviceStatusMsdpClientImp… variable
183 EXPECT_TRUE(g_testMock->RegisterCallback(callback_) == ERR_OK);
198 …std::shared_ptr<DeviceStatusMsdpClientImpl> callback_ = std::make_shared<DeviceStatusMsdpClientImp… variable
199 EXPECT_TRUE(g_testMock->RegisterCallback(callback_) == ERR_OK);
[all …]
/base/powermgr/battery_manager/services/native/include/
Dhdi_service_status_listener.h30 explicit HdiServiceStatusListener(StatusCallback callback) : callback_(std::move(callback)) {} in HdiServiceStatusListener()
34 callback_(status); in OnReceive()
37 StatusCallback callback_;

1234567