/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 19 import android.os.BatteryStats; 44 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 45 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 49 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 50 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 54 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 55 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 71 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 72 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 78 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() [all …]
|
D | BatteryStatsStopwatchTimerTest.java | 19 import android.os.BatteryStats; 38 null, BatteryStats.SENSOR, null, timeBase); in testCount() 47 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 49 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 51 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 53 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 58 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 66 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 69 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 75 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() [all …]
|
D | BatteryStatsHistoryIteratorTest.java | 22 import android.os.BatteryStats; 62 BatteryStats.HistoryItem item = new BatteryStats.HistoryItem(); in testIterator() 66 BatteryStats.HistoryItem.CMD_RESET, BatteryStats.HistoryItem.EVENT_NONE, in testIterator() 71 BatteryStats.HistoryItem.CMD_UPDATE, BatteryStats.HistoryItem.EVENT_NONE, in testIterator() 76 BatteryStats.HistoryItem.CMD_UPDATE, BatteryStats.HistoryItem.EVENT_NONE, in testIterator() 81 BatteryStats.HistoryItem.CMD_UPDATE, BatteryStats.HistoryItem.EVENT_NONE, in testIterator() 86 BatteryStats.HistoryItem.CMD_UPDATE, in testIterator() 87 BatteryStats.HistoryItem.EVENT_ALARM | BatteryStats.HistoryItem.EVENT_FLAG_START, in testIterator() 92 BatteryStats.HistoryItem.CMD_UPDATE, in testIterator() 93 BatteryStats.HistoryItem.EVENT_ALARM | BatteryStats.HistoryItem.EVENT_FLAG_FINISH, in testIterator() [all …]
|
D | BatteryStatsSensorTest.java | 20 import android.os.BatteryStats; 58 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testSensorStartStop() 60 BatteryStats.Timer sensorBgTimer = bi.getUidStats().get(UID).getSensorStats() in testSensorStartStop() 63 assertEquals(2, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop() 65 clocks.realtime * 1000, BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop() 67 assertEquals(1, sensorBgTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop() 69 clocks.realtime * 1000, BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop() 89 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testCountingWhileOffBattery() 92 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery() 93 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery() [all …]
|
D | BatteryStatsCounterTest.java | 19 import android.os.BatteryStats; 46 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter() 54 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter() 61 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter() 67 assertEquals(6, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter() 82 assertEquals(3, origCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling() 94 assertEquals(4, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling() 99 assertEquals(4, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling() 104 assertEquals(6, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling() 116 assertEquals(7, fullParcelCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling() [all …]
|
D | PowerCalculatorTest.java | 23 import android.os.BatteryStats; 57 BatteryStats.Uid u = mock(BatteryStats.Uid.class); in testMediaPowerCalculator() 58 BatteryStats.Timer audioTimer = mock(BatteryStats.Timer.class); in testMediaPowerCalculator() 61 BatteryStats.Timer videoTimer = mock(BatteryStats.Timer.class); in testMediaPowerCalculator()
|
D | BatteryUsageStatsProviderTest.java | 25 import android.os.BatteryStats; 131 BatteryStats.HistoryItem item = new BatteryStats.HistoryItem(); in testWriteAndReadHistory() 135 BatteryStats.HistoryItem.CMD_RESET, BatteryStats.HistoryItem.EVENT_NONE, in testWriteAndReadHistory() 140 BatteryStats.HistoryItem.CMD_UPDATE, BatteryStats.HistoryItem.EVENT_NONE, in testWriteAndReadHistory() 145 BatteryStats.HistoryItem.CMD_UPDATE, BatteryStats.HistoryItem.EVENT_NONE, in testWriteAndReadHistory() 150 BatteryStats.HistoryItem.CMD_UPDATE, in testWriteAndReadHistory() 151 BatteryStats.HistoryItem.EVENT_ALARM | BatteryStats.HistoryItem.EVENT_FLAG_START, in testWriteAndReadHistory() 156 BatteryStats.HistoryItem.CMD_UPDATE, in testWriteAndReadHistory() 157 BatteryStats.HistoryItem.EVENT_ALARM | BatteryStats.HistoryItem.EVENT_FLAG_FINISH, in testWriteAndReadHistory() 163 private void assertHistoryItem(BatteryStats.HistoryItem item, int command, int eventCode, in assertHistoryItem()
|
D | BatteryStatsImplTest.java | 19 import static android.os.BatteryStats.STATS_SINCE_CHARGED; 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; 34 import android.os.BatteryStats; 99 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUids[i]); in testUpdateProcStateCpuTimes() 110 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() 137 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 19 import android.os.BatteryStats; 20 import static android.os.BatteryStats.STATS_SINCE_CHARGED; 50 public void writeUid(HealthStatsWriter uidWriter, BatteryStats bs, BatteryStats.Uid uid) { in writeUid() 52 BatteryStats.Timer timer; in writeUid() 53 SparseArray<? extends BatteryStats.Uid.Sensor> sensors; in writeUid() 54 SparseArray<? extends BatteryStats.Uid.Pid> pids; in writeUid() 55 BatteryStats.ControllerActivityCounter controller; 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() 91 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_FULL); in writeUid() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 21 import android.os.BatteryStats; 42 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 60 private double calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() 63 BatteryStats.STATS_SINCE_CHARGED); in calculateApp() 65 calculateDuration(u, rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED)) in calculateApp() 71 protected void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() 76 private long calculateDuration(BatteryStats.Uid u, long rawRealtimeUs, int statsType) { in calculateDuration() 78 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats(); in calculateDuration() 82 if (sensorHandle == BatteryStats.Uid.Sensor.GPS) { in calculateDuration() 86 final BatteryStats.Uid.Sensor sensor = sensorStats.valueAt(ise); in calculateDuration() [all …]
|
D | MobileRadioPowerCalculator.java | 19 import android.os.BatteryStats; 87 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 93 BatteryStats.STATS_SINCE_CHARGED); in calculate() 98 final BatteryStats.Uid uid = app.getBatteryStatsUid(); in calculate() 123 private void calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() 126 final long radioActiveDurationMs = calculateDuration(u, BatteryStats.STATS_SINCE_CHARGED); in calculateApp() 142 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 150 final BatteryStats.Uid u = app.uidObj; in calculate() 174 private void calculateApp(BatterySipper app, BatteryStats.Uid u, int statsType, in calculateApp() 185 app.mobileRxPackets = u.getNetworkActivityPackets(BatteryStats.NETWORK_MOBILE_RX_DATA, in calculateApp() [all …]
|
D | BatteryUsageStatsProvider.java | 21 import android.os.BatteryStats; 42 private final BatteryStats mStats; 48 public BatteryUsageStatsProvider(Context context, BatteryStats stats) { in BatteryUsageStatsProvider() 53 public BatteryUsageStatsProvider(Context context, BatteryStats stats, in BatteryUsageStatsProvider() 163 SparseArray<? extends BatteryStats.Uid> uidStats = mStats.getUidStats(); in getCurrentBatteryUsageStats() 165 final BatteryStats.Uid uid = uidStats.valueAt(i); in getCurrentBatteryUsageStats() 188 ArrayList<BatteryStats.HistoryTag> tags = new ArrayList<>( in getCurrentBatteryUsageStats() 190 for (Map.Entry<BatteryStats.HistoryTag, Integer> entry : in getCurrentBatteryUsageStats() 192 final BatteryStats.HistoryTag tag = entry.getKey(); in getCurrentBatteryUsageStats() 203 private long getProcessForegroundTimeMs(BatteryStats.Uid uid, long realtimeUs) { in getProcessForegroundTimeMs() [all …]
|
D | GnssPowerCalculator.java | 20 import android.os.BatteryStats; 47 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 51 BatteryStats.STATS_SINCE_CHARGED); in calculate() 79 private double calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() 82 final long durationMs = computeDuration(u, rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in calculateApp() 99 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 114 private void calculateApp(BatterySipper app, BatteryStats.Uid u, in calculateApp() 117 final long durationMs = computeDuration(u, rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in calculateApp() 133 private long computeDuration(BatteryStats.Uid u, long rawRealtimeUs, int statsType) { in computeDuration() 134 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats(); in computeDuration() [all …]
|
D | ScreenPowerCalculator.java | 20 import android.os.BatteryStats; 60 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 67 rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED, consumptionUC); in calculate() 117 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 159 @BatteryConsumer.PowerModel int powerModel, BatteryStats batteryStats, in calculateTotalDurationAndPower() 176 BatteryStats.Uid u, long rawRealtimeUs) { in calculateAppUsingMeasuredEnergy() 189 private long calculateDuration(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculateDuration() 193 private double calculateTotalPowerFromBrightness(BatteryStats batteryStats, long rawRealtimeUs, in calculateTotalPowerFromBrightness() 196 for (int i = 0; i < BatteryStats.NUM_SCREEN_BRIGHTNESS_BINS; i++) { in calculateTotalPowerFromBrightness() 200 * (i + 0.5f) / BatteryStats.NUM_SCREEN_BRIGHTNESS_BINS; in calculateTotalPowerFromBrightness() [all …]
|
D | MemoryPowerCalculator.java | 4 import android.os.BatteryStats; 27 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 30 BatteryStats.STATS_SINCE_CHARGED); in calculate() 32 BatteryStats.STATS_SINCE_CHARGED); in calculate() 40 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 53 private long calculateDuration(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculateDuration() 55 LongSparseArray<? extends BatteryStats.Timer> timers = batteryStats.getKernelMemoryStats(); in calculateDuration() 63 private double calculatePower(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculatePower() 65 LongSparseArray<? extends BatteryStats.Timer> timers = batteryStats.getKernelMemoryStats(); in calculatePower()
|
D | WakelockPowerCalculator.java | 19 import android.os.BatteryStats; 47 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 60 BatteryStats.STATS_SINCE_CHARGED); in calculate() 77 BatteryStats.STATS_SINCE_CHARGED, osPowerMah, osDurationMs, totalAppDurationMs); in calculate() 104 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 139 private void calculateApp(PowerAndDuration result, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() 142 final ArrayMap<String, ? extends BatteryStats.Uid.Wakelock> wakelockStats = in calculateApp() 146 final BatteryStats.Uid.Wakelock wakelock = wakelockStats.valueAt(i); in calculateApp() 150 BatteryStats.Timer timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL); in calculateApp() 165 private void calculateRemaining(PowerAndDuration result, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() [all …]
|
D | BluetoothPowerCalculator.java | 19 import android.os.BatteryStats; 20 import android.os.BatteryStats.ControllerActivityCounter; 52 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 114 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 162 private void calculateApp(BatterySipper app, BatteryStats.Uid u, int statsType, in calculateApp() 174 app.btRxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_BT_RX_DATA, statsType); in calculateApp() 175 app.btTxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_BT_TX_DATA, statsType); in calculateApp() 186 return counter.getIdleTimeCounter().getCountLocked(BatteryStats.STATS_SINCE_CHARGED) in calculateDuration() 187 + counter.getRxTimeCounter().getCountLocked(BatteryStats.STATS_SINCE_CHARGED) in calculateDuration() 188 + counter.getTxTimeCounters()[0].getCountLocked(BatteryStats.STATS_SINCE_CHARGED); in calculateDuration() [all …]
|
D | SystemServicePowerCalculator.java | 20 import android.os.BatteryStats; 65 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 67 final BatteryStats.Uid systemUid = batteryStats.getUidStats().get(Process.SYSTEM_UID); in calculate() 102 final BatteryStats.Uid uid = app.getBatteryStatsUid(); in calculate() 120 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 123 final BatteryStats.Uid systemUid = batteryStats.getUidStats().get(Process.SYSTEM_UID); in calculate() 160 final BatteryStats.Uid uid = app.uidObj; in calculate() 168 private double calculatePowerUsingMeasuredConsumption(BatteryStats batteryStats, in calculatePowerUsingMeasuredConsumption() 169 BatteryStats.Uid systemUid, long consumptionUC) { in calculatePowerUsingMeasuredConsumption() 176 systemUid, BatteryStats.STATS_SINCE_CHARGED); in calculatePowerUsingMeasuredConsumption() [all …]
|
D | BatteryChargeCalculator.java | 19 import android.os.BatteryStats; 33 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 36 batteryStats.getDischargeAmount(BatteryStats.STATS_SINCE_CHARGED)); in calculate() 52 batteryStats.getDischargeAmount(BatteryStats.STATS_SINCE_CHARGED)) in calculate() 66 long dischargeMah = batteryStats.getUahDischarge(BatteryStats.STATS_SINCE_CHARGED) / 1000; in calculate() 78 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate()
|
D | PowerCalculator.java | 20 import android.os.BatteryStats; 55 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 77 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 98 protected void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() 110 protected void calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() 122 if (measuredEnergyUC != BatteryStats.POWER_DATA_UNAVAILABLE in getPowerModel() 130 return measuredEnergyUC != BatteryStats.POWER_DATA_UNAVAILABLE in getPowerModel() 154 if (measuredEnergyUC != BatteryStats.POWER_DATA_UNAVAILABLE) { in getMeasuredOrEstimatedPower()
|
D | CameraPowerCalculator.java | 19 import android.os.BatteryStats; 40 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 45 BatteryStats.STATS_SINCE_CHARGED) / 1000; in calculate() 58 protected void calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() 62 BatteryStats.STATS_SINCE_CHARGED); in calculateApp() 69 protected void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
D | FlashlightPowerCalculator.java | 19 import android.os.BatteryStats; 38 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 43 BatteryStats.STATS_SINCE_CHARGED) / 1000; in calculate() 56 protected void calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() 59 rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in calculateApp() 66 protected void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp()
|
D | BatteryStatsHistoryIterator.java | 21 import android.os.BatteryStats; 34 private final BatteryStats.HistoryStepDetails mReadHistoryStepDetails = 35 new BatteryStats.HistoryStepDetails(); 40 @NonNull List<BatteryStats.HistoryTag> historyTagPool) { in BatteryStatsHistoryIterator() 48 BatteryStats.HistoryTag tag = historyTagPool.get(i); in BatteryStatsHistoryIterator() 59 public boolean next(BatteryStats.HistoryItem out) { in next() 69 if (out.cmd != BatteryStats.HistoryItem.CMD_CURRENT_TIME in next() 70 && out.cmd != BatteryStats.HistoryItem.CMD_RESET && lastWalltimeMs != 0) { in next() 76 void readHistoryDelta(Parcel src, BatteryStats.HistoryItem cur) { in readHistoryDelta() 79 cur.cmd = BatteryStats.HistoryItem.CMD_UPDATE; in readHistoryDelta() [all …]
|
D | WifiPowerCalculator.java | 19 import android.os.BatteryStats; 78 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 92 rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED, in calculate() 107 BatteryStats.STATS_SINCE_CHARGED, batteryStats.hasWifiActivityReporting(), in calculate() 130 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 179 BatteryStats.Uid u, @BatteryConsumer.PowerModel int powerModel, in calculateApp() 184 BatteryStats.NETWORK_WIFI_RX_DATA, in calculateApp() 187 BatteryStats.NETWORK_WIFI_TX_DATA, in calculateApp() 190 BatteryStats.NETWORK_WIFI_RX_DATA, in calculateApp() 193 BatteryStats.NETWORK_WIFI_TX_DATA, in calculateApp() [all …]
|
D | AmbientDisplayPowerCalculator.java | 20 import android.os.BatteryStats; 44 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() 49 BatteryStats.STATS_SINCE_CHARGED); in calculate() 66 public void calculate(List<BatterySipper> sippers, BatteryStats batteryStats, in calculate() 83 private long calculateDuration(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculateDuration()
|