Searched refs:handlerRef (Results 1 – 5 of 5) sorted by relevance
/base/location/frameworks/js/napi/include/ |
D | location_napi_event.h | 63 const napi_ref& handlerRef, sptr<LocationSwitchCallbackHost>& switchCallbackHost); 64 void SubscribeGnssStatus(const napi_env& env, const napi_ref& handlerRef, 66 void SubscribeNmeaMessage(const napi_env& env, const napi_ref& handlerRef, 69 const napi_ref& handlerRef, sptr<LocatorCallbackHost>& locatorCallbackHost); 71 const napi_ref& handlerRef, sptr<CachedLocationsCallbackHost>& cachedCallbackHost); 90 const napi_ref& handlerRef, sptr<LocationSwitchCallbackHost>& switchCallbackHost); 91 LocationErrCode SubscribeGnssStatusV9(const napi_env& env, const napi_ref& handlerRef, 93 LocationErrCode SubscribeNmeaMessageV9(const napi_env& env, const napi_ref& handlerRef, 96 const napi_ref& handlerRef, sptr<LocatorCallbackHost>& locatorCallbackHost); 98 const napi_ref& handlerRef, sptr<CachedLocationsCallbackHost>& cachedCallbackHost); [all …]
|
D | callback_manager.h | 29 void AddCallback(const napi_env& env, const napi_ref& handlerRef, const sptr<T>& callback); 35 …LocationErrCode SubscribeChange(const napi_env& env, const napi_ref& handlerRef, sptr<T>& callback… 78 void CallbackManager<T>::AddCallback(const napi_env& env, const napi_ref& handlerRef, const sptr<T>… in AddCallback() argument 84 innerMap.insert(std::make_pair(handlerRef, callback)); in AddCallback() 88 iter->second.insert(std::make_pair(handlerRef, callback)); in AddCallback() 145 napi_ref handlerRef = nullptr; in RegCallback() local 146 NAPI_CALL_BASE(env, napi_create_reference(env, argv[PARAM1], 1, &handlerRef), false); in RegCallback() 148 LocationErrCode errorCode = SubscribeChange(env, handlerRef, callbackHost); in RegCallback() 153 AddCallback(env, handlerRef, callbackHost); in RegCallback() 160 const napi_ref& handlerRef, sptr<T>& callbackHost) in SubscribeChange() argument [all …]
|
/base/location/frameworks/js/napi/source/ |
D | location_napi_event.cpp | 115 const napi_ref& handlerRef, sptr<LocationSwitchCallbackHost>& switchCallbackHost) in SubscribeLocationServiceState() argument 118 switchCallbackHost->SetHandleCb(handlerRef); in SubscribeLocationServiceState() 124 const napi_ref& handlerRef, sptr<LocationSwitchCallbackHost>& switchCallbackHost) in SubscribeLocationServiceStateV9() argument 127 switchCallbackHost->SetHandleCb(handlerRef); in SubscribeLocationServiceStateV9() 132 void SubscribeGnssStatus(const napi_env& env, const napi_ref& handlerRef, in SubscribeGnssStatus() argument 136 gnssStatusCallbackHost->SetHandleCb(handlerRef); in SubscribeGnssStatus() 141 LocationErrCode SubscribeGnssStatusV9(const napi_env& env, const napi_ref& handlerRef, in SubscribeGnssStatusV9() argument 149 gnssStatusCallbackHost->SetHandleCb(handlerRef); in SubscribeGnssStatusV9() 154 void SubscribeNmeaMessage(const napi_env& env, const napi_ref& handlerRef, in SubscribeNmeaMessage() argument 158 nmeaMessageCallbackHost->SetHandleCb(handlerRef); in SubscribeNmeaMessage() [all …]
|
/base/hiviewdfx/hiview/base/test/unittest/common/ |
D | event_base_test.cpp | 89 EventHandler& handlerRef = handler; variable 91 ASSERT_TRUE(handlerRef.CanProcessEvent(event)); 92 ASSERT_TRUE(handlerRef.IsInterestedPipelineEvent(event)); 93 ASSERT_TRUE(handlerRef.CanProcessMoreEvents()); 94 ASSERT_TRUE(handlerRef.GetHandlerInfo() == "");
|
/base/powermgr/thermal_manager/frameworks/napi/ |
D | thermal_manager_napi.cpp | 247 napi_ref handlerRef = nullptr; in UnSubscribeThermalLevel() local 248 napi_create_reference(env, argv[ARG_0], 1, &handlerRef); in UnSubscribeThermalLevel() 249 napi_get_reference_value(env, handlerRef, &handler); in UnSubscribeThermalLevel() 250 napi_delete_reference(env, handlerRef); in UnSubscribeThermalLevel()
|