/base/telephony/sms_mms/frameworks/js/napi/src/ |
D | delivery_callback.cpp | 61 napi_value callbackValues[2] = {0}; in CompleteSmsDeliveryWork() local 63 callbackValues[0] = NapiUtil::CreateUndefined(env_); in CompleteSmsDeliveryWork() 64 napi_create_object(env_, &callbackValues[1]); in CompleteSmsDeliveryWork() 74 napi_set_named_property(env_, callbackValues[1], pduStr.c_str(), arrayValue); in CompleteSmsDeliveryWork() 76 callbackValues[0] = NapiUtil::CreateErrorMessage(env_, "invalid delivery report"); in CompleteSmsDeliveryWork() 77 callbackValues[1] = NapiUtil::CreateUndefined(env_); in CompleteSmsDeliveryWork() 81 size_t argc = sizeof(callbackValues) / sizeof(callbackValues[0]); in CompleteSmsDeliveryWork() 83 napi_call_function(env_, thisVar, callbackFunc, argc, callbackValues, &callbackResult); in CompleteSmsDeliveryWork()
|
D | send_callback.cpp | 79 napi_value callbackValues[2] = {0}; in CompleteSmsSendWork() local 80 callbackValues[0] = NapiUtil::CreateUndefined(env_); in CompleteSmsSendWork() 81 napi_create_object(env_, &callbackValues[1]); in CompleteSmsSendWork() 84 napi_set_named_property(env_, callbackValues[1], "result", sendResultValue); in CompleteSmsSendWork() 88 … int satatus = napi_call_function(env_, thisVar, callbackFunc, 2, callbackValues, &callbackResult); in CompleteSmsSendWork()
|
/base/print/print_fwk/interfaces/kits/napi/src/ |
D | print_callback.cpp | 59 napi_value callbackValues[NapiPrintUtils::ARGC_ONE] = { 0 }; in PrintTaskAfterCallFun() local 60 callbackValues[0] = NapiPrintUtils::GetUndefined(cbParam->env); in PrintTaskAfterCallFun() 62 callbackValues, &callbackResult); in PrintTaskAfterCallFun() 89 napi_value callbackValues[NapiPrintUtils::ARGC_TWO] = { 0 }; in PrinterAfterCallFun() local 90 callbackValues[0] = NapiPrintUtils::CreateUint32(cbParam->env, cbParam->state); in PrinterAfterCallFun() 91 callbackValues[1] = PrinterInfoHelper::MakeJsObject(cbParam->env, cbParam->printerInfo); in PrinterAfterCallFun() 93 callbackValues, &callbackResult); in PrinterAfterCallFun() 120 napi_value callbackValues[NapiPrintUtils::ARGC_TWO] = { 0 }; in PrintJobAfterCallFun() local 121 callbackValues[0] = NapiPrintUtils::CreateUint32(cbParam->env, cbParam->state); in PrintJobAfterCallFun() 122 callbackValues[1] = PrintJobHelper::MakeJsObject(cbParam->env, cbParam->jobInfo); in PrintJobAfterCallFun() [all …]
|
/base/telephony/call_manager/frameworks/js/napi/src/ |
D | napi_call_ability_callback.cpp | 463 napi_value callbackValues[ARRAY_INDEX_THIRD] = { 0 }; in ReportCallState() local 464 napi_create_object(env, &callbackValues[ARRAY_INDEX_FIRST]); in ReportCallState() 466 env, callbackValues[ARRAY_INDEX_FIRST], "accountNumber", info.accountNumber); in ReportCallState() 467 …NapiCallManagerUtils::SetPropertyInt32(env, callbackValues[ARRAY_INDEX_FIRST], "accountId", info.a… in ReportCallState() 469 … env, callbackValues[ARRAY_INDEX_FIRST], "videoState", static_cast<int32_t>(info.videoState)); in ReportCallState() 470 …NapiCallManagerUtils::SetPropertyInt32(env, callbackValues[ARRAY_INDEX_FIRST], "startTime", info.s… in ReportCallState() 471 …NapiCallManagerUtils::SetPropertyBoolean(env, callbackValues[ARRAY_INDEX_FIRST], "isEcc", info.isE… in ReportCallState() 473 env, callbackValues[ARRAY_INDEX_FIRST], "callType", static_cast<int32_t>(info.callType)); in ReportCallState() 474 …NapiCallManagerUtils::SetPropertyInt32(env, callbackValues[ARRAY_INDEX_FIRST], "callId", info.call… in ReportCallState() 476 env, callbackValues[ARRAY_INDEX_FIRST], "callState", static_cast<int32_t>(info.callState)); in ReportCallState() [all …]
|
/base/telephony/core_service/frameworks/js/network_search/src/ |
D | napi_ims_reg_info_callback_manager.cpp | 141 napi_value callbackValues[CALLBACK_VALUES_SIZE] = { 0 }; in ReportImsRegInfo() local 142 napi_create_object(env, &callbackValues[0]); in ReportImsRegInfo() 143 …NapiUtil::SetPropertyInt32(env, callbackValues[0], "imsRegState", static_cast<int32_t>(info.imsReg… in ReportImsRegInfo() 144 …NapiUtil::SetPropertyInt32(env, callbackValues[0], "imsRegTech", static_cast<int32_t>(info.imsRegT… in ReportImsRegInfo() 156 …napi_call_function(env, thisVar, callbackFunc, std::size(callbackValues), callbackValues, &callbac… in ReportImsRegInfo()
|
/base/request/request/frameworks/js/napi/src/ |
D | request_notify.cpp | 106 napi_value callbackValues[NapiUtils::TWO_ARG] = { nullptr }; in ExecCallBack() local 107 ConvertCallBackData(paramNumber, callbackValues, NapiUtils::TWO_ARG); in ExecCallBack() 108 napi_call_function(env_, nullptr, callbackFunc, paramNumber, callbackValues, &callbackResult); in ExecCallBack()
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/ |
D | napi_faultlogger.cpp | 136 napi_value callbackValues[] = {nullptr, nullptr}; in FaultLogCompleteCallback() local 137 …callbackValues[0] = faultLogInfoContext->resolved ? NapiUtil::CreateUndefined(env) : callbackValue; in FaultLogCompleteCallback() 138 …callbackValues[1] = faultLogInfoContext->resolved ? callbackValue : NapiUtil::CreateUndefined(env); in FaultLogCompleteCallback() 141 … napi_call_function(env, recv, callbackFunc, std::size(callbackValues), callbackValues, &result); in FaultLogCompleteCallback()
|
/base/telephony/core_service/frameworks/js/napi/ |
D | napi_util.cpp | 302 napi_value callbackValues[] = {callbackValue}; in Handle1ValueCallback() local 305 …env, napi_call_function(env, recv, callbackFunc, std::size(callbackValues), callbackValues, &resul… in Handle1ValueCallback() 338 napi_value callbackValues[] = {nullptr, nullptr}; in Handle2ValueCallback() local 339 callbackValues[0] = baseContext->resolved ? CreateUndefined(env) : callbackValue; in Handle2ValueCallback() 340 callbackValues[1] = baseContext->resolved ? callbackValue : CreateUndefined(env); in Handle2ValueCallback() 343 …env, napi_call_function(env, recv, callbackFunc, std::size(callbackValues), callbackValues, &resul… in Handle2ValueCallback()
|
/base/telephony/state_registry/frameworks/js/napi/src/ |
D | event_listener_handler.cpp | 150 napi_value callbackValues[] = { callbackVal }; in NapiReturnToJS() local 155 …napi_call_function(env, recv, callbackFunc, std::size(callbackValues), callbackValues, &callbackRe… in NapiReturnToJS()
|