Home
last modified time | relevance | path

Searched refs:timeHeldMs (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/os/
DWakeLockStats.java46 public final long timeHeldMs; field in WakeLockStats.WakeLockData
48 public WakeLockData(int timesAcquired, long totalTimeHeldMs, long timeHeldMs) { in WakeLockData() argument
51 this.timeHeldMs = timeHeldMs; in WakeLockData()
60 && timeHeldMs >= 0 in isDataValid()
61 && totalTimeHeldMs >= timeHeldMs; in isDataValid()
66 return timesAcquired == 0 && totalTimeHeldMs == 0 && timeHeldMs == 0; in isEmpty()
72 timeHeldMs = in.readLong(); in WakeLockData()
78 out.writeLong(timeHeldMs); in writeToParcel()
89 + timeHeldMs in toString()
130 && totalWakeLockData.timeHeldMs >= backgroundWakeLockData.timeHeldMs; in isDataValid()
/frameworks/base/core/tests/coretests/src/android/os/
DWakeLockStatsTest.java158 assertThat(actualWakelock.totalWakeLockData.timeHeldMs).isEqualTo(50); in parcelablity()
161 assertThat(actualWakelock.backgroundWakeLockData.timeHeldMs).isEqualTo(30); in parcelablity()
170 assertThat(actualAggregatedWakelock.totalWakeLockData.timeHeldMs).isEqualTo(30); in parcelablity()
173 assertThat(actualAggregatedWakelock.backgroundWakeLockData.timeHeldMs).isEqualTo(30); in parcelablity()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsImplTest.java636 assertThat(wakeLock1.totalWakeLockData.timeHeldMs).isEqualTo(0); // Not currently held in testGetWakeLockStats()
642 assertThat(wakeLock3.totalWakeLockData.timeHeldMs).isEqualTo(0); // Not currently held in testGetWakeLockStats()
649 assertThat(wakeLock4.totalWakeLockData.timeHeldMs).isEqualTo(0); // Not currently held in testGetWakeLockStats()
655 assertThat(wakeLock5.totalWakeLockData.timeHeldMs).isEqualTo(0); // Not currently held in testGetWakeLockStats()
668 assertThat(aggregatedWakeLock1.totalWakeLockData.timeHeldMs).isEqualTo(0); in testGetWakeLockStats()
676 assertThat(aggregatedWakeLock2.totalWakeLockData.timeHeldMs).isEqualTo(7000); // 13000-6000 in testGetWakeLockStats()
686 assertThat(aggregatedWakeLock3.totalWakeLockData.timeHeldMs).isEqualTo(0); in testGetWakeLockStats()
695 assertThat(aggregatedWakeLock4.totalWakeLockData.timeHeldMs).isEqualTo(0); in testGetWakeLockStats()