Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DWakeLockStats.java107 @NonNull public final WakeLockData backgroundWakeLockData; field in WakeLockStats.WakeLock
114 @NonNull WakeLockData backgroundWakeLockData) { in WakeLock() argument
119 this.backgroundWakeLockData = backgroundWakeLockData; in WakeLock()
124 WakeLockData totalWakeLockData, WakeLockData backgroundWakeLockData) { in isDataValid() argument
127 && backgroundWakeLockData.isDataValid() in isDataValid()
128 && totalWakeLockData.timesAcquired >= backgroundWakeLockData.timesAcquired in isDataValid()
129 && totalWakeLockData.totalTimeHeldMs >= backgroundWakeLockData.totalTimeHeldMs in isDataValid()
130 && totalWakeLockData.timeHeldMs >= backgroundWakeLockData.timeHeldMs; in isDataValid()
138 backgroundWakeLockData = new WakeLockData(in); in WakeLock()
146 backgroundWakeLockData.writeToParcel(out); in writeToParcel()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DWakeLockStatsTest.java82 final WakeLockStats.WakeLockData backgroundWakeLockData = in isDataValidOfWakeLock_invalidData_returnFalse() local
86 assertThat(WakeLockStats.WakeLock.isDataValid(totalWakeLockData, backgroundWakeLockData)) in isDataValidOfWakeLock_invalidData_returnFalse()
95 final WakeLockStats.WakeLockData backgroundWakeLockData = in isDataValidOfWakeLock_totalSmallerThanBackground_returnFalse() local
99 assertThat(WakeLockStats.WakeLock.isDataValid(totalWakeLockData, backgroundWakeLockData)) in isDataValidOfWakeLock_totalSmallerThanBackground_returnFalse()
108 final WakeLockStats.WakeLockData backgroundWakeLockData = in isDataValidOfWakeLock_returnTrue() local
112 assertThat(WakeLockStats.WakeLock.isDataValid(totalWakeLockData, backgroundWakeLockData)) in isDataValidOfWakeLock_returnTrue()
159 assertThat(actualWakelock.backgroundWakeLockData.timesAcquired).isEqualTo(6); in parcelablity()
160 assertThat(actualWakelock.backgroundWakeLockData.totalTimeHeldMs).isEqualTo(100); in parcelablity()
161 assertThat(actualWakelock.backgroundWakeLockData.timeHeldMs).isEqualTo(30); in parcelablity()
171 assertThat(actualAggregatedWakelock.backgroundWakeLockData.timesAcquired).isEqualTo(1); in parcelablity()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java1732 final WakeLockStats.WakeLockData backgroundWakeLockData = in createWakeLock() local
1735 return WakeLockStats.WakeLock.isDataValid(totalWakeLockData, backgroundWakeLockData) in createWakeLock()
1741 backgroundWakeLockData) : null; in createWakeLock()