Home
last modified time | relevance | path

Searched refs:pContext (Results 1 – 3 of 3) sorted by relevance

/base/telephony/sms_mms/frameworks/js/napi/src/
Dsend_callback.cpp61 std::unique_ptr<SendCallbackContext> pContext(static_cast<SendCallbackContext *>(work->data)); in CompleteSmsSendWork() local
62 if (pContext == nullptr) { in CompleteSmsSendWork()
66 napi_env env_ = pContext->env; in CompleteSmsSendWork()
67 napi_ref thisVarRef_ = pContext->thisVarRef; in CompleteSmsSendWork()
68 napi_ref callbackRef_ = pContext->callbackRef; in CompleteSmsSendWork()
69 SendSmsResult wrapResult = pContext->result; in CompleteSmsSendWork()
109 SendCallbackContext *pContext = std::make_unique<SendCallbackContext>().release(); in OnSmsSendResult() local
110 if (pContext == nullptr) { in OnSmsSendResult()
116 pContext->env = env_; in OnSmsSendResult()
117 pContext->thisVarRef = thisVarRef_; in OnSmsSendResult()
[all …]
Ddelivery_callback.cpp43 …std::unique_ptr<DeliveryCallbackContext> pContext(static_cast<DeliveryCallbackContext *>(work->dat… in CompleteSmsDeliveryWork() local
44 if (pContext == nullptr) { in CompleteSmsDeliveryWork()
48 napi_env env_ = pContext->env; in CompleteSmsDeliveryWork()
49 napi_ref thisVarRef_ = pContext->thisVarRef; in CompleteSmsDeliveryWork()
50 napi_ref callbackRef_ = pContext->callbackRef; in CompleteSmsDeliveryWork()
51 std::string pduStr_ = pContext->pduStr; in CompleteSmsDeliveryWork()
103 DeliveryCallbackContext *pContext = std::make_unique<DeliveryCallbackContext>().release(); in OnSmsDeliveryResult() local
104 if (pContext == nullptr) { in OnSmsDeliveryResult()
110 pContext->env = env_; in OnSmsDeliveryResult()
111 pContext->thisVarRef = thisVarRef_; in OnSmsDeliveryResult()
[all …]
/base/telephony/core_service/frameworks/js/sim/src/
Dnapi_sim.cpp83 AsyncContext<T> *pContext = asyncContext.release(); in NapiCreateAsyncWork() local
86 … env, nullptr, resourceName, exec, complete, static_cast<void *>(pContext), &context.work)); in NapiCreateAsyncWork()
88 delete pContext; in NapiCreateAsyncWork()