Home
last modified time | relevance | path

Searched refs:AttributeKey (Results 1 – 25 of 70) sorted by relevance

123

/ohos5.0/base/useriam/user_auth_framework/interfaces/inner_api/
H A Dattributes.h39 enum AttributeKey : uint32_t { enum
256 bool SetBoolValue(AttributeKey key, bool value);
265 bool SetUint64Value(AttributeKey key, uint64_t value);
274 bool SetUint32Value(AttributeKey key, uint32_t value);
283 bool SetUint16Value(AttributeKey key, uint16_t value);
292 bool SetUint8Value(AttributeKey key, uint8_t value);
301 bool SetInt32Value(AttributeKey key, int32_t value);
310 bool SetInt64Value(AttributeKey key, int64_t value);
383 bool GetBoolValue(AttributeKey key, bool &value) const;
419 bool GetUint8Value(AttributeKey key, uint8_t &value) const;
[all …]
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/common/attributes/src/
H A Dattributes.cpp42 bool SetBoolValue(AttributeKey key, bool value);
43 bool SetUint64Value(AttributeKey key, uint64_t value);
44 bool SetUint32Value(AttributeKey key, uint32_t value);
45 bool SetUint16Value(AttributeKey key, uint16_t value);
46 bool SetUint8Value(AttributeKey key, uint8_t value);
47 bool SetInt32Value(AttributeKey key, int32_t value);
48 bool SetInt64Value(AttributeKey key, int64_t value);
57 bool GetBoolValue(AttributeKey key, bool &value) const;
72 std::vector<AttributeKey> GetKeys() const;
106 std::map<AttributeKey, std::vector<uint8_t>> map_;
[all …]
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/common/inc/
H A Dattribute.h63 } 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 key, const Uint8Array data);
[all …]
/ohos5.0/drivers/peripheral/user_auth/hdi_service/utils/inc/
H A Dattribute.h99 } 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 key, Uint64Array *retDa…
[all …]
/ohos5.0/base/account/os_account/interfaces/kits/napi/account_iam/src/
H A Dnapi_account_iam_common.cpp284 Attributes::AttributeKey &out) in ConvertGetPropertyTypeToAttributeKey()
313 Attributes::AttributeKey key; in ParseGetPropKeys()
384 case Attributes::AttributeKey::ATTR_PIN_SUB_TYPE: { in GeneratePropertyJs()
388 case Attributes::AttributeKey::ATTR_REMAIN_TIMES: { in GeneratePropertyJs()
392 case Attributes::AttributeKey::ATTR_FREEZING_TIME: { in GeneratePropertyJs()
396 case Attributes::AttributeKey::ATTR_ENROLL_PROGRESS: { in GeneratePropertyJs()
403 case Attributes::AttributeKey::ATTR_SENSOR_INFO: { in GeneratePropertyJs()
693 case Attributes::AttributeKey::ATTR_PIN_SUB_TYPE: { in GetExecutorPropertys()
699 case Attributes::AttributeKey::ATTR_REMAIN_TIMES: { in GetExecutorPropertys()
705 case Attributes::AttributeKey::ATTR_FREEZING_TIME: { in GetExecutorPropertys()
[all …]
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/common/src/
H A Dattribute.c29 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()
435 ResultCode SetAttributeUint8Array(Attribute *attributePub, AttributeKey key, const Uint8Array data) in SetAttributeUint8Array()
[all …]
/ohos5.0/drivers/peripheral/user_auth/hdi_service/utils/src/
H A Dattribute.c33 AttributeKey g_attributeKeyArray[] = {
115 IAM_STATIC ResultCode GetAttributeIndex(AttributeKey key, uint32_t *index) in GetAttributeIndex()
337 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *value) in GetAttributeUint32()
352 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value) in SetAttributeUint32()
364 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue) in GetAttributeInt32()
372 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value) in SetAttributeInt32()
379 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue) in GetAttributeUint64()
394 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value) in SetAttributeUint64()
435 ResultCode SetAttributeUint8Array(Attribute *attributePub, AttributeKey key, const Uint8Array data) in SetAttributeUint8Array()
456 ResultCode GetAttributeUint64Array(const Attribute *attribute, AttributeKey key, Uint64Array *retDa… in GetAttributeUint64Array()
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/src/account_iam/
H A Daccount_iam_callback.cpp131 if (!extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_USER_ID, authedAccountId)) { in OnResult()
161 extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, remainTimes); in OnResult()
162 extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_FREEZING_TIME, freezingTime); in OnResult()
164 errInfo.SetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, remainTimes); in OnResult()
165 errInfo.SetInt32Value(Attributes::AttributeKey::ATTR_FREEZING_TIME, freezingTime); in OnResult()
235 extraInfo.GetUint64Value(Attributes::AttributeKey::ATTR_CREDENTIAL_ID, credentialId); in OnResult()
239 extraInfo.GetUint64Value(Attributes::AttributeKey::ATTR_SEC_USER_ID, secureUid); in OnResult()
329 extraInfo.GetUint64Value(Attributes::AttributeKey::ATTR_OLD_CREDENTIAL_ID, oldCredentialId); in OnResult()
410 extraInfo.GetUint64Value(Attributes::AttributeKey::ATTR_SEC_USER_ID, secureUid); in OnResult()
420 extraInfo.GetUint64Value(Attributes::AttributeKey::ATTR_CREDENTIAL_ID, credentialId); in OnResult()
[all …]
/ohos5.0/base/useriam/user_auth_framework/services/ipc/inc/
H A Duser_auth_service.h46 const std::vector<Attributes::AttributeKey> &keys,
48 void GetPropertyById(uint64_t credentialId, const std::vector<Attributes::AttributeKey> &keys,
109 void FillGetPropertyKeys(AuthType authType, const std::vector<Attributes::AttributeKey> &keys,
111 …void FillGetPropertyValue(AuthType authType, const std::vector<Attributes::AttributeKey> &keys, At…
120 void GetPropertyInner(AuthType authType, const std::vector<Attributes::AttributeKey> &keys,
/ohos5.0/base/useriam/pin_auth/services/modules/executors/inc/
H A Dpin_auth_all_in_one_hdi.h52 …const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) overrid…
56 …UserAuth::ResultCode ConvertAttributeKeyToPropertyType(const UserAuth::Attributes::AttributeKey in…
58 const std::vector<UserAuth::Attributes::AttributeKey> inVector,
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/src/
H A Duser_auth_service_test_part01.cpp45 …std::vector<Attributes::AttributeKey> testKeys = {Attributes::ATTR_PIN_SUB_TYPE, Attributes::ATTR_…
63 …std::vector<Attributes::AttributeKey> testKeys = {Attributes::ATTR_PIN_SUB_TYPE, Attributes::ATTR_…
109 …std::vector<Attributes::AttributeKey> testKeys = {Attributes::ATTR_REMAIN_TIMES, Attributes::ATTR_…
145 …std::vector<Attributes::AttributeKey> testKeys = {Attributes::ATTR_PIN_SUB_TYPE, Attributes::ATTR_…
190 …std::vector<Attributes::AttributeKey> testKeys = {Attributes::ATTR_PIN_SUB_TYPE, Attributes::ATTR_…
235 std::vector<Attributes::AttributeKey> testKeys = {
/ohos5.0/base/useriam/user_auth_framework/test/unittest/executors/
H A Dexecutor_unit_test.cpp467 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, ENROLL);
513 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, ENROLL);
541 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, ENROLL);
567 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, ENROLL);
568 commandAttrs->SetUint64Value(Attributes::AttributeKey::ATTR_CALLER_UID, testCallUid);
613 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, AUTH);
644 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, AUTH);
670 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, AUTH);
698 commandAttrs->SetUint32Value(Attributes::AttributeKey::ATTR_SCHEDULE_MODE, AUTH);
895 const std::vector<Attributes::AttributeKey> &keys, Property &property) { in __anon0f00ab691802()
[all …]
/ohos5.0/base/account/os_account/frameworks/account_iam/src/
H A Daccount_iam_callback_service.cpp118 attr.SetUint8ArrayValue(Attributes::AttributeKey::ATTR_SIGNATURE, (*authResult).token); in OnResult()
119 …attr.SetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, (*authResult).authStatusInfo.remai… in OnResult()
120 …attr.SetInt32Value(Attributes::AttributeKey::ATTR_FREEZING_TIME, (*authResult).authStatusInfo.free… in OnResult()
/ohos5.0/base/useriam/face_auth/services/inc/
H A Dface_auth_all_in_one_executor_hdi.h56 …const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) overrid…
70 …UserAuth::ResultCode ConvertAttributeKeyToPropertyType(const UserAuth::Attributes::AttributeKey in…
72 … const std::vector<UserAuth::Attributes::AttributeKey> inVector, std::vector<int32_t> &outVector);
/ohos5.0/base/useriam/fingerprint_auth/services/inc/
H A Dfingerprint_auth_all_in_one_executor_hdi.h56 …const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) overrid…
70 …UserAuth::ResultCode ConvertAttributeKeyToPropertyType(const UserAuth::Attributes::AttributeKey in…
72 … const std::vector<UserAuth::Attributes::AttributeKey> inVector, std::vector<int32_t> &outVector);
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/main/inc/
H A Dexecutor_func_common.h74 int32_t SetBufferToAttribute(Attribute *attribute, AttributeKey key, Buffer *buf);
75 Buffer *GetBufferFromAttribute(const Attribute *attribute, AttributeKey key, uint32_t size);
/ohos5.0/base/account/os_account/test/fuzztest/iamaccount_stub/getpropertystub_fuzzer/
H A Dgetpropertystub_fuzzer.cpp49 std::vector<Attributes::AttributeKey> keys = { in GetPropertyStubFuzzTest()
50 fuzzData.GenerateRandomEnmu(Attributes::AttributeKey::ATTR_AUTH_INTENTION) in GetPropertyStubFuzzTest()
/ohos5.0/base/account/os_account/interfaces/kits/napi/account_iam/include/
H A Dnapi_account_iam_common.h176 std::vector<Attributes::AttributeKey> keys {};
263 …, napi_ref callbackRef, napi_deferred deferred, const std::vector<Attributes::AttributeKey> &keys);
275 std::vector<Attributes::AttributeKey> keys_ {};
326 …s ParseGetPropKeys(napi_env env, napi_value napiKeys, std::vector<Attributes::AttributeKey> &keys);
332 napi_status ConvertGetPropertyTypeToAttributeKey(GetPropertyType in, Attributes::AttributeKey &out);
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
H A Duser_auth_interface.h42 …const std::vector<Attributes::AttributeKey> &keys, sptr<GetExecutorPropertyCallbackInterface> &cal…
44 …virtual void GetPropertyById(uint64_t credentialId, const std::vector<Attributes::AttributeKey> &k…
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/mocks/
H A Dmock_user_auth_service.h38 void(int32_t userId, AuthType authType, const std::vector<Attributes::AttributeKey> &keys,
41 …OD3(GetPropertyById, void(uint64_t credentialId, const std::vector<Attributes::AttributeKey> &keys,
/ohos5.0/base/useriam/pin_auth/services/modules/executors/src/
H A Dpin_auth_all_in_one_hdi.cpp234 const std::vector<UserAuth::Attributes::AttributeKey> &keys, UserAuth::Property &property) in GetProperty()
262 const std::vector<UserAuth::Attributes::AttributeKey> inItems, std::vector<int32_t> &outItems) in ConvertAttributeKeyVectorToPropertyType()
279 … PinAuthAllInOneHdi::ConvertAttributeKeyToPropertyType(const UserAuth::Attributes::AttributeKey in, in ConvertAttributeKeyToPropertyType()
282 static const std::map<UserAuth::Attributes::AttributeKey, GetPropertyType> data = { in ConvertAttributeKeyToPropertyType()
/ohos5.0/base/account/os_account/frameworks/account_iam/test/unittest/src/
H A Daccount_iam_mgr_proxy_test.cpp98 std::vector<Attributes::AttributeKey> keys { Attributes::AttributeKey::ATTR_PIN_SUB_TYPE };
/ohos5.0/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
H A Duser_auth_service_fuzzer.cpp182 std::vector<Attributes::AttributeKey> keys; in FuzzGetProperty()
186 keys.emplace_back(static_cast<Attributes::AttributeKey>(parcel.ReadInt32())); in FuzzGetProperty()
492 std::vector<Attributes::AttributeKey> keys = {Attributes::ATTR_NEXT_FAIL_LOCKOUT_DURATION}; in FuzzFillGetPropertyValue()
504 std::vector<Attributes::AttributeKey> keys = {Attributes::ATTR_NEXT_FAIL_LOCKOUT_DURATION}; in FuzzFillGetPropertyKeys()
552 std::vector<Attributes::AttributeKey> keys; in FuzzGetPropertyById()
556 keys.emplace_back(static_cast<Attributes::AttributeKey>(parcel.ReadInt32())); in FuzzGetPropertyById()
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/ipc/inc/
H A Duser_auth_proxy.h35 const std::vector<Attributes::AttributeKey> &keys,
37 void GetPropertyById(uint64_t credentialId, const std::vector<Attributes::AttributeKey> &keys,
/ohos5.0/base/useriam/user_auth_framework/services/ipc/src/
H A Duser_auth_service.cpp86 bool IsTemplateIdListRequired(const std::vector<Attributes::AttributeKey> &keys) in IsTemplateIdListRequired()
89 if (key == Attributes::AttributeKey::ATTR_PIN_SUB_TYPE || in IsTemplateIdListRequired()
90 key == Attributes::AttributeKey::ATTR_REMAIN_TIMES || in IsTemplateIdListRequired()
91 key == Attributes::AttributeKey::ATTR_FREEZING_TIME || in IsTemplateIdListRequired()
92 key == Attributes::AttributeKey::ATTR_NEXT_FAIL_LOCKOUT_DURATION) { in IsTemplateIdListRequired()
249 …hService::FillGetPropertyKeys(AuthType authType, const std::vector<Attributes::AttributeKey> &keys, in FillGetPropertyKeys()
261 …Service::FillGetPropertyValue(AuthType authType, const std::vector<Attributes::AttributeKey> &keys, in FillGetPropertyValue()
293 …AuthService::GetPropertyInner(AuthType authType, const std::vector<Attributes::AttributeKey> &keys, in GetPropertyInner()
321 …const std::vector<Attributes::AttributeKey> &keys, sptr<GetExecutorPropertyCallbackInterface> &cal… in GetProperty()
353 …hService::GetPropertyById(uint64_t credentialId, const std::vector<Attributes::AttributeKey> &keys, in GetPropertyById()

123