Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/stats/wakeups/
DCpuWakeupStats.java77 final LongSparseArray<Wakeup> mWakeupEvents = new LongSparseArray<>(); field in CpuWakeupStats
214 mWakeupEvents.put(elapsedRealtime, parsedWakeup); in noteWakeupTimeAndReason()
221 int lastIdx = mWakeupEvents.lastIndexOnOrBefore(elapsedRealtime - retentionDuration); in noteWakeupTimeAndReason()
223 mWakeupEvents.removeAt(i); in noteWakeupTimeAndReason()
276 final int startIdx = mWakeupEvents.firstIndexOnOrAfter( in attemptAttributionWith()
278 final int endIdx = mWakeupEvents.lastIndexOnOrBefore( in attemptAttributionWith()
282 final Wakeup wakeup = mWakeupEvents.valueAt(wakeupIdx); in attemptAttributionWith()
337 for (int i = mWakeupEvents.size() - 1; i >= 0; i--) { in dump()
338 TimeUtils.formatDuration(mWakeupEvents.keyAt(i), nowElapsed, pw); in dump()
342 final Wakeup wakeup = mWakeupEvents.valueAt(i); in dump()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/
DCpuWakeupStatsTest.java101 assertThat(obj.mWakeupEvents.size()).isEqualTo(timestamps.size()); in removesOldWakeups()
104 assertThat(obj.mWakeupEvents.size()).isEqualTo(timestamps.size()); in removesOldWakeups()
109 assertThat(obj.mWakeupEvents.lastIndexOnOrBefore(now - retention)).isLessThan(0); in removesOldWakeups()
353 assertThat(obj.mWakeupEvents.size()).isEqualTo(0); in unknownIrqSoloIgnored()
410 assertThat(obj.mWakeupEvents.size()).isEqualTo(0); in unknownFormatWakeupIgnored()
427 assertThat(obj.mWakeupEvents.size()).isEqualTo(1); in abnormalAlarmAttribution()
428 assertThat(obj.mWakeupEvents.valueAt(0).mType).isEqualTo(Wakeup.TYPE_ABNORMAL); in abnormalAlarmAttribution()
456 assertThat(obj.mWakeupEvents.size()).isEqualTo(0); in abortIgnored()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java98 private final RingBuffer<WakeupEvent> mWakeupEvents = field in NetdEventListenerService
369 mWakeupEvents.append(event); in addWakeupEvent()
418 for (WakeupEvent wakeup : mWakeupEvents.toArray()) { in list()