Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 1342) sorted by relevance

12345678910>>...54

/ohos5.0/foundation/multimodalinput/input/frameworks/napi/input_device/src/
H A Djs_event_target.cpp226 CHKRV_SCOPE(cb->env, napi_delete_reference(cb->env, cb->ref), DELETE_REFERENCE, scope); in CallIdsAsyncWork()
255 … CHKRV_SCOPE(cb->env, napi_resolve_deferred(cb->env, cb->deferred, arr), RESOLVE_DEFERRED, scope); in CallIdsPromiseWork()
262 CHKPV(cb); in EmitJsIds()
332 CHKRV_SCOPE(cb->env, napi_delete_reference(cb->env, cb->ref), DELETE_REFERENCE, scope); in CallDevAsyncWork()
358 …CHKRV_SCOPE(cb->env, napi_resolve_deferred(cb->env, cb->deferred, object), RESOLVE_DEFERRED, scope… in CallDevPromiseWork()
366 CHKPV(cb); in EmitJsDev()
524 CHKPV(cb); in EmitSupportKeys()
559 CHKPV(cb); in EmitJsKeyboardType()
736 CHKRV_SCOPE(cb->env, napi_delete_reference(cb->env, cb->ref), DELETE_REFERENCE, scope); in CallDevListAsyncWork()
883 CHKRV_SCOPE(cb->env, napi_delete_reference(cb->env, cb->ref), DELETE_REFERENCE, scope); in CallDevInfoAsyncWork()
[all …]
H A Djs_util.cpp78 CHKPP(cb); in GetDeviceInfo()
79 CHKPP(cb->env); in GetDeviceInfo()
80 CHKPP(cb->data.device); in GetDeviceInfo()
84 CHKRP(napi_create_int32(cb->env, cb->data.device->GetId(), &id), CREATE_INT32); in GetDeviceInfo()
86 CHKRP(napi_create_string_utf8(cb->env, (cb->data.device->GetName()).c_str(), in GetDeviceInfo()
103 CHKRP(napi_create_string_utf8(cb->env, (cb->data.device->GetUniq()).c_str(), in GetDeviceInfo()
107 CHKRP(napi_create_string_utf8(cb->env, (cb->data.device->GetPhys()).c_str(), in GetDeviceInfo()
124 CHKPF(cb); in GetDeviceAxisInfo()
125 CHKPF(cb->env); in GetDeviceAxisInfo()
181 CHKPF(cb); in GetDeviceSourceType()
[all …]
H A Djs_input_device_manager.cpp43 CHKPP(cb); in GetDeviceIds()
54 CHKPP(cb); in GetDevice()
66 CHKPP(cb); in SupportKeys()
105 CHKPP(cb); in GetKeyboardType()
142 CHKPP(cb); in GetDeviceList()
153 CHKPP(cb); in GetDeviceInfo()
184 CHKPP(cb); in GetDeviceInfoSync()
201 CHKPP(cb); in SetKeyboardRepeatDelay()
215 CHKPP(cb); in SetKeyboardRepeatRate()
229 CHKPP(cb); in GetKeyboardRepeatDelay()
[all …]
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/src/
H A Djs_event_cooperate_target.cpp289 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallEnablePromiseWork()
295 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallEnablePromiseWork()
302 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallEnablePromiseWork()
311 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallEnablePromiseWork()
346 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallEnableAsyncWork()
389 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallStartPromiseWork()
424 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallStartAsyncWork()
468 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallStopPromiseWork()
503 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallStopAsyncWork()
535 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallGetStatePromiseWork()
[all …]
H A Djs_cooperate_manager.cpp33 CHKPP(cb); in Enable()
36 this->EmitJsEnable(cb, networkId, msgInfo); in Enable()
46 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Enable()
56 CHKPP(cb); in Start()
64 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Start()
73 CHKPP(cb); in Stop()
82 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Stop()
91 CHKPP(cb); in GetState()
93 auto callback = [this, cb](bool state) { in GetState()
94 this->EmitJsGetState(cb, state); in GetState()
[all …]
H A Djs_util_cooperate.cpp36 CHKPP(cb); in GetEnableInfo()
37 CHKPP(cb->env); in GetEnableInfo()
38 return GetResult(cb->env, cb->data.enableResult, cb->data.msgInfo); in GetEnableInfo()
43 CHKPP(cb); in GetStartInfo()
44 CHKPP(cb->env); in GetStartInfo()
45 return GetResult(cb->env, cb->data.startResult, cb->data.msgInfo); in GetStartInfo()
50 CHKPP(cb); in GetStopInfo()
51 CHKPP(cb->env); in GetStopInfo()
52 return GetResult(cb->env, cb->data.stopResult, cb->data.msgInfo); in GetStopInfo()
57 CHKPP(cb); in GetStateInfo()
[all …]
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/
H A Djs_event_target.cpp452 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallPreparePromiseWork()
458 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallPreparePromiseWork()
465 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallPreparePromiseWork()
474 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallPreparePromiseWork()
509 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallPrepareAsyncWork()
552 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallActivatePromiseWork()
587 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallActivateAsyncWork()
631 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallDeactivatePromiseWork()
666 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallDeactivateAsyncWork()
698 RELEASE_CALLBACKINFO(cb->env, cb->ref); in CallGetCrossingSwitchStatePromiseWork()
[all …]
H A Djs_coordination_manager.cpp33 CHKPP(cb); in Prepare()
41 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Prepare()
50 CHKPP(cb); in Unprepare()
58 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Unprepare()
68 CHKPP(cb); in Activate()
77 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Activate()
87 CHKPP(cb); in Deactivate()
95 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Deactivate()
105 CHKPP(cb); in GetCrossingSwitchState()
107 auto callback = [this, cb](bool state) { in GetCrossingSwitchState()
[all …]
H A Djs_util.cpp36 CHKPP(cb); in GetPrepareInfo()
37 CHKPP(cb->env); in GetPrepareInfo()
38 return GetResult(cb->env, cb->data.prepareResult, cb->data.msgInfo); in GetPrepareInfo()
43 CHKPP(cb); in GetActivateInfo()
44 CHKPP(cb->env); in GetActivateInfo()
45 return GetResult(cb->env, cb->data.activateResult, cb->data.msgInfo); in GetActivateInfo()
50 CHKPP(cb); in GetDeactivateInfo()
51 CHKPP(cb->env); in GetDeactivateInfo()
52 return GetResult(cb->env, cb->data.deactivateResult, cb->data.msgInfo); in GetDeactivateInfo()
57 CHKPP(cb); in GetCrossingSwitchStateInfo()
[all …]
/ohos5.0/foundation/multimedia/player_framework/test/unittest/soundpool_test/src/
H A Dsoundpool_unit_test.cpp136 if (cb == nullptr) {
176 if (cb == nullptr) {
228 if (cb == nullptr) {
249 if (cb == nullptr) {
281 if (cb == nullptr) {
321 if (cb == nullptr) {
373 if (cb == nullptr) {
397 if (cb == nullptr) {
429 if (cb == nullptr) {
481 if (cb == nullptr) {
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/
H A Dl2cap_le_if.c66 ctx->cb = cb; in L2CIF_LeRegisterService()
104 ctx->cb = cb; in L2CIF_LeDeregisterService()
153 ctx->cb = cb; in L2CIF_LeCreditBasedConnectionReq()
201 ctx->cb = cb; in L2CIF_LeCreditBasedConnectionRsp()
239 ctx->cb = cb; in L2CIF_LeDisconnectionReq()
279 ctx->cb = cb; in L2CIF_LeDisconnectionRsp()
333 ctx->cb = cb; in L2CIF_LeSendData()
376 ctx->cb = cb; in L2CIF_LeRegisterFixChannel()
414 ctx->cb = cb; in L2CIF_LeDeregisterFixChannel()
461 ctx->cb = cb; in L2CIF_LeConnect()
[all …]
H A Dl2cap_if.c69 ctx->cb = cb; in L2CIF_RegisterService()
107 ctx->cb = cb; in L2CIF_DeregisterService()
156 ctx->cb = cb; in L2CIF_ConnectReq()
201 ctx->cb = cb; in L2CIF_ConnectRsp()
244 ctx->cb = cb; in L2CIF_ConfigReq()
292 ctx->cb = cb; in L2CIF_ConfigRsp()
330 ctx->cb = cb; in L2CIF_DisconnectionReq()
370 ctx->cb = cb; in L2CIF_DisconnectionRsp()
410 ctx->cb = cb; in L2CIF_LocalBusy()
464 ctx->cb = cb; in L2CIF_SendData()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/
H A Dvideodec_hevcdec_unit_test.cpp340 cb.onError = OnErrorVoid;
371 cb.onError = OnErrorVoid;
402 cb.onError = OnErrorVoid;
434 cb.onError = OnErrorVoid;
465 cb.onError = OnErrorVoid;
498 cb.onError = OnErrorVoid;
531 cb.onError = OnErrorVoid;
564 cb.onError = OnErrorVoid;
596 cb.onError = OnErrorVoid;
630 cb.onError = OnErrorVoid;
[all …]
H A Dvideodec_stable_unit_test.cpp344 cb.onError = OnErrorVoid;
373 cb.onError = OnErrorVoid;
400 cb.onError = OnErrorVoid;
431 cb.onError = OnErrorVoid;
460 cb.onError = OnErrorVoid;
491 cb.onError = OnErrorVoid;
521 cb.onError = OnErrorVoid;
550 cb.onError = OnErrorVoid;
580 cb.onError = OnErrorVoid;
612 cb.onError = OnErrorVoid;
[all …]
H A Dvideoenc_stable_unit_test.cpp348 cb.onError = OnErrorVoid;
377 cb.onError = OnErrorVoid;
407 cb.onError = OnErrorVoid;
437 cb.onError = OnErrorVoid;
465 cb.onError = OnErrorVoid;
494 cb.onError = OnErrorVoid;
527 cb.onError = OnErrorVoid;
557 cb.onError = OnErrorVoid;
591 cb.onError = OnErrorVoid;
623 cb.onError = OnErrorVoid;
[all …]
/ohos5.0/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dmdns_manager.cpp44 if (cb == nullptr || cb->AsObject() == nullptr) { in RegisterService()
70 if (cb == nullptr || cb->AsObject() == nullptr) { in UnRegisterService()
76 auto itr = registerMap_.find(cb); in UnRegisterService()
92 if (cb == nullptr || cb->AsObject() == nullptr) { in StartDiscoverService()
112 return impl.Discovery(serviceType, cb); in StartDiscoverService()
118 if (cb == nullptr || cb->AsObject() == nullptr) { in StopDiscoverService()
140 auto cb = it.first; in RestartDiscoverService() local
141 if (cb == nullptr || cb->AsObject() == nullptr) { in RestartDiscoverService()
147 impl.Discovery(serviceType, cb); in RestartDiscoverService()
154 if (cb == nullptr || cb->AsObject() == nullptr) { in ResolveService()
[all …]
/ohos5.0/commonlibrary/ets_utils/js_sys_module/console/test/
H A Dtest_console.cpp126 cb = nullptr;
133 cb = nullptr;
140 cb = nullptr;
147 cb = nullptr;
416 cb = nullptr;
422 cb = nullptr;
429 cb = nullptr;
487 cb = nullptr;
494 cb = nullptr;
501 cb = nullptr;
[all …]
/ohos5.0/base/sensors/sensor/utils/common/src/
H A Dreport_data_callback.cpp50 if (cb == nullptr || cb->eventsBuf_.circularBuf == nullptr) { in ReportEventCallback()
61 cb->eventsBuf_.circularBuf[0] = *sensorData; in ReportEventCallback()
62 cb->eventsBuf_.writePosition = 1; in ReportEventCallback()
64 cb->eventsBuf_.circularBuf[cb->eventsBuf_.writePosition] = *sensorData; in ReportEventCallback()
65 cb->eventsBuf_.writePosition += 1; in ReportEventCallback()
67 cb->eventsBuf_.eventNum += 1; in ReportEventCallback()
68 if (cb->eventsBuf_.eventNum >= CIRCULAR_BUF_LEN) { in ReportEventCallback()
69 cb->eventsBuf_.eventNum = CIRCULAR_BUF_LEN; in ReportEventCallback()
71 if (cb->eventsBuf_.writePosition >= CIRCULAR_BUF_LEN) { in ReportEventCallback()
72 cb->eventsBuf_.writePosition = 0; in ReportEventCallback()
[all …]
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/client/src/
H A Daudio_client_tracker_callback_stub.cpp110 if (cb != nullptr) { in PausedStreamImpl()
120 if (cb != nullptr) { in SetLowPowerVolumeImpl()
121 cb->SetLowPowerVolumeImpl(volume); in SetLowPowerVolumeImpl()
131 if (cb != nullptr) { in ResumeStreamImpl()
141 if (cb != nullptr) { in SetOffloadModeImpl()
151 if (cb != nullptr) { in UnsetOffloadModeImpl()
152 cb->UnsetOffloadModeImpl(); in UnsetOffloadModeImpl()
161 if (cb != nullptr) { in GetLowPowerVolumeImpl()
162 cb->GetLowPowerVolumeImpl(volume); in GetLowPowerVolumeImpl()
171 if (cb != nullptr) { in GetSingleStreamVolumeImpl()
[all …]
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avplayer/
H A Davplayer_callback.cpp465 delete cb; in CompleteCallback()
699 cb->reason = reason; in OnAudioDeviceChangeCb()
739 cb->errorMsg = message; in OnErrorCb()
892 cb->value = speedMode; in OnSpeedDoneCb()
912 cb->value = bitRate; in OnBitRateDoneCb()
936 cb->value = position; in OnPositionUpdateCb()
962 cb->value = duration; in OnDurationUpdateCb()
1240 cb->infoMap = drmInfoMap; in OnDrmInfoUpdatedCb()
1280 cb->valueMap.text = text; in OnSubtitleInfoCb()
1281 cb->valueMap.pts = pts; in OnSubtitleInfoCb()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp_cmd.h31 int SMP_SendPairingRequest(uint16_t handle, const SMP_PairParam *pairReqParam, SMP_SendDataCb cb);
33 int SMP_SendPairingConfirm(uint16_t handle, const uint8_t *confirm, SMP_SendDataCb cb);
34 int SMP_SendPairingRandom(uint16_t handle, const uint8_t *random, SMP_SendDataCb cb);
35 int SMP_SendPairingFailed(uint16_t handle, uint8_t reason, SMP_SendDataCb cb);
36 int SMP_SendPairingPublicKey(uint16_t handle, const uint8_t *publicKey, SMP_SendDataCb cb);
37 int SMP_SendPairingDHKeyCheck(uint16_t handle, const uint8_t *dhKeyCheck, SMP_SendDataCb cb);
38 int SMP_SendEncryptionInformation(uint16_t handle, const uint8_t *ltk, SMP_SendDataCb cb);
40 int SMP_SendIdentityInformation(uint16_t handle, const uint8_t *irk, SMP_SendDataCb cb);
41 int SMP_SendIdentityAddressInformation(uint16_t handle, const BtAddr *addr, SMP_SendDataCb cb);
42 int SMP_SendSigningInformation(uint16_t handle, const uint8_t *csrk, SMP_SendDataCb cb);
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/include/
H A Dl2cap_le_if.h40 uint16_t lpsm, const L2capLeService *svc, void *context, void (*cb)(uint16_t lpsm, int result));
48 void BTSTACK_API L2CIF_LeDeregisterService(uint16_t lpsm, void (*cb)(uint16_t lpsm, int result));
59 const L2capLeConfigInfo *cfg, void (*cb)(const BtAddr *addr, uint16_t lcid, int result));
79 void BTSTACK_API L2CIF_LeDisconnectionReq(uint16_t lcid, void (*cb)(uint16_t lcid, int result));
88 void BTSTACK_API L2CIF_LeDisconnectionRsp(uint16_t lcid, uint8_t id, void (*cb)(uint16_t lcid, int …
97 int BTSTACK_API L2CIF_LeSendData(uint16_t lcid, const Packet *pkt, void (*cb)(uint16_t lcid, int re…
107 uint16_t cid, const L2capLeFixChannel *chan, void (*cb)(uint16_t cid, int result));
115 void BTSTACK_API L2CIF_LeDeregisterFixChannel(uint16_t cid, void (*cb)(uint16_t cid, int result));
140 void BTSTACK_API L2CIF_LeDisconnect(uint16_t aclHandle, void (*cb)(uint16_t aclHandle, int result));
151 uint16_t aclHandle, uint16_t cid, Packet *pkt, void (*cb)(uint16_t aclHandle, int result));
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_event.h31 this->env_ = cb->env_; in AsyncEventData()
32 this->callback_ = cb->callback_; in AsyncEventData()
33 this->state_ = cb->state_; in AsyncEventData()
34 this->deviceId_ = cb->deviceId_; in AsyncEventData()
35 this->info_ = cb->info_; in AsyncEventData()
51 static napi_value CreateResult(const std::shared_ptr<BluetoothCallbackInfo> &cb,
62 if (cb == nullptr) { in CheckAndNotify()
67 [](const std::shared_ptr<BluetoothCallbackInfo> &cb, T& obj) -> napi_value { in CheckAndNotify()
68 return NapiEvent::CreateResult(cb, obj); in CheckAndNotify()
70 cb, obj); in CheckAndNotify()
[all …]
/ohos5.0/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/callback/
H A Dnapi_audio_spatialization_manager_callback.cpp151 cb->callback = (*it); in OnSpatializationEnabledChange()
152 cb->enabled = enabled; in OnSpatializationEnabledChange()
169 cb->callback = (*it); in OnSpatializationEnabledChangeForAnyDevice()
170 cb->enabled = enabled; in OnSpatializationEnabledChangeForAnyDevice()
179 cb->callback = (*it); in OnSpatializationEnabledChangeForAnyDevice()
181 cb->enabled = enabled; in OnSpatializationEnabledChangeForAnyDevice()
369 cb->callback = (*it); in OnHeadTrackingEnabledChange()
370 cb->enabled = enabled; in OnHeadTrackingEnabledChange()
388 cb->callback = (*it); in OnHeadTrackingEnabledChangeForAnyDevice()
389 cb->enabled = enabled; in OnHeadTrackingEnabledChangeForAnyDevice()
[all …]
/ohos5.0/base/powermgr/power_manager/services/native/src/hibernate/
H A Dhibernate_controller.cpp27 void HibernateController::RegisterSyncHibernateCallback(const sptr<ISyncHibernateCallback>& cb) in RegisterSyncHibernateCallback() argument
30 callbacks_.insert(cb); in RegisterSyncHibernateCallback()
33 void HibernateController::UnregisterSyncHibernateCallback(const sptr<ISyncHibernateCallback>& cb) in UnregisterSyncHibernateCallback() argument
36 size_t eraseNum = callbacks_.erase(cb); in UnregisterSyncHibernateCallback()
44 for (const auto &cb : callbacks_) { in PreHibernate() local
45 if (cb != nullptr) { in PreHibernate()
46 cb->OnSyncHibernate(); in PreHibernate()
53 for (const auto &cb : callbacks_) { in PostHibernate() local
54 if (cb != nullptr) { in PostHibernate()
55 cb->OnSyncWakeup(); in PostHibernate()

12345678910>>...54