Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DMemoryPowerCalculator.java55 LongSparseArray<? extends BatteryStats.Timer> timers = batteryStats.getKernelMemoryStats(); in calculateDuration() local
56 for (int i = 0; i < timers.size() && i < mPowerEstimators.length; i++) { in calculateDuration()
57 usageDurationMs += mPowerEstimators[i].calculateDuration(timers.valueAt(i), in calculateDuration()
65 LongSparseArray<? extends BatteryStats.Timer> timers = batteryStats.getKernelMemoryStats(); in calculatePower() local
66 for (int i = 0; i < timers.size() && i < mPowerEstimators.length; i++) { in calculatePower()
67 UsageBasedPowerEstimator estimator = mPowerEstimators[(int) timers.keyAt(i)]; in calculatePower()
69 estimator.calculateDuration(timers.valueAt(i), rawRealtimeUs, statsType); in calculatePower()
DBatteryStatsImpl.java10428 ArrayList<StopwatchTimer> timers = mBsi.mSensorTimers.get(sensor); in getSensorTimerLocked() local
10429 if (timers == null) { in getSensorTimerLocked()
10430 timers = new ArrayList<StopwatchTimer>(); in getSensorTimerLocked()
10431 mBsi.mSensorTimers.put(sensor, timers); in getSensorTimerLocked()
10433 t = new DualTimer(mBsi.mClocks, this, BatteryStats.SENSOR, timers, in getSensorTimerLocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkTypeController.java295 private void createTimerRules(String icons, String timers, String secondaryTimers) { in createTimerRules() argument
324 if (!TextUtils.isEmpty(timers)) { in createTimerRules()
326 for (String triple : timers.trim().split(";")) { in createTimerRules()
/frameworks/base/core/java/android/os/
DBatteryStats.java4963 final ArrayList<TimerEntry> timers = new ArrayList<>(); in dumpLocked() local
4988 timers.add(new TimerEntry(wakelocks.keyAt(iw), u.getUid(), in dumpLocked()
5389 if (timers.size() > 0) { in dumpLocked()
5390 Collections.sort(timers, timerComparator); in dumpLocked()
5392 for (int i=0; i<timers.size(); i++) { in dumpLocked()
5393 TimerEntry timer = timers.get(i); in dumpLocked()
5403 timers.clear(); in dumpLocked()