| /drivers/peripheral/user_auth/hdi_service/common/src/ |
| 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 39 IF_TRUE_LOGE_AND_RETURN(array == NULL); in DestroyUint64Array() [all …]
|
| D | attribute.c | 62 #define ARRAY_LENGTH(array) (uint32_t)(sizeof(array) / sizeof((array)[0])) argument 89 IAM_STATIC void Ntohl64Array(Uint64Array *array) in Ntohl64Array() argument 91 for (uint32_t i = 0; i < array->len; i++) { in Ntohl64Array() 92 array->data[i] = Ntohl64(array->data[i]); in Ntohl64Array() 96 IAM_STATIC void Htonl64Array(Uint64Array *array) in Htonl64Array() argument 98 for (uint32_t i = 0; i < array->len; i++) { in Htonl64Array() 99 array->data[i] = Htonl64(array->data[i]); in Htonl64Array() 262 Uint8Array *array = attribute->values[i]; in GetAttributeSerializedMsg() local 263 if (array == NULL) { in GetAttributeSerializedMsg() 270 ResultCode writeLengthResult = WriteUInt32ToMsg(retMsg, &writeIndex, array->len); in GetAttributeSerializedMsg() [all …]
|
| /drivers/peripheral/user_auth/hdi_service/common/inc/ |
| D | c_array.h | 27 #define IS_ARRAY_NULL(array) ((array).data == NULL || (array).len == 0) argument 28 #define IS_ARRAY_VALID(array) ((array).data != NULL || ((array).data == NULL && (array).len == 0)) argument 40 void DestroyUint8Array(Uint8Array **array); 41 void DestroyUint64Array(Uint64Array **array);
|
| /drivers/hdf_core/framework/model/display/driver/lcdkit/ |
| 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() 39 static int32_t ParseDsiCmd(struct PanelCmd *cmd, int32_t count, uint8_t *array, int32_t len) in ParseDsiCmd() argument 44 OsalMemFree(array); in ParseDsiCmd() 52 uint8_t *tmpArray = array; in ParseDsiCmd() 64 OsalMemFree(array); in ParseDsiCmd() 77 OsalMemFree(array); in ParseDsiCmd() 90 OsalMemFree(array); in ParseDsiCmd() 98 uint8_t *array = (uint8_t *)OsalMemCalloc(len * sizeof(uint8_t)); in ParseCmdConfig() local [all …]
|
| /drivers/peripheral/user_auth/test/unittest/attribute_test/ |
| D | attribute_test.cpp | 218 std::vector<uint8_t> array; variable 219 array.reserve(SIZE); 221 array.push_back(i); 223 Uint8Array data = { array.data(), SIZE }; 229 ASSERT_THAT(out, ElementsAreArray(array)); 244 std::vector<uint8_t> array(SIZE); 245 value = { array.data(), 0 }; 248 value = { array.data(), static_cast<uint32_t>(array.size()) }; 266 std::vector<uint8_t> array = {12, 14, 16, 15, 34, 123, 154, 48, 154, 102, 188}; variable 267 Uint8Array data = { nullptr, static_cast<uint32_t>(array.size()) }; [all …]
|
| /drivers/peripheral/user_auth/test/unittest/co_auth/ |
| D | co_auth_test.cpp | 319 Uint64Array array = {}; variable 320 array.len = 1; 321 array.data = nullptr; 322 param.templateIds = &array; 325 array.data = &temp; 332 Uint64Array array = {}; variable 333 array.len = 200; 334 array.data = nullptr; 335 EXPECT_FALSE(IsTemplateArraysValid(&array)); 336 array.len = 1; [all …]
|
| D | executor_message_test.cpp | 169 uint8_t array[dataLen] = { 1, 2, 3, 4, 5, 6 }; variable 170 Uint8Array dataTlv = { &array[0], dataLen }; 373 Uint64Array array = {}; variable 374 array.len = 1; 375 array.data = nullptr; 376 EXPECT_EQ(CreateExecutorMsg(1, 0, &array), nullptr); 395 Uint64Array array = {}; variable 396 EXPECT_EQ(GetExecutorTemplateList(&info, &array), RESULT_UNKNOWN); 410 EXPECT_EQ(GetExecutorTemplateList(&info, &array), RESULT_REACH_LIMIT); 412 EXPECT_EQ(GetExecutorTemplateList(&info, &array), RESULT_SUCCESS);
|
| /drivers/peripheral/codec/image/config/ |
| D | codec_image_config.cpp | 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()), coun… in GetUintTableConfig() 176 attr.vec.assign(array.get(), array.get() + count); in GetUintTableConfig()
|
| /drivers/interface/camera/metadata/include/ |
| D | metadata_utils.h | 67 uint8_t array[typeLen] = {0}; in ReadData() local 70 array[j] = cameraAbility.at(index++); in ReadData() 72 ptr = reinterpret_cast<T *>(array); in ReadData()
|
| /drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
| D | codec_omx_core.cpp | 116 char array[roleCount][OMX_MAX_STRINGNAME_SIZE]; in GetRolesOfComponent() local 118 int32_t ret = memset_s(array[i], OMX_MAX_STRINGNAME_SIZE, 0, OMX_MAX_STRINGNAME_SIZE); in GetRolesOfComponent() 123 role[i] = array[i]; in GetRolesOfComponent()
|
| /drivers/peripheral/camera/interfaces/hdi_ipc/utils/include/ |
| 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/ |
| D | codec_omx_core.cpp | 114 char array[roleCount][OMX_MAX_STRINGNAME_SIZE]; in GetRolesOfComponent() local 116 int32_t ret = memset_s(array[i], OMX_MAX_STRINGNAME_SIZE, 0, OMX_MAX_STRINGNAME_SIZE); in GetRolesOfComponent() 121 role[i] = array[i]; in GetRolesOfComponent()
|
| /drivers/peripheral/user_auth/test/unittest/database/ |
| D | idm_file_manager_test.cpp | 90 uint8_t array[objectSize]; variable 91 EXPECT_EQ(StreamWrite(parcel, static_cast<void *>(&array), objectSize), RESULT_SUCCESS); 100 uint8_t array[objectSize]; variable 101 EXPECT_EQ(StreamWrite(parcel, static_cast<void *>(&array), objectSize), RESULT_SUCCESS);
|
| /drivers/hdf_core/framework/tools/hc-gen/test/21_mix_type_array_ei/ |
| D | golden_text_compile_result.txt | 3 [Error] ./21_mix_type_array_ei/case.hcs:3:22: syntax error, not allow mix type array
|
| D | golden_binary_compile_result.txt | 3 [Error] ./21_mix_type_array_ei/case.hcs:3:22: syntax error, not allow mix type array
|
| /drivers/hdf_core/framework/tools/hc-gen/test/20_broken_array_ei/ |
| D | golden_binary_compile_result.txt | 3 [Error] ./20_broken_array_ei/case.hcs:5:1: syntax error, except STRING or NUMBER in array
|
| D | golden_text_compile_result.txt | 3 [Error] ./20_broken_array_ei/case.hcs:5:1: syntax error, except STRING or NUMBER in array
|
| /drivers/interface/secure_element/v1_0/ |
| D | ISecureElementInterface.idl | 42 …* @return response The ATR or empty array SHALL be returned if the ATR for this SE is not availabl… 59 * @param aid The AID of the applet to be selected on this channel, as a byte array. 72 * @param aid The AID of the applet to be selected on this channel, as a byte array. 92 * @param command The APDU command to be transmitted, as a byte array. 93 * @param response The response received, as a byte array.
|
| /drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
| D | parser.js | 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');
|
| D | ast.js | 684 constructor(array) { argument 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/user_auth/hdi_service/coauth/src/ |
| D | executor_message.c | 288 Uint8Array array = { Malloc(ROOT_SECRET_LEN), ROOT_SECRET_LEN }; in GetRootSecretFromAttribute() local 289 IF_TRUE_LOGE_AND_RETURN(IS_ARRAY_NULL(array)); in GetRootSecretFromAttribute() 290 ResultCode result = GetAttributeUint8Array(attribute, AUTH_ROOT_SECRET, &(array)); in GetRootSecretFromAttribute() 295 if (array.len != ROOT_SECRET_LEN) { in GetRootSecretFromAttribute() 299 resultInfo->rootSecret = CreateBufferByData(array.data, array.len); in GetRootSecretFromAttribute() 307 (void)memset_s(array.data, ROOT_SECRET_LEN, 0, ROOT_SECRET_LEN); in GetRootSecretFromAttribute() 308 Free(array.data); in GetRootSecretFromAttribute()
|
| /drivers/hdf_core/framework/tools/hc-gen/src/ |
| 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() << "… in PrintArrayImplInSubClass() 667 auto array = ConfigArray::CastFrom(object->Child()); in ArrayVariablesDeclareGen() local 668 ofs_ << "static const " << TypeToStr(array->ArrayType()) << ' ' << arrayName << '[' << std::dec in ArrayVariablesDeclareGen() 669 << array->ArraySize() << "] = {\n" in ArrayVariablesDeclareGen()
|
| D | ast.cpp | 835 ConfigArray::ConfigArray(const ConfigArray &array) : ConfigArray() in ConfigArray() argument 837 auto child = array.child_; in ConfigArray() 842 arraySize_ = array.arraySize_; in ConfigArray() 843 arrayType_ = array.arrayType_; in ConfigArray() 851 ConfigArray &ConfigArray::operator=(const ConfigArray &array) in operator =() argument 853 if (this != &array) { in operator =() 854 arrayType_ = array.arrayType_; in operator =() 855 arraySize_ = array.arraySize_; in operator =() 890 auto array = ConfigArray::CastFrom(src); in Copy() local 892 auto t = array->child_; in Copy()
|
| /drivers/peripheral/codec/hdi_service/codec_service_stub/ |
| D | codec_config_parser.h | 85 int32_t *array; member
|
| /drivers/peripheral/codec/hal/include/ |
| D | codec_config_parser.h | 94 int32_t *array; member
|