/drivers/peripheral/user_auth/hdi_service/common/inc/ |
D | linked_list.h | 41 typedef struct LinkedList { struct 45 uint32_t (*getSize)(struct LinkedList *list); argument 46 ResultCode (*insert)(struct LinkedList *list, void *data); argument 47 …ResultCode (*remove)(struct LinkedList *list, void *condition, MatchFunc matchFunc, bool destroyNo… argument 48 LinkedListIterator *(*createIterator)(struct LinkedList *list); argument 50 } LinkedList; typedef 52 LinkedList *CreateLinkedList(DestroyDataFunc destroyDataFunc); 53 void DestroyLinkedList(LinkedList *list);
|
/drivers/peripheral/user_auth/hdi_service/common/src/ |
D | linked_list.c | 29 IAM_STATIC ResultCode InsertNode(LinkedList *list, void *data) in InsertNode() 51 IAM_STATIC ResultCode RemoveNode(LinkedList *list, void *condition, MatchFunc matchFunc, bool destr… in RemoveNode() 89 IAM_STATIC uint32_t GetSize(LinkedList *list) in GetSize() 118 IAM_STATIC LinkedListIterator *CreateIterator(struct LinkedList *list) in CreateIterator() 144 LinkedList *CreateLinkedList(DestroyDataFunc destroyDataFunc) in CreateLinkedList() 150 LinkedList *list = Malloc(sizeof(LinkedList)); in CreateLinkedList() 166 IAM_STATIC void DestroyLinkedListNode(const LinkedList *list, LinkedListNode *node) in DestroyLinkedListNode() 178 void DestroyLinkedList(LinkedList *list) in DestroyLinkedList()
|
/drivers/peripheral/user_auth/hdi_service/database/inc/ |
D | idm_file_manager.h | 28 LinkedList *LoadFileInfo(void); 29 ResultCode UpdateFileInfo(LinkedList *userInfoList);
|
D | idm_common.h | 47 LinkedList *credentialInfoList; 48 LinkedList *enrolledInfoList;
|
D | idm_database.h | 56 ResultCode DeleteUserInfo(int32_t userId, LinkedList **creds); 58 LinkedList *QueryCredentialLimit(const CredentialCondition *limit);
|
/drivers/peripheral/user_auth/hdi_service/database/src/ |
D | idm_database.c | 36 IAM_STATIC LinkedList *g_userInfoList = NULL; 41 typedef bool (*DuplicateCheckFunc)(LinkedList *collection, uint64_t value); 46 IAM_STATIC CredentialInfoHal *QueryCredentialById(uint64_t credentialId, LinkedList *credentialList… 47 IAM_STATIC CredentialInfoHal *QueryCredentialByAuthType(uint32_t authType, LinkedList *credentialLi… 49 IAM_STATIC ResultCode GenerateDeduplicateUint64(LinkedList *collection, uint64_t *destValue, Duplic… 162 ResultCode DeleteUserInfo(int32_t userId, LinkedList **creds) in DeleteUserInfo() 228 LinkedList *enrolledInfoList = userInfo->enrolledInfoList; in GetAllEnrolledInfoFromUser() 263 IAM_STATIC bool IsSecureUidDuplicate(LinkedList *userInfoList, uint64_t secureUid) in IsSecureUidDuplicate() 309 IAM_STATIC bool IsCredentialIdDuplicate(LinkedList *userInfoList, uint64_t credentialId) in IsCredentialIdDuplicate() 314 LinkedList *credList = QueryCredentialLimit(&condition); in IsCredentialIdDuplicate() [all …]
|
D | idm_file_manager.c | 99 IAM_STATIC ResultCode StreamWriteEnrolledInfo(Buffer *parcel, LinkedList *enrolledList) in StreamWriteEnrolledInfo() 126 IAM_STATIC ResultCode StreamWriteCredentialList(Buffer *parcel, LinkedList *credentialList) in StreamWriteCredentialList() 183 IAM_STATIC ResultCode WriteUserInfo(LinkedList *userInfoList, Buffer *parcel) in WriteUserInfo() 201 ResultCode UpdateFileInfo(LinkedList *userInfoList) in UpdateFileInfo() 265 IAM_STATIC ResultCode StreamReadCredentialList(Buffer *parcel, uint32_t *index, LinkedList *credent… in StreamReadCredentialList() 303 IAM_STATIC ResultCode StreamReadEnrolledList(Buffer *parcel, uint32_t *index, LinkedList *enrolledL… in StreamReadEnrolledList() 393 IAM_STATIC bool StreamReadFileInfo(Buffer *parcel, LinkedList *userInfoList) in StreamReadFileInfo() 434 LinkedList *LoadFileInfo(void) in LoadFileInfo() 452 LinkedList *userInfoList = CreateLinkedList(DestroyUserInfoNode); in LoadFileInfo()
|
/drivers/peripheral/user_auth/test/unittest/database/ |
D | idm_file_manager_test.cpp | 25 extern ResultCode StreamWriteEnrolledInfo(Buffer *parcel, LinkedList *enrolledList); 26 extern ResultCode StreamWriteCredentialList(Buffer *parcel, LinkedList *credentialList); 29 …extern ResultCode StreamReadCredentialList(Buffer *parcel, uint32_t *index, LinkedList *credential… 30 …extern ResultCode StreamReadEnrolledList(Buffer *parcel, uint32_t *index, LinkedList *enrolledList… 110 LinkedList *enrolledList = CreateLinkedList(DestroyEnrolledNode); 124 LinkedList *credentialList = CreateLinkedList(DestroyCredentialNode);
|
D | idm_database_test.cpp | 20 typedef bool (*DuplicateCheckFunc)(LinkedList *collection, uint64_t value); 23 extern LinkedList *g_userInfoList; 28 extern bool IsSecureUidDuplicate(LinkedList *userInfoList, uint64_t secureUid); 31 extern bool IsCredentialIdDuplicate(LinkedList *userInfoList, uint64_t credentialId); 32 extern bool IsEnrolledIdDuplicate(LinkedList *enrolledList, uint64_t enrolledId); 33 …extern ResultCode GenerateDeduplicateUint64(LinkedList *collection, uint64_t *destValue, Duplicate… 34 extern ResultCode UpdateEnrolledId(LinkedList *enrolledList, uint32_t authType); 39 … extern CredentialInfoHal *QueryCredentialById(uint64_t credentialId, LinkedList *credentialList); 40 …extern CredentialInfoHal *QueryCredentialByAuthType(uint32_t authType, LinkedList *credentialList); 43 …extern ResultCode TraverseCredentialList(const CredentialCondition *limit, const LinkedList *crede… [all …]
|
/drivers/peripheral/user_auth/test/unittest/user_auth_test/ |
D | context_manager_test.cpp | 27 extern LinkedList *g_contextList; 28 extern LinkedList *g_poolList; 29 extern LinkedList *g_scheduleList; 30 extern LinkedList *g_userInfoList; 33 extern LinkedList *GetAuthCredentialList(const UserAuthContext *context); 34 extern ResultCode CheckCredentialSize(LinkedList *credList); 134 LinkedList *credList = CreateLinkedList(DestroyCredentialNode); 197 LinkedList *getSchedule = nullptr; 206 LinkedList *getSchedule = nullptr; 216 LinkedList *getSchedule = nullptr; [all …]
|
D | identify_funcs_test.cpp | 21 extern LinkedList *g_contextList;
|
D | auth_level_test.cpp | 23 extern LinkedList *g_poolList; 24 extern LinkedList *g_userInfoList;
|
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/ |
D | context_manager.h | 36 LinkedList *scheduleList; 64 ResultCode CopySchedules(UserAuthContext *context, LinkedList **schedules);
|
D | identify_funcs.h | 28 ResultCode DoIdentify(const IdentifyParam param, LinkedList **schedule);
|
D | user_auth_funcs.h | 36 ResultCode GenerateSolutionFunc(AuthSolutionHal param, LinkedList **schedules);
|
/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
D | context_manager.c | 39 IAM_STATIC LinkedList *g_contextList = NULL; 221 LinkedList *scheduleList = context->scheduleList; in InsertScheduleToContext() 256 IAM_STATIC LinkedList *GetAuthCredentialList(const UserAuthContext *context) in GetAuthCredentialList() 273 IAM_STATIC ResultCode CheckCredentialSize(LinkedList *credList) in CheckCredentialSize() 290 LinkedList *credList = GetAuthCredentialList(context); in QueryAuthTempletaInfo() 398 ResultCode CopySchedules(UserAuthContext *context, LinkedList **schedules) in CopySchedules() 404 LinkedList *scheduleList = context->scheduleList; in CopySchedules() 492 LinkedList *schedules = ((UserAuthContext *)data)->scheduleList; in DestroyContextNode() 546 LinkedList *credList = QueryCredentialLimit(&condition); in FillInContext()
|
D | auth_level.c | 88 LinkedList *executorList = QueryExecutor(&condition); in GetAsl() 124 LinkedList *credList = QueryCredentialLimit(&condition); in GetAcl()
|
/drivers/peripheral/user_auth/hdi_service/coauth/src/ |
D | pool.c | 32 IAM_STATIC LinkedList *g_poolList = NULL; 136 IAM_STATIC LinkedList *QueryRepeatExecutor(const ExecutorInfoHal *executorInfo) in QueryRepeatExecutor() 155 LinkedList *executors = QueryRepeatExecutor(executorInfo); in RegisterExecutorToPool() 249 LinkedList *QueryExecutor(const ExecutorCondition *condition) in QueryExecutor() 255 LinkedList *result = CreateLinkedList(DestroyExecutorInfo); in QueryExecutor()
|
/drivers/peripheral/user_auth/hdi_service/coauth/inc/ |
D | executor_message.h | 49 ResultCode GetExecutorMsgList(uint32_t authPropertyMode, LinkedList **executorMsg);
|
D | pool.h | 67 LinkedList *QueryExecutor(const ExecutorCondition *condition);
|
/drivers/peripheral/user_auth/test/unittest/co_auth/ |
D | executor_message_test.cpp | 26 extern LinkedList *g_poolList; 27 extern LinkedList *g_scheduleList; 28 extern LinkedList *g_userInfoList; 44 LinkedList *executorMsg); 45 …extern ResultCode TraverseExecutor(uint32_t executorRole, uint32_t authPropertyMode, LinkedList *e… 444 LinkedList *executorMsg = CreateLinkedList(DestoryExecutorMsg); 465 LinkedList *executorMsg = new LinkedList(); 475 LinkedList *executorMsg = nullptr;
|
D | co_auth_funcs_test.cpp | 21 extern LinkedList *g_poolList;
|
D | co_auth_test.cpp | 24 extern LinkedList *g_poolList; 25 extern LinkedList *g_scheduleList; 29 extern ResultCode MountExecutorOnce(const LinkedList *executors, CoAuthSchedule *coAuthSchedule, 162 LinkedList *executor = CreateLinkedList(DestroyExecutorInfo); 173 LinkedList *executor = CreateLinkedList(DestroyExecutorInfo);
|
/drivers/peripheral/user_auth/test/unittest/idm_test/ |
D | user_idm_funcs_test.cpp | 39 extern LinkedList *g_poolList; 40 extern LinkedList *g_userInfoList; 41 extern LinkedList *g_scheduleList; 215 LinkedList *creds = nullptr;
|
/drivers/peripheral/user_auth/hdi_service/idm/inc/ |
D | user_idm_funcs.h | 44 ResultCode QueryCredentialFunc(int32_t userId, uint32_t authType, LinkedList **creds);
|