Home
last modified time | relevance | path

Searched refs:array (Results 1 - 25 of 163) sorted by relevance

1234567

/base/security/certificate_framework/frameworks/common/v1.0/src/
H A Dcf_blob.c66 void CfArrayDataClearAndFree(CfArray *array) in CfArrayDataClearAndFree() argument
68 if (array == NULL) { in CfArrayDataClearAndFree()
69 LOGD("The input array is null, no need to free."); in CfArrayDataClearAndFree()
72 if (array->data != NULL) { in CfArrayDataClearAndFree()
73 for (uint32_t i = 0; i < array->count; ++i) { in CfArrayDataClearAndFree()
74 CfFree(array->data[i].data); in CfArrayDataClearAndFree()
75 array->data[i].data = NULL; in CfArrayDataClearAndFree()
76 array->data[i].size = 0; in CfArrayDataClearAndFree()
78 CfFree(array->data); in CfArrayDataClearAndFree()
80 array in CfArrayDataClearAndFree()
84 FreeCfBlobArray(CfBlob *array, uint32_t arrayLen) FreeCfBlobArray() argument
[all...]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
H A Dhisysevent.cpp352 bool* array = reinterpret_cast<bool*>(param.v.array); in AppendBoolArrayParam() local
353 if (!CheckArrayValidity(eventBase, array)) { in AppendBoolArrayParam()
356 std::vector<bool> value(array, array + param.arraySize); in AppendBoolArrayParam()
365 int8_t* array = reinterpret_cast<int8_t*>(param.v.array); in AppendInt8ArrayParam() local
366 if (!CheckArrayValidity(eventBase, array)) { in AppendInt8ArrayParam()
369 std::vector<int8_t> value(array, array in AppendInt8ArrayParam()
378 uint8_t* array = reinterpret_cast<uint8_t*>(param.v.array); AppendUint8ArrayParam() local
391 int16_t* array = reinterpret_cast<int16_t*>(param.v.array); AppendInt16ArrayParam() local
404 uint16_t* array = reinterpret_cast<uint16_t*>(param.v.array); AppendUint16ArrayParam() local
417 int32_t* array = reinterpret_cast<int32_t*>(param.v.array); AppendInt32ArrayParam() local
430 uint32_t* array = reinterpret_cast<uint32_t*>(param.v.array); AppendUint32ArrayParam() local
443 int64_t* array = reinterpret_cast<int64_t*>(param.v.array); AppendInt64ArrayParam() local
456 uint64_t* array = reinterpret_cast<uint64_t*>(param.v.array); AppendUint64ArrayParam() local
469 float* array = reinterpret_cast<float*>(param.v.array); AppendFloatArrayParam() local
482 double* array = reinterpret_cast<double*>(param.v.array); AppendDoubleArrayParam() local
495 auto array = reinterpret_cast<char**>(param.v.array); AppendStringArrayParam() local
[all...]
/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dattributes_test.cpp194 std::vector<uint64_t> array; in HWTEST_F() local
195 array.reserve(SIZE); in HWTEST_F()
197 array.push_back(UINT64_MAX - i); in HWTEST_F()
199 EXPECT_TRUE(attrs.SetUint64ArrayValue(Attributes::ATTR_FREEZING_TIME, array)); in HWTEST_F()
203 EXPECT_THAT(out, ElementsAreArray(array)); in HWTEST_F()
208 std::vector<uint64_t> array; in HWTEST_F() local
209 EXPECT_TRUE(attrs.SetUint64ArrayValue(Attributes::ATTR_FREEZING_TIME, array)); in HWTEST_F()
210 EXPECT_TRUE(attrs.GetUint64ArrayValue(Attributes::ATTR_FREEZING_TIME, array)); in HWTEST_F()
211 EXPECT_TRUE(array.empty()); in HWTEST_F()
221 std::vector<uint32_t> array; in HWTEST_F() local
234 std::vector<uint32_t> array; HWTEST_F() local
248 std::vector<uint16_t> array; HWTEST_F() local
261 std::vector<uint16_t> array; HWTEST_F() local
275 std::vector<uint8_t> array; HWTEST_F() local
288 std::vector<uint8_t> array; HWTEST_F() local
[all...]
/base/telephony/core_service/frameworks/js/sim/include/
H A Dnapi_sim.h19 #include <array>
39 std::array<char, ARRAY_SIZE> inputStr {};
68 std::array<char, ARRAY_SIZE> alphaTag {};
69 std::array<char, ARRAY_SIZE> number {};
70 std::array<char, ARRAY_SIZE> pin2 {};
82 std::array<char, ARRAY_SIZE> mailName {};
83 std::array<char, ARRAY_SIZE> mailNumber {};
/base/security/certificate_framework/test/unittest/cf_adapter_test/src/
H A Dcf_common_test.cpp115 CfArray array = { nullptr, CF_FORMAT_DER, TEST_DEFAULT_COUNT }; in HWTEST_F() local
116 array.data = static_cast<CfBlob *>(CfMalloc(array.count * sizeof(CfBlob), 0)); in HWTEST_F()
117 ASSERT_NE(array.data, nullptr); in HWTEST_F()
119 for (uint32_t i = 0; i < array.count; ++i) { in HWTEST_F()
120 array.data[i].size = TEST_DEFAULT_SIZE; in HWTEST_F()
121 array.data[i].data = static_cast<uint8_t *>(CfMalloc(array.data[i].size, 0)); in HWTEST_F()
122 ASSERT_NE(array.data[i].data, nullptr); in HWTEST_F()
125 CfArrayDataClearAndFree(&array); in HWTEST_F()
137 CfBlob *array = static_cast<CfBlob *>(CfMalloc(TEST_DEFAULT_COUNT * sizeof(CfBlob), 0)); HWTEST_F() local
163 CfBlob *array = static_cast<CfBlob *>(CfMalloc(TEST_DEFAULT_COUNT * sizeof(CfBlob), 0)); HWTEST_F() local
[all...]
/base/update/updateservice/foundations/ability/define/include/
H A Dupdate_define.h22 #define COUNT_OF(array) (sizeof(array) / sizeof((array)[0]))
/base/notification/common_event_service/interfaces/kits/ndk/src/
H A Doh_commonevent.cpp166 int OH_CommonEvent_GetIntArrayFromParameters(const CommonEvent_Parameters* para, const char* key, int** array) in OH_CommonEvent_GetIntArrayFromParameters() argument
168 if (para == nullptr || key == nullptr || array == nullptr) { in OH_CommonEvent_GetIntArrayFromParameters()
177 return OHOS::EventFwk::GetDataArrayFromParams<int>(parameters, key, OHOS::EventFwk::I32_PTR_TYPE, array); in OH_CommonEvent_GetIntArrayFromParameters()
195 int32_t OH_CommonEvent_GetLongArrayFromParameters(const CommonEvent_Parameters* para, const char* key, long** array) in OH_CommonEvent_GetLongArrayFromParameters() argument
197 if (para == nullptr || key == nullptr || array == nullptr) { in OH_CommonEvent_GetLongArrayFromParameters()
206 return OHOS::EventFwk::GetDataArrayFromParams<long>(parameters, key, OHOS::EventFwk::I64_PTR_TYPE, array); in OH_CommonEvent_GetLongArrayFromParameters()
224 int32_t OH_CommonEvent_GetBoolArrayFromParameters(const CommonEvent_Parameters* para, const char* key, bool** array) in OH_CommonEvent_GetBoolArrayFromParameters() argument
226 if (para == nullptr || key == nullptr || array == nullptr) { in OH_CommonEvent_GetBoolArrayFromParameters()
235 return OHOS::EventFwk::GetDataArrayFromParams<bool>(parameters, key, OHOS::EventFwk::BOOL_PTR_TYPE, array); in OH_CommonEvent_GetBoolArrayFromParameters()
253 int32_t OH_CommonEvent_GetCharArrayFromParameters(const CommonEvent_Parameters* para, const char* key, char** array) in OH_CommonEvent_GetCharArrayFromParameters() argument
282 OH_CommonEvent_GetDoubleArrayFromParameters(const CommonEvent_Parameters* para, const char* key, double** array) OH_CommonEvent_GetDoubleArrayFromParameters() argument
[all...]
/base/notification/common_event_service/interfaces/kits/ndk/include/
H A Doh_commonevent.h217 * @brief Get int array data from parameters data by key.
221 * @param array Indicates the int array.
222 * @return Returns the length of the array.
224 int32_t OH_CommonEvent_GetIntArrayFromParameters(const CommonEvent_Parameters* para, const char* key, int** array);
238 * @brief Get long array data from parameters data by key.
242 * @param array Indicates the long array.
243 * @return Returns the length of the array.
245 int32_t OH_CommonEvent_GetLongArrayFromParameters(const CommonEvent_Parameters* para, const char* key, long** array);
[all...]
/base/print/print_fwk/services/print_service/include/
H A Dprint_service_converter.h60 nlohmann::json array = nlohmann::json::array(); in ConvertListToJson() local
64 array.push_back(object); in ConvertListToJson()
67 return array.dump(); in ConvertListToJson()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
H A DcJSON.c118 int cJSON_GetArraySize(const cJSON* array) in cJSON_GetArraySize() argument
128 if (array == NULL) { in cJSON_GetArraySize()
131 child = array->child; in cJSON_GetArraySize()
225 cJSON_bool cJSON_AddItemToArray(cJSON* array, cJSON* item) in cJSON_AddItemToArray() argument
235 cJSON_bool (*func)(cJSON* array, cJSON* item); in cJSON_AddItemToArray()
236 func = (cJSON_bool (*)(cJSON* array, cJSON* item))dlsym(g_handle, "cJSON_AddItemToArray"); in cJSON_AddItemToArray()
240 cJSON_bool res = func(array, item); in cJSON_AddItemToArray()
301 cJSON* cJSON_GetArrayItem(const cJSON* array, int index) in cJSON_GetArrayItem() argument
316 cJSON* (*func)(const cJSON* array, int index); in cJSON_GetArrayItem()
317 func = (cJSON* (*)(const cJSON* array, in in cJSON_GetArrayItem()
[all...]
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
H A DcJSON.h56 int cJSON_GetArraySize(const cJSON* array);
61 cJSON_bool cJSON_AddItemToArray(cJSON* array, cJSON* item);
65 cJSON* cJSON_GetArrayItem(const cJSON* array, int index);
/base/security/certificate_framework/frameworks/core/param/src/
H A Dcf_param_parse.c52 int32_t CfConstructArrayParamSetOut(const CfBlobArray *array, CfParamSet **out) in CfConstructArrayParamSetOut() argument
70 for (uint32_t i = 0; i < array->count; ++i) { in CfConstructArrayParamSetOut()
71 CfParam param = { .tag = CF_TAG_RESULT_BYTES, .blob = array->data[i] }; in CfConstructArrayParamSetOut()
/base/hiviewdfx/hilog/test/moduletest/common/
H A Dadapter_test.cpp16 #include <array>
87 static const std::array<const char*, 10> charLevels = {"d", "D", "f", "F", "e", "E", "w", "W", "i", "I"}; in HWTEST_F()
88 static const std::array<uint16_t, 10> expected = { in HWTEST_F()
119 static const std::array<uint16_t, 7> logType = {-1, 0, 1, 3, 4, 5, 100}; in HWTEST_F()
121 static const std::array<size_t, 7> expectedSize = {0, size, size, size, size, size, 0}; in HWTEST_F()
/base/security/device_security_level/baselib/utils/src/
H A Dutils_json.c73 uint32_t DslmGetJsonFieldIntArray(DslmJsonHandle handle, const char *field, int32_t *array, int32_t arrayLen) in DslmGetJsonFieldIntArray() argument
75 if (handle == NULL || field == NULL || array == NULL) { in DslmGetJsonFieldIntArray()
97 array[index++] = item->valueint; in DslmGetJsonFieldIntArray()
158 void DslmAddFieldIntArrayToJson(DslmJsonHandle handle, const char *field, const int32_t *array, int32_t arrayLen) in DslmAddFieldIntArrayToJson() argument
160 if (handle == NULL || field == NULL || array == NULL) { in DslmAddFieldIntArrayToJson()
163 cJSON *arrayObj = cJSON_CreateIntArray(array, arrayLen); in DslmAddFieldIntArrayToJson()
/base/hiviewdfx/hisysevent/test/moduletest/common/
H A Dhisysevent_c_test.cpp189 * @tc.desc: Test writing of array type data.
204 .v = { .array = bArr }, in HWTEST_F()
211 .v = { .array = int8Arr }, in HWTEST_F()
218 .v = { .array = uint8Arr }, in HWTEST_F()
225 .v = { .array = int16Arr }, in HWTEST_F()
232 .v = { .array = uint16Arr }, in HWTEST_F()
239 .v = { .array = int32Arr }, in HWTEST_F()
246 .v = { .array = uint32Arr }, in HWTEST_F()
253 .v = { .array = int64Arr }, in HWTEST_F()
260 .v = { .array in HWTEST_F()
[all...]
/base/security/certificate_framework/interfaces/inner_api/common/
H A Dcf_blob.h60 void CfArrayDataClearAndFree(CfArray *array);
61 void FreeCfBlobArray(CfBlob *array, uint32_t arrayLen);
/base/time/time_service/services/timer/include/
H A Dtimer_handler.h19 #include <array>
31 typedef std::array<int, N_TIMER_FDS> TimerFds;
/base/web/webview/test/fuzztest/ohos_adapter/audio_adapter/audiogetcontent_fuzzer/
H A Daudiogetcontent_fuzzer.cpp20 #include <array>
33 std::array<AudioAdapterContentType, typenums> contentArray = { in AudioGetContentFuzzTest()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
H A Dnapi_hisysevent_util.cpp147 HILOG_ERROR(LOG_CORE, "failed to check array napi value."); in CheckValueIsArray()
290 const napi_value array, size_t len) in AppendBoolArrayData()
296 status = napi_get_element(env, array, i, &element); in AppendBoolArrayData()
298 HILOG_ERROR(LOG_CORE, "failed to get the element of bool array."); in AppendBoolArrayData()
309 const napi_value array, size_t len) in AppendNumberArrayData()
317 status = napi_get_element(env, array, i, &element); in AppendNumberArrayData()
320 "failed to get the element from array or type not match."); in AppendNumberArrayData()
346 const napi_value array, size_t len) in AppendBigIntArrayData()
355 status = napi_get_element(env, array, i, &element); in AppendBigIntArrayData()
358 "failed to get the element from array o in AppendBigIntArrayData()
289 AppendBoolArrayData(const napi_env env, HiSysEventInfo& info, const std::string& key, const napi_value array, size_t len) AppendBoolArrayData() argument
308 AppendNumberArrayData(const napi_env env, HiSysEventInfo& info, const std::string& key, const napi_value array, size_t len) AppendNumberArrayData() argument
345 AppendBigIntArrayData(const napi_env env, HiSysEventInfo& info, const std::string& key, const napi_value array, size_t len) AppendBigIntArrayData() argument
376 AppendStringArrayData(const napi_env env, HiSysEventInfo& info, const std::string& key, const napi_value array, size_t len) AppendStringArrayData() argument
395 AddArrayParamToEventInfo(const napi_env env, HiSysEventInfo& info, const std::string& key, napi_value& array) AddArrayParamToEventInfo() argument
699 napi_value array = nullptr; AppendArrayParams() local
[all...]
/base/inputmethod/imf/services/json/include/
H A Dserializable.h48 IMSA_HILOGE("not array"); in GetValue()
71 auto array = cJSON_CreateArray(); in SetValue() local
75 if (!ret || !cJSON_AddItemToArray(array, item)) { in SetValue()
79 auto ret = cJSON_AddItemToObject(node, name.c_str(), array); in SetValue()
81 cJSON_Delete(array); in SetValue()
/base/print/print_fwk/test/unittest/service_test/
H A Dprint_system_data_test.cpp173 nlohmann::json printerMapJson = nlohmann::json::array(); in HWTEST_F()
294 nlohmann::json printerMapJson = nlohmann::json::array(); in HWTEST_F()
311 nlohmann::json printerMapJson = nlohmann::json::array(); in HWTEST_F()
360 nlohmann::json printerMapJson = nlohmann::json::array(); in HWTEST_F()
394 nlohmann::json printerMapJson = nlohmann::json::array(); in HWTEST_F()
400 nlohmann::json capsJson = nlohmann::json::array(); in HWTEST_F()
413 nlohmann::json printerMapJson = nlohmann::json::array(); in HWTEST_F()
579 nlohmann::json marginJson = nlohmann::json::array(); in HWTEST_F()
588 nlohmann::json pageSizeJson2 = nlohmann::json::array(); in HWTEST_F()
589 nlohmann::json pageSize = nlohmann::json::array(); in HWTEST_F()
[all...]
/base/hiviewdfx/hilog/frameworks/libhilog/socket/
H A Ddgram_socket_server.cpp16 #include <array>
33 std::array<char, CMSG_SPACE(sizeof(struct ucred))> control = {0}; in RecvPacket()
/base/security/device_security_level/baselib/utils/include/
H A Dutils_json.h32 uint32_t DslmGetJsonFieldIntArray(DslmJsonHandle handle, const char *field, int32_t *array, int32_t arrayLen);
40 void DslmAddFieldIntArrayToJson(DslmJsonHandle handle, const char *field, const int32_t *array, int32_t arrayLen);
/base/inputmethod/imf/frameworks/js/napi/common/
H A Djs_util.h64 napi_value array = nullptr; in GetValue() local
65 auto status = napi_create_array(env, &array); in GetValue()
75 status = napi_set_element(env, array, index++, itemValue); in GetValue()
80 return array; in GetValue()
/base/security/device_auth/frameworks/deviceauth_lite/source/auth_info/
H A Dremove_auth_info.c100 uint8_t array[sizeof(int32_t)] = {0}; in build_remove_response_data() local
102 .val = array, in build_remove_response_data()
103 .size = sizeof(array), in build_remove_response_data()
104 .length = sizeof(array) in build_remove_response_data()

Completed in 12 milliseconds

1234567