Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DMemoryPowerCalculator.java33 LongSparseArray<? extends BatteryStats.Timer> timers = stats.getKernelMemoryStats(); in calculateRemaining() local
34 for (int i = 0; i < timers.size() && i < powerAverages.length; i++) { in calculateRemaining()
35 double mAatRail = powerAverages[(int) timers.keyAt(i)]; in calculateRemaining()
36 long timeMs = timers.valueAt(i).getTotalTimeLocked(rawRealtimeUs, statsType); in calculateRemaining()
39 Log.d(TAG, "Calculating mAh for bucket " + timers.keyAt(i) + " while unplugged"); in calculateRemaining()
41 + powerAverages[(int) timers.keyAt(i)] + " into " + mAatRail); in calculateRemaining()
DBatteryStatsImpl.java8651 ArrayList<StopwatchTimer> timers = mBsi.mSensorTimers.get(sensor); in getSensorTimerLocked() local
8652 if (timers == null) { in getSensorTimerLocked()
8653 timers = new ArrayList<StopwatchTimer>(); in getSensorTimerLocked()
8654 mBsi.mSensorTimers.put(sensor, timers); in getSensorTimerLocked()
8656 t = new DualTimer(mBsi.mClocks, this, BatteryStats.SENSOR, timers, in getSensorTimerLocked()
/frameworks/base/core/java/android/os/
DBatteryStats.java4161 final ArrayList<TimerEntry> timers = new ArrayList<>(); in dumpLocked() local
4186 timers.add(new TimerEntry(wakelocks.keyAt(iw), u.getUid(), in dumpLocked()
4665 if (timers.size() > 0) { in dumpLocked()
4666 Collections.sort(timers, timerComparator); in dumpLocked()
4668 for (int i=0; i<timers.size(); i++) { in dumpLocked()
4669 TimerEntry timer = timers.get(i); in dumpLocked()
4679 timers.clear(); in dumpLocked()