Home
last modified time | relevance | path

Searched refs:count_ (Results 1 - 25 of 125) sorted by relevance

12345

/foundation/bundlemanager/bundle_framework_lite/utils/bundle_lite/
H A Dutils_list.h35 List() : count_(0) in List()
51 if (count_ == 0) { in Front()
69 count_++; in PushFront()
74 if (count_ == 0) { in PopFront()
82 count_--; in PopFront()
87 if (count_ == 0) { in Back()
102 count_++; in PushBack()
107 if (count_ == 0) { in PopBack()
115 count_--; in PopBack()
120 if ((count_ in Remove()
163 int count_; global() member in OHOS::List
[all...]
/foundation/communication/netmanager_base/utils/common_utils/src/
H A Dtiny_count_down_latch.cpp21 TinyCountDownLatch::TinyCountDownLatch(int32_t count) : count_(count) {} in TinyCountDownLatch()
26 if (count_ > 0) { in CountDown()
27 --count_; in CountDown()
28 if (count_ == 0) { in CountDown()
37 if (count_ > 0) { in Await()
38 conditionVar_.wait(lock, [this] {return count_ == 0;}); in Await()
45 return count_; in GetCount()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/util/
H A Dsemaphore_utils.cpp22 count_--; in Wait()
23 if (count_ < 0) { in Wait()
32 if (count_ <= 0) { in TryWait()
35 count_--; in TryWait()
43 count_++; in Post()
44 if (count_ <= 0) { in Post()
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
H A Dbundle_active_form_record.cpp26 count_ = 0; in BundleActiveFormRecord()
38 count_ = 1; in BundleActiveFormRecord()
49 count_ = orig.count_; in BundleActiveFormRecord()
58 count_++; in UpdateFormRecord()
68 parcel.WriteInt32(count_)) { in Marshalling()
81 result->count_ = parcel.ReadInt32(); in UnMarshalling()
88 return formRecordA.count_ > formRecordB.count_; in cmp()
98 ", touch count is " + std::to_string(this->count_) in ToString()
[all...]
H A Dbundle_active_event_stats.cpp28 count_ = 0; in BundleActiveEventStats()
40 count_ = orig.count_; in BundleActiveEventStats()
72 return count_; in GetCount()
87 count_ += right.count_; in add()
97 parcel.WriteInt32(count_) && in Marshalling()
113 result->count_ = parcel.ReadInt32(); in UnMarshalling()
/foundation/resourceschedule/memmgr/interface/innerkits/src/
H A Dbundle_priority_list.cpp28 return count_; in GetCount()
33 count_ = count; in SetCount()
63 if (!parcel.WriteInt32(count_)) { in Marshalling()
64 HILOGE("Failed to write count_"); in Marshalling()
67 for (auto i = 0; i < count_; ++i) { in Marshalling()
101 count_ = parcel.ReadInt32(); in ReadFromParcel()
102 if (count_ < 0 || count_ > MAX_PARCEL_SIZE) { in ReadFromParcel()
103 count_ = 0; in ReadFromParcel()
106 for (auto i = 0; i < count_; in ReadFromParcel()
[all...]
/foundation/arkui/ace_engine/frameworks/base/memory/
H A Dref_counter.h43 explicit ThreadSafeCounter(int32_t count) : count_(count) {} in ThreadSafeCounter()
48 count_.fetch_add(1, std::memory_order_relaxed); in Increase()
52 int32_t count = count_.fetch_sub(1, std::memory_order_release); in Decrease()
58 return count_.load(std::memory_order_relaxed); in CurrentCount()
70 } while (!count_.compare_exchange_weak(count, count + 1, std::memory_order_relaxed)); in TryIncrease()
75 std::atomic<int32_t> count_ { 0 };
83 explicit ThreadUnsafeCounter(int32_t count) : count_(count) {} in ThreadUnsafeCounter()
88 ++count_; in Increase()
92 int32_t count = --count_; in Decrease()
98 return count_; in CurrentCount()
[all...]
/foundation/multimedia/media_library/frameworks/utils/include/
H A Dmedialibrary_tracer.h30 for (int32_t i = 0; i < count_; i++) { in ~MediaLibraryTracer()
34 count_ = 0; in ~MediaLibraryTracer()
40 count_++; in Start()
46 count_--; in Finish()
50 COMPILE_HIDDEN int32_t count_ = 0; member in final
/foundation/multimedia/ringtone_library/services/utils/include/
H A Dringtone_tracer.h30 for (int32_t i = 0; i < count_; i++) { in ~RingtoneTracer()
34 count_ = 0; in ~RingtoneTracer()
40 count_++; in Start()
46 count_--; in Finish()
50 COMPILE_HIDDEN int32_t count_ = 0; member in OHOS::Media::final
/foundation/filemanagement/user_file_service/utils/
H A Duser_access_tracer.h28 for (int32_t i = 0; i < count_; i++) { in ~UserAccessTracer()
31 count_ = 0; in ~UserAccessTracer()
37 count_++; in Start()
43 count_--; in Finish()
46 int32_t count_ = 0; member in final
/foundation/ai/ai_engine/services/common/platform/semaphore/source/
H A Dsemaphore.cpp28 explicit Semaphore(unsigned int count): count_(count) in Semaphore()
39 condition_.wait(lock, [&]()->bool { return count_ > 0; }); in Wait()
40 --count_; in Wait()
47 if (!condition_.wait_for(lock, milliseconds_type(milliSeconds), [&]()->bool { return count_ > 0; })) { in Wait()
50 --count_; in Wait()
57 ++count_; in Signal()
62 unsigned int count_; member in OHOS::AI::Semaphore
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/custom/
H A Dcustom_measure_layout_param.cpp38 count_ = layoutWrapper->GetTotalChildCount(); in MeasureLayoutParam()
39 children_.resize(count_); in MeasureLayoutParam()
40 for (int32_t i = 0; i < count_; i++) { in MeasureLayoutParam()
68 if (count_ == newCount) { in Update()
72 if (count_ < newCount) { in Update()
73 for (int32_t i = count_; i < newCount; i++) { in Update()
77 count_ = newCount; in Update()
/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Ddata_ability_result.cpp31 count_ = count; in DataAbilityResult()
38 DataAbilityResult::DataAbilityResult(Parcel &parcel) : uri_(""), count_(0) in DataAbilityResult()
47 DataAbilityResult::DataAbilityResult(const Uri &uri) : uri_(uri.ToString()), count_(0) in DataAbilityResult()
56 count_ = count; in DataAbilityResult()
77 return count_; in GetCount()
103 stringBuilder.append("count=").append(std::to_string(count_)).append(" "); in ToString()
128 // count_ in Marshalling()
129 if (!parcel.WriteInt32(count_)) { in Marshalling()
175 // count_ in ReadFromParcel()
176 if (!parcel.ReadInt32(count_)) { in ReadFromParcel()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_forward_cursor.cpp26 count_(0), in SQLiteSingleVerForwardCursor()
36 count_(0), in SQLiteSingleVerForwardCursor()
46 count_ = 0; in ~SQLiteSingleVerForwardCursor()
63 errCode = handle_->OpenResultSet(queryObj_, count_); in Open()
65 errCode = handle_->OpenResultSet(keyPrefix_, count_); in Open()
68 if (count_ == 0) { in Open()
92 count_ = 0; in Close()
102 if (count_ == 0) { in Reload()
125 return count_; in GetCount()
134 if (count_ in GetNext()
[all...]
H A Dsqlite_single_ver_result_set.cpp41 count_ = 0; in ~SQLiteSingleVerResultSet()
96 count_ = window_->GetTotalCount(); in OpenForCacheFullEntryMode()
99 option_.cacheMaxSize, count_, isMemDb); in OpenForCacheFullEntryMode()
114 errCode = handle_->OpenResultSetForCacheRowIdMode(keyPrefix_, cachedRowIds_, cacheLimit, count_); in OpenForCacheEntryIdMode()
116 errCode = handle_->OpenResultSetForCacheRowIdMode(queryObj_, cachedRowIds_, cacheLimit, count_); in OpenForCacheEntryIdMode()
125 if (count_ != 0) { in OpenForCacheEntryIdMode()
130 option_.cacheMaxSize, count_, cachedRowIds_.size()); in OpenForCacheEntryIdMode()
136 // count_ never changed after ResultSet opened in GetCount()
137 return count_; in GetCount()
165 if (count_ in MoveTo()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dsemaphore_utils.cpp27 : count_(count) in SemaphoreUtils()
39 --count_; in WaitSemaphore()
48 --count_; in WaitSemaphore()
54 count_++; in SendSemaphore()
60 return count_ > 0; in CompareCount()
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_event_tracker.cpp25 count_ =0; in BundleActiveEventTracker()
39 count_++; in Update()
49 if (count_ || duration_) { in AddToEventStats()
52 newEvent.count_ = count_; in AddToEventStats()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_occlusion_region_helper.h33 size_t count_ = 0; member in OHOS::Rosen::Occlusion::RectsPtr
34 inline RectsPtr(const RectsPtr &rhs) : rects_(rhs.rects_), count_(rhs.count_) {} in RectsPtr()
35 inline RectsPtr(const std::vector<Rect>::const_iterator &r, size_t c) : rects_(r), count_(c) {} in RectsPtr()
76 if (lhs_.count_) { in OuterLooper()
80 if (rhs_.count_) { in OuterLooper()
91 return lhs_.count_ == 0 && rhs_.count_ == 0; in isDone()
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dlink_stack.cpp29 count_ = 0; in InitStack()
35 count_ = 0; in FreeNode()
51 return maxSize_ > 0 && count_ >= maxSize_; in IsFull()
71 count_++; in Push()
90 count_--; in Pop()
/foundation/graphic/graphic_3d/lume/LumeEngine/ecshelper/PropertyTools/
H A Dproperty_value.h36 PropertyValue() noexcept : count_(0), data_(nullptr), index_(0) {}
42 count_(BASE_NS::exchange(other.count_, 0U)), data_(BASE_NS::exchange(other.data_, nullptr)),
46 : type_(type), count_(cnt), data_(rawData), index_(0U)
51 return count_; in Size()
147 count_ = BASE_NS::exchange(other.count_, 0U);
156 size_t count_; member in PropertyValue
160 : type_(type), count_(cnt), data_(rawData), index_(index) in PropertyValue()
/foundation/distributedhardware/device_manager/test/unittest/
H A DUTTest_device_manager_notify.h47 int *count_ = nullptr; member in OHOS::DistributedHardware::DmInitCallbackTest
59 int *count_ = nullptr; member in OHOS::DistributedHardware::DeviceStateCallbackTest
70 int *count_ = nullptr; member in OHOS::DistributedHardware::DiscoveryCallbackTest
79 int *count_ = nullptr; member in OHOS::DistributedHardware::PublishCallbackTest
89 int *count_ = nullptr; member in OHOS::DistributedHardware::AuthenticateCallbackTest
98 int *count_ = nullptr; member in OHOS::DistributedHardware::DeviceManagerFaCallbackTest
H A DUTTest_device_manager_notify_three.cpp1024 count_ = &count; in DmInitCallbackTest()
1028 *count_ = *count_ + 1; in OnRemoteDied()
1033 count_ = &count; in DeviceStateCallbackTest()
1038 *count_ = *count_ + 1; in OnDeviceOnline()
1043 *count_ = *count_ + 1; in OnDeviceReady()
1048 *count_ = *count_ in OnDeviceOffline()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_occlusion_region_helper.cpp160 auto count = r.count_; in MoveScanline()
175 r.count_ = count; in MoveScanline()
182 if (lhs_.count_) { in Init()
189 if (rhs_.count_) { in Init()
196 if (lhs_.count_) { in Init()
200 if (rhs_.count_) { in Init()
229 if (r.count_) { in MoveRect()
232 r.count_--; in MoveRect()
233 if (r.count_ > 0 && r.rects_->top_ == curTop) { in MoveRect()
/foundation/communication/netmanager_base/utils/common_utils/include/
H A Dtiny_count_down_latch.h36 if (count_ > 0) { in Await()
37 return conditionVar_.wait_for(lk, time, [this] { return count_ == 0; }); in Await()
45 int32_t count_ = 0; member
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/commonevent/
H A Ddata_sync_event.h31 traceId_(traceId), count_(count) in DataSyncEvent()
54 return count_; in GetCount()
61 uint32_t count_; member in OHOS::DistributedData::DataSyncEvent

Completed in 9 milliseconds

12345