Home
last modified time | relevance | path

Searched refs:head (Results 1 - 25 of 117) sorted by relevance

12345

/base/security/huks/utils/list/
H A Dhks_double_list.c32 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, struc argument
[all...]
H A Dhks_double_list.h30 void AddNodeAfterDoubleListHead(struct DoubleList *head, struct DoubleList *node);
32 void AddNodeAtDoubleListTail(struct DoubleList *head, struct DoubleList *node);
43 * @head: the head for double list.
45 #define HKS_DLIST_ITER(st, head) \
47 if ((void*)(head) != NULL) { \
48 p = (head)->next; \
51 for (; p != NULL && p != (head); p = p->next, (st) = (__typeof__(st))p)
53 #define HKS_DLIST_SAFT_ITER(st, head) \
56 for (p = (head)
[all...]
/base/startup/init/services/utils/
H A Dlist.c22 * @brief Initialize a double-linked list head
26 * @param head list head, make sure head is valid pointer
41 * @param head list head, make sure head is valid pointer
45 void OH_ListAddTail(struct ListNode *head, struct ListNode *item) in OH_ListAddTail() argument
47 if (head == NULL || item == NULL) { in OH_ListAddTail()
50 item->next = head; in OH_ListAddTail()
83 OH_ListAddWithOrder(struct ListNode *head, struct ListNode *item, ListCompareProc compareProc) OH_ListAddWithOrder() argument
117 OH_ListFind(const ListNode *head, void *data, ListTraversalProc compareProc) OH_ListFind() argument
152 OH_ListTraversal(ListNode *head, void *data, ListTraversalProc traversalProc, unsigned int flags) OH_ListTraversal() argument
202 OH_ListRemoveAll(ListNode *head, ListDestroyProc destroyProc) OH_ListRemoveAll() argument
218 OH_ListGetCnt(const ListNode *head) OH_ListGetCnt() argument
[all...]
/base/security/device_security_level/baselib/utils/include/
H A Dutils_dslm_list.h45 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)
[all...]
/base/security/huks/test/unittest/huks_standard_test/module_test/utils_test/src/
H A Dhks_double_list_test.cpp78 struct DoubleList head = { .prev = nullptr, .next = nullptr }; in HWTEST_F() local
81 AddNodeAfterDoubleListHead(&head, &node); in HWTEST_F()
82 ASSERT_TRUE(head.next == &node); in HWTEST_F()
93 struct DoubleList head = { .prev = nullptr, .next = nullptr }; in HWTEST_F() local
96 AddNodeAtDoubleListTail(&head, &node); in HWTEST_F()
97 ASSERT_TRUE(head.prev == &node); in HWTEST_F()
108 struct DoubleList head = { .prev = nullptr, .next = nullptr }; in HWTEST_F() local
110 RemoveDoubleListNode(&head); in HWTEST_F()
111 EXPECT_EQ(head.next == nullptr, true); in HWTEST_F()
112 EXPECT_EQ(head in HWTEST_F()
[all...]
/base/sensors/sensor/utils/ipc/src/
H A Dstream_socket.cpp52 PackHead *head = reinterpret_cast<PackHead *>(buf); in OnReadPackets() local
53 CHKPB(head); in OnReadPackets()
54 if (head->size < 0 || head->size > MAX_PACKET_BUF_SIZE) { in OnReadPackets()
56 " head->size:%{public}zu, unreadSize:%{public}zu", head->size, unreadSize); in OnReadPackets()
60 if (head->size > dataSize) { in OnReadPackets()
63 NetPacket pkt(head->idMsg); in OnReadPackets()
64 if ((head->size > 0) && (!pkt.Write(&buf[headSize], head in OnReadPackets()
[all...]
H A Dnet_packet.cpp33 PACKHEAD head = {msgId_, StreamBufferGetWpos(streamBufferPtr_.get())}; in MakeData() local
34 buf << head; in MakeData() local
42 PACKHEAD head = {msgId_, wPos_}; in MakeData()
43 buf << head; in MakeData()
/base/startup/init/services/param/trigger/
H A Dtrigger_manager.c305 TriggerHeader *head = GetTriggerHeader(workSpace, trigger->type); in FreeTrigger() local
306 if (head != NULL) { in FreeTrigger()
307 head->delTrigger(workSpace, trigger); in FreeTrigger()
313 PARAM_CHECK(workSpace != NULL, return, "head is null"); in ClearTrigger()
314 TriggerHeader *head = GetTriggerHeader(workSpace, type); in ClearTrigger() local
315 PARAM_CHECK(head != NULL, return, "Failed to get header %d", type); in ClearTrigger()
316 TriggerNode *trigger = head->nextTrigger(head, NULL); in ClearTrigger()
318 TriggerNode *next = head->nextTrigger(head, trigge in ClearTrigger()
395 TriggerHeader *head = GetTriggerHeader(workSpace, type); ExecTriggerMatch_() local
449 TriggerHeader *head = GetTriggerHeader(workSpace, type); CheckAndMarkTrigger_() local
525 TriggerHeader *head = GetTriggerHeader(workSpace, type); DumpTrigger_() local
578 TriggerHeadSetDefault(TriggerHeader *head) TriggerHeadSetDefault() argument
651 TriggerHeader *head = (TriggerHeader *)&workSpace->triggerHead[TRIGGER_BOOT]; InitTriggerHead() local
690 TriggerHeader *head = GetTriggerHeader(GetTriggerWorkSpace(), type); DelWatchTrigger() local
706 TriggerHeader *head = GetTriggerHeader(GetTriggerWorkSpace(), type); ClearWatchTrigger() local
729 TriggerHeader *head = GetTriggerHeader(GetTriggerWorkSpace(), TRIGGER_PARAM_WAIT); CheckWatchTriggerTimeout() local
[all...]
/base/security/permission_lite/services/pms/src/
H A Dperm_operate.c25 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/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
H A Dcert_manager_double_list.h45 * @head: the head for double list.
47 #define CM_DLIST_ITER(st, head) \
49 for (p = (head)->next, (st) = (__typeof__(st))p; p != (head); p = p->next, (st) = (__typeof__(st))p)
51 #define CM_DLIST_SAFT_ITER(st, head) \
54 for (p = (head)->next, (st) = (__typeof__(st))p, tmp = *p; p != (head); \
/base/msdp/device_status/utils/ipc/src/
H A Dstream_socket.cpp83 PackHead *head = reinterpret_cast<PackHead *>(buf); in OnReadPackets() local
84 CHKPB(head); in OnReadPackets()
85 if ((static_cast<int32_t>(head->size) < 0) || (static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE)) { in OnReadPackets()
87 "head->size:%{public}d, residualSize:%{public}d", head->size, residualSize); in OnReadPackets()
91 if (head->size > dataSize) { in OnReadPackets()
94 NetPacket pkt(head->idMsg); in OnReadPackets()
95 if ((head->size > 0) && (!pkt.Write(&buf[headSize], head in OnReadPackets()
[all...]
/base/hiviewdfx/hilog_lite/services/hilogcat/
H A Dhiview_logcat.c55 struct HiLogEntry *head = (struct HiLogEntry *)buf; in main() local
60 unsigned int sec = head->sec; in main()
65 printFlag = FilterLevelLog(g_hiviewConfig.level, *(head->msg)); in main()
70 printFlag = FilterModuleLog(g_hiviewConfig.logOutputModule, (head->msg) + MODULE_OFFSET); in main()
79 info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
/base/security/device_security_level/services/dslm/
H A Ddslm_msg_utils.c38 DslmJsonHandle head = DslmCreateJson(NULL); in GenerateSecInfoResponseJson() local
39 if (head == NULL) { in GenerateSecInfoResponseJson()
45 DslmDestroyJson(head); in GenerateSecInfoResponseJson()
49 DslmAddFieldIntToJson(head, FIELD_MESSAGE, MSG_TYPE_DSLM_CRED_RESPONSE); in GenerateSecInfoResponseJson()
50 DslmAddFieldJsonToJson(head, FIELD_PAYLOAD, body); in GenerateSecInfoResponseJson()
64 out = (uint8_t *)DslmConvertJsonToString(head); in GenerateSecInfoResponseJson()
66 if (head != NULL) { in GenerateSecInfoResponseJson()
67 DslmDestroyJson(head); in GenerateSecInfoResponseJson()
82 DslmJsonHandle head = DslmCreateJson(NULL); in GenerateSecInfoRequestJson() local
83 if (head in GenerateSecInfoRequestJson()
[all...]
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dhiappevent_ffi.cpp77 CharPtrToVector(str.head, str.size, strVec); in genArrString2Set()
122 CAppEventReportConfig* configPtr = processor.eventConfigs.head; in ConvertReportConfig()
138 auto head = params.head + i; in AddParams2EventPack() local
139 switch (head->valueType) { in AddParams2EventPack()
141 appEventPack_->AddParam(std::string(head->key), *(int32_t*)head->value); in AddParams2EventPack()
144 appEventPack_->AddParam(std::string(head->key), *(double*)head->value); in AddParams2EventPack()
147 appEventPack_->AddParam(std::string(head in AddParams2EventPack()
[all...]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_file_kits.cpp96 static bool IsValidDlpHeader(const struct DlpHeader& head) in IsValidDlpHeader() argument
98 if (head.magic != DLP_FILE_MAGIC || head.certSize == 0 || head.certSize > DLP_MAX_CERT_SIZE || in IsValidDlpHeader()
99 head.contactAccountSize == 0 || head.contactAccountSize > DLP_MAX_CERT_SIZE || in IsValidDlpHeader()
100 head.certOffset != sizeof(struct DlpHeader)) { in IsValidDlpHeader()
102 head.certSize, head.contactAccountSize); in IsValidDlpHeader()
105 if (head in IsValidDlpHeader()
135 struct DlpHeader head; IsDlpFile() local
[all...]
/base/account/os_account/frameworks/appaccount/cj/src/
H A Dappaccount_parameter_parse.cpp147 void InnerSetWantParamsArrayFD(CParameters* head, int64_t size, AAFwk::WantParams &wantParams) in InnerSetWantParamsArrayFD() argument
153 SetFdData(std::string(head->key), static_cast<int *>(head->value) + i, wp); in InnerSetWantParamsArrayFD()
157 wantParams.SetParam(std::string(head->key), ao); in InnerSetWantParamsArrayFD()
165 auto head = parameters.head + i; in SetDataParameters() local
166 auto key = std::string(head->key); in SetDataParameters()
167 if (head->valueType == I32_TYPE) { // int32_t in SetDataParameters()
168 wantP.SetParam(key, OHOS::AAFwk::Integer::Box(*static_cast<int32_t *>(head->value))); in SetDataParameters()
169 } else if (head in SetDataParameters()
[all...]
/base/startup/init/interfaces/innerkits/include/
H A Dlist.h30 * |->| head | |
81 * @brief Initialize a double-linked list head
85 * @param head list head, make sure head is valid pointer
93 * @param head list head, make sure head is valid pointer
123 * @param head list head, mak
[all...]
/base/hiviewdfx/hilog_lite/services/apphilogcat/
H A Dhiview_applogcat.c195 struct HiLogEntry *head = (struct HiLogEntry *)buf; in main() local
197 if (NeedFlush(head->msg)) { in main()
207 unsigned int sec = head->sec; in main()
212 printFlag = FilterLevelLog(g_hiviewConfig.level, *(head->msg)); in main()
217 printFlag = FilterModuleLog(g_hiviewConfig.logOutputModule, (head->msg) + MODULE_OFFSET); in main()
229 info->tm_min, info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
234 info->tm_min, info->tm_sec, head in main()
[all...]
/base/startup/init/test/unittest/param/
H A Dparam_stub.cpp125 ParamContextsList *head = *list; in TestDestroyParamList() local
126 while (head != nullptr) { in TestDestroyParamList()
127 ParamContextsList *next = head->next; in TestDestroyParamList()
128 free((void *)head->info.paraName); in TestDestroyParamList()
129 free((void *)head->info.paraContext); in TestDestroyParamList()
130 free(head); in TestDestroyParamList()
131 head = next; in TestDestroyParamList()
138 ParamContextsList *head = (ParamContextsList *)malloc(sizeof(ParamContextsList)); in TestGetParamList() local
139 BEGET_ERROR_CHECK(head != nullptr, return nullptr, "Failed to alloc ParamContextsList"); in TestGetParamList()
140 head in TestGetParamList()
[all...]
/base/hiviewdfx/hiview/base/event_store/store/include/
H A Dsys_event_repeat_guard.h38 head = *(reinterpret_cast<T*>(rawData + dataPos)); in Parse()
40 if (head.isTraceOpened == 1) { in Parse()
50 return (head.log >> logLowBit) != logNotPacked; in IsLogPacked()
52 T head; member
/base/notification/common_event_service/interfaces/kits/cj/src/
H A Dparameter_parse.cpp145 void InnerSetWantParamsArrayFD(CParameters* head, int64_t size, AAFwk::WantParams &wantParams) in InnerSetWantParamsArrayFD() argument
151 SetFdData(std::string(head->key), static_cast<int *>(head->value) + i, wp); in InnerSetWantParamsArrayFD()
155 wantParams.SetParam(std::string(head->key), ao); in InnerSetWantParamsArrayFD()
163 auto head = parameters.head + i; in SetDataParameters() local
164 auto key = std::string(head->key); in SetDataParameters()
165 if (head->valueType == I32_TYPE) { // int32_t in SetDataParameters()
166 wantP.SetParam(key, OHOS::AAFwk::Integer::Box(*static_cast<int32_t *>(head->value))); in SetDataParameters()
167 } else if (head in SetDataParameters()
[all...]
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/include/
H A Dcommon.h35 CParameters* head = nullptr; member
53 CAppEventReportConfig* head = nullptr; member
78 CAppEventFilter* head = nullptr; member
89 CAppEventInfo* head = nullptr; member
99 RetAppEventGroup* head = nullptr; member
/base/customization/config_policy/interfaces/kits/cj/src/
H A Dconfig_policy_ffi.cpp60 RetDataCArrString ret = { .code = SUCCESS_CODE, .data = { .head = nullptr, .size = 0 } }; in CJ_GetCfgDirList()
72 ret.data.head = MallocCStringArr(dirList); in CJ_GetCfgDirList()
73 ret.data.size = static_cast<int64_t>(ret.data.head == nullptr ? 0 : dirList.size()); in CJ_GetCfgDirList()
84 RetDataCArrString ret = { .code = SUCCESS_CODE, .data = { .head = nullptr, .size = 0 } }; in CJ_GetCfgFiles()
98 ret.data.head = MallocCStringArr(fileList); in CJ_GetCfgFiles()
99 ret.data.size = static_cast<int64_t>(ret.data.head == nullptr ? 0 : fileList.size()); in CJ_GetCfgFiles()
/base/location/frameworks/cj/source/
H A Dgeolocationmanager_utils.cpp141 ret.head = static_cast<CJGeoAddress*>(malloc(replyList.size() * sizeof(CJGeoAddress))); in ListGeoAddressToCJGeoAddressArr()
142 if (ret.head == nullptr) { in ListGeoAddressToCJGeoAddressArr()
168 ret.head[idx] = eachObj; in ListGeoAddressToCJGeoAddressArr()
246 CJLocation* head = static_cast<CJLocation*>(malloc(sizeof(CJLocation) * locations.size())); in LocationVectorToCJLocationArr() local
247 if (head == nullptr) { in LocationVectorToCJLocationArr()
251 head[i] = NativeLocationToCJLocation(*(locations[i])); in LocationVectorToCJLocationArr()
253 return CJLocationArr{ .head = head, .size = locations.size() }; in LocationVectorToCJLocationArr()
268 int32_t* head = static_cast<int32_t*>(malloc(sizeof(int32_t) * arr.size())); in IntVectorToCArrI32() local
269 if (head in IntVectorToCArrI32()
283 double* head = static_cast<double*>(malloc(sizeof(double) * arr.size())); DoubleVectorToCArrF64() local
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_manager_impl.cpp106 .vibrationValues = { .head = NULL, .size = 0 }, in GetSlot()
125 CArrayNotificationSlots notificationSlots = { .head = nullptr, .size = 0 }; in GetSlots()
128 CNotificationSlot* head = in GetSlots() local
130 if (head == nullptr) { in GetSlots()
140 if (!SetNotificationSlot(*vec, head[count])) { in GetSlots()
147 notificationSlots.head = head; in GetSlots()
179 CArrayNotificationRequest notificationRequests = { .head = nullptr, .size = 0 }; in GetActiveNotifications()
186 CNotificationRequest** head = in GetActiveNotifications() local
188 if (head in GetActiveNotifications()
[all...]

Completed in 15 milliseconds

12345