/ohos5.0/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | hdf_dlist.h | 58 head->next = head; in DListHeadInit() 59 head->prev = head; in DListHeadInit() 71 return (head->next == head) ? true : false; in DListIsEmpty() 101 entry->next = head->next; in DListInsertHead() 102 entry->prev = head; in DListInsertHead() 105 head->next = entry; in DListInsertHead() 119 entry->next = head; in DListInsertTail() 123 head->prev = entry; in DListInsertTail() 137 list->next->prev = head; in DListMerge() 141 head->next = list->next; in DListMerge() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/ |
H A D | nstackx_list.h | 33 head->next = head; in ListInitHead() 34 head->prev = head; in ListInitHead() 41 node->prev = head; in ListInsertHead() 42 head->next = node; in ListInsertHead() 49 node->next = head; in ListInsertTail() 50 head->prev = node; in ListInsertTail() 66 return (head == head->next); in ListIsEmpty() 71 return head->next; in ListGetFront() 77 if (head == NULL || ListIsEmpty(head)) { in ListPopFront() 107 for ((curr) = (head)->next; (curr) != (head); (curr) = (curr)->next) [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/mock/ |
H A D | connection_ble_client_mock.cpp | 38 head->flag = 0; in ConnGattTransRecvReturnConnModule() 41 head->seq = seq; in ConnGattTransRecvReturnConnModule() 50 head->magic = 1; in ConnGattTransRecvReturnConnModule1() 51 head->flag = 1; in ConnGattTransRecvReturnConnModule1() 54 head->seq = seq; in ConnGattTransRecvReturnConnModule1() 63 head->flag = 0; in ConnGattTransRecvReturnOldNearby() 66 head->seq = seq; in ConnGattTransRecvReturnOldNearby() 75 head->flag = 0; in ConnGattTransRecvReturnDefult() 78 head->seq = seq; in ConnGattTransRecvReturnDefult() 87 head->flag = 0; in ActionOfConnGattTransRecv() [all …]
|
/ohos5.0/base/startup/init/services/utils/ |
H A D | list.c | 50 item->next = head; in OH_ListAddTail() 51 item->prev = head->prev; in OH_ListAddTail() 52 head->prev->next = item; in OH_ListAddTail() 53 head->prev = item; in OH_ListAddTail() 91 match = head->next; in OH_ListAddWithOrder() 124 match = head->next; in OH_ListFind() 162 match = head->prev; in OH_ListTraversal() 164 match = head->next; in OH_ListTraversal() 204 if (head == NULL) { in OH_ListRemoveAll() 209 OH_ListInit(head); in OH_ListRemoveAll() [all …]
|
/ohos5.0/base/security/huks/utils/list/ |
H A D | hks_double_list.c | 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() 55 head->prev = head; in AddNodeAtDoubleListTail() 58 head->prev->next = node; in AddNodeAtDoubleListTail() 59 node->next = head; in AddNodeAtDoubleListTail() 60 node->prev = head->prev; in AddNodeAtDoubleListTail() [all …]
|
H A 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 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) \ argument 56 for (p = (head)->next, (st) = (__typeof__(st))p, _tmp = *p; p != (head); \
|
/ohos5.0/base/startup/init/services/param/trigger/ |
H A D | trigger_manager.c | 316 TriggerNode *trigger = head->nextTrigger(head, NULL); in ClearTrigger() 318 TriggerNode *next = head->nextTrigger(head, trigger); in ClearTrigger() 397 TriggerNode *trigger = head->nextTrigger(head, NULL); in ExecTriggerMatch_() 399 TriggerNode *next = head->nextTrigger(head, trigger); in ExecTriggerMatch_() 452 TriggerNode *trigger = head->nextTrigger(head, NULL); in CheckAndMarkTrigger_() 455 trigger = head->nextTrigger(head, trigger); in CheckAndMarkTrigger_() 462 trigger = head->nextTrigger(head, trigger); in CheckAndMarkTrigger_() 527 TriggerNode *trigger = head->nextTrigger(head, NULL); in DumpTrigger_() 530 trigger = head->nextTrigger(head, trigger); in DumpTrigger_() 693 TriggerNode *trigger = head->nextTrigger(head, NULL); in DelWatchTrigger() [all …]
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | tlv_object.cpp | 155 if (!HasExpectBuffer(head.len)) { in Read() 165 cursor_ += head.len; in Read() 192 if (!HasExpectBuffer(head.len)) { in Read() 203 cursor_ += head.len; in Read() 237 if (!HasExpectBuffer(head.len)) { in Read() 249 cursor_ += head.len; in Read() 340 head.len = len; in ReadHead() 345 bool TLVObject::Skip(TLVHead &head) in Skip() argument 348 cursor_ += head.len; in Skip() 351 if (total_ < head.len || total_ - head.len < cursor_) { in Skip() [all …]
|
/ohos5.0/base/security/device_security_level/baselib/utils/include/ |
H A D | utils_dslm_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…
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/container/linkedlist/ |
H A D | js_linkedlist.ts | 122 private head?: NodeObj<T>; 128 this.head = undefined; 164 if (this.head === undefined) { 165 this.head = this.tail = node; 182 node.next = this.head; 183 this.head = node; 203 this.head = undefined; 209 if (this.head !== undefined) { 250 this.head = current.next; 316 return this.head.element; [all …]
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/tlv/ |
H A D | tlv_object.cpp | 275 head.tag = NetToHost(pHead->tag); in ReadHead() 276 head.len = NetToHost(pHead->len); in ReadHead() 323 cursor_ += head.len; in ReadValue() 332 rawMem.bufferLen = head.len; in ReadValue() 333 cursor_ += head.len; in ReadValue() 348 cursor_ += head.len; in ReadValue() 354 auto mapEnd = cursor_ + head.len; in ReadValue() 377 const TLVHead& head) in ReadVariant() argument 384 const TLVHead& head) in ReadVariant() argument 425 auto mapEnd = cursor_ + head.len; in ReadValue() [all …]
|
H A D | tlv_object.h | 277 bool ReadHead(const std::vector<std::uint8_t> &buffer, TLVHead &head); 292 const TLVHead &head); 297 auto vectorEnd = cursor_ + head.len; in ReadValue() 316 const TLVHead& head); 320 const TLVHead& head); 330 const TLVHead &head); 339 return ReadValue(buffer, *value, head); in ReadValue() 400 if (head.len != sizeof(bool) || head.len == 0) { in ReadBasicValue() 403 if (!HasExpectBuffer(buffer, head.len)) { in ReadBasicValue() 422 if (head.len != sizeof(T) || head.len == 0) { in ReadBasicValue() [all …]
|
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/ |
H A D | hiappevent_ffi.cpp | 77 CharPtrToVector(str.head, str.size, strVec); in genArrString2Set() 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->key), std::string((char*)head->value)); in AddParams2EventPack() 150 appEventPack_->AddParam(std::string(head->key), *(bool*)head->value); in AddParams2EventPack() 153 int* intArr = (int*)head->value; in AddParams2EventPack() 172 bool* boolArr = (bool*)head->value; in AddParams2EventPack() 367 names.insert(std::string(watcher.appEventFilters.head[i].names.head[j])); in FfiOHOSHiAppEventAddWatcher() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_connection.c | 213 if (size < GetAuthDataSize(head->len)) { in PackAuthData() 356 request->len = head->len; in HandleDataReceivedProcess() 357 … if (data != NULL && head->len > 0 && memcpy_s(request->data, head->len, data, head->len) != EOK) { in HandleDataReceivedProcess() 365 request->head = *head; in HandleDataReceivedProcess() 405 CHECK_NULL_PTR_RETURN_VOID(head); in OnWiFiDataReceived() 473 AuthDataHead head = { 0 }; in OnCommDataReceived() local 490 request->len = head->len; in HandleRepeatDeviceIdDataDelay() 491 … if (data != NULL && head->len > 0 && memcpy_s(request->data, head->len, data, head->len) != EOK) { in HandleRepeatDeviceIdDataDelay() 499 request->head = *head; in HandleRepeatDeviceIdDataDelay() 584 head->seq, head->len, connectionId, connData.seq, connData.len); in PostCommData() [all …]
|
/ohos5.0/base/sensors/sensor/utils/ipc/src/ |
H A D | stream_socket.cpp | 52 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->size))) { in OnReadPackets() 66 "size:%{public}zu", head->idMsg, head->size); in OnReadPackets()
|
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
H A D | dlp_file_kits.cpp | 97 static bool IsValidDlpHeader(const struct DlpHeader& head) in IsValidDlpHeader() argument 99 if (head.magic != DLP_FILE_MAGIC || head.certSize == 0 || head.certSize > DLP_MAX_CERT_SIZE || in IsValidDlpHeader() 100 head.contactAccountSize == 0 || head.contactAccountSize > DLP_MAX_CERT_SIZE || in IsValidDlpHeader() 101 head.certOffset != sizeof(struct DlpHeader)) { in IsValidDlpHeader() 103 head.certSize, head.contactAccountSize); in IsValidDlpHeader() 106 if (head.contactAccountOffset != (sizeof(struct DlpHeader) + head.certSize) || in IsValidDlpHeader() 107 …head.txtOffset != (sizeof(struct DlpHeader) + head.certSize + head.contactAccountSize + head.offli… in IsValidDlpHeader() 108 head.txtSize > DLP_MAX_CONTENT_SIZE || head.offlineCertSize > DLP_MAX_CERT_SIZE) { in IsValidDlpHeader() 136 struct DlpHeader head; in IsDlpFile() local 137 if (read(dlpFd, &head, sizeof(struct DlpHeader)) != sizeof(struct DlpHeader)) { in IsDlpFile() [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/container/list/ |
H A D | js_list.ts | 113 private head: NodeObj<T>; 118 this.head = undefined; 153 if (this.head === undefined) { 154 this.head = node; 167 this.head = undefined; 172 if (this.head !== undefined) { 242 oldNode = this.head; 268 if (this.head !== undefined) { 306 this.head = newNode; 370 if (this.head !== undefined) { [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/src/queue/ |
H A D | queue_strategy.h | 36 T* head = whenMap.begin()->second; in DequeBatch() local 39 T* node = head; in DequeBatch() 42 if (next->GetQos() != head->GetQos()) { in DequeBatch() 51 head->gid, node->gid, whenMap.size(), queueId); in DequeBatch() 52 return head; in DequeBatch() 70 T* head = iterTarget->second; in DequeSingleByPriority() local 74 return head; in DequeSingleByPriority() 99 T* head = iterTarget->second; in DequeSingleAgainstStarvation() local 100 (*pulledTaskCount)[head->GetPriority()]++; in DequeSingleAgainstStarvation() 101 for (int idx = 0; idx < head->GetPriority(); idx++) { in DequeSingleAgainstStarvation() [all …]
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/utils_test/src/ |
H A D | hks_double_list_test.cpp | 78 struct DoubleList head = { .prev = nullptr, .next = nullptr }; variable 81 AddNodeAfterDoubleListHead(&head, &node); 82 ASSERT_TRUE(head.next == &node); 93 struct DoubleList head = { .prev = nullptr, .next = nullptr }; variable 96 AddNodeAtDoubleListTail(&head, &node); 97 ASSERT_TRUE(head.prev == &node); 108 struct DoubleList head = { .prev = nullptr, .next = nullptr }; variable 110 RemoveDoubleListNode(&head); 111 EXPECT_EQ(head.next == nullptr, true); 112 EXPECT_EQ(head.prev == nullptr, true);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/ |
H A D | softbus_proxy_session_test.cpp | 235 TestSliceHead head; variable 241 head.priority = -1; 274 TestSliceHead head; variable 276 head.sliceNum = 1; 334 TestSliceHead head; variable 336 head.sliceNum = 1; 381 TestSliceHead head; variable 383 head.sliceNum = 1; 412 TestSliceHead head; variable 417 head.sliceSeq = 0; [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_cache.h | 76 void ListInit(ListHead* head) in ListInit() argument 78 head->prev = head; in ListInit() 79 head->next = head; in ListInit() 81 void ListAdd(ListHead* node, ListHead* head) in ListAdd() argument 83 head->next->prev = node; in ListAdd() 84 node->next = head->next; in ListAdd() 85 node->prev = head; in ListAdd() 86 head->next = node; in ListAdd()
|
/ohos5.0/base/msdp/device_status/utils/ipc/src/ |
H A D | stream_socket.cpp | 83 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_SI… 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->size))) { in OnReadPackets() 97 "size:%{public}d", head->idMsg, head->size); in OnReadPackets()
|
/ohos5.0/base/notification/common_event_service/interfaces/kits/cj/src/ |
H A D | parameter_parse.cpp | 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() 171 } else if (head->valueType == BOOL_TYPE) { // bool in SetDataParameters() 173 } else if (head->valueType == FD_TYPE) { // "FD" in SetDataParameters() 178 charPtrToVector(strPtr, head->size, strVec); in SetDataParameters() 197 InnerSetWantParamsArrayFD(head, head->size, wantP); in SetDataParameters() 454 if (cData.parameters.head == nullptr) { in ParseParameters() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | component.cpp | 58 auto head = std::find_if(components.begin(), components.end(), IsRenderComponent<Component>); in MergeRSNode() local 60 if (head == components.end() || tail == components.rend()) { in MergeRSNode() 63 (*head)->isHeadComponent_ = true; in MergeRSNode() 73 auto head = std::find_if(components.begin(), components.end(), IsRenderComponent<SingleChild>); in MergeRSNode() local 75 if (head == components.end() || tail == components.rend()) { in MergeRSNode() 78 AceType::DynamicCast<Component>(*head)->isHeadComponent_ = true; in MergeRSNode() 86 if (components.empty() || head == components.end() || tail == components.rend()) { in MergeRSNode() 90 AceType::DynamicCast<Component>(*head)->isHeadComponent_ = true; in MergeRSNode() 98 void Component::MergeRSNode(const RefPtr<Component>& head, const RefPtr<Component>& tail) in MergeRSNode() argument 100 if (!head || !tail) { in MergeRSNode() [all …]
|
/ohos5.0/foundation/multimodalinput/input/util/socket/src/ |
H A D | uds_socket.cpp | 101 PackHead *head = reinterpret_cast<PackHead *>(buf); in OnReadPackets() local 102 CHKPB(head); in OnReadPackets() 103 if (head->size < 0 || head->size > MAX_PACKET_BUF_SIZE) { in OnReadPackets() 105 " head->size:%{public}d, unreadSize:%{public}d", head->size, unreadSize); in OnReadPackets() 109 if (head->size > dataSize) { in OnReadPackets() 112 NetPacket pkt(head->idMsg); in OnReadPackets() 113 if ((head->size > 0) && (!pkt.Write(&buf[headSize], head->size))) { in OnReadPackets() 115 "size:%{public}d", head->idMsg, head->size); in OnReadPackets()
|