/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/src/ |
H A D | js_event_cooperate_target.cpp | 50 void JsEventCooperateTarget::EmitJsEnable(sptr<JsUtilCooperate::CallbackInfo> cb,
in EmitJsEnable() argument 54 CHKPV(cb);
in EmitJsEnable() 55 CHKPV(cb->env);
in EmitJsEnable() 56 cb->data.enableResult = (msgInfo.msg == CoordinationMessage::PREPARE ||
in EmitJsEnable() 58 cb->data.msgInfo = msgInfo;
in EmitJsEnable() 60 CHKRV(napi_get_uv_event_loop(cb->env, &loop), GET_UV_EVENT_LOOP);
in EmitJsEnable() 63 cb->IncStrongRef(nullptr);
in EmitJsEnable() 64 work->data = cb.GetRefPtr();
in EmitJsEnable() 66 if (cb->ref == nullptr) {
in EmitJsEnable() 75 cb in EmitJsEnable() 79 EmitJsStart(sptr<JsUtilCooperate::CallbackInfo> cb, const std::string &remoteNetworkId, const CoordinationMsgInfo &msgInfo) EmitJsStart() argument 107 EmitJsStop(sptr<JsUtilCooperate::CallbackInfo> cb, const std::string &networkId, const CoordinationMsgInfo &msgInfo) EmitJsStop() argument 135 EmitJsGetState(sptr<JsUtilCooperate::CallbackInfo> cb, bool state) EmitJsGetState() argument [all...] |
H A D | js_cooperate_manager.cpp | 32 sptr<JsUtilCooperate::CallbackInfo> cb = new (std::nothrow) JsUtilCooperate::CallbackInfo();
in Enable() local 33 CHKPP(cb);
in Enable() 34 napi_value result = CreateCallbackInfo(env, handle, cb);
in Enable() 35 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) {
in Enable() 36 this->EmitJsEnable(cb, networkId, msgInfo);
in Enable() 46 RELEASE_CALLBACKINFO(cb->env, cb->ref);
in Enable() 55 sptr<JsUtilCooperate::CallbackInfo> cb = new (std::nothrow) JsUtilCooperate::CallbackInfo();
in Start() local 56 CHKPP(cb);
in Start() 57 napi_value result = CreateCallbackInfo(env, handle, cb);
in Start() 72 sptr<JsUtilCooperate::CallbackInfo> cb = new (std::nothrow) JsUtilCooperate::CallbackInfo(); Stop() local 90 sptr<JsUtilCooperate::CallbackInfo> cb = new (std::nothrow) JsUtilCooperate::CallbackInfo(); GetState() local [all...] |
H A D | js_util_cooperate.cpp | 34 napi_value JsUtilCooperate::GetEnableInfo(sptr<CallbackInfo> cb)
in GetEnableInfo() argument 36 CHKPP(cb);
in GetEnableInfo() 37 CHKPP(cb->env);
in GetEnableInfo() 38 return GetResult(cb->env, cb->data.enableResult, cb->data.msgInfo);
in GetEnableInfo() 41 napi_value JsUtilCooperate::GetStartInfo(sptr<CallbackInfo> cb)
in GetStartInfo() argument 43 CHKPP(cb);
in GetStartInfo() 44 CHKPP(cb->env);
in GetStartInfo() 45 return GetResult(cb in GetStartInfo() 48 GetStopInfo(sptr<CallbackInfo> cb) GetStopInfo() argument 55 GetStateInfo(sptr<CallbackInfo> cb) GetStateInfo() argument [all...] |
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/ |
H A D | js_event_target.cpp | 48 void JsEventTarget::EmitJsPrepare(sptr<JsUtil::CallbackInfo> cb, const std::string &networkId,
in EmitJsPrepare() argument 52 CHKPV(cb);
in EmitJsPrepare() 53 CHKPV(cb->env);
in EmitJsPrepare() 54 cb->data.prepareResult = (msgInfo.msg == CoordinationMessage::PREPARE ||
in EmitJsPrepare() 56 cb->data.msgInfo = msgInfo;
in EmitJsPrepare() 58 CHKRV(napi_get_uv_event_loop(cb->env, &loop), GET_UV_EVENT_LOOP);
in EmitJsPrepare() 61 cb->IncStrongRef(nullptr);
in EmitJsPrepare() 62 work->data = cb.GetRefPtr();
in EmitJsPrepare() 64 if (cb->ref == nullptr) {
in EmitJsPrepare() 73 cb in EmitJsPrepare() 77 EmitJsActivate(sptr<JsUtil::CallbackInfo> cb, const std::string &remoteNetworkId, const CoordinationMsgInfo &msgInfo) EmitJsActivate() argument 105 EmitJsDeactivate(sptr<JsUtil::CallbackInfo> cb, const std::string &networkId, const CoordinationMsgInfo &msgInfo) EmitJsDeactivate() argument 133 EmitJsGetCrossingSwitchState(sptr<JsUtil::CallbackInfo> cb, bool state) EmitJsGetCrossingSwitchState() argument [all...] |
H A D | js_coordination_manager.cpp | 32 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo();
in Prepare() local 33 CHKPP(cb);
in Prepare() 34 napi_value result = CreateCallbackInfo(env, handle, cb);
in Prepare() 35 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) {
in Prepare() 36 this->EmitJsPrepare(cb, networkId, msgInfo);
in Prepare() 41 RELEASE_CALLBACKINFO(cb->env, cb->ref);
in Prepare() 49 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo();
in Unprepare() local 50 CHKPP(cb);
in Unprepare() 51 napi_value result = CreateCallbackInfo(env, handle, cb);
in Unprepare() 67 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo(); Activate() local 86 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo(); Deactivate() local 104 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo(); GetCrossingSwitchState() local [all...] |
H A D | js_util.cpp | 34 napi_value JsUtil::GetPrepareInfo(sptr<CallbackInfo> cb)
in GetPrepareInfo() argument 36 CHKPP(cb);
in GetPrepareInfo() 37 CHKPP(cb->env);
in GetPrepareInfo() 38 return GetResult(cb->env, cb->data.prepareResult, cb->data.msgInfo);
in GetPrepareInfo() 41 napi_value JsUtil::GetActivateInfo(sptr<CallbackInfo> cb)
in GetActivateInfo() argument 43 CHKPP(cb);
in GetActivateInfo() 44 CHKPP(cb->env);
in GetActivateInfo() 45 return GetResult(cb in GetActivateInfo() 48 GetDeactivateInfo(sptr<CallbackInfo> cb) GetDeactivateInfo() argument 55 GetCrossingSwitchStateInfo(sptr<CallbackInfo> cb) GetCrossingSwitchStateInfo() argument [all...] |
/base/sensors/sensor/utils/common/src/ |
H A D | report_data_callback.cpp | 47 int32_t ReportDataCallback::ReportEventCallback(SensorData *sensorData, sptr<ReportDataCallback> cb) in ReportEventCallback() argument 50 if (cb == nullptr || cb->eventsBuf_.circularBuf == nullptr) { in ReportEventCallback() 54 int32_t leftSize = CIRCULAR_BUF_LEN - cb->eventsBuf_.eventNum; in ReportEventCallback() 55 int32_t toEndLen = CIRCULAR_BUF_LEN - cb->eventsBuf_.writePosition; 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 in ReportEventCallback() [all...] |
/base/powermgr/power_manager/services/native/src/hibernate/ |
H A D | hibernate_controller.cpp | 26 void HibernateController::RegisterSyncHibernateCallback(const sptr<ISyncHibernateCallback>& cb) in RegisterSyncHibernateCallback() argument 29 callbacks_.insert(cb); in RegisterSyncHibernateCallback() 32 void HibernateController::UnregisterSyncHibernateCallback(const sptr<ISyncHibernateCallback>& cb) in UnregisterSyncHibernateCallback() argument 35 callbacks_.erase(cb); in UnregisterSyncHibernateCallback() 40 for (const auto &cb : callbacks_) { in PreHibernate() 41 if (cb != nullptr) { in PreHibernate() 42 cb->OnSyncHibernate(); in PreHibernate() 49 for (const auto &cb : callbacks_) { in PostHibernate() 50 if (cb != nullptr) { in PostHibernate() 51 cb in PostHibernate() [all...] |
/base/update/updateservice/services/firmware/upgrade/install/src/ |
H A D | firmware_install.cpp | 32 void FirmwareInstall::StartInstall(const std::vector<FirmwareComponent> &componentList, FirmwareInstallCallback &cb) in StartInstall() argument 36 CallbackFailedResult(cb, "install is busying", DUPDATE_ERR_SYSTEM_BUSY_ON_INSTALL); in StartInstall() 42 CallbackFailedResult(cb, "check component failed!", DUPDATE_ERR_UPDATE_PRECHECK_FAIL); in StartInstall() 47 onInstallCallback_ = cb; in StartInstall() 50 CallbackResult(cb, result); in StartInstall() 65 void FirmwareInstall::CallbackFailedResult(FirmwareInstallCallback &cb, const std::string &errorMsg, int32_t errCode) in CallbackFailedResult() argument 68 cb.onFirmwareEvent(false, errMsg); in CallbackFailedResult() 71 void FirmwareInstall::CallbackResult(FirmwareInstallCallback &cb, const bool result) in CallbackResult() argument 73 cb.onFirmwareEvent(result, errMsg_); in CallbackResult()
|
/base/security/device_security_level/oem_property/common/ |
H A D | dslm_credential.c | 30 static ProcessDslmCredFunctions cb = {NULL, NULL, NULL, 0, {0}}; in GetFunctionCb() local 31 return &cb; in GetFunctionCb() 39 ProcessDslmCredFunctions *cb = GetFunctionCb(); in InitDslmCredentialFunctions() local 40 (void)memcpy_s(cb, sizeof(ProcessDslmCredFunctions), funcs, sizeof(ProcessDslmCredFunctions)); in InitDslmCredentialFunctions() 47 ProcessDslmCredFunctions *cb = GetFunctionCb(); in DefaultRequestDslmCred() local 48 RequestDslmCredFunc *request = cb->requestFunc; in DefaultRequestDslmCred() 59 ProcessDslmCredFunctions *cb = GetFunctionCb(); in DefaultVerifyDslmCred() local 60 VerifyDslmCredFunc *verify = cb->verifyFunc; in DefaultVerifyDslmCred() 70 ProcessDslmCredFunctions *cb = GetFunctionCb(); in DefaultInitDslmCred() local 71 InitDslmCredFunc *init = cb in DefaultInitDslmCred() 84 ProcessDslmCredFunctions *cb = GetFunctionCb(); GetSupportedCredTypes() local [all...] |
/base/msdp/device_status/test/unittest/interfaces/src/ |
H A D | devicestatus_client_test.cpp | 58 sptr<IRemoteDevStaCallback> cb = new (std::nothrow) DeviceStatusClientTestCallback(); in HWTEST_F() local 59 ASSERT_NE(cb, nullptr); in HWTEST_F() 63 int32_t result = stationaryMgr->SubscribeCallback(Type::TYPE_VERTICAL_POSITION, activityEvent, latency, cb); in HWTEST_F() 65 result = stationaryMgr->UnsubscribeCallback(Type::TYPE_VERTICAL_POSITION, activityEvent, cb); in HWTEST_F() 68 result = stationaryMgr->SubscribeCallback(Type::TYPE_INVALID, activityEvent, latency, cb); in HWTEST_F() 70 result = stationaryMgr->UnsubscribeCallback(Type::TYPE_INVALID, activityEvent, cb); in HWTEST_F() 73 result = stationaryMgr->SubscribeCallback(Type::TYPE_ABSOLUTE_STILL, activityEvent, latency, cb); in HWTEST_F() 75 result = stationaryMgr->UnsubscribeCallback(Type::TYPE_ABSOLUTE_STILL, activityEvent, cb); in HWTEST_F() 78 result = stationaryMgr->SubscribeCallback(Type::TYPE_HORIZONTAL_POSITION, activityEvent, latency, cb); in HWTEST_F() 80 result = stationaryMgr->UnsubscribeCallback(Type::TYPE_HORIZONTAL_POSITION, activityEvent, cb); in HWTEST_F() [all...] |
/base/request/request/frameworks/cj/ffi/src/ |
H A D | cj_listener_list.cpp | 21 void ListenerList::AddListenerInner(ProgressOnCallBackType &cb, CFunc cbId) in AddListenerInner() argument 28 this->allCb_.push_back(std::make_pair(true, std::make_shared<CallBackInfo>(cb, cbId))); in AddListenerInner() 32 void ListenerList::RemoveListenerInner(CFunc cb) in RemoveListenerInner() argument 39 if (cb == nullptr) { in RemoveListenerInner() 48 if (it->second->cbId_ == cb) { in RemoveListenerInner() 71 bool ListenerList::IsListenerAdded(void *cb) in IsListenerAdded() argument 73 if (cb == nullptr) { in IsListenerAdded() 78 if (it->second->cbId_ == cb) { in IsListenerAdded()
|
/base/request/request/frameworks/js/napi/src/ |
H A D | listener_list.cpp | 20 napi_status ListenerList::AddListenerInner(napi_value cb) in AddListenerInner() argument 23 if (this->IsListenerAdded(cb)) { in AddListenerInner() 28 napi_status status = napi_create_reference(env_, cb, 1, &ref); in AddListenerInner() 39 napi_status ListenerList::RemoveListenerInner(napi_value cb) in RemoveListenerInner() argument 46 if (cb == nullptr) { in RemoveListenerInner() 59 napi_strict_equals(this->env_, cb, copyValue, &isEquals); in RemoveListenerInner() 88 bool ListenerList::IsListenerAdded(napi_value cb) in IsListenerAdded() argument 90 if (cb == nullptr) { in IsListenerAdded() 98 napi_strict_equals(this->env_, cb, copyValue, &isEquals); in IsListenerAdded()
|
/base/update/updater/services/ui/control/ |
H A D | event_listener.h | 39 explicit CallBackDecorator(Callback cb) : cb_(cb) {} in CallBackDecorator() argument 43 static void CallbackWithGuard(Callback cb, OHOS::UIView &view); 50 LabelOnTouchListener(Callback cb, bool isConsumed) in LabelOnTouchListener() argument 51 : cb_(cb), isConsumed_(isConsumed) {} in LabelOnTouchListener() 62 BtnOnEventListener(Callback cb, bool isConsumed) in BtnOnEventListener() argument 63 : cb_(cb), isConsumed_(isConsumed) {} in BtnOnEventListener() 77 BtnOnDragListener(Callback cb, bool isConsumed) in BtnOnDragListener() argument 78 : cb_(cb), isConsumed_(isConsumed) { in BtnOnDragListener()
|
/base/request/request/frameworks/cj/ffi/include/ |
H A D | cj_listener_list.h | 45 CallBackInfo(ProgressOnCallBackType cb, CFunc cbId) in CallBackInfo() 46 : cb_(cb), cbId_(cbId) {} in CallBackInfo() 50 bool IsListenerAdded(void *cb); 52 void AddListenerInner(ProgressOnCallBackType &cb, CFunc cbId); 53 void RemoveListenerInner(CFunc cb);
|
/base/msdp/device_status/rust/subsystem/device_profile/binding/include/ |
H A D | fusion_device_profile.h | 30 CIProfileEvents* (*clone)(CIProfileEvents* cb); 31 void (*destruct)(CIProfileEvents* cb); 68 CIProfileEventCb* (*clone)(CIProfileEventCb* cb); 69 void (*destruct)(CIProfileEventCb* cb); 70 void (*onProfileChanged)(CIProfileEventCb* cb, const CProfileChangeNotification* notification);
|
/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/src/ |
H A D | print_extension_callback_stub.cpp | 87 void PrintExtensionCallbackStub::SetExtCallback(PrintExtCallback cb) in SetExtCallback() argument 89 extCb_ = cb; in SetExtCallback() 92 void PrintExtensionCallbackStub::SetPrintJobCallback(PrintJobCallback cb) in SetPrintJobCallback() argument 94 jobCb_ = cb; in SetPrintJobCallback() 97 void PrintExtensionCallbackStub::SetPrinterCallback(PrinterCallback cb) in SetPrinterCallback() argument 99 cb_ = cb; in SetPrinterCallback() 102 void PrintExtensionCallbackStub::SetCapabilityCallback(PrinterCapabilityCallback cb) in SetCapabilityCallback() argument 104 capability_ = cb; in SetCapabilityCallback()
|
/base/usb/usb_manager/test/native/mock/src/ |
H A D | usb_bulkcallback_mock_test.cpp | 157 * sptr<IRemoteObject> &cb)
163 sptr<UsbCallbackTest> cb = new UsbCallbackTest();
in HWTEST_F() local 164 EXPECT_NE(cb, nullptr);
in HWTEST_F() 168 auto ret = usbSrv_->RegBulkCallback(dev_, pipe, cb);
in HWTEST_F() 180 * sptr<IRemoteObject> &cb)
186 sptr<UsbCallbackTest> cb = new UsbCallbackTest();
in HWTEST_F() local 187 EXPECT_NE(cb, nullptr);
in HWTEST_F() 191 auto ret = usbSrv_->RegBulkCallback(dev_, pipe, cb);
in HWTEST_F() 203 * sptr<IRemoteObject> &cb)
209 sptr<UsbCallbackTest> cb in HWTEST_F() local 236 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 262 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 296 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 330 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 366 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 402 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 436 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 470 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 506 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 542 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 581 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 622 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 663 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 685 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local 711 sptr<UsbCallbackTest> cb = new UsbCallbackTest(); HWTEST_F() local [all...] |
/base/security/selinux_adapter/framework/policycoreutils/src/ |
H A D | param_checker.c | 53 union selinux_callback cb; in SelinuxSetCallback() local 54 cb.func_log = SelinuxKmsg; in SelinuxSetCallback() 55 selinux_set_callback(SELINUX_CB_LOG, cb); in SelinuxSetCallback() 56 cb.func_audit = SelinuxAuditCallback; in SelinuxSetCallback() 57 selinux_set_callback(SELINUX_CB_AUDIT, cb); in SelinuxSetCallback()
|
/base/account/os_account/test/fuzztest/account_stub/cmdgetaccountiamservicestub_fuzzer/ |
H A D | cmdgetaccountiamservicestub_fuzzer.cpp | 45 union selinux_callback cb; in SelinuxSetCallback() local 46 cb.func_log = SelinuxLog; in SelinuxSetCallback() 47 selinux_set_callback(SELINUX_CB_LOG, cb); in SelinuxSetCallback()
|
/base/account/os_account/test/fuzztest/account_stub/cmdgetappaccountservicestub_fuzzer/ |
H A D | cmdgetappaccountservicestub_fuzzer.cpp | 45 union selinux_callback cb; in SelinuxSetCallback() local 46 cb.func_log = SelinuxLog; in SelinuxSetCallback() 47 selinux_set_callback(SELINUX_CB_LOG, cb); in SelinuxSetCallback()
|
/base/account/os_account/test/fuzztest/account_stub/cmdgetosaccountservicestub_fuzzer/ |
H A D | cmdgetosaccountservicestub_fuzzer.cpp | 45 union selinux_callback cb; in SelinuxSetCallback() local 46 cb.func_log = SelinuxLog; in SelinuxSetCallback() 47 selinux_set_callback(SELINUX_CB_LOG, cb); in SelinuxSetCallback()
|
/base/location/frameworks/js/napi/include/ |
H A D | country_code_callback_napi.h | 28 bool FindCountryCodeCallback(napi_ref cb); 29 void DeleteCountryCodeCallback(napi_ref cb); 39 void SetCallback(napi_ref cb);
|
/base/account/os_account/test/fuzztest/account_stub/cmdgetdomainaccountservicestub_fuzzer/ |
H A D | cmdgetdomainaccountservicestub_fuzzer.cpp | 45 union selinux_callback cb; in SelinuxSetCallback() local 46 cb.func_log = SelinuxLog; in SelinuxSetCallback() 47 selinux_set_callback(SELINUX_CB_LOG, cb); in SelinuxSetCallback()
|
/base/account/os_account/test/fuzztest/account_stub/cmdgetohosaccountinfostub_fuzzer/ |
H A D | cmdgetohosaccountinfostub_fuzzer.cpp | 45 union selinux_callback cb; in SelinuxSetCallback() local 46 cb.func_log = SelinuxLog; in SelinuxSetCallback() 47 selinux_set_callback(SELINUX_CB_LOG, cb); in SelinuxSetCallback()
|