/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | SpecialApp.java | 46 REMAINDER(Uid.UID_SYNTHETIC), 52 GLOBAL(Uid.UID_SYNTHETIC), 56 GOOGLE_SERVICES(Uid.UID_VARIES); 61 public static class Uid { class in SpecialApp
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 50 public void writeUid(HealthStatsWriter uidWriter, BatteryStats bs, BatteryStats.Uid uid) { in writeUid() 53 SparseArray<? extends BatteryStats.Uid.Sensor> sensors; in writeUid() 54 SparseArray<? extends BatteryStats.Uid.Pid> pids; in writeUid() 85 for (final Map.Entry<String,? extends BatteryStats.Uid.Wakelock> entry: in writeUid() 88 final BatteryStats.Uid.Wakelock wakelock = entry.getValue(); in writeUid() 126 if (sensorId == BatteryStats.Uid.Sensor.GPS) { in writeUid() 145 for (final Map.Entry<String,? extends BatteryStats.Uid.Proc> entry: in writeUid() 153 for (final Map.Entry<String,? extends BatteryStats.Uid.Pkg> entry: in writeUid() 255 uid.getProcessStateTimer(BatteryStats.Uid.PROCESS_STATE_TOP)); in writeUid() 259 uid.getProcessStateTimer(BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE)); in writeUid() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsImplTest.java | 20 import static android.os.BatteryStats.Uid.NUM_PROCESS_STATE; 21 import static android.os.BatteryStats.Uid.PROCESS_STATE_BACKGROUND; 22 import static android.os.BatteryStats.Uid.PROCESS_STATE_CACHED; 23 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE; 24 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 98 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUids[i]); in testUpdateProcStateCpuTimes() 109 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() 136 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() 168 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() 207 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() [all …]
|
D | BatteryStatsCpuTimesTest.java | 233 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateClusterSpeedTimes() 276 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked() 310 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked() 350 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked_isolatedUid() 386 BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked_isolatedUid() 442 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked_invalidUid() 492 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked_withPartialTimers() 510 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(partialTimerUids[i]); in testReadKernelUidCpuTimesLocked_withPartialTimers() 526 final BatteryStats.Uid.Proc proc = u.getProcessStats().get("*wakelock*"); in testReadKernelUidCpuTimesLocked_withPartialTimers() 569 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuFreqTimesLocked() [all …]
|
D | BatteryStatsNoteTest.java | 25 import android.os.BatteryStats.Uid.Sensor; 32 import com.android.internal.os.BatteryStatsImpl.Uid; 153 BatteryStats.Uid uid = bi.getUidStats().get(UID); in testNoteUidProcessStateLocked() 156 actualRunTimeUs = uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_TOP, elapsedTimeUs, in testNoteUidProcessStateLocked() 161 actualRunTimeUs = uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE, in testNoteUidProcessStateLocked() 166 actualRunTimeUs = uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_TOP_SLEEPING, in testNoteUidProcessStateLocked() 171 actualRunTimeUs = uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_FOREGROUND, in testNoteUidProcessStateLocked() 177 actualRunTimeUs = uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_BACKGROUND, in testNoteUidProcessStateLocked() 185 actualRunTimeUs = uid.getProcessStateTime(BatteryStats.Uid.PROCESS_STATE_CACHED, in testNoteUidProcessStateLocked() 389 Uid.Pkg pkg = bi.getPackageStatsLocked(UID, "com.foo.bar"); in testNoteWakupAlarmLocked() [all …]
|
D | PowerCalculatorTest.java | 55 BatteryStats.Uid u = mock(BatteryStats.Uid.class); in testMediaPowerCalculator()
|
D | BstatsCpuTimesValidationTest.java | 20 import static android.os.BatteryStats.Uid.NUM_PROCESS_STATE; 21 import static android.os.BatteryStats.Uid.PROCESS_STATE_BACKGROUND; 22 import static android.os.BatteryStats.Uid.PROCESS_STATE_CACHED; 23 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND; 24 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE; 25 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 26 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP_SLEEPING; 27 import static android.os.BatteryStats.Uid.UID_PROCESS_TYPES; 714 : "expected=" + getStateName(BatteryStats.Uid.class, expectedState) in assertProcState() 715 + ", actual=" + getStateName(BatteryStats.Uid.class, actualState) in assertProcState()
|
D | BatteryStatsHelperTest.java | 20 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 78 private BatteryStats.Uid mUid; 299 final BatteryStats.Uid uid = mock(BatteryStats.Uid.class, RETURNS_DEEP_STUBS); in createTestSmearBatterySipper()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 38 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() 41 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats(); in calculateApp() 44 final BatteryStats.Uid.Sensor sensor = sensorStats.valueAt(ise); in calculateApp() 50 case BatteryStats.Uid.Sensor.GPS: in calculateApp()
|
D | WakelockPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() 36 final ArrayMap<String, ? extends BatteryStats.Uid.Wakelock> wakelockStats = in calculateApp() 40 final BatteryStats.Uid.Wakelock wakelock = wakelockStats.valueAt(i); in calculateApp()
|
D | CpuPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() 84 final ArrayMap<String, ? extends BatteryStats.Uid.Proc> processStats = u.getProcessStats(); in calculateApp() 87 final BatteryStats.Uid.Proc ps = processStats.valueAt(i); in calculateApp()
|
D | BatterySipper.java | 19 import android.os.BatteryStats.Uid; 30 public Uid uidObj; 158 public BatterySipper(DrainType drainType, Uid uid, double value) { in BatterySipper()
|
D | BatteryStatsImpl.java | 458 final Uid u; in updateProcStateCpuTimes() 534 final Uid u = getAvailableUidStatsLocked(mapUid(uid)); in copyFromAllUidsCpuTimes() 553 if (procState >= 0 && procState < Uid.NUM_PROCESS_STATE) { in copyFromAllUidsCpuTimes() 645 final SparseArray<BatteryStatsImpl.Uid> mUidStats = new SparseArray<>(); 1987 final Uid mUid; 2004 BatchTimer(Clocks clocks, Uid uid, int type, TimeBase timeBase, Parcel in) { in BatchTimer() 2012 BatchTimer(Clocks clocks, Uid uid, int type, TimeBase timeBase) { in BatchTimer() 2152 public DurationTimer(Clocks clocks, Uid uid, int type, ArrayList<StopwatchTimer> timerPool, in DurationTimer() 2160 public DurationTimer(Clocks clocks, Uid uid, int type, ArrayList<StopwatchTimer> timerPool, in DurationTimer() 2335 final Uid mUid; [all …]
|
D | WifiPowerEstimator.java | 51 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() 73 for (int bin = 0; bin < BatteryStats.Uid.NUM_WIFI_BATCHED_SCAN_BINS; bin++) { in calculateApp()
|
D | PowerCalculator.java | 35 public abstract void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
D | CameraPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
D | FlashlightPowerCalculator.java | 31 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
D | MediaPowerCalculator.java | 36 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
D | BatteryStatsHelper.java | 28 import android.os.BatteryStats.Uid; 573 final SparseArray<? extends Uid> uidStats = mStats.getUidStats(); in processAppUsage() 576 final Uid u = uidStats.valueAt(iu); in processAppUsage() 921 final BatteryStats.Uid uid = sippers.get(i).uidObj; in smearScreenBatterySipper() 1003 public long getForegroundActivityTotalTimeUs(BatteryStats.Uid uid, long rawRealtimeUs) { in getForegroundActivityTotalTimeUs() 1013 public long getProcessForegroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessForegroundTimeMs() 1015 final int foregroundTypes[] = {BatteryStats.Uid.PROCESS_STATE_TOP}; in getProcessForegroundTimeMs()
|
D | MemoryPowerCalculator.java | 25 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
D | BluetoothPowerCalculator.java | 37 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
D | WifiPowerCalculator.java | 41 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 623 return Uid.PROCESS_STATE_TOP; in mapToInternalProcessState() 626 return Uid.PROCESS_STATE_FOREGROUND_SERVICE; in mapToInternalProcessState() 629 return Uid.PROCESS_STATE_FOREGROUND; in mapToInternalProcessState() 631 return Uid.PROCESS_STATE_BACKGROUND; in mapToInternalProcessState() 633 return Uid.PROCESS_STATE_TOP_SLEEPING; in mapToInternalProcessState() 635 return Uid.PROCESS_STATE_HEAVY_WEIGHT; in mapToInternalProcessState() 637 return Uid.PROCESS_STATE_CACHED; in mapToInternalProcessState() 644 public static abstract class Uid { class in BatteryStats 647 public Uid() { in Uid() method in BatteryStats.Uid 2823 public abstract SparseArray<? extends Uid> getUidStats(); in getUidStats() [all …]
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | RawBatteryStatsTest.java | 73 final RawBatteryStats.Uid line = (RawBatteryStats.Uid)records.get(1); in testUid()
|
/frameworks/base/core/proto/android/service/ |
D | procstats.proto | 145 // Uid of the process. 214 // Uid of the process. 261 // Uid of the package.
|