Home
last modified time | relevance | path

Searched refs:LinkedList (Results 1 – 25 of 35) sorted by relevance

12

/drivers/peripheral/user_auth/hdi_service/common/inc/
Dlinked_list.h41 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/
Dlinked_list.c29 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/
Didm_file_manager.h28 LinkedList *LoadFileInfo(void);
29 ResultCode UpdateFileInfo(LinkedList *userInfoList);
Didm_common.h47 LinkedList *credentialInfoList;
48 LinkedList *enrolledInfoList;
Didm_database.h56 ResultCode DeleteUserInfo(int32_t userId, LinkedList **creds);
58 LinkedList *QueryCredentialLimit(const CredentialCondition *limit);
/drivers/peripheral/user_auth/hdi_service/database/src/
Didm_database.c36 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 …]
Didm_file_manager.c99 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/
Didm_file_manager_test.cpp25 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);
Didm_database_test.cpp20 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/
Dcontext_manager_test.cpp27 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 …]
Didentify_funcs_test.cpp21 extern LinkedList *g_contextList;
Dauth_level_test.cpp23 extern LinkedList *g_poolList;
24 extern LinkedList *g_userInfoList;
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/
Dcontext_manager.h36 LinkedList *scheduleList;
64 ResultCode CopySchedules(UserAuthContext *context, LinkedList **schedules);
Didentify_funcs.h28 ResultCode DoIdentify(const IdentifyParam param, LinkedList **schedule);
Duser_auth_funcs.h36 ResultCode GenerateSolutionFunc(AuthSolutionHal param, LinkedList **schedules);
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
Dcontext_manager.c39 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()
Dauth_level.c88 LinkedList *executorList = QueryExecutor(&condition); in GetAsl()
124 LinkedList *credList = QueryCredentialLimit(&condition); in GetAcl()
/drivers/peripheral/user_auth/hdi_service/coauth/src/
Dpool.c32 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/
Dexecutor_message.h49 ResultCode GetExecutorMsgList(uint32_t authPropertyMode, LinkedList **executorMsg);
Dpool.h67 LinkedList *QueryExecutor(const ExecutorCondition *condition);
/drivers/peripheral/user_auth/test/unittest/co_auth/
Dexecutor_message_test.cpp26 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;
Dco_auth_funcs_test.cpp21 extern LinkedList *g_poolList;
Dco_auth_test.cpp24 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/
Duser_idm_funcs_test.cpp39 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/
Duser_idm_funcs.h44 ResultCode QueryCredentialFunc(int32_t userId, uint32_t authType, LinkedList **creds);

12