/ohos5.0/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_json.c | 73 …slmGetJsonFieldIntArray(DslmJsonHandle handle, const char *field, int32_t *array, int32_t arrayLen) in DslmGetJsonFieldIntArray() argument 88 if (size > arrayLen) { in DslmGetJsonFieldIntArray() 89 size = arrayLen; in DslmGetJsonFieldIntArray() 158 …eldIntArrayToJson(DslmJsonHandle handle, const char *field, const int32_t *array, int32_t arrayLen) in DslmAddFieldIntArrayToJson() argument 163 cJSON *arrayObj = cJSON_CreateIntArray(array, arrayLen); in DslmAddFieldIntArrayToJson()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/ |
H A D | softbus_json_utils.c | 340 …ol 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 … 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()
|
/ohos5.0/drivers/hdf_core/framework/utils/src/hcs_parser/ |
H A D | hcs_blob_if.c | 50 int32_t arrayLen = HCS_PREFIX_LENGTH + HCS_WORD_LENGTH; in HcsGetArrayLength() local 58 int32_t lenData = HcsGetDataTypeOffset(start + arrayLen); in HcsGetArrayLength() 62 arrayLen += lenData; in HcsGetArrayLength() 64 return arrayLen; in HcsGetArrayLength()
|
/ohos5.0/base/security/certificate_framework/frameworks/adapter/v2.0/src/ |
H A D | cf_adapter_extension_openssl.c | 154 uint32_t *array, uint32_t *arrayLen) in GetExtensionIndexArray() argument 187 return CopyIndexArray(array, arrayLen, allOidArray, (uint32_t)extNums); in GetExtensionIndexArray() 189 return CopyIndexArray(array, arrayLen, critOidArray, critCnt); in GetExtensionIndexArray() 191 return CopyIndexArray(array, arrayLen, uncritOidArray, uncritCnt); in GetExtensionIndexArray() 210 …int32_t DeepCopyOidsToOut(const X509_EXTENSIONS *exts, const uint32_t *idxArray, uint32_t arrayLen, in DeepCopyOidsToOut() argument 213 uint32_t memSize = sizeof(CfBlob) * arrayLen; in DeepCopyOidsToOut() 220 for (uint32_t i = 0; i < arrayLen; ++i) { in DeepCopyOidsToOut() 247 out->count = arrayLen; in DeepCopyOidsToOut()
|
/ohos5.0/drivers/peripheral/user_auth/test/unittest/idm_test/ |
H A D | idm_session_test.cpp | 164 constexpr uint32_t arrayLen = 32; variable 165 uint8_t challengeArray[arrayLen] = {}; 167 EXPECT_EQ(GetChallenge(nullptr, arrayLen), RESULT_BAD_PARAM); 168 EXPECT_EQ(GetChallenge(challengeArray, arrayLen), RESULT_NEED_INIT);
|
/ohos5.0/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 variable 872 bool result = AddIntArrayToJsonObject(nullptr, string, array, arrayLen); 886 int32_t arrayLen = 3; // 3 is test value variable 887 bool result = AddIntArrayToJsonObject(json, nullptr, array, arrayLen); 902 int32_t arrayLen = 3; // 3 is test value variable 903 bool result = AddIntArrayToJsonObject(json, string, nullptr, arrayLen); 919 int32_t arrayLen = 0; variable 920 bool result = AddIntArrayToJsonObject(json, string, array, arrayLen); 936 int32_t arrayLen = 3; // 3 is test value variable 937 bool result = AddIntArrayToJsonObject(json, string, array, arrayLen);
|
/ohos5.0/base/security/device_security_level/baselib/utils/include/ |
H A D | utils_json.h | 32 …lmGetJsonFieldIntArray(DslmJsonHandle handle, const char *field, int32_t *array, int32_t arrayLen); 40 …ldIntArrayToJson(DslmJsonHandle handle, const char *field, const int32_t *array, int32_t arrayLen);
|
/ohos5.0/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_json_utils.h | 64 …l AddIntArrayToJsonObject(cJSON *json, const char *string, const int32_t *array, int32_t arrayLen); 66 …GetJsonObjectIntArrayItem(const cJSON *json, const char *string, int32_t *array, int32_t arrayLen);
|
/ohos5.0/drivers/peripheral/user_auth/test/unittest/co_auth/ |
H A D | co_auth_test.cpp | 339 constexpr uint32_t arrayLen = 1; variable 347 array.len = arrayLen; 358 constexpr uint32_t arrayLen = 200; variable 362 array.len = arrayLen; 376 constexpr uint32_t arrayLen = 1; variable 380 inArray.len = arrayLen;
|
/ohos5.0/base/security/certificate_framework/frameworks/common/v1.0/src/ |
H A D | cf_blob.c | 84 void FreeCfBlobArray(CfBlob *array, uint32_t arrayLen) in FreeCfBlobArray() argument 90 for (uint32_t i = 0; i < arrayLen; ++i) { in FreeCfBlobArray()
|
/ohos5.0/drivers/peripheral/codec/hal/src/ |
H A D | codec_callback_type_proxy.c | 53 static int32_t WriteArray(struct HdfSBuf *data, int8_t *array, uint32_t arrayLen) in WriteArray() argument 55 if (!HdfSbufWriteUint32(data, arrayLen)) { in WriteArray() 59 for (uint32_t i = 0; i < arrayLen; i++) { in WriteArray()
|
H A D | codec_callback_type_stub.c | 45 static int32_t ReadArray(struct HdfSBuf *data, int8_t **array, uint32_t *arrayLen) in ReadArray() argument 55 *arrayLen = bufferLen; in ReadArray() 73 *arrayLen = bufferLen; in ReadArray()
|
/ohos5.0/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()
|
/ohos5.0/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_load.c | 309 uint32_t arrayLen = (uint32_t)cJSON_GetArraySize(configs); in ParseGidTableConfig() local 310 APPSPAWN_CHECK_ONLY_EXPER(arrayLen > 0, return 0); in ParseGidTableConfig() 311 APPSPAWN_CHECK(arrayLen < APP_MAX_GIDS, arrayLen = APP_MAX_GIDS, "More gid in gids json."); in ParseGidTableConfig() 319 section->gidTable = (gid_t *)calloc(1, sizeof(gid_t) * arrayLen); in ParseGidTableConfig() 322 for (uint32_t i = 0; i < arrayLen; i++) { in ParseGidTableConfig()
|
/ohos5.0/drivers/external_device_manager/services/native/driver_extension/src/ |
H A D | js_driver_extension.cpp | 441 uint32_t arrayLen = 0; in Dump() local 442 napi_get_array_length(env, dumpInfo, &arrayLen); in Dump() 443 if (arrayLen <= 0) { in Dump() 447 for (uint32_t i = 0; i < arrayLen; i++) { in Dump()
|
/ohos5.0/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() 1048 uint32_t arrayLen = 0; in GetExtraParametersVector() local 1049 napi_get_array_length(env, in, &arrayLen); in GetExtraParametersVector() [all …]
|
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/common/attributes/src/ |
H A D | attributes.cpp | 1156 std::vector<uint8_t> arrayLen; in SetAttributesArrayValue() local 1157 bool encodeRet = Attributes::Impl::EncodeUint32Value(array.size(), arrayLen); in SetAttributesArrayValue() 1161 std::copy(arrayLen.begin(), arrayLen.end(), std::back_inserter(data)); in SetAttributesArrayValue() 1188 uint32_t arrayLen; in GetAttributesArrayValue() local 1189 bool decodeRet = Attributes::Impl::DecodeUint32Value(arrayLenData, arrayLen); in GetAttributesArrayValue() 1195 if (data.size() - i < arrayLen) { in GetAttributesArrayValue() 1199 … array.push_back(Attributes(std::vector<uint8_t>(data.begin() + i, data.begin() + i + arrayLen))); in GetAttributesArrayValue() 1200 i += arrayLen; in GetAttributesArrayValue()
|
/ohos5.0/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()
|
/ohos5.0/base/security/certificate_framework/interfaces/innerkits/common/ |
H A D | cf_blob.h | 61 void FreeCfBlobArray(CfBlob *array, uint32_t arrayLen);
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/ |
H A D | bg_continuous_task_napi_module.cpp | 447 uint32_t arrayLen = 0; in GetModes() local 448 napi_get_array_length(env, value, &arrayLen); in GetModes() 449 BGTASK_LOGI("get bgModes arraylen: %{public}u", arrayLen); in GetModes() 450 if (arrayLen == 0) { in GetModes() 456 for (uint32_t i = 0; i < arrayLen; i++) { in GetModes()
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/url/src/ |
H A D | js_url.ts | 215 let arrayLen: number = this.urlClass.array.length; 219 for (let pos: number = 0; pos < arrayLen; pos += 2) { // 2:Even subscripts exist as key values 352 let arrayLen: number = this.urlClass.array.length; 356 for (let pos: number = 0; pos < arrayLen; pos += 2) { // 2:Even subscripts exist as key values
|
/ohos5.0/base/security/device_auth/common_lib/interfaces/ |
H A D | json_utils.h | 99 …ngArrayToJson(CJson *jsonObj, const char *key, const char * const *stringArray, uint32_t arrayLen);
|
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/ |
H A D | json_utils_mock.c | 564 …ingArrayToJson(CJson *jsonObj, const char *key, const char * const *stringArray, uint32_t arrayLen) in AddStringArrayToJson() argument 570 cJSON *strArrayObj = cJSON_CreateStringArray(stringArray, arrayLen); in AddStringArrayToJson()
|
/ohos5.0/base/security/device_auth/common_lib/impl/src/ |
H A D | json_utils.c | 531 …ingArrayToJson(CJson *jsonObj, const char *key, const char * const *stringArray, uint32_t arrayLen) in AddStringArrayToJson() argument 537 cJSON *strArrayObj = cJSON_CreateStringArray(stringArray, arrayLen); in AddStringArrayToJson()
|
/ohos5.0/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()
|