Searched refs:mTimeBase (Results 1 – 3 of 3) sorted by relevance
56 private TimeBase mTimeBase; field in LongSamplingCounterTest62 mCounter = new LongSamplingCounter(mTimeBase); in setUp()63 Mockito.reset(mTimeBase); in setUp()76 mCounter = new LongSamplingCounter(mTimeBase, parcel); in testReadWriteParcel()116 when(mTimeBase.isRunning()).thenReturn(true); in testAddCountLocked()124 when(mTimeBase.isRunning()).thenReturn(false); in testAddCountLocked()141 when(mTimeBase.isRunning()).thenReturn(true); in testUpdate()149 when(mTimeBase.isRunning()).thenReturn(false); in testUpdate()172 verifyZeroInteractions(mTimeBase); in testReset()179 verify(mTimeBase).remove(mCounter); in testReset()[all …]
69 @Mock private TimeBase mTimeBase; field in LongSamplingCounterArrayTest75 mCounterArray = new LongSamplingCounterArray(mTimeBase); in setUp()76 Mockito.reset(mTimeBase); in setUp()88 mCounterArray = LongSamplingCounterArray.readFromParcel(parcel, mTimeBase); in testReadWriteParcel()105 mCounterArray = LongSamplingCounterArray.readSummaryFromParcelLocked(parcel, mTimeBase); in testReadWriteSummaryParcel()136 when(mTimeBase.isRunning()).thenReturn(false); in testGetCountsLocked()144 when(mTimeBase.isRunning()).thenReturn(true); in testGetCountsLocked()167 when(mTimeBase.isRunning()).thenReturn(true); in testAddCountLocked()215 verifyZeroInteractions(mTimeBase); in testReset()223 verify(mTimeBase).remove(mCounterArray); in testReset()[all …]
1275 final TimeBase mTimeBase; field in BatteryStatsImpl.Counter1281 mTimeBase = timeBase; in Counter()1290 mTimeBase = timeBase; in Counter()1360 if (mTimeBase.isRunning()) { in stepAtomic()1366 if (mTimeBase.isRunning()) { in addAtomic()1383 mTimeBase.remove(this); in detach()1402 final TimeBase mTimeBase; field in BatteryStatsImpl.LongSamplingCounterArray1408 mTimeBase = timeBase; in LongSamplingCounterArray()1416 mTimeBase = timeBase; in LongSamplingCounterArray()1454 addCountLocked(counts, mTimeBase.isRunning()); in addCountLocked()[all …]