Home
last modified time | relevance | path

Searched refs:LockCounter (Results 1 – 3 of 3) sorted by relevance

/base/powermgr/power_manager/services/native/include/
Drunning_lock_mgr.h97 class LockCounter {
99 LockCounter(RunningLockType type, std::function<void(bool)> activate) in LockCounter() function
101 ~LockCounter() = default;
171 std::map<RunningLockType, std::shared_ptr<LockCounter>> lockCounters_;
/base/powermgr/power_manager/services/native/src/
Drunning_lock_mgr.cpp83 std::make_shared<LockCounter>( in InitLocksTypeScreen()
119 std::make_shared<LockCounter>( in InitLocksTypeBackground()
150 std::make_shared<LockCounter>( in InitLocksTypeProximity()
290 std::shared_ptr<LockCounter> counter = iterator->second; in Lock()
334 std::shared_ptr<LockCounter> counter = iterator->second; in UnLock()
369 std::shared_ptr<LockCounter> counter = iterator->second; in GetValidRunningLockNum()
705 uint32_t RunningLockMgr::LockCounter::Increase(const sptr<IRemoteObject>& remoteObj, in Increase()
721 uint32_t RunningLockMgr::LockCounter::Decrease(const sptr<IRemoteObject> remoteObj, in Decrease()
737 void RunningLockMgr::LockCounter::Clear() in Clear()
/base/powermgr/power_manager/test/unittest/src/
Drunning_lock_native_test.cpp317 std::shared_ptr<RunningLockMgr::LockCounter> ptr1 =
324 std::shared_ptr<RunningLockMgr::LockCounter> ptr2 =
335 std::shared_ptr<RunningLockMgr::LockCounter> ptr3 =