/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_json_utils.h | 64 bool AddIntArrayToJsonObject(cJSON *json, const char *string, const int32_t *array, int32_t arrayLen); 66 bool GetJsonObjectIntArrayItem(const cJSON *json, const char *string, int32_t *array, int32_t arrayLen);
|
/foundation/communication/dsoftbus/core/common/json_utils/ |
H A D | softbus_json_utils.c | 340 bool AddIntArrayToJsonObject(cJSON *json, const char *string, const int32_t *array, int32_t arrayLen) in AddIntArrayToJsonObject() argument 342 if (json == NULL || string == NULL || array == NULL || arrayLen <= 0) { in AddIntArrayToJsonObject() 346 cJSON *arrayObj = cJSON_CreateIntArray(array, arrayLen); in AddIntArrayToJsonObject() 358 bool GetJsonObjectIntArrayItem(const cJSON *json, const char *string, int32_t *array, int32_t arrayLen) in GetJsonObjectIntArrayItem() argument 360 if (json == NULL || string == NULL || array == NULL || arrayLen <= 0) { in GetJsonObjectIntArrayItem() 373 if (size > arrayLen) { in GetJsonObjectIntArrayItem() 374 size = arrayLen; in GetJsonObjectIntArrayItem()
|
/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/ |
H A D | softbus_json_utils_test.cpp | 871 int32_t arrayLen = 3; // 3 is test value
in HWTEST_F() local 872 bool result = AddIntArrayToJsonObject(nullptr, string, array, arrayLen);
in HWTEST_F() 886 int32_t arrayLen = 3; // 3 is test value
in HWTEST_F() local 887 bool result = AddIntArrayToJsonObject(json, nullptr, array, arrayLen);
in HWTEST_F() 902 int32_t arrayLen = 3; // 3 is test value
in HWTEST_F() local 903 bool result = AddIntArrayToJsonObject(json, string, nullptr, arrayLen);
in HWTEST_F() 919 int32_t arrayLen = 0;
in HWTEST_F() local 920 bool result = AddIntArrayToJsonObject(json, string, array, arrayLen);
in HWTEST_F() 936 int32_t arrayLen = 3; // 3 is test value
in HWTEST_F() local 937 bool result = AddIntArrayToJsonObject(json, string, array, arrayLen);
in HWTEST_F() [all...] |
/foundation/communication/netmanager_base/services/common/src/ |
H A D | route_utils.cpp | 186 int32_t arrayLen = (af == AF_INET ? IPV4_UINT_LEN : IPV6_UINT_LEN); in MaskAddress() local 196 if (netScope < arrayLen) { in MaskAddress() 201 for (; netScope < arrayLen; netScope++) { in MaskAddress()
|
/foundation/multimedia/audio_framework/frameworks/js/napi/common/ |
H A D | napi_param_utils.cpp | 576 uint32_t arrayLen = 0; in GetCaptureFilterOptionsVector() local 577 napi_get_array_length(env, usagesValue, &arrayLen); in GetCaptureFilterOptionsVector() 579 if (arrayLen == 0) { in GetCaptureFilterOptionsVector() 585 for (size_t i = 0; i < static_cast<size_t>(arrayLen); i++) { in GetCaptureFilterOptionsVector() 796 uint32_t arrayLen = 0; in GetAudioDeviceDescriptorVector() local 797 napi_get_array_length(env, in, &arrayLen); in GetAudioDeviceDescriptorVector() 798 if (arrayLen == 0) { in GetAudioDeviceDescriptorVector() 803 for (size_t i = 0; i < arrayLen; i++) { in GetAudioDeviceDescriptorVector() 1052 uint32_t arrayLen = 0; in GetExtraParametersVector() local 1053 napi_get_array_length(env, in, &arrayLen); in GetExtraParametersVector() 1082 uint32_t arrayLen = 0; GetEffectPropertyArray() local 1123 uint32_t arrayLen = 0; GetEnhancePropertyArray() local [all...] |
/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/ |
H A D | bg_continuous_task_napi_module.cpp | 432 uint32_t arrayLen = 0;
in GetModes() local 433 napi_get_array_length(env, value, &arrayLen);
in GetModes() 434 BGTASK_LOGI("get bgModes arraylen: %{public}u", arrayLen);
in GetModes() 435 if (arrayLen == 0) {
in GetModes() 441 for (uint32_t i = 0; i < arrayLen; i++) {
in GetModes()
|
/foundation/communication/nfc/frameworks/js/napi/common/ |
H A D | nfc_napi_common_utils.cpp | 115 uint32_t arrayLen = 0; in ParseUInt32Vector() local 116 napi_get_array_length(env, args, &arrayLen); in ParseUInt32Vector() 117 for (uint32_t i = 0; i < arrayLen; i++) { in ParseUInt32Vector() 143 uint32_t arrayLen = 0; in ParseStringVector() local 144 napi_get_array_length(env, args, &arrayLen); in ParseStringVector() 145 if (arrayLen > maxLen) { in ParseStringVector() 149 for (uint32_t i = 0; i < arrayLen; i++) { in ParseStringVector()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | chart_component.h | 90 bool ParseDataValue(jerry_value_t dataValue, uint16_t interval, Point *pointArray, uint16_t arrayLen);
|
H A D | chart_component.cpp | 445 bool ChartComponent::ParseDataValue(jerry_value_t dataValue, uint16_t interval, Point* pointArray, uint16_t arrayLen) in ParseDataValue() argument 447 for (size_t index = 0; index < arrayLen; index++) { in ParseDataValue()
|
/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | metadata_napi.cpp | 298 uint32_t arrayLen = 0; in GetStrArrayArgument() local 299 napi_status status = napi_get_array_length(env, object, &arrayLen); in GetStrArrayArgument() 305 for (uint32_t i = 0; i < arrayLen; i++) { in GetStrArrayArgument()
|
H A D | image_source_napi.cpp | 516 uint32_t arrayLen = 0; in GetStringArrayArgument() local 517 napi_status status = napi_get_array_length(env, object, &arrayLen); in GetStringArrayArgument() 523 for (uint32_t i = 0; i < arrayLen; i++) { in GetStringArrayArgument() 2846 uint32_t arrayLen = 0; in ParseDecodingOptionsForPicture() local 2847 napi_status status = napi_get_array_length(env, tmpValue, &arrayLen); in ParseDecodingOptionsForPicture() 2855 for (uint32_t i = 0; i < arrayLen; i++) { in ParseDecodingOptionsForPicture()
|
/foundation/ability/ability_runtime/frameworks/js/napi/app/ability_delegator/ |
H A D | js_ability_delegator.cpp | 1440 uint32_t arrayLen = 0; in ParseArrayStringValue() local 1441 napi_get_array_length(env, array, &arrayLen); in ParseArrayStringValue() 1442 if (arrayLen == 0) { in ParseArrayStringValue() 1445 vector.reserve(arrayLen); in ParseArrayStringValue() 1446 for (uint32_t i = 0; i < arrayLen; i++) { in ParseArrayStringValue()
|
/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
H A D | js_scene_utils.cpp | 866 uint32_t arrayLen = 0; in ParseArrayStringValue() local 867 napi_get_array_length(env, array, &arrayLen); in ParseArrayStringValue() 868 if (arrayLen == 0) { in ParseArrayStringValue() 871 vector.reserve(arrayLen); in ParseArrayStringValue() 872 for (uint32_t i = 0; i < arrayLen; i++) { in ParseArrayStringValue()
|
/foundation/communication/netstack/frameworks/js/napi/http/async_context/src/ |
H A D | request_context.cpp | 814 auto arrayLen = NapiUtils::GetArrayLength(env, certificatePin); in ParseCertificatePinning() local 815 for (uint32_t i = 0; i < arrayLen; i++) { in ParseCertificatePinning()
|
/foundation/multimedia/player_framework/frameworks/js/avrecorder/ |
H A D | avrecorder_napi.cpp | 2335 uint32_t arrayLen = 0; 2336 napi_get_array_length(env, item, &arrayLen); 2337 for (uint32_t i = 0; i < arrayLen; i++) {
|