Home
last modified time | relevance | path

Searched refs:mRefCounter (Results 1 – 5 of 5) sorted by relevance

/hardware/interfaces/sensors/common/default/2.X/multihal/tests/
DScopedWakelock_test.cpp46 return ScopedWakelock(&mRefCounter, locked); in createScopedWakelock()
49 RefCounter mRefCounter; member in android::hardware::sensors::V2_0::implementation::ScopedWakelockTest
85 EXPECT_EQ(mRefCounter.incCount, 1); in TEST_F()
86 EXPECT_EQ(mRefCounter.decCount, 1); in TEST_F()
92 EXPECT_EQ(mRefCounter.incCount, 0); in TEST_F()
93 EXPECT_EQ(mRefCounter.decCount, 0); in TEST_F()
102 EXPECT_EQ(mRefCounter.incCount, 1); in TEST_F()
103 EXPECT_EQ(mRefCounter.decCount, 1); in TEST_F()
/hardware/interfaces/sensors/common/default/2.X/multihal/
DScopedWakelock.cpp36 mRefCounter = other.mRefCounter; in operator =()
40 other.mRefCounter = nullptr; in operator =()
47 : mRefCounter(refCounter), mLocked(locked) { in ScopedWakelock()
49 mLocked = mRefCounter->incrementRefCountAndMaybeAcquireWakelock(1, &mCreatedAtTimeNs); in ScopedWakelock()
55 mRefCounter->decrementRefCountAndMaybeReleaseWakelock(1, mCreatedAtTimeNs); in ~ScopedWakelock()
DHalProxyCallback.cpp61 ScopedWakelock wakelock(mRefCounter, lock); in createScopedWakelock()
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DHalProxyCallback.h86 : mCallback(callback), mRefCounter(refCounter), mSubHalIndex(subHalIndex) {} in HalProxyCallbackBase()
95 V2_0::implementation::IScopedWakelockRefCounter* mRefCounter; variable
/hardware/interfaces/sensors/common/default/2.X/multihal/include/V2_0/
DScopedWakelock.h93 IScopedWakelockRefCounter* mRefCounter; variable