Home
last modified time | relevance | path

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

12345678910>>...109

/foundation/arkui/ace_engine/frameworks/core/animation/
Dstatus_listener.h33 void AddStartListener(const StatusCallback& callback) in AddStartListener() argument
35 startCallbacks_.emplace(callback.GetId(), callback); in AddStartListener()
38 void AddStopListener(const StatusCallback& callback) in AddStopListener() argument
40 stopCallbacks_.emplace(callback.GetId(), callback); in AddStopListener()
43 void AddRepeatListener(const StatusCallback& callback) in AddRepeatListener() argument
45 repeatCallbacks_.emplace(callback.GetId(), callback); in AddRepeatListener()
48 void AddPauseListener(const StatusCallback& callback) in AddPauseListener() argument
50 pauseCallbacks_.emplace(callback.GetId(), callback); in AddPauseListener()
53 void AddResumeListener(const StatusCallback& callback) in AddResumeListener() argument
55 resumeCallbacks_.emplace(callback.GetId(), callback); in AddResumeListener()
[all …]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/
Dwifi_idl_inner_interface_test.cpp203 void RegisterStaCallbackMock(WifiEventCallback *callback) in RegisterStaCallbackMock() argument
205 callback->onConnectChanged = OnConnectChangedMock; in RegisterStaCallbackMock()
206 callback->onBssidChanged = OnBssidChangedMock; in RegisterStaCallbackMock()
207 callback->onWpaStateChanged = OnWpaStateChangedMock; in RegisterStaCallbackMock()
208 callback->onWpaSsidWrongKey = OnWpaSsidWrongKeyMock; in RegisterStaCallbackMock()
209 callback->onWpsOverlap = OnWpsOverlapMock; in RegisterStaCallbackMock()
210 callback->onWpsTimeOut = OnWpsTimeOutMock; in RegisterStaCallbackMock()
211 callback->onWpaConnectionFull = OnWpaConnectionFullMock; in RegisterStaCallbackMock()
212 callback->onWpaConnectionReject = OnWpaConnectionRejectMock; in RegisterStaCallbackMock()
215 void UnRegisterStaCallbackMock(WifiEventCallback *callback) in UnRegisterStaCallbackMock() argument
[all …]
/foundation/multimedia/av_session/frameworks/native/session/src/
Davsession_callback_client.cpp20 AVSessionCallbackClient::AVSessionCallbackClient(const std::shared_ptr<AVSessionCallback>& callback) in AVSessionCallbackClient() argument
21 : callback_(callback) in AVSessionCallbackClient()
30 auto callback = callback_; in OnPlay() local
32 .AVSessionPostTask([callback]() { callback->OnPlay(); }, EVENT_NAME), in OnPlay()
40 auto callback = callback_; in OnPause() local
42 .AVSessionPostTask([callback]() { callback->OnPause(); }, EVENT_NAME), in OnPause()
50 auto callback = callback_; in OnStop() local
52 .AVSessionPostTask([callback]() { callback->OnStop(); }, EVENT_NAME), in OnStop()
60 auto callback = callback_; in OnPlayNext() local
62 .AVSessionPostTask([callback]() { callback->OnPlayNext(); }, EVENT_NAME), in OnPlayNext()
[all …]
Davcontroller_callback_client.cpp21 …erCallbackClient::AVControllerCallbackClient(const std::shared_ptr<AVControllerCallback>& callback) in AVControllerCallbackClient() argument
22 : callback_(callback) in AVControllerCallbackClient()
31 auto callback = callback_; in OnSessionDestroy() local
33 .AVSessionPostTask([callback]() { callback->OnSessionDestroy(); }, EVENT_NAME), in OnSessionDestroy()
41 auto callback = callback_; in OnPlaybackStateChange() local
43 … .AVSessionPostTask([callback, state]() { callback->OnPlaybackStateChange(state); }, EVENT_NAME), in OnPlaybackStateChange()
55 auto callback = callback_; in OnMetaDataChange() local
57 .AVSessionPostTask([callback, data]() { callback->OnMetaDataChange(data); }, EVENT_NAME), in OnMetaDataChange()
65 auto callback = callback_; in OnActiveStateChange() local
67 ….AVSessionPostTask([callback, isActive]() { callback->OnActiveStateChange(isActive); }, EVENT_NAME… in OnActiveStateChange()
[all …]
Davcast_controller_callback_client.cpp22 const std::shared_ptr<AVCastControllerCallback>& callback) : callback_(callback) in AVCastControllerCallbackClient() argument
31 auto callback = callback_; in OnCastPlaybackStateChange() local
33 ….AVSessionPostTask([callback, state]() { callback->OnCastPlaybackStateChange(state); }, EVENT_NAME… in OnCastPlaybackStateChange()
44 auto callback = callback_; in OnMediaItemChange() local
46 ….AVSessionPostTask([callback, avQueueItem]() { callback->OnMediaItemChange(avQueueItem); }, EVENT_… in OnMediaItemChange()
54 auto callback = callback_; in OnPlayNext() local
56 .AVSessionPostTask([callback]() { callback->OnPlayNext(); }, EVENT_NAME), in OnPlayNext()
64 auto callback = callback_; in OnPlayPrevious() local
66 .AVSessionPostTask([callback]() { callback->OnPlayPrevious(); }, EVENT_NAME), in OnPlayPrevious()
74 auto callback = callback_; in OnSeekDone() local
[all …]
/foundation/communication/netstack/interfaces/kits/js/
D@ohos.net.socket.d.ts139 bind(address: NetAddress, callback: AsyncCallback<void>): void;
148 send(options: UDPSendOptions, callback: AsyncCallback<void>): void;
155 close(callback: AsyncCallback<void>): void;
164 getState(callback: AsyncCallback<SocketStateBase>): void;
173 setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback<void>): void;
179 …on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): voi…
184 …off(type: 'message', callback?: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): v…
189 on(type: 'listening' | 'close', callback: Callback<void>): void;
194 off(type: 'listening' | 'close', callback?: Callback<void>): void;
199 on(type: 'error', callback: ErrorCallback): void;
[all …]
D@ohos.net.webSocket.d.ts57 connect(url: string, callback: AsyncCallback<boolean>): void;
58 connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback<boolean>): void;
68 send(data: string | ArrayBuffer, callback: AsyncCallback<boolean>): void;
78 close(callback: AsyncCallback<boolean>): void;
79 close(options: WebSocketCloseOptions, callback: AsyncCallback<boolean>): void;
85 on(type: 'open', callback: AsyncCallback<Object>): void;
90 off(type: 'open', callback?: AsyncCallback<Object>): void;
96 on(type: 'message', callback: AsyncCallback<string | ArrayBuffer>): void;
102 off(type: 'message', callback?: AsyncCallback<string | ArrayBuffer>): void;
107 on(type: 'close', callback: AsyncCallback<{ code: number, reason: string }>): void;
[all …]
/foundation/arkui/ace_engine/adapter/preview/entrance/
Dace_view_preview.h45 void RegisterTouchEventCallback(TouchEventCallback&& callback) override in RegisterTouchEventCallback() argument
47 ACE_DCHECK(callback); in RegisterTouchEventCallback()
48 touchEventCallback_ = std::move(callback); in RegisterTouchEventCallback()
51 void RegisterKeyEventCallback(KeyEventCallback&& callback) override in RegisterKeyEventCallback() argument
53 ACE_DCHECK(callback); in RegisterKeyEventCallback()
54 keyEventCallback_ = std::move(callback); in RegisterKeyEventCallback()
57 void RegisterMouseEventCallback(MouseEventCallback&& callback) override in RegisterMouseEventCallback() argument
59 ACE_DCHECK(callback); in RegisterMouseEventCallback()
60 mouseEventCallback_ = std::move(callback); in RegisterMouseEventCallback()
63 void RegisterAxisEventCallback(AxisEventCallback&& callback) override in RegisterAxisEventCallback() argument
[all …]
/foundation/ability/ability_runtime/frameworks/js/napi/ability_context/
Dability_context.js40 startAbility(want, options, callback) { argument
41 return this.__context_impl__.startAbility(want, options, callback);
44 startAbilityAsCaller(want, options, callback) { argument
45 return this.__context_impl__.startAbilityAsCaller(want, options, callback);
48 startRecentAbility(want, options, callback) { argument
49 return this.__context_impl__.startRecentAbility(want, options, callback);
52 startAbilityWithAccount(want, accountId, options, callback) { argument
53 return this.__context_impl__.startAbilityWithAccount(want, accountId, options, callback);
102 startAbilityForResult(want, options, callback) { argument
103 return this.__context_impl__.startAbilityForResult(want, options, callback);
[all …]
/foundation/multimedia/player_framework/interfaces/kits/js/
D@ohos.multimedia.media.d.ts31 function createAVPlayer(callback: AsyncCallback<AVPlayer>): void;
49 function createAVRecorder(callback: AsyncCallback<AVRecorder>): void;
88 function createVideoPlayer(callback: AsyncCallback<VideoPlayer>): void;
109 function createVideoRecorder(callback: AsyncCallback<VideoRecorder>): void;
383 prepare(callback: AsyncCallback<void>): void;
402 play(callback: AsyncCallback<void>): void;
420 pause(callback: AsyncCallback<void>): void;
438 stop(callback: AsyncCallback<void>): void;
456 reset(callback: AsyncCallback<void>): void;
474 release(callback: AsyncCallback<void>): void;
[all …]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/idl_client/idl_interface/
Di_wifi.c165 IWifiChipEventCallback *callback = GetWifiChipEventCallback(); in IdlCbkAddRemoveIface() local
166 if (callback != NULL) { in IdlCbkAddRemoveIface()
167 if (event == WIFI_IDL_CBK_CMD_ADD_IFACE && callback->onIfaceAdded != NULL) { in IdlCbkAddRemoveIface()
168 callback->onIfaceAdded(type, iface); in IdlCbkAddRemoveIface()
169 } else if (event == WIFI_IDL_CBK_CMD_REMOVE_IFACE && callback->onIfaceRemoved != NULL) { in IdlCbkAddRemoveIface()
170 callback->onIfaceRemoved(type, iface); in IdlCbkAddRemoveIface()
207 IWifiApEventCallback *callback = GetWifiApEventCallback(id); in IdlCbkStaJoinLeave() local
208 if (callback != NULL && callback->onStaJoinOrLeave != NULL) { in IdlCbkStaJoinLeave()
209 callback->onStaJoinOrLeave(&info, id); in IdlCbkStaJoinLeave()
222 ISupplicantEventCallback *callback = GetSupplicantEventCallback(); in IdlCbkScanInfoNotify() local
[all …]
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
Dnet_policy_callback.cpp39 int32_t NetPolicyCallback::RegisterNetPolicyCallbackAsync(const sptr<INetPolicyCallback> &callback) in RegisterNetPolicyCallbackAsync() argument
41 …if (callback == nullptr || callback->AsObject() == nullptr || callback->AsObject().GetRefPtr() == … in RegisterNetPolicyCallbackAsync()
47 policyCallHandler_->PostSyncTask([this, &callback, &ret]() { in RegisterNetPolicyCallbackAsync()
48 ret = this->RegisterNetPolicyCallback(callback); in RegisterNetPolicyCallbackAsync()
55 int32_t NetPolicyCallback::RegisterNetPolicyCallback(const sptr<INetPolicyCallback> &callback) in RegisterNetPolicyCallback() argument
65 if (callback->AsObject().GetRefPtr() == callbacks_[i]->AsObject().GetRefPtr()) { in RegisterNetPolicyCallback()
71 callbacks_.emplace_back(callback); in RegisterNetPolicyCallback()
75 …t32_t NetPolicyCallback::UnregisterNetPolicyCallbackAsync(const sptr<INetPolicyCallback> &callback) in UnregisterNetPolicyCallbackAsync() argument
77 …if (callback == nullptr || callback->AsObject() == nullptr || callback->AsObject().GetRefPtr() == … in UnregisterNetPolicyCallbackAsync()
84 policyCallHandler_->PostSyncTask([this, &callback, &ret]() { in UnregisterNetPolicyCallbackAsync()
[all …]
/foundation/ability/ability_runtime/test/unittest/quick_fix/quick_fix_callback_with_record_test/
Dquick_fix_callback_with_record_test.cpp95 sptr<QuickFixCallbackImpl> callback = new QuickFixCallbackImpl(); variable
96 sptr<QuickFixCallbackWithRecord> callbackByRecord = new QuickFixCallbackWithRecord(callback);
107 EXPECT_EQ(callback->loadPatchDone_, true);
108 EXPECT_EQ(callback->loadPatchResult_, 0);
109 EXPECT_EQ(callback->loadPatchTimes_, 1);
122 sptr<QuickFixCallbackImpl> callback = new QuickFixCallbackImpl(); variable
123 sptr<QuickFixCallbackWithRecord> callbackByRecord = new QuickFixCallbackWithRecord(callback);
134 EXPECT_EQ(callback->unloadPatchDone_, true);
135 EXPECT_EQ(callback->unloadPatchResult_, -1);
136 EXPECT_EQ(callback->unloadPatchTimes_, 1);
[all …]
/foundation/communication/netmanager_base/interfaces/kits/js/
D@ohos.net.policy.d.ts35 function setBackgroundAllowed(isAllowed: boolean, callback: AsyncCallback<void>): void;
45 function isBackgroundAllowed(callback: AsyncCallback<boolean>): void;
57 function setPolicyByUid(uid: number, policy: NetUidPolicy, callback: AsyncCallback<void>): void;
69 function getPolicyByUid(uid: number, callback: AsyncCallback<NetUidPolicy>): void;
81 function getUidsByPolicy(policy: NetUidPolicy, callback: AsyncCallback<Array<number>>): void;
91 function getNetQuotaPolicies(callback: AsyncCallback<Array<NetQuotaPolicy>>): void;
101 …function setNetQuotaPolicies(quotaPolicies: Array<NetQuotaPolicy>, callback: AsyncCallback<void>):…
111 function restoreAllPolicies(iccid: string, callback: AsyncCallback<void>): void;
122 function isUidNetAllowed(uid: number, isMetered: boolean, callback: AsyncCallback<boolean>): void;
133 function isUidNetAllowed(uid: number, iface: string, callback: AsyncCallback<boolean>): void;
[all …]
D@ohos.net.connection.d.ts72 function getDefaultNet(callback: AsyncCallback<NetHandle>): void;
114 function getAllNets(callback: AsyncCallback<Array<NetHandle>>): void;
144 …function getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback<ConnectionPropertie…
176 function getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback<NetCapabilities>): void;
206 function isDefaultNetMetered(callback: AsyncCallback<boolean>): void;
246 function hasDefaultNet(callback: AsyncCallback<boolean>): void;
287 function enableAirplaneMode(callback: AsyncCallback<void>): void;
319 function disableAirplaneMode(callback: AsyncCallback<void>): void;
350 function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback<void>): void;
380 function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback<void>): void;
[all …]
/foundation/communication/netmanager_ext/interfaces/kits/js/
D@ohos.net.sharing.d.ts41 function isSharingSupported(callback: AsyncCallback<boolean>): void;
72 function isSharing(callback: AsyncCallback<boolean>): void;
109 function startSharing(type: SharingIfaceType, callback: AsyncCallback<void>): void;
152 function stopSharing(type: SharingIfaceType, callback: AsyncCallback<void>): void;
188 function getStatsRxBytes(callback: AsyncCallback<number>): void;
218 function getStatsTxBytes(callback: AsyncCallback<number>): void;
248 function getStatsTotalBytes(callback: AsyncCallback<number>): void;
280 function getSharingIfaces(state: SharingIfaceState, callback: AsyncCallback<Array<string>>): void;
314 …function getSharingState(type: SharingIfaceType, callback: AsyncCallback<SharingIfaceState>): void;
348 function getSharableRegexes(type: SharingIfaceType, callback: AsyncCallback<Array<string>>): void;
[all …]
/foundation/ability/ability_runtime/frameworks/native/ability/native/
Dability_lifecycle.cpp49 for (auto &callback : callbacks_) { in DispatchLifecycle() local
53 if (callback != nullptr) { in DispatchLifecycle()
54 callback->OnForeground(want); in DispatchLifecycle()
60 if (callback != nullptr) { in DispatchLifecycle()
61 callback->OnStart(want); in DispatchLifecycle()
68 if (callback != nullptr) { in DispatchLifecycle()
69 callback->OnStateChanged(event, want); in DispatchLifecycle()
86 for (auto &callback : callbacks_) { in DispatchLifecycle() local
89 if (callback != nullptr) { in DispatchLifecycle()
90 callback->OnActive(); in DispatchLifecycle()
[all …]
/foundation/distributeddatamgr/data_share/test/native/resource/errorcode_ext_bundle/entry/src/main/ets/DataShareExtAbility/
DDataShareExtAbility.ts30 async onCreate(want, callback) {
39 callback(err);
43 async getFileTypes(uri: string, mimeTypeFilter: string, callback) {
48 await callback(err,ret);
52 async openFile(uri: string, mode: string, callback) {
56 await callback(err,ret);
60 async insert(uri, value, callback) {
73 if (callback != undefined) {
74 callback(err, ret);
80 async update(uri, predicates, value, callback) {
[all …]
/foundation/ai/intelligent_voice_framework/interfaces/kits/js/
D@ohos.ai.intelligentVoice.d.ts60 on(type: 'serviceChange', callback: Callback<ServiceChangeType>): void;
70 off(type: 'serviceChange', callback?: Callback<ServiceChangeType>): void;
166 …elligentVoiceEngine(descriptor: EnrollIntelligentVoiceEngineDescriptor, callback: AsyncCallback<En…
194 …elligentVoiceEngine(descriptor: WakeupIntelligentVoiceEngineDescriptor, callback: AsyncCallback<Wa…
462 getSupportedRegions(callback: AsyncCallback<Array<string>>): void;
484 init(config: EnrollEngineConfig, callback: AsyncCallback<void>): void;
508 enrollForResult(isLast: boolean, callback: AsyncCallback<EnrollCallbackInfo>): void;
528 stop(callback: AsyncCallback<void>): void;
547 commit(callback: AsyncCallback<void>): void;
569 setWakeupHapInfo(info: WakeupHapInfo, callback: AsyncCallback<void>): void;
[all …]
/foundation/distributedhardware/device_manager/display/
D@ohos.distributedHardware.deviceManager.d.ts382 function createDeviceManager(bundleName: string, callback: AsyncCallback<DeviceManager>): void;
421 getTrustedDeviceList(callback: AsyncCallback<Array<DeviceInfo>>): void;
449 getLocalDeviceInfo(callback: AsyncCallback<DeviceInfo>): void;
470 getDeviceInfo(networkId: string, callback: AsyncCallback<DeviceInfo>): void;
535 …requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback<{ registerInfo: string …
546 importCredential(credentialInfo: string, callback: AsyncCallback<{ resultInfo: string }>): void;
557 deleteCredential(queryInfo: string, callback: AsyncCallback<{ resultInfo: string }>): void;
567 …authenticateDevice(deviceInfo: DeviceInfo, authParam: AuthParam, callback: AsyncCallback<{ deviceI…
585 …verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback<{ deviceId: string, level: number }>): …
613 on(type: 'uiStateChange', callback: Callback<{ param: string }>): void;
[all …]
/foundation/ability/ability_runtime/frameworks/js/napi/app/application_context/
Dapplication_context.js33 on(event, callback) { argument
34 if ((typeof (event) !== 'string') || (typeof (callback) !== 'function')) {
41 if (this.eventMap[event].indexOf(callback) === -1) {
42 this.eventMap[event].push(callback);
46 off(event, callback) { argument
52 if (callback) {
53 let index = this.eventMap[event].indexOf(callback);
69 this.eventMap[event].map((callback) => {
70 callback(...args);
86 unregisterAbilityLifecycleCallback(callbackId, callback) { argument
[all …]
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_extension_context/
Daccessibility_extension_context.js23 setTargetBundleName(targetNames, callback) { argument
25 return this.__context_impl__.setTargetBundleName(targetNames, callback);
28 getFocusElement(isAccessibilityFocus, callback) { argument
30 return this.__context_impl__.getFocusElement(isAccessibilityFocus, callback);
33 getWindowRootElement(windowId, callback) { argument
35 return this.__context_impl__.getWindowRootElement(windowId, callback);
38 getWindows(displayId, callback) { argument
40 return this.__context_impl__.getWindows(displayId, callback);
43 injectGesture(gesture, callback) { argument
45 return this.__context_impl__.injectGesture(gesture, callback);
[all …]
/foundation/arkui/ace_engine/frameworks/core/pipeline/
Dcontainer_window_manager.h59 void SetWindowMinimizeCallBack(WindowCallback&& callback) in SetWindowMinimizeCallBack() argument
61 windowMinimizeCallback_ = std::move(callback); in SetWindowMinimizeCallBack()
64 void SetWindowMaximizeCallBack(WindowCallback&& callback) in SetWindowMaximizeCallBack() argument
66 windowMaximizeCallback_ = std::move(callback); in SetWindowMaximizeCallBack()
69 void SetWindowMaximizeFloatingCallBack(WindowCallback&& callback) in SetWindowMaximizeFloatingCallBack() argument
71 windowMaximizeFloatingCallback_ = std::move(callback); in SetWindowMaximizeFloatingCallBack()
74 void SetWindowRecoverCallBack(WindowCallback&& callback) in SetWindowRecoverCallBack() argument
76 windowRecoverCallback_ = std::move(callback); in SetWindowRecoverCallBack()
79 void SetWindowCloseCallBack(WindowCallback&& callback) in SetWindowCloseCallBack() argument
81 windowCloseCallback_ = std::move(callback); in SetWindowCloseCallBack()
[all …]
/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/ApiDoc/GattDoc/
DGatt功能界面使用说明文档.md41 … on.BLEConnectionStatecChange | (type: "BLEConnectionStateChange", callback: Callback<BLEConn…
43 | 获取服务callback | getServices(callback) | (callback: AsyncCallback<Array<Gatt…
45 | 读取特征值callback | readCharacteristicValue(callback) | (characteristic: BLECharacteristic, callbac…
47 | 读取描述符值callback | readDescripitorValue(callback) | (descriptor: BLEDescriptor, callback: AsyncC…
51 | BLE特征值变化 | on.BLECharacteristicChange | (type: "BLECharacteristicChange", callback:…
54 | 获取设备名称callback | getDeviceName(callback) | (callback: AsyncCallback<string…
56 | 获取Rssi值callback | getRssiValue(callback) | (callback: AsyncCallback<num…
90 > - callback回调用于侦听连接状态更改事件。
99 - 限制条件:创立了Gatt客户端实例后,此方法注销设备并清除已注册的callback和handle。
102 5. 获取服务callback/promise
[all …]
/foundation/ability/ability_runtime/frameworks/js/napi/service_extension_context/
Dservice_extension_context.js33 startAbility(want, options, callback) { argument
35 return this.__context_impl__.startAbility(want, options, callback);
38 startAbilityAsCaller(want, options, callback) { argument
40 return this.__context_impl__.startAbilityAsCaller(want, options, callback);
43 startRecentAbility(want, options, callback) { argument
45 return this.__context_impl__.startRecentAbility(want, options, callback);
58 startAbilityWithAccount(want, accountId, options, callback) { argument
60 return this.__context_impl__.startAbilityWithAccount(want, accountId, options, callback);
63 startServiceExtensionAbility(want, callback) { argument
65 return this.__context_impl__.startServiceExtensionAbility(want, callback);
[all …]

12345678910>>...109