/base/print/print_fwk/interfaces/kits/napi/src/ |
D | napi_print_ext.cpp | 32 napi_is_array(env, argv[NapiPrintUtils::INDEX_ZERO], &isArray); in AddPrinters() 36 napi_get_array_length(env, argv[NapiPrintUtils::INDEX_ZERO], &len); in AddPrinters() 40 napi_get_element(env, argv[NapiPrintUtils::INDEX_ZERO], index, &value); in AddPrinters() 84 napi_is_array(env, argv[NapiPrintUtils::INDEX_ZERO], &isArray); in RemovePrinters() 88 napi_get_array_length(env, argv[NapiPrintUtils::INDEX_ZERO], &len); in RemovePrinters() 92 napi_get_element(env, argv[NapiPrintUtils::INDEX_ZERO], index, &value); in RemovePrinters() 130 napi_is_array(env, argv[NapiPrintUtils::INDEX_ZERO], &isArray); in UpdatePrinters() 134 napi_get_array_length(env, argv[NapiPrintUtils::INDEX_ZERO], &len); in UpdatePrinters() 138 napi_get_element(env, argv[NapiPrintUtils::INDEX_ZERO], index, &value); in UpdatePrinters() 179 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in UpdatePrinterState() [all …]
|
D | napi_inner_print.cpp | 73 napi_is_array(env, argv[NapiPrintUtils::INDEX_ZERO], &isArray); in StartDiscovery() 81 napi_get_element(env, argv[NapiPrintUtils::INDEX_ZERO], index, &value); in StartDiscovery() 141 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in ConnectPrinter() 143 …::string printerId = NapiPrintUtils::GetStringFromValueUtf8(env, argv[NapiPrintUtils::INDEX_ZERO]); in ConnectPrinter() 173 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in DisconnectPrinter() 175 …::string printerId = NapiPrintUtils::GetStringFromValueUtf8(env, argv[NapiPrintUtils::INDEX_ZERO]); in DisconnectPrinter() 204 auto printJobPtr = PrintJobHelper::BuildFromJs(env, argv[NapiPrintUtils::INDEX_ZERO]); in StartPrintJob() 239 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in CancelPrintJob() 241 … std::string jobId = NapiPrintUtils::GetStringFromValueUtf8(env, argv[NapiPrintUtils::INDEX_ZERO]); in CancelPrintJob() 275 auto printJobPtr = PrintJobHelper::BuildFromJs(env, argv[NapiPrintUtils::INDEX_ZERO]); in RequestPreview() [all …]
|
D | print_task.cpp | 113 … std::string type = NapiPrintUtils::GetStringFromValueUtf8(env, argv[NapiPrintUtils::INDEX_ZERO]); in On() 148 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in Off()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
D | napi_push.cpp | 28 constexpr int32_t INDEX_ZERO = 0; variable 62 if (!ConvertFromJsValue(engine, info.argv[INDEX_ZERO], type) || type != "checkNotification") { in OnRegisterPushCallback() 98 if (!ConvertFromJsValue(engine, info.argv[INDEX_ZERO], type) || type != "checkNotification") { in OnUnregisterPushCallback()
|
/base/time/time_service/services/time/src/ |
D | sntp_client.cpp | 44 constexpr int32_t INDEX_ZERO = 0; variable 245 buffer[INDEX_ZERO] = (_sntpMsg._leapIndicator << SNTP_MSG_OFFSET_SIX) | in CreateMessage() 277 buffer[INDEX_ZERO] = (_sntpMsg._leapIndicator << SNTP_MSG_OFFSET_SIX) | in WriteTimeStamp() 295 _sntpMsg._leapIndicator = buffer[INDEX_ZERO] >> SNTP_MSG_OFFSET_SIX; in ReceivedMessage() 296 _sntpMsg._versionNumber = (buffer[INDEX_ZERO] & VERSION_MASK) >> SNTP_MSG_OFFSET_THREE; in ReceivedMessage() 297 _sntpMsg._mode = (buffer[INDEX_ZERO] & MODE_MASK); in ReceivedMessage() 305 _sntpMsg._referenceIdentifier[INDEX_ZERO] = _refId[INDEX_ZERO]; in ReceivedMessage()
|
/base/inputmethod/imf/frameworks/kits/extension/src/ |
D | js_inputmethod_extension_context.cpp | 35 constexpr int32_t INDEX_ZERO = 0; variable 111 … reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), want); in OnStartAbility() 163 … reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), want); in OnStartAbilityWithAccount() 239 NativeValue *lastParam = (info.argc == ARGC_ZERO) ? nullptr : info.argv[INDEX_ZERO]; in OnTerminateAbility() 257 … reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), want); in OnConnectAbility() 304 … reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), want); in OnConnectAbilityWithAccount() 361 …reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), &connect… in OnDisconnectAbility()
|
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/ |
D | js_wallpaper_extension_context.cpp | 35 constexpr int32_t INDEX_ZERO = 0; variable 110 reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), want); in OnStartAbility() 162 reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), want); in OnStartAbilityWithAccount() 238 NativeValue *lastParam = (info.argc == ARGC_ZERO) ? nullptr : info.argv[INDEX_ZERO]; in OnTerminateAbility() 257 reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), want); in OnConnectAbility() 307 reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), want); in OnConnectAbilityWithAccount() 367 …lue_int64(reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), in OnDisconnectAbility()
|
/base/print/print_fwk/frameworks/helper/include/ |
D | napi_print_utils.h | 36 static constexpr uint32_t INDEX_ZERO = 0; variable
|
/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/ |
D | getparam.cpp | 29 const int INDEX_ZERO = 0; variable 408 case INDEX_ZERO: in GetParamOsAccountType()
|
/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
D | napi_app_account_authorization_extension_context.cpp | 40 constexpr int32_t INDEX_ZERO = 0; variable 95 …reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), connectI… in CheckOnDisconnectAbilityParam()
|
/base/print/print_fwk/frameworks/kits/extension/src/ |
D | js_print_extension_context.cpp | 103 reinterpret_cast<napi_value>(info.argv[NapiPrintUtils::INDEX_ZERO]), want); in OnStartAbility() 368 reinterpret_cast<napi_value>(info.argv[NapiPrintUtils::INDEX_ZERO]), &connectId); in OnDisconnectAbility()
|
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/ |
D | napi_common_event.cpp | 48 static const int32_t INDEX_ZERO = 0; variable 230 results[INDEX_ZERO] = GetCallbackErrorValue(commonEventDataWorkerData->env, NO_ERROR); in UvQueueWorkOnReceiveEvent() 233 …commonEventDataWorkerData->env, undefined, callback, ARGS_TWO_EVENT, &results[INDEX_ZERO], &result… in UvQueueWorkOnReceiveEvent() 369 results[INDEX_ZERO] = GetCallbackErrorValue(env, errorCode); in SetCallback() 373 … napi_call_function(env, undefined, callback, ARGS_TWO_EVENT, &results[INDEX_ZERO], &resultout)); in SetCallback() 386 results[INDEX_ZERO] = GetCallbackErrorValue(env, NO_ERROR); in SetCallback() 390 … napi_call_function(env, undefined, callback, ARGS_TWO_EVENT, &results[INDEX_ZERO], &resultout)); in SetCallback() 2850 if (!AbilityRuntime::ConvertFromJsValue(engine, info.argv[INDEX_ZERO], enable)) { in OnSetStaticSubscriberState()
|