Home
last modified time | relevance | path

Searched refs:napi_create_array_with_length (Results 1 – 14 of 14) sorted by relevance

/base/powermgr/battery_statistics/frameworks/js/napi/src/
Dasync_callback_info.cpp79 if (napi_ok != napi_create_array_with_length(env, statsInfos_.size(), &arrRes)) { in CreateArrayValue()
/base/theme/wallpaper_mgr/interfaces/kits/napi/
Dwallpaper_js_util.cpp53 napi_status status = napi_create_array_with_length(env, color.size(), &result); in Convert2JSRgbaArray()
/base/request/request/upload/interfaces/kits/napi/src/
Djs_util.cpp127 napi_create_array_with_length(env, cStrings.size(), &jsStrings); in Convert2JSStringVector()
139 napi_create_array_with_length(env, cInts.size(), &jsInts); in Convert2JSValue()
161 napi_create_array_with_length(env, taskStates.size(), &jsTaskStates); in Convert2JSValue()
486 napi_create_array_with_length(env, files.size(), &jsFiles); in Convert2JSFileVector()
542 napi_create_array_with_length(env, requestDatas.size(), &jsRequestDatas); in Convert2JSRequestDataVector()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_querier.cpp58 napi_create_array_with_length(env, sysEvents.size(), &sysEventInfoJsArray); in OnQuery()
Dnapi_hisysevent_util.cpp578 napi_create_array_with_length(env, len, &array); in AppendArrayParams()
/base/location/frameworks/native/source/
Dnapi_util.cpp52napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &satelliteIdsArray)); in SatelliteStatusToJs()
54 napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &cn0Array)); in SatelliteStatusToJs()
56 napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &altitudesArray)); in SatelliteStatusToJs()
58 napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &azimuthsArray)); in SatelliteStatusToJs()
60napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &carrierFrequenciesArray)); in SatelliteStatusToJs()
163napi_create_array_with_length(env, geoAddress->m_descriptionsSize, &descriptionArray), false); in GeoAddressesToJsObj()
/base/update/updateservice/frameworks/js/napi/base/src/
Dclient_helper.cpp135 napi_create_array_with_length(env, validComponentCount, &obj); in BuildComponentDescriptions()
158 napi_create_array_with_length(env, validComponentCount, &napiVersionComponents); in BuildVersionComponents()
219 napi_create_array_with_length(env, validErrorMsgCount, &napiErrorMessages); in BuildErrorMessages()
337 status = napi_create_array_with_length(env, count, &autoUpgradePeriods); in BuildUpgradePolicy()
/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp232 NAPI_CALL(env, napi_create_array_with_length(env, context.paths_.size(), &result)); in CreateArraysValueFunc()
/base/location/frameworks/js/napi/source/
Dlocation_napi_adapter.cpp333napi_create_array_with_length(context->env, context->replyList.size(), &context->result[PARAM1])); in CreateReverseGeocodeAsyncContext()
374napi_create_array_with_length(context->env, context->replyList.size(), &context->result[PARAM1])); in CreateReverseGeocodeAsyncContext()
/base/update/updateservice/test/unittest/update_client/
Dclient_stub.cpp182 napi_status napi_create_array_with_length(napi_env env, size_t length, napi_value* result) in napi_create_array_with_length() function
/base/global/i18n/interfaces/js/kits/src/
Di18n_addon.cpp928 napi_status status = napi_create_array_with_length(env, systemLanguages.size(), &result); in GetSystemLanguages()
986 status = napi_create_array_with_length(env, systemCountries.size(), &result); in GetSystemCountriesImpl()
2723 status = napi_create_array_with_length(env, indexList.size(), &result); in GetIndexList()
3029 status = napi_create_array_with_length(env, languageList.size(), &result); in GetPreferredLanguageList()
3487 napi_status status = napi_create_array_with_length(env, timezoneIDs.size(), &result); in GetAvailableTimezoneIDs()
3514 napi_status status = napi_create_array_with_length(env, cityIDs.size(), &result); in GetAvailableZoneCityIDs()
Dintl_addon.cpp1519 status = napi_create_array_with_length(env, timeVector.size(), &result); in FormatToParts()
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_common.cpp259 napi_create_array_with_length(env, info.size(), &arr); in CreateCredInfoArray()
/base/global/resource_management/interfaces/js/innerkits/core/src/
Dresource_manager_addon.cpp607 … napi_status status = napi_create_array_with_length(env, context.arrayValue_.size(), &result); in __anon14aac4540502()