Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/ecs/
H A Dentity_reference.h68 : entity_(entity), counter_(counter) in EntityReference()
72 …erence(const EntityReference& other) noexcept : entity_(other.entity_), counter_(other.counter_) {} in EntityReference()
76 …: entity_(BASE_NS::exchange(other.entity_, Entity {})), counter_(BASE_NS::exchange(other.counter_,… in EntityReference()
84 counter_ = other.counter_;
95 counter_ = BASE_NS::exchange(other.counter_, nullptr);
111 return EntityUtil::IsValid(entity_) && (counter_);
119 if (counter_) { in GetRefCount()
120 return counter_->GetRefCount(); in GetRefCount()
127 IEntityReferenceCounter::Ptr counter_; variable
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/
H A Dresource_handle.h180 IRenderReferenceCounter::Ptr counter_; variable
185 : handle_(handle), counter_(counter) in RenderHandleReference()
189 : handle_(other.handle_), counter_(other.counter_) in RenderHandleReference()
196 counter_ = other.counter_;
202 …: handle_(BASE_NS::exchange(other.handle_, {})), counter_(BASE_NS::exchange(other.counter_, nullpt… in RenderHandleReference()
209 counter_ = BASE_NS::exchange(other.counter_, nullptr);
216 return (handle_.id != INVALID_RESOURCE_HANDLE) && (counter_);
231 if (counter_) { in GetRefCount()
232 return counter_->GetRefCount(); in GetRefCount()
/ohos5.0/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_common_event_observer.cpp44 counter_ = 0; in AppAccountCommonEventObserver()
68 while (counter_ != MAX_TRY_TIMES) { in SubscribeCommonEvent()
70 counter_ = 0; in SubscribeCommonEvent()
73 if (++counter_ == MAX_TRY_TIMES) { in SubscribeCommonEvent()
74 ACCOUNT_LOGE("failed to subscribe common event and tried %{public}d times", counter_); in SubscribeCommonEvent()
/ohos5.0/base/msdp/device_status/libs/src/algorithm/
H A Dalgo_absolute_still.cpp63 counter_--; in ExecuteOperation()
64 if (counter_ == 0) { in ExecuteOperation()
65 counter_ = COUNTER_THRESHOLD; in ExecuteOperation()
69 counter_ = COUNTER_THRESHOLD; in ExecuteOperation()
H A Dalgo_vertical.cpp68 counter_--; in ExecuteOperation()
69 if (counter_ == 0) { in ExecuteOperation()
70 counter_ = COUNTER_THRESHOLD; in ExecuteOperation()
74 counter_ = COUNTER_THRESHOLD; in ExecuteOperation()
H A Dalgo_horizontal.cpp64 counter_--; in ExecuteOperation()
65 if (counter_ == 0) { in ExecuteOperation()
66 counter_ = COUNTER_THRESHOLD; in ExecuteOperation()
70 counter_ = COUNTER_THRESHOLD; in ExecuteOperation()
/ohos5.0/drivers/peripheral/power/interfaces/hdi_service/src/
H A Drunning_lock_counter.cpp40 ++counter_; in Increase()
41 if (counter_ == 1) { in Increase()
56 --counter_; in Decrease()
57 if (counter_ == 0) { in Decrease()
H A Drunning_lock_counter.h31 : type_(type), tag_(tag), counter_(0) {} in RunningLockCounter()
38 return counter_; in GetCount()
61 uint32_t counter_; variable
/ohos5.0/docs/zh-cn/application-dev/device/stationary/
H A Dstationary-guidelines.md53 counter_--;
54 if (counter_ == 0) {
55 counter_ = COUNTER_THRESHOLD;
59 counter_ = COUNTER_THRESHOLD;
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/
H A Dsample_module.cpp180 int8_t SampleModule::counter_ = 0; member in OHOS::ACELite::SampleModule
188 counter_ = (int8_t)newValue; in Setter()
190 HILOG_DEBUG(HILOG_MODULE_ACE, "SampleModule: Setter called, setting: %{public}d", counter_); in Setter()
196 counter_++; in Getter()
197 HILOG_DEBUG(HILOG_MODULE_ACE, "SampleModule: Getter called, returning: %{public}d", counter_); in Getter()
198 return JSI::CreateNumber(counter_); in Getter()
H A Dsample_module.h43 static int8_t counter_; // used for js descriptor test
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/dependency/commonevent/
H A Ddm_common_event_manager.cpp75 while (counter_ != MAX_TRY_TIMES) { in SubscribeServiceEvent()
78 counter_ = 0; in SubscribeServiceEvent()
81 if (++counter_ == MAX_TRY_TIMES) { in SubscribeServiceEvent()
/ohos5.0/foundation/distributedhardware/device_manager/services/service/src/publishcommonevent/
H A Ddm_screen_common_event.cpp83 while (counter_ != MAX_TRY_TIMES) { in SubscribeScreenCommonEvent()
86 counter_ = 0; in SubscribeScreenCommonEvent()
89 if (++counter_ == MAX_TRY_TIMES) { in SubscribeScreenCommonEvent()
H A Ddm_package_common_event.cpp82 while (counter_ != MAX_TRY_TIMES) { in SubscribePackageCommonEvent()
85 counter_ = 0; in SubscribePackageCommonEvent()
88 if (++counter_ == MAX_TRY_TIMES) { in SubscribePackageCommonEvent()
H A Ddm_account_common_event.cpp83 while (counter_ != MAX_TRY_TIMES) { in SubscribeAccountCommonEvent()
86 counter_ = 0; in SubscribeAccountCommonEvent()
89 if (++counter_ == MAX_TRY_TIMES) { in SubscribeAccountCommonEvent()
H A Ddm_publish_common_event.cpp85 while (counter_ != MAX_TRY_TIMES) { in SubscribePublishCommonEvent()
88 counter_ = 0; in SubscribePublishCommonEvent()
91 if (++counter_ == MAX_TRY_TIMES) { in SubscribePublishCommonEvent()
/ohos5.0/docs/en/application-dev/device/stationary/
H A Dstationary-guidelines.md53 counter_--;
54 if (counter_ == 0) {
55 counter_ = COUNTER_THRESHOLD;
59 counter_ = COUNTER_THRESHOLD;
/ohos5.0/base/powermgr/power_manager/services/native/src/runninglock/
H A Drunning_lock_mgr.h92 : type_(type), activate_(activate), counter_(0) {} in LockCounter()
99 return counter_; in GetCount()
109 uint32_t counter_; variable
H A Drunning_lock_mgr.cpp779 ++counter_; in Increase()
781 if (counter_ == 1) { in Increase()
784 --counter_; in Increase()
795 --counter_; in Decrease()
797 if (counter_ == 0) { in Decrease()
800 ++counter_; in Decrease()
811 counter_ = 0; in Clear()
/ohos5.0/foundation/ai/ai_engine/services/common/platform/threadpool/source/
H A Dthread.cpp26 IWorker::IWorker() : counter_(0), thread_(nullptr), status_(IDLE) in IWorker()
186 ++worker_->counter_; in Run()
/ohos5.0/base/account/os_account/services/accountmgr/include/appaccount/
H A Dapp_account_common_event_observer.h43 std::int32_t counter_; variable
/ohos5.0/base/msdp/device_status/libs/include/algorithm/
H A Dalgo_base.h61 int32_t counter_ { COUNTER_THRESHOLD };
/ohos5.0/foundation/ai/ai_engine/services/common/platform/threadpool/include/
H A Dthread.h117 volatile int counter_; variable
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/include/dependency/commonevent/
H A Ddm_common_event_manager.h68 int32_t counter_ = 0; variable
/ohos5.0/foundation/distributedhardware/device_manager/services/service/include/publishcommonevent/
H A Ddm_account_common_event.h66 int32_t counter_ = 0; variable

12