Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 1283) sorted by relevance

12345678910>>...52

/base/telephony/state_registry/interfaces/kits/js/
D@ohos.telephony.observer.d.ts60 function on(type: 'networkStateChange', callback: Callback<NetworkState>): void;
80 …function on(type: 'networkStateChange', options: { slotId: number }, callback: Callback<NetworkSta…
95 function off(type: 'networkStateChange', callback?: Callback<NetworkState>): void;
111 function on(type: 'signalInfoChange', callback: Callback<Array<SignalInformation>>): void;
129 …function on(type: 'signalInfoChange', options: { slotId: number }, callback: Callback<Array<Signal…
144 function off(type: 'signalInfoChange', callback?: Callback<Array<SignalInformation>>): void;
164 function on(type: 'cellInfoChange', callback: Callback<Array<CellInformation>>): void;
186 …function on(type: 'cellInfoChange', options: { slotId: number }, callback: Callback<Array<CellInfo…
204 function off(type: 'cellInfoChange', callback?: Callback<Array<CellInformation>>): void;
222 callback: Callback<{ state: DataConnectState, network: RatType }>): void;
[all …]
/base/telephony/call_manager/interfaces/kits/js/
D@ohos.telephony.call.d.ts41 function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback<boolean>): void;
74 function dial(phoneNumber: string, callback: AsyncCallback<boolean>): void;
96 …function dialCall(phoneNumber: string, options: DialCallOptions, callback: AsyncCallback<void>): v…
139 function dialCall(phoneNumber: string, callback: AsyncCallback<void>): void;
154 function makeCall(phoneNumber: string, callback: AsyncCallback<void>): void;
179 function hasCall(callback: AsyncCallback<boolean>): void;
213 function getCallState(callback: AsyncCallback<CallState>): void;
260 function muteRinger(callback: AsyncCallback<void>): void;
308 …function isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: As…
341 function isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback<boolean>): void;
[all …]
/base/telephony/core_service/interfaces/kits/js/
D@ohos.telephony.sim.d.ts38 function isSimActive(slotId: number, callback: AsyncCallback<boolean>): void;
73 function getDefaultVoiceSlotId(callback: AsyncCallback<number>): void;
102 function hasOperatorPrivileges(slotId: number, callback: AsyncCallback<boolean>): void;
138 function getISOCountryCodeForSim(slotId: number, callback: AsyncCallback<string>): void;
189 function getSimOperatorNumeric(slotId: number, callback: AsyncCallback<string>): void;
244 function getSimSpn(slotId: number, callback: AsyncCallback<string>): void;
304 function getSimState(slotId: number, callback: AsyncCallback<SimState>): void;
364 function getCardType(slotId: number, callback: AsyncCallback<CardType>): void;
417 function getSimIccId(slotId: number, callback: AsyncCallback<string>): void;
463 function getVoiceMailIdentifier(slotId: number, callback: AsyncCallback<string>): void;
[all …]
D@ohos.telephony.radio.d.ts62 callback: AsyncCallback<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
115 function getNetworkState(slotId: number, callback: AsyncCallback<NetworkState>): void;
149 function getNetworkState(callback: AsyncCallback<NetworkState>): void;
169 function sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback<void>): void;
207 function sendUpdateCellLocationRequest(callback: AsyncCallback<void>): void;
227 …function getCellInformation(slotId: number, callback: AsyncCallback<Array<CellInformation>>): void;
265 function getCellInformation(callback: AsyncCallback<Array<CellInformation>>): void;
287 …function getNetworkSelectionMode(slotId: number, callback: AsyncCallback<NetworkSelectionMode>): v…
328 …function setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback<voi…
368 …function getNetworkSearchInformation(slotId: number, callback: AsyncCallback<NetworkSearchResult>)…
[all …]
/base/print/print_fwk/interfaces/kits/jskits/
D@ohos.print.d.ts38 on(type: 'blocked' | 'success' | 'failed' | 'cancelled', callback: () => void): void;
51 off(type: 'blocked' | 'success' | 'failed' | 'cancelled', callback?: (boolean) => void): void;
62 function print(files: Array<string>, callback: AsyncCallback<PrintTask>): void;
74 function print(files: Array<string>, context: Context, callback: AsyncCallback<PrintTask>): void;
224 …function queryAllPrinterExtensionInfos(callback: AsyncCallback<Array<PrinterExtensionInfo>>): void;
238 …function startDiscoverPrinter(extensionList: Array<string>, callback: AsyncCallback<boolean>): voi…
252 function stopDiscoverPrinter(callback: AsyncCallback<boolean>): void;
265 function connectPrinter(printerId: string, callback: AsyncCallback<boolean>): void;
278 function disconnectPrinter(printerId: string, callback: AsyncCallback<boolean>): void;
291 function queryPrinterCapability(printerId: string, callback: AsyncCallback<boolean>): void;
[all …]
/base/security/certificate_manager/interfaces/kits/js/
D@ohos.security.certManager.d.ts32 function getSystemTrustedCertificateList(callback: AsyncCallback<CMResult>) : void;
43 function getSystemTrustedCertificate(certUri: string, callback: AsyncCallback<CMResult>) : void;
57 …function setCertificateStatus(certUri: string, store: number, status: boolean, callback: AsyncCall…
68 …function installUserTrustedCertificate(certificate: CertBlob, callback: AsyncCallback<CMResult>) :…
78 function uninstallAllUserTrustedCertificate(callback: AsyncCallback<boolean>) : void;
89 …function uninstallUserTrustedCertificate(certUri: string, callback: AsyncCallback<boolean>) : void;
98 function getUserTrustedCertificateList(callback: AsyncCallback<CMResult>) : void;
108 function getUserTrustedCertificate(certUri: string, callback: AsyncCallback<CMResult>) : void;
121 …rtificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, callback: AsyncCallback<CM…
133 …rtificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, callback: AsyncCallback<CM…
[all …]
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
Daccount_iam_service_test.cpp133 sptr<MockIIDMCallback> callback = new (std::nothrow) MockIIDMCallback(); variable
134 ASSERT_NE(callback, nullptr);
135 accountIAMService_->AddCredential(0, creInfo, callback);
136 EXPECT_EQ(callback->result_, ERR_ACCOUNT_COMMON_INVALID_PARAMETER);
148 sptr<MockIIDMCallback> callback = new (std::nothrow) MockIIDMCallback(); variable
149 ASSERT_NE(callback, nullptr);
150 accountIAMService_->UpdateCredential(0, creInfo, callback);
151 EXPECT_EQ(callback->result_, ERR_ACCOUNT_COMMON_INVALID_PARAMETER);
175 sptr<MockIIDMCallback> callback = new (std::nothrow) MockIIDMCallback(); variable
176 ASSERT_NE(callback, nullptr);
[all …]
Daccount_iam_callback_test.cpp136 sptr<MockIIDMCallback> callback = new (std::nothrow) MockIIDMCallback(); variable
137 auto userAuthCallback = std::make_shared<AuthCallback>(TEST_USER_ID, AuthType::PIN, callback);
142 EXPECT_EQ(ResultCode::FAIL, callback->result_);
145 EXPECT_EQ(errCode, callback->result_);
157 sptr<MockIIDMCallback> callback = new (std::nothrow) MockIIDMCallback(); variable
158 auto userAuthCallback = std::make_shared<AuthCallback>(TEST_USER_ID, AuthType::FACE, callback);
163 EXPECT_EQ(errCode, callback->result_);
166 EXPECT_EQ(errCode, callback->result_);
191 sptr<MockIIDMCallback> callback = new (std::nothrow) MockIIDMCallback(); variable
192 auto userAuthCallback = std::make_shared<AuthCallback>(TEST_USER_ID, AuthType::PIN, callback);
[all …]
/base/security/device_auth/services/group_manager/src/callback_manager/
Dcallback_manager.c27 DeviceAuthCallback *callback; member
35 static int32_t UpdateCallbackIfExist(const char *appId, const DeviceAuthCallback *callback) in UpdateCallbackIfExist() argument
42 if (memcpy_s(entry->callback, sizeof(DeviceAuthCallback), in UpdateCallbackIfExist()
43 callback, sizeof(DeviceAuthCallback)) != EOK) { in UpdateCallbackIfExist()
56 static int32_t AddCallbackIfNotExist(const char *appId, const DeviceAuthCallback *callback) in AddCallbackIfNotExist() argument
75 …if (memcpy_s(copyCallback, sizeof(DeviceAuthCallback), callback, sizeof(DeviceAuthCallback)) != EO… in AddCallbackIfNotExist()
83 entry.callback = copyCallback; in AddCallbackIfNotExist()
97 …tCallback(int64_t reqId, const uint8_t *data, uint32_t dataLen, const DeviceAuthCallback *callback) in ProcessTransmitCallback() argument
99 if ((callback != NULL) && (callback->onTransmit != NULL)) { in ProcessTransmitCallback()
101 bool res = callback->onTransmit(reqId, data, dataLen); in ProcessTransmitCallback()
[all …]
/base/update/updater/services/flashd/daemon/
Dcommander_factory.cpp25 const std::unordered_map<std::string, std::function<std::unique_ptr<Commander>(callbackFun callback
26 …{ Hdc::CMDSTR_FLASH_PARTITION, [](callbackFun callback) { return std::make_unique<FlashCommander>( in __anond6671b3e0102()
27 …{ Hdc::CMDSTR_ERASE_PARTITION, [](callbackFun callback) { return std::make_unique<EraseCommander>( in __anond6671b3e0202()
28 …{ Hdc::CMDSTR_UPDATE_SYSTEM, [](callbackFun callback) { return std::make_unique<UpdateCommander>(c… in __anond6671b3e0302()
29 … Hdc::CMDSTR_FORMAT_PARTITION, [](callbackFun callback) { return std::make_unique<FormatCommander>… in __anond6671b3e0402()
38 …tr<Commander> CommanderFactory::CreateCommander(const std::string &cmd, callbackFun callback) const in CreateCommander()
42 return iter->second(callback); in CreateCommander()
/base/powermgr/power_manager/frameworks/native/shutdown/
Dshutdown_client.cpp33 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument
36 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
39 void ShutdownClient::UnRegisterShutdownCallback(const sptr<ITakeOverShutdownCallback>& callback) in UnRegisterShutdownCallback() argument
42 proxy_->UnRegisterShutdownCallback(callback); in UnRegisterShutdownCallback()
46 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument
49 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
52 void ShutdownClient::UnRegisterShutdownCallback(const sptr<IAsyncShutdownCallback>& callback) in UnRegisterShutdownCallback() argument
55 proxy_->UnRegisterShutdownCallback(callback); in UnRegisterShutdownCallback()
59 const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument
62 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
[all …]
/base/time/time_service/
DREADME_zh.md38 | setTime(time : number, callback : AsyncCallback<boolean>) : void | 设置系统时间(1970-01-01至今毫秒数),callba…
40 | getCurrentTime(isNano: boolean, callback: AsyncCallback<number>): void | 获取自Unix纪元以来经过的时间,callbac…
41 | getCurrentTime(callback: AsyncCallback<number>): void | 获取自Unix纪元以来经过的时间,callback方式。 |
43 | getRealActiveTime(isNano: boolean, callback: AsyncCallback<number>): void | 获取自系统启动以来经过的时间,不包括深度睡…
44 | getRealActiveTime(callback: AsyncCallback<number>): void | 获取自系统启动以来经过的时间,不包括深度睡眠时间,callback方式。 |
46 | getRealTime(isNano: boolean, callback: AsyncCallback<number>): void | 获取自系统启动以来经过的时间,包括深度睡眠时间,cal…
47 | getRealTime(callback: AsyncCallback<number>): void | 获取自系统启动以来经过的时间,包括深度睡眠时间,callback方式。 |
48 | setDate(date: Date, callback: AsyncCallback<boolean>): void; | 设置系统时间(Date格式),Promise方式。 …
49 | setDate(date: Date): Promise<boolean> | 设置系统时间(Date格式),callback方式。 …
50 | getDate(callback: AsyncCallback<Date>): void | 获取当前系统日期,Promise方式。 |
[all …]
/base/account/os_account/frameworks/account_iam/test/unittest/src/
Daccount_iam_client_no_permission_test.cpp139 auto callback = std::make_shared<MockIDMCallback>(); variable
140 ASSERT_NE(callback, nullptr);
141 AccountIAMClient::GetInstance().AddCredential(TEST_USER_ID, testPara, callback);
142 EXPECT_EQ(callback->result_, ERR_ACCOUNT_COMMON_PERMISSION_DENIED);
154 auto callback = std::make_shared<MockIDMCallback>(); variable
155 ASSERT_NE(callback, nullptr);
156 AccountIAMClient::GetInstance().UpdateCredential(TEST_USER_ID, testPara, callback);
157 EXPECT_EQ(callback->result_, ERR_ACCOUNT_COMMON_PERMISSION_DENIED);
182 auto callback = std::make_shared<MockIDMCallback>(); variable
183 ASSERT_NE(callback, nullptr);
[all …]
/base/inputmethod/imf/frameworks/js/napi/inputmethod_extension_context/
Dinputmethod_extension_context.js24 startAbility(want, options, callback) { argument
26 return this.__context_impl__.startAbility(want, options, callback);
34 startAbilityWithAccount(want, accountId, options, callback) { argument
36 return this.__context_impl__.startAbilityWithAccount(want, accountId, options, callback);
44 disconnectAbility(connection, callback) { argument
46 return this.__context_impl__.disconnectAbility(connection, callback);
49 terminateSelf(callback) { argument
51 return this.__context_impl__.terminateSelf(callback);
54 destroy(callback) { argument
56 return this.__context_impl__.destroy(callback);
/base/telephony/cellular_data/interfaces/kits/js/
D@ohos.telephony.data.d.ts33 function getDefaultCellularDataSlotId(callback: AsyncCallback<number>): void;
73 function setDefaultCellularDataSlotId(slotId: number, callback: AsyncCallback<void>): void;
105 function getCellularDataFlowType(callback: AsyncCallback<DataFlowType>): void;
132 function getCellularDataState(callback: AsyncCallback<DataConnectState>): void;
165 function isCellularDataEnabled(callback: AsyncCallback<boolean>): void;
198 function enableCellularData(callback: AsyncCallback<void>): void;
232 function disableCellularData(callback: AsyncCallback<void>): void;
268 function isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback<boolean>): void;
307 function enableCellularDataRoaming(slotId: number, callback: AsyncCallback<void>): void;
347 function disableCellularDataRoaming(slotId: number, callback: AsyncCallback<void>): void;
/base/useriam/user_auth_framework/frameworks/native/client/src/
Duser_idm_client_impl.cpp59 const std::shared_ptr<UserIdmClientCallback> &callback) in AddCredential() argument
61 if (!callback) { in AddCredential()
69 callback->OnResult(GENERAL_ERROR, extraInfo); in AddCredential()
73 sptr<IdmCallbackInterface> wrapper(new (std::nothrow) IdmCallbackService(callback)); in AddCredential()
77 callback->OnResult(GENERAL_ERROR, extraInfo); in AddCredential()
88 const std::shared_ptr<UserIdmClientCallback> &callback) in UpdateCredential() argument
90 if (!callback) { in UpdateCredential()
98 callback->OnResult(GENERAL_ERROR, extraInfo); in UpdateCredential()
102 sptr<IdmCallbackInterface> wrapper(new (std::nothrow) IdmCallbackService(callback)); in UpdateCredential()
106 callback->OnResult(GENERAL_ERROR, extraInfo); in UpdateCredential()
[all …]
/base/powermgr/power_manager/services/native/src/shutdown/
Dshutdown_callback_holer.cpp29 void ShutdownCallbackHolder::AddCallback(const sptr<IRemoteObject>& callback, ShutdownPriority prio… in AddCallback() argument
34 auto iter = lowPriorityCallbacks_.insert(callback); in AddCallback()
36 callback->AddDeathRecipient(this); in AddCallback()
41 auto iter = defaultPriorityCallbacks_.insert(callback); in AddCallback()
43 callback->AddDeathRecipient(this); in AddCallback()
48 auto iter = highPriorityCallbacks_.insert(callback); in AddCallback()
50 callback->AddDeathRecipient(this); in AddCallback()
78 void ShutdownCallbackHolder::RemoveCallback(const sptr<IRemoteObject>& callback) in RemoveCallback() argument
81 RemoveCallback(lowPriorityCallbacks_, callback); in RemoveCallback()
82 RemoveCallback(defaultPriorityCallbacks_, callback); in RemoveCallback()
[all …]
/base/account/os_account/frameworks/account_iam/src/
Daccount_iam_mgr_proxy.cpp103 …int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback, bool isA… in AddOrUpdateCredential() argument
105 if (callback == nullptr) { in AddOrUpdateCredential()
112 callback->OnResult(ERR_ACCOUNT_COMMON_WRITE_PARCEL_ERROR, emptyResult); in AddOrUpdateCredential()
117 callback->OnResult(ERR_ACCOUNT_COMMON_WRITE_PARCEL_ERROR, emptyResult); in AddOrUpdateCredential()
123 callback->OnResult(ERR_ACCOUNT_COMMON_WRITE_PARCEL_ERROR, emptyResult); in AddOrUpdateCredential()
128 callback->OnResult(ERR_ACCOUNT_COMMON_WRITE_PARCEL_ERROR, emptyResult); in AddOrUpdateCredential()
131 if (!data.WriteRemoteObject(callback->AsObject())) { in AddOrUpdateCredential()
133 callback->OnResult(ERR_ACCOUNT_COMMON_WRITE_PARCEL_ERROR, emptyResult); in AddOrUpdateCredential()
144 callback->OnResult(result, emptyResult); in AddOrUpdateCredential()
149 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in AddCredential() argument
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_execute_request_test.cpp60 const std::shared_ptr<MockAppAccountAuthorizationExtensionCallback> &callback) in MockAppAccountAuthorizationExtensionCallbackStub() argument
61 : callback_(callback) in MockAppAccountAuthorizationExtensionCallbackStub()
115 sptr<IAppAccountAuthorizationExtensionCallback> callback = variable
117 ASSERT_NE(callback, nullptr);
122 ErrCode result = g_accountManagerService->ExecuteRequest(request, callback);
135 sptr<IAppAccountAuthorizationExtensionCallback> callback = variable
137 ASSERT_NE(callback, nullptr);
142 ErrCode result = g_accountManagerService->ExecuteRequest(request, callback);
155 sptr<IAppAccountAuthorizationExtensionCallback> callback = variable
157 ASSERT_NE(callback, nullptr);
[all …]
/base/location/interfaces/inner_api/include/
Dlocator_proxy.h46 void RegisterSwitchCallback(const sptr<IRemoteObject> &callback, pid_t uid);
47 void UnregisterSwitchCallback(const sptr<IRemoteObject> &callback);
48 void RegisterGnssStatusCallback(const sptr<IRemoteObject> &callback, pid_t uid);
49 void UnregisterGnssStatusCallback(const sptr<IRemoteObject> &callback);
50 void RegisterNmeaMessageCallback(const sptr<IRemoteObject> &callback, pid_t uid);
51 void UnregisterNmeaMessageCallback(const sptr<IRemoteObject> &callback);
53 sptr<ILocatorCallback>& callback, std::string bundleName, pid_t pid, pid_t uid);
54 int StopLocating(sptr<ILocatorCallback>& callback);
62 sptr<ICachedLocationsCallback>& callback, std::string bundleName);
63 int UnregisterCachedLocationCallback(sptr<ICachedLocationsCallback>& callback);
[all …]
/base/account/os_account/frameworks/domain_account/src/
Ddomain_account_plugin_service.cpp30 …rCode DomainAccountPluginService::CheckAndInitExecEnv(const sptr<IDomainAccountCallback> &callback, in CheckAndInitExecEnv() argument
37 *callbackClient = new (std::nothrow) DomainAccountCallbackClient(callback); in CheckAndInitExecEnv()
46 …const std::vector<uint8_t> &authData, const sptr<IDomainAuthCallback> &callback, AuthMode authMode) in AuthCommonInterface() argument
52 auto callbackClient = std::make_shared<DomainAuthCallbackClient>(callback); in AuthCommonInterface()
79 const sptr<IDomainAuthCallback> &callback) in Auth() argument
81 return AuthCommonInterface(info, password, callback, AUTH_WITH_CREDENTIAL_MODE); in Auth()
85 const DomainAccountInfo &info, const sptr<IDomainAuthCallback> &callback) in AuthWithPopup() argument
87 return AuthCommonInterface(info, {}, callback, AUTH_WITH_POPUP_MODE); in AuthWithPopup()
91 …ainAccountInfo &info, const std::vector<uint8_t> &token, const sptr<IDomainAuthCallback> &callback) in AuthWithToken() argument
93 return AuthCommonInterface(info, token, callback, AUTH_WITH_TOKEN_MODE); in AuthWithToken()
[all …]
/base/account/os_account/services/accountmgr/src/account_iam/
Daccount_iam_service.cpp51 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in AddCredential() argument
55 callback->OnResult(ERR_ACCOUNT_COMMON_INVALID_PARAMETER, emptyResult); in AddCredential()
58 InnerAccountIAMManager::GetInstance().AddCredential(userId, credInfo, callback); in AddCredential()
62 const sptr<IIDMCallback> &callback) in UpdateCredential() argument
66 callback->OnResult(ERR_ACCOUNT_COMMON_INVALID_PARAMETER, emptyResult); in UpdateCredential()
69 InnerAccountIAMManager::GetInstance().UpdateCredential(userId, credInfo, callback); in UpdateCredential()
81 …, uint64_t credentialId, const std::vector<uint8_t> &authToken, const sptr<IIDMCallback> &callback) in DelCred() argument
85 callback->OnResult(ERR_ACCOUNT_COMMON_INVALID_PARAMETER, emptyResult); in DelCred()
88 InnerAccountIAMManager::GetInstance().DelCred(userId, credentialId, authToken, callback); in DelCred()
92 int32_t userId, const std::vector<uint8_t> &authToken, const sptr<IIDMCallback> &callback) in DelUser() argument
[all …]
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
Ddlp_callback_test.cpp64 sptr<DlpTestRemoteObj> callback = new (std::nothrow)IRemoteStub<DlpTestRemoteObj>(); variable
65 EXPECT_TRUE(callback != nullptr);
67 auto proxy = std::make_shared<DlpSandboxChangeCallbackProxy>(callback->AsObject());
70 EXPECT_EQ(true, (callback != nullptr));
92 sptr<DlpSandboxChangeCallbackTest> callback = new (std::nothrow) DlpSandboxChangeCallbackTest(); variable
93 EXPECT_TRUE(callback != nullptr);
97 recordInstance.callbackObject_ = callback->AsObject();
102 res = DlpSandboxChangeCallbackManager::GetInstance().AddCallback(0, callback->AsObject());
141 sptr<DlpTestRemoteObj> callback = new (std::nothrow)IRemoteStub<DlpTestRemoteObj>(); variable
142 ASSERT_NE(nullptr, callback);
[all …]
/base/account/os_account/services/accountmgr/src/domain_account/
Ddomain_account_plugin_proxy.cpp65 …const std::vector<uint8_t> &authData, const sptr<IDomainAuthCallback> &callback, AuthMode authMode) in AuthCommonInterface() argument
76 if ((callback == nullptr) || (!data.WriteRemoteObject(callback->AsObject()))) { in AuthCommonInterface()
89 …AccountInfo &info, const std::vector<uint8_t> &token, const sptr<IDomainAccountCallback> &callback) in IsAccountTokenValid() argument
104 if ((callback == nullptr) || (!data.WriteRemoteObject(callback->AsObject()))) { in IsAccountTokenValid()
113 const sptr<IDomainAuthCallback> &callback) in Auth() argument
115 return AuthCommonInterface(info, password, callback, AUTH_WITH_CREDENTIAL_MODE); in Auth()
120 const sptr<IDomainAccountCallback> &callback) in GetAccessToken() argument
135 if ((callback == nullptr) || (!data.WriteRemoteObject(callback->AsObject()))) { in GetAccessToken()
144 const DomainAccountInfo &info, const sptr<IDomainAuthCallback> &callback) in AuthWithPopup() argument
146 return AuthCommonInterface(info, {}, callback, AUTH_WITH_POPUP_MODE); in AuthWithPopup()
[all …]
/base/powermgr/power_manager/services/zidl/src/shutdown/
Dshutdown_proxy_delegator.cpp24 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument
26 RETURN_IF((remote_ == nullptr) || (callback == nullptr)) in RegisterShutdownCallback()
36 WRITE_PARCEL_NO_RET(data, RemoteObject, callback->AsObject()); in RegisterShutdownCallback()
47 …ShutdownProxyDelegator::UnRegisterShutdownCallback(const sptr<ITakeOverShutdownCallback>& callback) in UnRegisterShutdownCallback() argument
49 RETURN_IF((remote_ == nullptr) || (callback == nullptr)) in UnRegisterShutdownCallback()
59 WRITE_PARCEL_NO_RET(data, RemoteObject, callback->AsObject()); in UnRegisterShutdownCallback()
70 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument
72 RETURN_IF((remote_ == nullptr) || (callback == nullptr)) in RegisterShutdownCallback()
82 WRITE_PARCEL_NO_RET(data, RemoteObject, callback->AsObject()); in RegisterShutdownCallback()
93 …id ShutdownProxyDelegator::UnRegisterShutdownCallback(const sptr<IAsyncShutdownCallback>& callback) in UnRegisterShutdownCallback() argument
[all …]

12345678910>>...52