/drivers/peripheral/pin_auth/hdi_service/common/inc/ |
H A D | attribute.h | 63 } AttributeKey;
typedef 73 ResultCode GetAttributeLength(const Attribute *attribute, AttributeKey key, uint32_t *len);
74 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *retValue);
75 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value);
76 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue);
77 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value);
78 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue);
79 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value);
80 ResultCode GetAttributeUint8Array(const Attribute *attribute, AttributeKey key, Uint8Array *retData);
81 ResultCode SetAttributeUint8Array(Attribute *attribute, AttributeKey ke [all...] |
/drivers/peripheral/user_auth/hdi_service/utils/inc/ |
H A D | attribute.h | 99 } AttributeKey;
typedef 113 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *retValue);
114 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value);
115 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue);
116 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value);
117 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue);
118 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value);
119 ResultCode GetAttributeUint8Array(const Attribute *attribute, AttributeKey key, Uint8Array *retData);
120 ResultCode SetAttributeUint8Array(Attribute *attribute, AttributeKey key, const Uint8Array data);
121 ResultCode GetAttributeUint64Array(const Attribute *attribute, AttributeKey ke [all...] |
/drivers/peripheral/pin_auth/hdi_service/common/src/ |
H A D | attribute.c | 29 AttributeKey g_attributeKeyArray[] = {
96 IAM_STATIC ResultCode GetAttributeIndex(AttributeKey key, uint32_t *index)
in GetAttributeIndex() 318 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *value)
in GetAttributeUint32() 333 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value)
in SetAttributeUint32() 345 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue)
in GetAttributeInt32() 353 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value)
in SetAttributeInt32() 360 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue)
in GetAttributeUint64() 375 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value)
in SetAttributeUint64() 387 ResultCode GetAttributeLength(const Attribute *attribute, AttributeKey key, uint32_t *len)
in GetAttributeLength() 405 ResultCode GetAttributeUint8Array(const Attribute *attributePub, AttributeKey ke [all...] |
/drivers/peripheral/user_auth/hdi_service/utils/src/ |
H A D | attribute.c | 33 AttributeKey g_attributeKeyArray[] = {
115 IAM_STATIC ResultCode GetAttributeIndex(AttributeKey key, uint32_t *index)
in GetAttributeIndex() 336 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *value)
in GetAttributeUint32() 351 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value)
in SetAttributeUint32() 363 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue)
in GetAttributeInt32() 371 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value)
in SetAttributeInt32() 378 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue)
in GetAttributeUint64() 393 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value)
in SetAttributeUint64() 405 ResultCode GetAttributeUint8Array(const Attribute *attributePub, AttributeKey key, Uint8Array *retData)
in GetAttributeUint8Array() 434 ResultCode SetAttributeUint8Array(Attribute *attributePub, AttributeKey ke [all...] |
/drivers/peripheral/pin_auth/hdi_service/main/inc/ |
H A D | executor_func_common.h | 74 int32_t SetBufferToAttribute(Attribute *attribute, AttributeKey key, Buffer *buf);
75 Buffer *GetBufferFromAttribute(const Attribute *attribute, AttributeKey key, uint32_t size);
|
/drivers/peripheral/pin_auth/hdi_service/main/src/ |
H A D | executor_func_common.c | 28 int32_t SetBufferToAttribute(Attribute *attribute, AttributeKey key, Buffer *buf) in SetBufferToAttribute() 41 static Buffer *GetBufferFromAttributeBase(const Attribute *attribute, AttributeKey key, bool checkSize, uint32_t size) in GetBufferFromAttributeBase() 71 Buffer *GetBufferFromAttribute(const Attribute *attribute, AttributeKey key, uint32_t size) in GetBufferFromAttribute()
|
/drivers/peripheral/user_auth/test/unittest/attribute_test/ |
H A D | attribute_test.cpp | 251 ASSERT_EQ(GetAttributeUint8Array(attribute, static_cast<AttributeKey>(invalidKey), &value), RESULT_GENERAL_ERROR); in HWTEST_F() 273 ASSERT_EQ(SetAttributeUint8Array(attribute, static_cast<AttributeKey>(invalidKey), data), RESULT_GENERAL_ERROR); in HWTEST_F() 358 ASSERT_EQ(GetAttributeUint64Array(attribute, static_cast<AttributeKey>(invalidKey), &value), in HWTEST_F() 485 const std::vector<AttributeKey> keys = {ATTR_RESULT_CODE, ATTR_SIGNATURE, ATTR_DATA, in HWTEST_F()
|