Lines Matching refs:handlerRef
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
163 callbackHost->SetHandleCb(handlerRef); in SubscribeChange()