Home
last modified time | relevance | path

Searched refs:head_ (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/bundlemanager/bundle_framework_lite/utils/bundle_lite/
H A Dutils_list.h38 head_->next_ = head_; in List()
39 head_->prev_ = head_; in List()
45 delete head_; in ~List() local
46 head_ = nullptr; in ~List()
65 node->prev_ = head_; in PushFront()
68 head_->next_ = node; in PushFront()
98 node->next_ = head_; in PushBack()
101 head_->prev_ = node; in PushBack()
143 return head_->next_; in Begin()
148 return head_; in End()
[all …]
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dlist.h78 head_.next_ = &head_; in List()
79 head_.prev_ = &head_; in List()
243 return &head_; in Remove()
246 return &head_; in Remove()
280 head_.next_ = &head_; in Clear()
281 head_.prev_ = &head_; in Clear()
295 return head_.next_; in Head()
307 return head_.prev_; in Tail()
331 return &head_; in End()
356 return (head_.next_ == &head_); in IsEmpty()
[all …]
/ohos5.0/foundation/distributeddatamgr/pasteboard/utils/native/include/
H A Dpasteboard_linked_list.h46 if (head_) { in ~LinkedList()
47 delete head_; in ~LinkedList() local
48 head_ = nullptr; in ~LinkedList()
55 if (head_ == nullptr) { in Clear()
66 head_->next = nullptr; in Clear()
72 if (head_ == nullptr) { in InsertFront()
78 head_->next = newNode; in InsertFront()
84 if (head_ == nullptr) { in InsertTail()
99 if (head_ == nullptr) { in RemoveIf()
120 if (head_ == nullptr) { in FindExist()
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dasync_task_manager.cpp51 : head_(nullptr), in AsyncTaskManager()
67 while (head_ != nullptr) { in Reset()
69 head_ = head_->next; in Reset()
103 if (head_ == tail_) { in Callback()
106 head_ = head_->next; in Callback()
140 if (head_ == nullptr) { in Dispatch()
141 head_ = task; in Dispatch()
158 AsyncTask *node = head_; in Cancel()
163 head_ = head_->next; in Cancel()
187 AsyncTask *node = head_; in CancelWithContext()
[all …]
H A Dasync_task_manager.h74 AsyncTask *head_; variable
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/
H A Dmulti_ver_value_object.cpp47 head_.flag = HASH_FLAG; in SetValueHash()
58 int errCode = parcel.WriteInt(head_.flag); in GetSerialData()
63 errCode = parcel.WriteInt(head_.reserved); in GetSerialData()
68 errCode = parcel.WriteInt(head_.hashNum); in GetSerialData()
73 errCode = parcel.WriteInt(head_.length); in GetSerialData()
91 head_.flag = static_cast<uint8_t>(readValue); in DeSerialData()
112 return head_.length; in GetDataLength()
117 head_.length = length; in SetDataLength()
122 if ((head_.flag & HASH_FLAG) == HASH_FLAG) { in GetValue()
131 head_.flag = 0; in SetValue()
[all …]
H A Dmulti_ver_value_object.h61 ValueObjectHead head_;
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/osal/utils/
H A Dring_buffer.h50 auto available = tail_ - head_;
57 available = tail_ - head_;
61 size_t index = head_ % bufferSize_;
69 head_ += available;
109 head_ = 0;
127 return (tail_ - head_); in GetSize()
132 return head_; in GetHead()
153 head_ = 0; in Clear()
192 head_ -= interval; in Seek()
209 head_ = newHead; in SetHead()
[all …]
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_file.cpp61 head_.offlineAccess = 0; in DlpFile()
65 head_.certSize = 0; in DlpFile()
109 (void)memset_s(cert_.data, head_.certSize, 0, head_.certSize); in ~DlpFile()
331 head_.contactAccountOffset = head_.certOffset + head_.certSize; in SetContactAccount()
332 head_.txtOffset = head_.contactAccountOffset + head_.contactAccountSize; in SetContactAccount()
584 head_.txtOffset = 0; in UnzipDlpFile()
628 if (read(dlpFd_, buf, head_.certSize) != (ssize_t)head_.certSize) { in ParseDlpHeaderInRaw()
781 head_.contactAccountOffset = head_.certOffset + head_.certSize; in UpdateCertAndText()
782 head_.txtOffset = head_.contactAccountOffset + head_.contactAccountSize; in UpdateCertAndText()
804 if (write(dlpFd_, cert_.data, head_.certSize) != (ssize_t)head_.certSize) { in UpdateCert()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_task_executor.h57 uint32_t newHead = (head_ + 1) % SIZE; in Push()
61 buffer_[head_] = std::move(t); in Push()
62 head_ = newHead; in Push()
67 if (tail_ == head_) { in Pop()
79 return head_ != tail_; in HasTask()
84 return ((head_ + 1) % SIZE) != tail_; in HasSpace()
89 if (head_ > tail_) { in Size()
90 return head_ - tail_; in Size()
92 return tail_ - head_ + SIZE; in Size()
100 uint32_t head_ = 0; variable
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dlink_stack.cpp23 head_ = new StackNode(nullptr); in InitStack()
24 if (head_ == nullptr) { in InitStack()
28 top_ = head_; in InitStack()
34 StackNode *tmp = head_; in FreeNode()
37 head_ = head_->GetNodeNext(); in FreeNode()
39 tmp = head_; in FreeNode()
46 return head_ == top_; in IsEmpty()
H A Dlink_stack.h122 StackNode *head_;
/ohos5.0/foundation/multimedia/media_foundation/engine/include/foundation/utils/
H A Dring_buffer.h50 auto available = tail_ - head_;
57 available = tail_ - head_;
61 size_t index = head_ % bufferSize_;
69 head_ += available;
83 while (writeSize + tail_ > head_ + bufferSize_) { in WriteBuffer()
109 head_ = 0;
118 return (tail_ - head_); in GetSize()
134 head_ = 0; in Clear()
146 head_ += offset - mediaOffset_; in Seek()
155 size_t head_ {0}; // head
/ohos5.0/foundation/multimedia/av_codec/services/services/codec/server/post_processing/
H A Dlock_free_queue.h83 if (newTail == head_.load()) { in PushWait()
85 … canPushCv_.wait(lock, [&newTail, this]() { return newTail != head_.load() || !active_.load(); }); in PushWait()
114 currentHead = head_.load(); in PopWait()
126 canPop = head_.compare_exchange_strong(currentHead, newHead); in PopWait()
137 return head_.load() == tail_.load(); in Empty()
142 return head_.load() == (tail_.load() + 1) % queueSize_; in Full()
148 head_.store(0); in Clear()
175 std::atomic<size_t> head_{0};
/ohos5.0/foundation/resourceschedule/ffrt/src/util/
H A Dspmc_queue.cpp47 return tail_.load() - head_.load(); in GetLength()
62 unsigned int head = head_.load(); in PopHead()
69 if (atomic_compare_exchange_weak(&head_, &head, head + 1)) { in PopHead()
81 unsigned int head = head_.load(); in PushTail()
99 while ((dstQueue.GetLength() < dstQueue.GetCapacity()) && (head_.load() != tail_.load())) { in PopHeadToAnotherQueue()
H A Dspmc_queue.h63 std::atomic<unsigned int> head_ {0};
/ohos5.0/base/update/sys_installer/services/module_update/service/src/
H A Dmodule_update_queue.cpp24 ModuleUpdateQueue::ModuleUpdateQueue() : size_(0), head_(0), tail_(0) in ModuleUpdateQueue()
63 std::pair<int32_t, std::string> saStatus = std::move(queue_[head_]); in Pop()
64 head_ = (head_ + 1) % MAX_SIZE; in Pop()
/ohos5.0/foundation/distributeddatamgr/relational_store/rdbmock/frameworks/native/rdb/
H A Dlru_bucket.h75 Insert(&head_, it->second);
97 Insert(&head_, it->second); in Set()
110 Insert(&head_, node); in Set()
187 auto *node = head_.prev_; in PopBack()
221 Node head_; variable
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/common/
H A Dlru_bucket.h75 Insert(&head_, it->second);
97 Insert(&head_, it->second); in Set()
110 Insert(&head_, node); in Set()
187 auto *node = head_.prev_; in PopBack()
221 Node head_; variable
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl_blob_cache.cpp60 head_ = std::make_shared<Blob>(nullptr, 0); in BlobCache()
62 head_->next_ = tail_; in BlobCache()
63 tail_->prev_ = head_; in BlobCache()
135 head_->next_->prev_ = cur; in MoveToFront()
136 cur->next_ = head_->next_; in MoveToFront()
137 head_->next_ = cur; in MoveToFront()
138 cur->prev_ = head_; in MoveToFront()
H A Degl_blob_cache.h143 std::shared_ptr<Blob> head_; variable
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/
H A Daudio_capturer_source.cpp250 uint64_t tail = (head_ + size_) % sizeMax_; in Poll()
252 if (tail > head_) { in Poll()
256 head_ = (head_ + replyBytes) % sizeMax_; in Poll()
258 uint64_t copySize = min((sizeMax_ - head_), replyBytes); in Poll()
263 head_ = (head_ + copySize) % sizeMax_; in Poll()
271 head_ = (head_ + remainCopySize) % sizeMax_; in Poll()
286 uint64_t head_ = 0; member in OHOS::AudioStandard::AudioCapturerSourceWakeup::WakeupBuffer
297 head_ = ((head_ + shift) % sizeMax_); in Offer()
300 head_ = 0; in Offer()
304 uint64_t tail = (head_ + size_) % sizeMax_; in Offer()
[all …]
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
H A Ddlp_file_test.cpp80 testFile.head_.version = SECOND; in initDlpFileCiper()
559 testFile.head_.certSize = 0;
1555 testFile.head_.txtOffset = 16;
1582 testFile.head_.txtOffset = 0;
1631 testFile.head_.txtOffset = 0;
1679 testFile.head_.txtOffset = 0;
1753 testFile.head_.certSize = 10;
1757 testFile.head_.txtSize = 0;
1759 testFile.head_.version = 99;
1778 testFile.head_.version = 1;
[all …]
/ohos5.0/base/update/sys_installer/services/module_update/service/include/
H A Dmodule_update_queue.h42 int head_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlayout_manager.h107 head_ = head; in ResetLayoutRange()
281 double head_ = 0.0;

12