Home
last modified time | relevance | path

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

/hardware/interfaces/sensors/2.0/multihal/
DHalProxy.cpp290 stream << " Wakelock ref count: " << mWakelockRefCount << std::endl; in debug()
530 mWakelockCV.wait(lock, [&] { return mWakelockRefCount > 0 || !mThreadsRun.load(); }); in handleWakelocks()
566 decrementRefCountAndMaybeReleaseWakelock(mWakelockRefCount); in resetSharedWakelock()
605 if (mWakelockRefCount == 0) { in incrementRefCountAndMaybeAcquireWakelock()
610 mWakelockRefCount += delta; in incrementRefCountAndMaybeAcquireWakelock()
622 if (mWakelockRefCount == 0 || timeoutStart < mWakelockTimeoutResetTime) return; in decrementRefCountAndMaybeReleaseWakelock()
623 mWakelockRefCount -= std::min(mWakelockRefCount, delta); in decrementRefCountAndMaybeReleaseWakelock()
624 if (mWakelockRefCount == 0) { in decrementRefCountAndMaybeReleaseWakelock()
/hardware/interfaces/sensors/2.0/multihal/include/
DHalProxy.h239 size_t mWakelockRefCount = 0; variable