Home
last modified time | relevance | path

Searched refs:mWakelockRefCount (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/sensors/common/default/2.X/multihal/
DHalProxy.cpp358 stream << " Wakelock ref count: " << mWakelockRefCount << std::endl; in debug()
607 mWakelockCV.wait(lock, [&] { return mWakelockRefCount > 0 || !mThreadsRun.load(); }); in handleWakelocks()
643 decrementRefCountAndMaybeReleaseWakelock(mWakelockRefCount); in resetSharedWakelock()
682 if (mWakelockRefCount == 0) { in incrementRefCountAndMaybeAcquireWakelock()
687 mWakelockRefCount += delta; in incrementRefCountAndMaybeAcquireWakelock()
698 if (delta > mWakelockRefCount) { in decrementRefCountAndMaybeReleaseWakelock()
700 delta, mWakelockRefCount); in decrementRefCountAndMaybeReleaseWakelock()
703 if (mWakelockRefCount == 0 || timeoutStart < mWakelockTimeoutResetTime) return; in decrementRefCountAndMaybeReleaseWakelock()
704 mWakelockRefCount -= std::min(mWakelockRefCount, delta); in decrementRefCountAndMaybeReleaseWakelock()
705 if (mWakelockRefCount == 0) { in decrementRefCountAndMaybeReleaseWakelock()
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DHalProxy.h244 size_t mWakelockRefCount = 0; variable