Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongSamplingCounterArrayTest.java68 @Mock private TimeBase mTimeBase; field in LongSamplingCounterArrayTest
74 mCounterArray = new LongSamplingCounterArray(mTimeBase); in setUp()
75 Mockito.reset(mTimeBase); in setUp()
87 mCounterArray = LongSamplingCounterArray.readFromParcel(parcel, mTimeBase); in testReadWriteParcel()
105 mCounterArray = LongSamplingCounterArray.readSummaryFromParcelLocked(parcel, mTimeBase); in testReadWriteSummaryParcel()
139 when(mTimeBase.isRunning()).thenReturn(false); in testGetCountsLocked()
144 when(mTimeBase.isRunning()).thenReturn(true); in testGetCountsLocked()
181 verifyZeroInteractions(mTimeBase); in testReset()
190 verify(mTimeBase).remove(mCounterArray); in testReset()
191 verifyNoMoreInteractions(mTimeBase); in testReset()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java852 final TimeBase mTimeBase; field in BatteryStatsImpl.Counter
858 mTimeBase = timeBase; in Counter()
867 mTimeBase = timeBase; in Counter()
924 if (mTimeBase.isRunning()) { in stepAtomic()
930 if (mTimeBase.isRunning()) { in addAtomic()
947 mTimeBase.remove(this); in detach()
966 final TimeBase mTimeBase; field in BatteryStatsImpl.LongSamplingCounterArray
973 mTimeBase = timeBase; in LongSamplingCounterArray()
982 mTimeBase = timeBase; in LongSamplingCounterArray()
1004 long[] val = copyArray(mTimeBase.isRunning() ? mCounts : mPluggedCounts, null); in getCountsLocked()
[all …]