/drivers/peripheral/pin_auth/hdi_service/common/src/ |
H A D | c_array.c | 23 void DestroyUint8Array(Uint8Array **array) in DestroyUint8Array() argument 25 IF_TRUE_LOGE_AND_RETURN(array == NULL); in DestroyUint8Array() 26 if (*array == NULL) { in DestroyUint8Array() 29 if ((*array)->len != 0 && ((*array)->len < UINT32_MAX / sizeof(uint8_t))) { in DestroyUint8Array() 30 uint32_t arraySize = sizeof(uint8_t) * (*array)->len; in DestroyUint8Array() 31 (void)memset_s((*array)->data, arraySize, 0, arraySize); in DestroyUint8Array() 33 IAM_FREE_AND_SET_NULL((*array)->data); in DestroyUint8Array() 34 IAM_FREE_AND_SET_NULL(*array); in DestroyUint8Array() 37 void DestroyUint64Array(Uint64Array **array) in DestroyUint64Array() argument 53 Uint8Array *array = Malloc(sizeof(Uint8Array)); CreateUint8ArrayBySize() local 77 Uint8Array *array = CreateUint8ArrayBySize(len); CreateUint8ArrayByData() local 100 Uint64Array *array = Malloc(sizeof(Uint64Array)); CreateUint64ArrayByData() local [all...] |
H A D | attribute.c | 55 #define ARRAY_LENGTH(array) (uint32_t)(sizeof(array) / sizeof((array)[0]))
82 IAM_STATIC void Ntohl64Array(Uint64Array *array)
in Ntohl64Array() argument 84 for (uint32_t i = 0; i < array->len; i++) {
in Ntohl64Array() 85 array->data[i] = Ntohl64(array->data[i]);
in Ntohl64Array() 89 IAM_STATIC void Htonl64Array(Uint64Array *array)
in Htonl64Array() argument 91 for (uint32_t i = 0; i < array->len; i++) {
in Htonl64Array() 92 array in Htonl64Array() 283 Uint8Array *array = attribute->values[i]; GetAttributeSerializedMsg() local [all...] |
/drivers/peripheral/user_auth/hdi_service/utils/src/ |
H A D | c_array.c | 23 void DestroyUint8Array(Uint8Array **array) in DestroyUint8Array() argument 25 IF_TRUE_LOGE_AND_RETURN(array == NULL); in DestroyUint8Array() 26 if (*array == NULL) { in DestroyUint8Array() 29 if ((*array)->len != 0 && ((*array)->len < UINT32_MAX / sizeof(uint8_t))) { in DestroyUint8Array() 30 uint32_t arraySize = sizeof(uint8_t) * (*array)->len; in DestroyUint8Array() 31 (void)memset_s((*array)->data, arraySize, 0, arraySize); in DestroyUint8Array() 33 IAM_FREE_AND_SET_NULL((*array)->data); in DestroyUint8Array() 34 IAM_FREE_AND_SET_NULL(*array); in DestroyUint8Array() 37 void DestroyUint64Array(Uint64Array **array) in DestroyUint64Array() argument 53 Uint8Array *array = Malloc(sizeof(Uint8Array)); CreateUint8ArrayBySize() local 77 Uint8Array *array = CreateUint8ArrayBySize(len); CreateUint8ArrayByData() local 100 Uint64Array *array = Malloc(sizeof(Uint64Array)); CreateUint64ArrayByData() local [all...] |
H A D | attribute.c | 74 #define ARRAY_LENGTH(array) (uint32_t)(sizeof(array) / sizeof((array)[0]))
101 IAM_STATIC void Ntohl64Array(Uint64Array *array)
in Ntohl64Array() argument 103 for (uint32_t i = 0; i < array->len; i++) {
in Ntohl64Array() 104 array->data[i] = Ntohl64(array->data[i]);
in Ntohl64Array() 108 IAM_STATIC void Htonl64Array(Uint64Array *array)
in Htonl64Array() argument 110 for (uint32_t i = 0; i < array->len; i++) {
in Htonl64Array() 111 array in Htonl64Array() 301 Uint8Array *array = attribute->values[i]; GetAttributeSerializedMsg() local [all...] |
/drivers/peripheral/pin_auth/hdi_service/common/inc/ |
H A D | c_array.h | 27 #define IS_ARRAY_NULL(array) ((array).data == NULL || (array).len == 0) 28 #define IS_ARRAY_VALID(array) ((array).data != NULL || ((array).data == NULL && (array).len == 0)) 40 void DestroyUint8Array(Uint8Array **array); 41 void DestroyUint64Array(Uint64Array **array);
|
/drivers/peripheral/user_auth/hdi_service/utils/inc/ |
H A D | c_array.h | 28 #define IS_ARRAY_NULL(array) ((array).data == NULL || (array).len == 0) 29 #define IS_ARRAY_VALID(array) ((array).data != NULL || ((array).data == NULL && (array).len == 0)) 52 void DestroyUint8Array(Uint8Array **array); 53 void DestroyUint64Array(Uint64Array **array);
|
/drivers/hdf_core/framework/model/display/driver/lcdkit/ |
H A D | lcdkit_parse_config.c | 20 static int32_t GetDsiCmdCount(uint8_t *array, int32_t len, uint32_t *count) in GetDsiCmdCount() argument 26 dlen = array[DATA_LEN]; in GetDsiCmdCount() 27 array = array + DSI_CMD_HEAD + dlen; in GetDsiCmdCount() 47 static int32_t ParseDsiCmd(struct PanelCmd *cmd, int32_t count, uint8_t *array, int32_t len) in ParseDsiCmd() argument 52 OsalMemFree(array); in ParseDsiCmd() 59 uint8_t *tmpArray = array; in ParseDsiCmd() 69 OsalMemFree(array); in ParseDsiCmd() 80 OsalMemFree(array); in ParseDsiCmd() 93 OsalMemFree(array); in ParseDsiCmd() 101 uint8_t *array = (uint8_t *)OsalMemCalloc(len * sizeof(uint8_t)); ParseCmdConfig() local 161 uint32_t *array = (uint32_t *)OsalMemCalloc(count * sizeof(uint32_t)); ParsePowerSetting() local 198 uint32_t *array = (uint32_t *)OsalMemCalloc(count * sizeof(uint32_t)); ParsePowerSequeue() local [all...] |
/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/ |
H A D | usb_driver_info.cpp | 26 cJSON* array = cJSON_CreateArray(); in SetArrayToObj() local 27 if (!array) { in SetArrayToObj() 33 if (!cJSON_AddItemToArray(array, cJSON_CreateNumber(static_cast<double>(item)))) { in SetArrayToObj() 35 cJSON_Delete(array); in SetArrayToObj() 40 if (!cJSON_AddItemToObject(obj, key.c_str(), array)) { in SetArrayToObj() 42 cJSON_Delete(array); in SetArrayToObj() 49 static bool GetObjectItem(const cJSON *jsonObj, const string &key, vector<uint16_t> &array) in GetObjectItem() argument 74 array.push_back(static_cast<uint16_t>(it->valuedouble)); in GetObjectItem()
|
/drivers/peripheral/clearplay/hdi_service/common/ |
H A D | base64_utils.cpp | 18 #include <array> 66 static inline void MakeCharFour(const std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree, in MakeCharFour() 67 std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> &charArrayFour) in MakeCharFour() 82 static inline void MakeCharTree(const std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> &charArrayFour, in MakeCharTree() 83 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) in MakeCharTree() 106 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree = { 0 }; in Encode() 107 std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> charArrayFour = { 0 }; in Encode() 150 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree = { 0 }; in Decode() 151 std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> charArrayFour = { 0 }; in Decode()
|
/drivers/peripheral/user_auth/test/unittest/attribute_test/ |
H A D | attribute_test.cpp | 218 std::vector<uint8_t> array; in HWTEST_F() local 219 array.reserve(size); in HWTEST_F() 221 array.push_back(i); in HWTEST_F() 223 Uint8Array data = { array.data(), size }; in HWTEST_F() 229 ASSERT_THAT(out, ElementsAreArray(array)); in HWTEST_F() 244 std::vector<uint8_t> array(size); in HWTEST_F() 245 value = { array.data(), 0 }; in HWTEST_F() 248 value = { array.data(), static_cast<uint32_t>(array.size()) }; in HWTEST_F() 266 std::vector<uint8_t> array in HWTEST_F() local 325 std::vector<uint64_t> array; HWTEST_F() local 374 std::vector<uint64_t> array = {12, 14, 16, 15, 34, 123, 154, 48, 154, 102, 188}; HWTEST_F() local [all...] |
/drivers/peripheral/user_auth/test/unittest/co_auth/ |
H A D | co_auth_test.cpp | 346 Uint64Array array = {}; in HWTEST_F() local 347 array.len = arrayLen; in HWTEST_F() 348 array.data = nullptr; in HWTEST_F() 349 param.templateIds = &array; in HWTEST_F() 352 array.data = &temp; in HWTEST_F() 361 Uint64Array array = {}; in HWTEST_F() local 362 array.len = arrayLen; in HWTEST_F() 363 array.data = nullptr; in HWTEST_F() 364 EXPECT_FALSE(IsTemplateArraysValid(&array)); in HWTEST_F() 365 array in HWTEST_F() [all...] |
H A D | executor_message_test.cpp | 177 uint8_t array[dataLen] = { 1, 2, 3, 4, 5, 6 }; in HWTEST_F() local 178 Uint8Array dataTlv = { &array[0], dataLen }; in HWTEST_F() 389 Uint64Array array = {}; in HWTEST_F() local 390 array.len = dataLen; in HWTEST_F() 391 array.data = nullptr; in HWTEST_F() 392 EXPECT_EQ(CreateExecutorMsg(1, 0, &array), nullptr); in HWTEST_F() 414 Uint64Array array = {}; in HWTEST_F() local 415 EXPECT_EQ(GetExecutorTemplateList(0, &info, &array), RESULT_UNKNOWN); in HWTEST_F() 429 EXPECT_EQ(GetExecutorTemplateList(0, &info, &array), RESULT_REACH_LIMIT); in HWTEST_F() 431 EXPECT_EQ(GetExecutorTemplateList(0, &info, &array), RESULT_SUCCES in HWTEST_F() [all...] |
/drivers/peripheral/codec/image/config/ |
H A D | codec_image_config.cpp | 16 #include <array>
58 const static std::array<std::string, count> codecGroupsNodeName = {
in Init() 174 std::unique_ptr<int32_t[]> array = std::make_unique<int32_t[]>(count);
in GetUintTableConfig() local 175 iface.GetUint32Array(&node, attr.attrName.c_str(), reinterpret_cast<uint32_t *>(array.get()), count, 0);
in GetUintTableConfig() 176 attr.vec.assign(array.get(), array.get() + count);
in GetUintTableConfig()
|
/drivers/interface/camera/metadata/include/ |
H A D | metadata_utils.h | 70 uint8_t array[typeLen] = {0}; in ReadData() local 73 array[j] = cameraAbility.at(index++); in ReadData() 75 ptr = reinterpret_cast<T *>(array); in ReadData()
|
/drivers/peripheral/camera/interfaces/hdi_ipc/utils/include/ |
H A D | utils_data_stub.h | 69 uint8_t array[typeLen] = {0}; in ReadData() local 72 array[j] = cameraAbility.at(index++); in ReadData() 74 ptr = (T *)array; in ReadData()
|
/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | codec_omx_core.cpp | 122 char array[roleCount][OMX_MAX_STRINGNAME_SIZE]; in GetRolesOfComponent() local 124 int32_t ret = memset_s(array[i], OMX_MAX_STRINGNAME_SIZE, 0, OMX_MAX_STRINGNAME_SIZE); in GetRolesOfComponent() 126 CODEC_LOGE("memset_s array err [%{public}d].", ret); in GetRolesOfComponent() 129 role[i] = array[i]; in GetRolesOfComponent()
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
H A D | codec_omx_core.cpp | 124 char array[roleCount][OMX_MAX_STRINGNAME_SIZE]; in GetRolesOfComponent() local 126 int32_t ret = memset_s(array[i], OMX_MAX_STRINGNAME_SIZE, 0, OMX_MAX_STRINGNAME_SIZE); in GetRolesOfComponent() 128 CODEC_LOGE("memset_s array err [%{public}d].", ret); in GetRolesOfComponent() 131 role[i] = array[i]; in GetRolesOfComponent()
|
/drivers/peripheral/user_auth/test/unittest/database/ |
H A D | idm_file_manager_test.cpp | 91 uint8_t array[objectSize2]; in HWTEST_F() local 92 EXPECT_EQ(StreamWrite(parcel, static_cast<void *>(&array), objectSize2), RESULT_SUCCESS); in HWTEST_F() 101 uint8_t array[objectSize]; in HWTEST_F() local 102 EXPECT_EQ(StreamWrite(parcel, static_cast<void *>(&array), objectSize), RESULT_SUCCESS); in HWTEST_F()
|
/drivers/peripheral/wlan/chip/hdi_service/ |
H A D | iface_tool.h | 19 #include <array>
|
/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | text_gen.cpp | 286 auto array = ConfigArray::CastFrom(value); in GenTermDefinition() local 288 ofs_ << TAB << "const " << TypeToStr(array->ArrayType()) << "* " << term->Name() << ";\n"; in GenTermDefinition() 291 ofs_ << TAB << TypeToStr(array->ArrayType()) << " " << term->Name() << "[" << std::dec in GenTermDefinition() 292 << array->ArraySize() << "];\n"; in GenTermDefinition() 558 auto array = ConfigArray::CastFrom(object->Child()); in PrintArrayImplInSubClass() local 562 ofs_ << Indent(depth) << '.' << object->Name() << "Size = " << std::dec << array->ArraySize() << ",\n"; in PrintArrayImplInSubClass() 667 auto array = ConfigArray::CastFrom(object->Child()); 668 ofs_ << "static const " << TypeToStr(array->ArrayType()) << ' ' << arrayName << '[' << std::dec 669 << array->ArraySize() << "] = {\n"
|
H A D | parser.cpp | 394 auto array = std::make_shared<ConfigArray>(current_); in ParseArray() local 399 array->AddChild(std::make_shared<AstObject>("", PARSEROP_STRING, current_.strval, current_)); in ParseArray() 401 array->AddChild(std::make_shared<AstObject>("", PARSEROP_UINT64, current_.numval, current_)); in ParseArray() 403 Logger().Error() << lexer_ << "syntax error, except STRING or NUMBER in array"; in ParseArray() 410 Logger().Error() << lexer_ << "syntax error, not allow mix type array"; in ParseArray() 428 Logger().Error() << lexer_ << "syntax error, miss ']' at end of array"; in ParseArray() 432 return array; in ParseArray()
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | parser.js | 222 let array = new ConfigArray(this.current_); 227 array.addChild(new AstObject('', ObjectType.PARSEROP_STRING, this.current_.strval, this.current_)); 229 array.addChild(new AstObject('', ObjectType.PARSEROP_UINT64, 232 this.dealWithError(this.lexer_ + 'syntax error, except STRING or NUMBER in array'); 239 this.dealWithError(this.lexer_ + 'syntax error, not allow mix type array'); 253 this.dealWithError(this.lexer_ + "syntax error, miss ']' at end of array"); 256 return array;
|
H A D | ast.js | 684 constructor(array) { 685 if (Object.prototype.toString.call(array) === '[object Object]') { 686 super('', ObjectType.PARSEROP_ARRAY, 0, array); // bindToken 689 if (array.type === undefined) { 690 let child = array.child_; 695 this.arraySize_ = array.arraySize_; 696 this.arrayType_ = array.arrayType_; 734 let array = ConfigArray.castFrom(src); 736 let t = array.child_;
|
/drivers/peripheral/power/interfaces/hdi_service/src/ |
H A D | running_lock_counter.h | 56 const std::array<std::string, RUNNINGLOCK_CHANGED_BUTT> runninglockNotifyStr_ {
|
/drivers/peripheral/codec/hal/include/ |
H A D | codec_config_parser.h | 94 int32_t *array; member
|