/base/security/huks/utils/list/ |
D | hks_double_list.c | 32 void AddNodeAfterDoubleListHead(struct DoubleList *head, struct DoubleList *node) in AddNodeAfterDoubleListHead() argument 34 if ((head == NULL) || (node == NULL)) { in AddNodeAfterDoubleListHead() 38 if (head->next == NULL) { in AddNodeAfterDoubleListHead() 39 head->next = head; in AddNodeAfterDoubleListHead() 42 head->next->prev = node; in AddNodeAfterDoubleListHead() 43 node->next = head->next; in AddNodeAfterDoubleListHead() 44 node->prev = head; in AddNodeAfterDoubleListHead() 45 head->next = node; in AddNodeAfterDoubleListHead() 48 void AddNodeAtDoubleListTail(struct DoubleList *head, struct DoubleList *node) in AddNodeAtDoubleListTail() argument 50 if ((head == NULL) || (node == NULL)) { in AddNodeAtDoubleListTail() [all …]
|
D | hks_double_list.h | 30 void AddNodeAfterDoubleListHead(struct DoubleList *head, struct DoubleList *node); 32 void AddNodeAtDoubleListTail(struct DoubleList *head, struct DoubleList *node); 45 #define HKS_DLIST_ITER(st, head) \ argument 47 …for (p = (head)->next, (st) = (__typeof__(st))p; p != (head); p = p->next, (st) = (__typeof__(st))…
|
/base/security/device_security_level/baselib/utils/include/ |
D | utils_list.h | 45 static inline int IsEmptyList(ListHead *head) in IsEmptyList() argument 47 return head->next == head; in IsEmptyList() 50 static inline void InitListHead(ListHead *head) in InitListHead() argument 52 head->next = head; in InitListHead() 53 head->prev = head; in InitListHead() 61 #define FOREACH_LIST_NODE(item, head) for ((item) = (head)->next; (item) != (head); (item) = (item)… argument 63 #define FOREACH_LIST_NODE_SAFE(item, head, temp) \ argument 64 …for ((item) = (head)->next, (temp) = (item)->next; (item) != (head); (item) = (temp), (temp) = (it…
|
/base/startup/init_lite/services/param/trigger/ |
D | trigger_manager.c | 298 TriggerHeader *head = GetTriggerHeader(workSpace, trigger->type); in FreeTrigger() local 299 if (head != NULL) { in FreeTrigger() 300 head->delTrigger(workSpace, trigger); in FreeTrigger() 307 TriggerHeader *head = GetTriggerHeader(workSpace, type); in ClearTrigger() local 308 PARAM_CHECK(head != NULL, return, "Failed to get header %d", type); in ClearTrigger() 309 TriggerNode *trigger = head->nextTrigger(head, NULL); in ClearTrigger() 311 TriggerNode *next = head->nextTrigger(head, trigger); in ClearTrigger() 315 ListInit(&head->triggerList); in ClearTrigger() 388 TriggerHeader *head = GetTriggerHeader(workSpace, type); in ExecTriggerMatch_() local 389 PARAM_CHECK(head != NULL, return 0, "Failed to get header %d", type); in ExecTriggerMatch_() [all …]
|
/base/compileruntime/js_util_module/container/linkedlist/ |
D | js_linkedlist.ts | 118 private head?: NodeObj<T>; 125 this.head = undefined; 138 let current = this.head; 150 let current = this.head; 160 if (this.head == undefined) { 161 this.head = this.tail = node; 163 let current = this.head; 175 this.head = this.tail = node; 177 node.next = this.head; 178 this.head = node; [all …]
|
/base/compileruntime/js_util_module/container/list/ |
D | js_list.ts | 110 private head: NodeObj<T>; property in List 115 this.head = undefined; 126 let current = this.head; 138 let current = this.head; 148 if (this.head == undefined) { 149 this.head = node; 151 let current = this.head; 161 this.head = undefined; 165 if (this.head !== undefined) { 166 if (this.head.element === element) { [all …]
|
/base/hiviewdfx/hilog_lite/services/hilogcat/ |
D | hiview_logcat.c | 49 struct HiLogEntry *head = (struct HiLogEntry *)buf; in main() local 54 unsigned int sec = head->sec; in main() 59 printFlag = FilterLevelLog(g_hiviewConfig.level, *(head->msg)); in main() 64 printFlag = FilterModuleLog(g_hiviewConfig.logOutputModule, (head->msg) + MODULE_OFFSET); in main() 73 info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
|
/base/startup/init_lite/services/utils/ |
D | list.c | 29 void ListAddTail(struct ListNode *head, struct ListNode *item) in ListAddTail() argument 31 if (head == NULL || item == NULL) { in ListAddTail() 34 item->next = head; in ListAddTail() 35 item->prev = head->prev; in ListAddTail() 36 head->prev->next = item; in ListAddTail() 37 head->prev = item; in ListAddTail()
|
/base/security/permission/services/permission_lite/pms/src/ |
D | perm_operate.c | 25 TNode *cur = list->head; in PermissionIsGranted() 58 if (list->head == NULL) { in AddTask() 59 list->head = node; in AddTask() 61 node->next = list->head; in AddTask() 62 list->head = node; in AddTask() 68 TNode *cur = list->head; in DeleteTask() 73 list->head = cur->next; in DeleteTask() 88 TNode *cur = list->head; in GetTaskWithUid() 100 TNode *cur = list->head; in GetTaskWithPkgName()
|
/base/security/device_security_level/services/dslm/ |
D | dslm_msg_utils.c | 38 JsonHandle head = CreateJson(NULL); in GenerateSecInfoResponseJson() local 39 if (head == NULL) { in GenerateSecInfoResponseJson() 45 DestroyJson(head); in GenerateSecInfoResponseJson() 49 AddFieldIntToJson(head, FIELD_MESSAGE, MSG_TYPE_DSLM_CRED_RESPONSE); in GenerateSecInfoResponseJson() 50 AddFieldJsonToJson(head, FIELD_PAYLOAD, body); in GenerateSecInfoResponseJson() 64 out = (uint8_t *)ConvertJsonToString(head); in GenerateSecInfoResponseJson() 66 if (head != NULL) { in GenerateSecInfoResponseJson() 67 DestroyJson(head); in GenerateSecInfoResponseJson() 82 JsonHandle head = CreateJson(NULL); in GenerateSecInfoRequestJson() local 83 if (head == NULL) { in GenerateSecInfoRequestJson() [all …]
|
/base/hiviewdfx/hilog_lite/services/apphilogcat/ |
D | hiview_applogcat.c | 185 struct HiLogEntry *head = (struct HiLogEntry *)buf; in main() local 187 if (NeedFlush(head->msg)) { in main() 197 unsigned int sec = head->sec; in main() 202 printFlag = FilterLevelLog(g_hiviewConfig.level, *(head->msg)); in main() 207 printFlag = FilterModuleLog(g_hiviewConfig.logOutputModule, (head->msg) + MODULE_OFFSET); in main() 219 …info->tm_min, info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main() 224 …info->tm_min, info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
|
/base/user_iam/auth_executor_mgr/common/common/src/ |
D | tlv_base.c | 83 int32_t DestroyTlvList(TlvListNode *head) in DestroyTlvList() argument 85 if (head == NULL) { in DestroyTlvList() 88 TlvListNode *currNode = head->next; in DestroyTlvList() 103 Free(head); in DestroyTlvList() 107 int32_t AddTlvNode(TlvListNode *head, const TlvObject *object) in AddTlvNode() argument 109 if (head == NULL || object == NULL) { in AddTlvNode() 119 TlvListNode *temp = head->next; in AddTlvNode() 121 head->next = node; in AddTlvNode()
|
D | tlv_wrapper.c | 25 static int32_t PutTlvObject(TlvListNode *head, int32_t type, uint32_t length, const void *value) in PutTlvObject() argument 27 if ((head == NULL) || (value == NULL) || (length > MAX_BUFFER_SIZE)) { in PutTlvObject() 58 int32_t ret = AddTlvNode(head, &object); in PutTlvObject() 83 int32_t ParseTlvWrapper(const uint8_t *buffer, uint32_t bufferSize, TlvListNode *head) in ParseTlvWrapper() argument 85 if (buffer == NULL || bufferSize == 0 || bufferSize > MAX_BUFFER_SIZE || head == NULL) { in ParseTlvWrapper() 103 int32_t ret = PutTlvObject(head, type, length, buffer + offset); in ParseTlvWrapper() 234 int32_t GetUint64Para(TlvListNode *head, int32_t msgType, uint64_t *retVal) in GetUint64Para() argument 236 if ((head == NULL) || (retVal == NULL)) { in GetUint64Para() 240 TlvListNode *node = head; in GetUint64Para() 255 int32_t GetUint32Para(TlvListNode *head, int32_t msgType, uint32_t *retVal) in GetUint32Para() argument [all …]
|
D | linked_list.c | 39 node->next = list->head; in InsertNode() 40 list->head = node; in InsertNode() 56 LinkedListNode *node = list->head; in RemoveNode() 68 list->head = node->next; in RemoveNode() 123 iterator->current = list->head; in CreateIterator() 150 list->head = NULL; in CreateLinkedList() 178 while (list->head != NULL) { in DestroyLinkedList() 179 LinkedListNode *node = list->head; in DestroyLinkedList() 180 list->head = node->next; in DestroyLinkedList()
|
/base/user_iam/auth_executor_mgr/common/common/inc/ |
D | tlv_wrapper.h | 27 int32_t ParseTlvWrapper(const uint8_t *buffer, uint32_t bufferSize, TlvListNode *head); 37 int32_t GetUint64Para(TlvListNode *head, int32_t msgType, uint64_t *retVal); 38 int32_t GetUint32Para(TlvListNode *head, int32_t msgType, uint32_t *retVal); 39 int32_t GetInt32Para(TlvListNode *head, int32_t msgType, int32_t *retVal); 40 Buffer *GetBuffPara(TlvListNode *head, int32_t msgType);
|
/base/security/device_security_level/baselib/utils/src/ |
D | utils_work_queue.c | 33 ListHead head; member 59 while ((IsEmptyList(&queue->head)) && (queue->state == RUN)) { in WorkQueueThread() 67 worker = LIST_ENTRY(queue->head.next, Worker, linkNode); in WorkQueueThread() 78 while (!IsEmptyList(&queue->head)) { in WorkQueueThread() 79 worker = LIST_ENTRY(queue->head.next, Worker, linkNode); in WorkQueueThread() 97 InitListHead(&(queue->head)); in CreateWorkQueue() 175 AddListNodeBefore(&worker->linkNode, &queue->head); in QueueWork()
|
D | utils_state_machine.c | 64 ListHead *head = &machine->pendingEventList; in PopPendingEvent() local 65 if (IsEmptyList(head)) { in PopPendingEvent() 68 PendingEvent *pending = LIST_ENTRY(head->next, PendingEvent, link); in PopPendingEvent()
|
/base/security/selinux/interfaces/policycoreutils/src/ |
D | paraperm_checker.cpp | 140 static bool InsertContextsList(const ParameterInfo &tmpInfo, ParamContextsList **head) in InsertContextsList() argument 151 (*head)->next = node; in InsertContextsList() 152 *head = (*head)->next; in InsertContextsList() 170 ParamContextsList *head = g_contextsList; in ParameterContextsLoad() local 188 if (!InsertContextsList(tmpInfo, &head)) { in ParameterContextsLoad() 195 head = g_contextsList->next; in ParameterContextsLoad() 197 g_contextsList = head; in ParameterContextsLoad()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/ |
D | dfx_dump_catcher_frame.cpp | 119 uint64_t DfxDumpCatcherFrame::GetRelativePc(const std::shared_ptr<DfxElfMaps> head) in GetRelativePc() argument 125 if (head == nullptr) { in GetRelativePc() 130 if (!head->FindMapByAddr(pc_, map_)) { in GetRelativePc() 141 if (!head->FindMapByPath(map_->GetMapPath(), map)) { in GetRelativePc()
|
/base/telephony/ril_adapter/services/vendor/src/ |
D | at_modem.c | 102 if (pResponse->head != NULL) { in ReqGetRadioState() 103 pLine = pResponse->head->data; in ReqGetRadioState() 141 if (responseInfo->head == NULL) { in ReqGetImei() 146 char *imeiSn = responseInfo->head->data; in ReqGetImei() 176 if (responseInfo->head == NULL) { in ReqGetMeid() 181 char *meidSn = responseInfo->head->data; in ReqGetMeid() 304 if (responseInfo->head != NULL) { in ReqGetVoiceRadioTechnology() 305 result = responseInfo->head->data; in ReqGetVoiceRadioTechnology()
|
D | at_sim.c | 35 if (pResponse->head) { in GetSimType() 36 pLine = pResponse->head->data; in GetSimType() 193 if (pResponse->head) { in ReqGetSimStatus() 194 pLine = pResponse->head->data; in ReqGetSimStatus() 334 if (pResponse->head) { in ReqGetSimIO() 335 pLine = pResponse->head->data; in ReqGetSimIO() 380 if (pResponse->head) { in ReqGetSimImsi() 381 result = pResponse->head->data; in ReqGetSimImsi() 437 if (pResponse->head) { in ReqGetSimLockStatus() 438 pLine = pResponse->head->data; in ReqGetSimLockStatus() [all …]
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_frame.cpp | 125 uint64_t DfxFrame::GetRelativePc(const std::shared_ptr<DfxElfMaps> head) in GetRelativePc() argument 127 if (head == nullptr) { in GetRelativePc() 132 if (!head->FindMapByAddr(pc_, map_)) { in GetRelativePc() 143 if (!head->FindMapByPath(map_->GetMapPath(), map)) { in GetRelativePc()
|
/base/startup/init_lite/interfaces/innerkits/fs_manager/ |
D | fstab.c | 78 if (fstab->head != NULL) { in AddToFstab() 79 item->next = fstab->head->next; in AddToFstab() 80 fstab->head->next = item; in AddToFstab() 82 fstab->head = item; in AddToFstab() 116 FstabItem *item = fstab->head; in ReleaseFstab() 253 for (item = fstab.head; item != NULL; item = item->next) { in FindFstabItemForMountPoint()
|
/base/user_iam/auth_executor_mgr/common/database/src/ |
D | idm_database.c | 129 LinkedListNode *temp = user->enrolledInfoList->head; in GetEnrolledInfoAuthType() 206 LinkedListNode *temp = g_userInfoList->head; in QueryUserInfo() 234 LinkedListNode *temp = enrolledInfoList->head; in GetAllEnrolledInfoFromUser() 271 LinkedListNode *temp = credentialInfoList->head; in GetAllCredentialInfoFromUser() 306 LinkedListNode *temp = userInfoList->head; in IsSecureUidDuplicate() 347 LinkedListNode *temp = credentialList->head; in IsCredentialIdDuplicate() 362 LinkedListNode *temp = enrolledList->head; in IsEnrolledIdDuplicate() 400 LinkedListNode *temp = enrolledList->head; in UpdateEnrolledId() 635 LinkedListNode *temp = credentialList->head; in QueryCredentialById() 653 LinkedListNode *temp = credentialList->head; in QueryCredentialByAuthType() [all …]
|
/base/hiviewdfx/hidumper/services/native/src/ |
D | dump_common_utils.cpp | 173 bool DumpCommonUtils::StartWith(const std::string& str, const std::string& head) in StartWith() argument 175 if (str.length() < head.length()) { in StartWith() 178 return (str.compare(0, head.size(), head) == 0); in StartWith()
|