/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_location_instance_wrapper.cpp | 34 ArkLocationInstanceWrapper::ArkLocationInstanceWrapper(ArkWebRefPtr<ArkLocationInstance> ref) : ctocpp_(ref) {} in ArkLocationInstanceWrapper() argument 38 ArkWebRefPtr<ArkLocationProxyAdapter> ref = ctocpp_->CreateLocationProxyAdapter(); in CreateLocationProxyAdapter() local 39 if (CHECK_REF_PTR_IS_NULL(ref)) { in CreateLocationProxyAdapter() 43 return std::make_shared<ArkLocationProxyAdapterWrapper>(ref); in CreateLocationProxyAdapter() 48 ArkWebRefPtr<ArkLocationRequestConfig> ref = ctocpp_->CreateLocationRequestConfig(); in CreateLocationRequestConfig() local 49 if (CHECK_REF_PTR_IS_NULL(ref)) { in CreateLocationRequestConfig() 53 return std::make_shared<ArkLocationRequestConfigWrapper>(ref); in CreateLocationRequestConfig()
|
H A D | ark_display_manager_adapter_wrapper.cpp | 26 ArkDisplayManagerAdapterWrapper::ArkDisplayManagerAdapterWrapper(ArkWebRefPtr<ArkDisplayManagerAdapter> ref) in ArkDisplayManagerAdapterWrapper() argument 27 : ctocpp_(ref) in ArkDisplayManagerAdapterWrapper() 37 ArkWebRefPtr<ArkDisplayAdapter> ref = ctocpp_->GetDefaultDisplay(); in GetDefaultDisplay() local 38 if (CHECK_REF_PTR_IS_NULL(ref)) { in GetDefaultDisplay() 42 return std::make_shared<ArkDisplayAdapterWrapper>(ref); in GetDefaultDisplay()
|
H A D | ark_screen_capture_adapter_wrapper.cpp | 26 ArkScreenCaptureAdapterWrapper::ArkScreenCaptureAdapterWrapper(ArkWebRefPtr<ArkScreenCaptureAdapter> ref) : ctocpp_(ref) in ArkScreenCaptureAdapterWrapper() argument 64 ArkWebRefPtr<ArkSurfaceBufferAdapter> ref = ctocpp_->AcquireVideoBuffer(); in AcquireVideoBuffer() local 65 if (CHECK_REF_PTR_IS_NULL(ref)) { in AcquireVideoBuffer() 69 return std::make_shared<ArkSurfaceBufferAdapterWrapper>(ref); in AcquireVideoBuffer()
|
H A D | ark_edm_policy_changed_event_callback_adapter_impl.cpp | 21 std::shared_ptr<OHOS::NWeb::EdmPolicyChangedEventCallbackAdapter> ref) in ArkEdmPolicyChangedEventCallbackAdapterImpl() 22 : real_(ref) in ArkEdmPolicyChangedEventCallbackAdapterImpl() 20 ArkEdmPolicyChangedEventCallbackAdapterImpl( std::shared_ptr<OHOS::NWeb::EdmPolicyChangedEventCallbackAdapter> ref) ArkEdmPolicyChangedEventCallbackAdapterImpl() argument
|
H A D | ark_audio_manager_device_change_callback_adapter_impl.cpp | 21 std::shared_ptr<OHOS::NWeb::AudioManagerDeviceChangeCallbackAdapter> ref) in ArkAudioManagerDeviceChangeCallbackAdapterImpl() 22 : real_(ref) in ArkAudioManagerDeviceChangeCallbackAdapterImpl() 20 ArkAudioManagerDeviceChangeCallbackAdapterImpl( std::shared_ptr<OHOS::NWeb::AudioManagerDeviceChangeCallbackAdapter> ref) ArkAudioManagerDeviceChangeCallbackAdapterImpl() argument
|
H A D | ark_paste_board_observer_adapter_impl.cpp | 21 std::shared_ptr<OHOS::NWeb::PasteboardObserverAdapter> ref) in ArkPasteBoardObserverAdapterImpl() 22 : real_(ref) in ArkPasteBoardObserverAdapterImpl() 20 ArkPasteBoardObserverAdapterImpl( std::shared_ptr<OHOS::NWeb::PasteboardObserverAdapter> ref) ArkPasteBoardObserverAdapterImpl() argument
|
/base/print/print_fwk/test/fuzztest/scancallback_fuzzer/ |
H A D | scancallback_fuzzer.cpp | 32 napi_ref ref = nullptr; in TestSetCallbackParam() local 33 param.InitialCallbackParam(env, ref, mutex); in TestSetCallbackParam() 44 napi_ref ref = nullptr; in TestSetCallbackSyncParam() local 45 param.InitialCallbackParam(env, ref, mutex); in TestSetCallbackSyncParam() 54 napi_ref ref = nullptr; in TestOnCallback() local 55 ScanCallback callBack(env, ref); in TestOnCallback() 66 napi_ref ref = nullptr; in TestOnCallbackSync() local 67 ScanCallback callBack(env, ref); in TestOnCallbackSync() 77 napi_ref ref = nullptr; in TestOnGetFrameResCallback() local 78 ScanCallback callBack(env, ref); in TestOnGetFrameResCallback() 87 napi_ref ref = nullptr; TestOnScanInitCallback() local 96 napi_ref ref = nullptr; TestOnSendSearchMessage() local 105 napi_ref ref = nullptr; TestOnGetDevicesList() local [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
H A D | subscribe.h | 131 * @param ref Indicates the napi_ref of callback. 133 void SetCallbackInfo(const napi_env &env, const std::string &type, const napi_ref &ref); 143 void SetCancelCallbackInfo(const napi_env &env, const napi_ref &ref); 145 void SetConsumeCallbackInfo(const napi_env &env, const napi_ref &ref); 147 void SetUpdateCallbackInfo(const napi_env &env, const napi_ref &ref); 149 void SetSubscribeCallbackInfo(const napi_env &env, const napi_ref &ref); 151 void SetUnsubscribeCallbackInfo(const napi_env &env, const napi_ref &ref); 153 void SetDieCallbackInfo(const napi_env &env, const napi_ref &ref); 155 void SetDisturbModeCallbackInfo(const napi_env &env, const napi_ref &ref); 157 void SetDisturbDateCallbackInfo(const napi_env &env, const napi_ref &ref); 172 napi_ref ref = nullptr; global() member 191 napi_ref ref = nullptr; global() member [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | subscribe.cpp | 57 napi_ref ref = nullptr; member 149 if (canceCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() 150 napi_delete_reference(canceCallbackInfo_.env, canceCallbackInfo_.ref); in ~SubscriberInstance() 152 if (consumeCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() 153 napi_delete_reference(consumeCallbackInfo_.env, consumeCallbackInfo_.ref); in ~SubscriberInstance() 155 if (updateCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() 156 napi_delete_reference(updateCallbackInfo_.env, updateCallbackInfo_.ref); in ~SubscriberInstance() 158 if (subscribeCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() 159 napi_delete_reference(subscribeCallbackInfo_.env, subscribeCallbackInfo_.ref); in ~SubscriberInstance() 161 if (unsubscribeCallbackInfo_.ref ! in ~SubscriberInstance() 920 SetCancelCallbackInfo(const napi_env &env, const napi_ref &ref) SetCancelCallbackInfo() argument 926 SetConsumeCallbackInfo(const napi_env &env, const napi_ref &ref) SetConsumeCallbackInfo() argument 932 SetUpdateCallbackInfo(const napi_env &env, const napi_ref &ref) SetUpdateCallbackInfo() argument 938 SetSubscribeCallbackInfo(const napi_env &env, const napi_ref &ref) SetSubscribeCallbackInfo() argument 944 SetUnsubscribeCallbackInfo(const napi_env &env, const napi_ref &ref) SetUnsubscribeCallbackInfo() argument 950 SetDieCallbackInfo(const napi_env &env, const napi_ref &ref) SetDieCallbackInfo() argument 956 SetDisturbModeCallbackInfo(const napi_env &env, const napi_ref &ref) SetDisturbModeCallbackInfo() argument 962 SetEnabledNotificationCallbackInfo(const napi_env &env, const napi_ref &ref) SetEnabledNotificationCallbackInfo() argument 968 SetDisturbDateCallbackInfo(const napi_env &env, const napi_ref &ref) SetDisturbDateCallbackInfo() argument 974 SetDisturbChangedCallbackInfo(const napi_env &env, const napi_ref &ref) SetDisturbChangedCallbackInfo() argument 980 SetBadgeCallbackInfo(const napi_env &env, const napi_ref &ref) SetBadgeCallbackInfo() argument 987 SetBadgeEnabledCallbackInfo(const napi_env &env, const napi_ref &ref) SetBadgeEnabledCallbackInfo() argument 993 SetBatchCancelCallbackInfo(const napi_env &env, const napi_ref &ref) SetBatchCancelCallbackInfo() argument 999 SetCallbackInfo(const napi_env &env, const std::string &type, const napi_ref &ref) SetCallbackInfo() argument [all...] |
/base/telephony/sms_mms/test/gtest/ |
H A D | cb_gtest.cpp | 119 if (!helper.Run(OpenCellBroadcastTestFuc, std::ref(helper))) { in HWTEST_F() 121 ASSERT_TRUE(helper.Run(OpenCellBroadcastTestFuc, std::ref(helper))); in HWTEST_F() 168 if (!helper.Run(OpenCellBroadcastTestFuc3, std::ref(helper))) { in HWTEST_F() 170 ASSERT_TRUE(helper.Run(OpenCellBroadcastTestFuc3, std::ref(helper))); in HWTEST_F() 204 if (!helper.Run(OpenCellBroadcastTestFuc4, std::ref(helper))) { in HWTEST_F() 206 ASSERT_TRUE(helper.Run(OpenCellBroadcastTestFuc4, std::ref(helper))); in HWTEST_F() 240 if (!helper.Run(OpenCellBroadcastTestFuc5, std::ref(helper))) { in HWTEST_F() 242 ASSERT_TRUE(helper.Run(OpenCellBroadcastTestFuc5, std::ref(helper))); in HWTEST_F() 281 if (!helper.Run(OpenCellBroadcastTestFuc6WithToken, std::ref(helper))) { in HWTEST_F() 283 ASSERT_TRUE(helper.Run(OpenCellBroadcastTestFuc6WithToken, std::ref(helpe in HWTEST_F() [all...] |
H A D | sms_gtest.cpp | 147 if (!helper.Run(SetDefaultSmsSlotIdTestFucWithToken, std::ref(helper))) { in HWTEST_F() 149 ASSERT_TRUE(helper.Run(SetDefaultSmsSlotIdTestFucWithToken, std::ref(helper))); in HWTEST_F() 170 if (!helper.Run(SetDefaultSmsSlotIdTestFucWithToken, std::ref(helper))) { in HWTEST_F() 172 ASSERT_TRUE(helper.Run(SetDefaultSmsSlotIdTestFucWithToken, std::ref(helper))); in HWTEST_F() 193 if (!helper.Run(SetDefaultSmsSlotIdTestFuc, std::ref(helper))) { in HWTEST_F() 195 ASSERT_TRUE(helper.Run(SetDefaultSmsSlotIdTestFuc, std::ref(helper))); in HWTEST_F() 222 if (!helper.Run(GetDefaultSmsSlotIdTestFuc, std::ref(helper))) { in HWTEST_F() 224 ASSERT_FALSE(helper.Run(GetDefaultSmsSlotIdTestFuc, std::ref(helper))); in HWTEST_F() 252 if (!helper.Run(GetDefaultSmsSimIdTestFuc, std::ref(helper))) { in HWTEST_F() 254 ASSERT_FALSE(helper.Run(GetDefaultSmsSimIdTestFuc, std::ref(helpe in HWTEST_F() [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_display_manager_adapter_impl.cpp | 26 ArkDisplayManagerAdapterImpl::ArkDisplayManagerAdapterImpl(std::shared_ptr<OHOS::NWeb::DisplayManagerAdapter> ref) in ArkDisplayManagerAdapterImpl() argument 27 : real_(ref) in ArkDisplayManagerAdapterImpl() 37 std::shared_ptr<NWeb::DisplayAdapter> ref = real_->GetDefaultDisplay(); in GetDefaultDisplay() local 38 if (CHECK_SHARED_PTR_IS_NULL(ref)) { in GetDefaultDisplay() 42 return new ArkDisplayAdapterImpl(ref); in GetDefaultDisplay()
|
H A D | ark_audio_capturer_read_callback_adapter_wrapper.cpp | 23 ArkWebRefPtr<ArkAudioCapturerReadCallbackAdapter> ref)
in ArkAudioCapturerReadCallbackAdapterWrapper() 24 : ctocpp_(ref)
in ArkAudioCapturerReadCallbackAdapterWrapper() 22 ArkAudioCapturerReadCallbackAdapterWrapper( ArkWebRefPtr<ArkAudioCapturerReadCallbackAdapter> ref) ArkAudioCapturerReadCallbackAdapterWrapper() argument
|
H A D | ark_event_handler_fdlistener_adapter_wrapper.cpp | 23 ::ArkEventHandlerFDListenerAdapterWrapper(ArkWebRefPtr<ArkEventHandlerFDListenerAdapter> ref) : ctocpp_(ref) in ArkEventHandlerFDListenerAdapterWrapper() argument
|
H A D | ark_paste_board_observer_adapter_wrapper.cpp | 22 ArkPasteBoardObserverAdapterWrapper::ArkPasteBoardObserverAdapterWrapper(ArkWebRefPtr<ArkPasteBoardObserverAdapter> ref) in ArkPasteBoardObserverAdapterWrapper() argument 23 : ctocpp_(ref) in ArkPasteBoardObserverAdapterWrapper()
|
H A D | ark_audio_output_change_callback_adapter_wrapper.cpp | 23 ArkWebRefPtr<ArkAudioOutputChangeCallbackAdapter> ref) in ArkAudioOutputChangeCallbackAdapterWrapper() 24 : ctocpp_(ref) in ArkAudioOutputChangeCallbackAdapterWrapper() 22 ArkAudioOutputChangeCallbackAdapterWrapper( ArkWebRefPtr<ArkAudioOutputChangeCallbackAdapter> ref) ArkAudioOutputChangeCallbackAdapterWrapper() argument
|
/base/msdp/device_status/frameworks/js/napi/interaction/drag/src/ |
H A D | js_drag_manager.cpp | 37 bool JsDragManager::IsSameHandle(napi_env env, napi_value handle, napi_ref ref) in IsSameHandle() argument 44 CHKRF_SCOPE(env, napi_get_reference_value(env, ref, &handlerTemp), GET_REFERENCE_VALUE, scope); in IsSameHandle() 83 if (item->env == env && IsSameHandle(env, handle, item->ref)) { in RegisterListener() 88 napi_ref ref = nullptr; in RegisterListener() local 89 CHKRV(napi_create_reference(env, handle, 1, &ref), CREATE_REFERENCE); in RegisterListener() 93 monitor->ref = ref; in RegisterListener() 111 RELEASE_CALLBACKINFO((*iter)->env, (*iter)->ref); in UnregisterListener() 114 if ((*iter)->env == env && IsSameHandle(env, handle, (*iter)->ref)) { in UnregisterListener() 116 RELEASE_CALLBACKINFO((*iter)->env, (*iter)->ref); in UnregisterListener() [all...] |
/base/tee/tee_client/frameworks/include/ |
H A D | tee_client_inner.h | 38 #define CHECK_ERR_RETURN(val, ref, ret) \ 40 if ((val) != (ref)) { \ 46 #define CHECK_ERR_NO_RETURN(val, ref) \ 48 if ((val) != (ref)) { \ 54 #define CHECK_ERR_GOTO(val, ref, label) \ 56 if ((val) != (ref)) { \
|
/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/src/ |
H A D | js_event_cooperate_target.cpp | 66 if (cb->ref == nullptr) {
in EmitJsEnable() 94 if (cb->ref == nullptr) {
in EmitJsStart() 122 if (cb->ref == nullptr) {
in EmitJsStop() 148 if (cb->ref == nullptr) {
in EmitJsGetState() 173 if (JsUtilCooperate::IsSameHandle(env, handle, item->ref)) {
in AddListener() 178 napi_ref ref = nullptr;
in AddListener() local 179 CHKRV(napi_create_reference(env, handle, 1, &ref), CREATE_REFERENCE);
in AddListener() 183 monitor->ref = ref;
in AddListener() 205 if (JsUtilCooperate::IsSameHandle(env, handle, (*it)->ref)) {
in RemoveListener() [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | local_live_view_subscribe.cpp | 29 napi_ref ref = nullptr; member 40 if (responseCallbackInfo_.ref != nullptr) { in ~LocalLiveViewSubscriberInstance() 41 napi_delete_reference(responseCallbackInfo_.env, responseCallbackInfo_.ref); in ~LocalLiveViewSubscriberInstance() 94 Common::SetCallbackArg2(dataWorkerData->env, dataWorkerData->ref, notificationId, buttonOption); in UvQueueWorkOnResponse() 106 if (responseCallbackInfo_.ref == nullptr) { in OnResponse() 135 dataWorker->ref = responseCallbackInfo_.ref; in OnResponse() 157 void LocalLiveViewSubscriberInstance::SetResponseCallbackInfo(const napi_env &env, const napi_ref &ref) in SetResponseCallbackInfo() argument 160 responseCallbackInfo_.ref = ref; in SetResponseCallbackInfo() 163 SetCallbackInfo(const napi_env &env, const std::string &type, const napi_ref &ref) SetCallbackInfo() argument [all...] |
/base/request/request/frameworks/js/napi/src/ |
H A D | uv_queue.cpp | 35 void UvQueue::DeleteRef(napi_env env, napi_ref ref)
in DeleteRef() argument 42 callbackData->ref = ref;
in DeleteRef() 52 napi_delete_reference(callbackData->env, callbackData->ref);
in UvDelete()
|
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/ |
H A D | js_event_target.cpp | 64 if (cb->ref == nullptr) {
in EmitJsPrepare() 92 if (cb->ref == nullptr) {
in EmitJsActivate() 120 if (cb->ref == nullptr) {
in EmitJsDeactivate() 146 if (cb->ref == nullptr) {
in EmitJsGetCrossingSwitchState() 170 napi_ref ref = nullptr;
in AddListener() local 180 if (JsUtil::IsSameHandle(env, handle, item->ref)) {
in AddListener() 185 CHKRV(napi_create_reference(env, handle, 1, &ref), CREATE_REFERENCE);
in AddListener() 189 RELEASE_CALLBACKINFO(env, ref);
in AddListener() 193 monitor->ref = ref;
in AddListener() 262 napi_ref ref = nullptr; AddListener() local [all...] |
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage_file_lock.c | 31 uint32_t ref; member 105 lock->ref = 1; in AllocFileLock() 120 lock->ref++; in AddRef() 205 uint32_t ref = 0; in Release() local 211 lock->ref--; in Release() 212 ref = lock->ref; in Release() 213 if (ref == 0) { in Release() 235 return ref; in Release()
|
/base/powermgr/power_manager/frameworks/napi/utils/ |
H A D | napi_utils.cpp | 55 void NapiUtils::ReleaseReference(napi_env& env, napi_ref& ref) in ReleaseReference() argument 57 if (ref != nullptr) { in ReleaseReference() 58 napi_delete_reference(env, ref); in ReleaseReference() 59 ref = nullptr; in ReleaseReference()
|
/base/powermgr/battery_manager/frameworks/napi/src/ |
H A D | napi_utils.cpp | 55 void NapiUtils::ReleaseReference(napi_env& env, napi_ref& ref) in ReleaseReference() argument 57 if (ref != nullptr) { in ReleaseReference() 58 napi_delete_reference(env, ref); in ReleaseReference() 59 ref = nullptr; in ReleaseReference()
|