/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 33 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, in testSettingStalePreservesData() 34 Mockito.mock(BatteryStatsImpl.TimeBase.class)); in testSettingStalePreservesData() 60 final BatteryStatsImpl.TimeBase timeBase = Mockito.mock(BatteryStatsImpl.TimeBase.class); in testEndSampleAndContinueWhenTimeOrCountDecreases() 61 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, in testEndSampleAndContinueWhenTimeOrCountDecreases() 103 final BatteryStatsImpl.TimeBase timeBase = Mockito.mock(BatteryStatsImpl.TimeBase.class); in testFirstUpdateIsAbsorbed() 105 BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); in testFirstUpdateIsAbsorbed() 114 timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); in testFirstUpdateIsAbsorbed() 145 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testSampleTimerSummaryParceling() 148 BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); in testSampleTimerSummaryParceling() 190 BatteryStatsImpl.SamplingTimer unparceledOnBatteryTimer = in testSampleTimerSummaryParceling() [all …]
|
D | BatteryStatsDurationTimerTest.java | 38 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testStartStop() 41 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testStartStop() 110 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testReset() 113 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testReset() 146 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testResetAndDetach() 149 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testResetAndDetach() 173 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testParceling() 176 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testParceling() 197 final BatteryStatsImpl.DurationTimer summary = new BatteryStatsImpl.DurationTimer(clocks, in testParceling() 215 final BatteryStatsImpl.DurationTimer full = new BatteryStatsImpl.DurationTimer(clocks, in testParceling()
|
D | BatteryStatsCounterTest.java | 34 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testCounter() 37 final BatteryStatsImpl.Counter counter = new BatteryStatsImpl.Counter(timeBase); in testCounter() 74 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testParceling() 77 final BatteryStatsImpl.Counter origCounter = new BatteryStatsImpl.Counter(timeBase); in testParceling() 88 final BatteryStatsImpl.Counter summaryCounter = new BatteryStatsImpl.Counter(timeBase); in testParceling() 111 final BatteryStatsImpl.Counter fullParcelCounter in testParceling() 112 = new BatteryStatsImpl.Counter(timeBase, fullParcel); in testParceling()
|
D | BatteryStatsDualTimerTest.java | 35 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testResetDetach() 37 final BatteryStatsImpl.TimeBase subTimeBase = new BatteryStatsImpl.TimeBase(); in testResetDetach() 40 final BatteryStatsImpl.DualTimer timer = new BatteryStatsImpl.DualTimer(clocks, in testResetDetach()
|
D | BatteryStatsTimeBaseTest.java | 39 static class TestTimeBase extends BatteryStatsImpl.TimeBase { 85 BatteryStatsImpl.TimeBaseObs observer1 = Mockito.mock(BatteryStatsImpl.TimeBaseObs.class); in testRunning() 86 BatteryStatsImpl.TimeBaseObs observer2 = Mockito.mock(BatteryStatsImpl.TimeBaseObs.class); in testRunning() 87 BatteryStatsImpl.TimeBaseObs observer3 = Mockito.mock(BatteryStatsImpl.TimeBaseObs.class); in testRunning()
|
D | MockBatteryStatsImpl.java | 36 public class MockBatteryStatsImpl extends BatteryStatsImpl { 37 public BatteryStatsImpl.Clocks clocks; 43 mScreenOnTimer = new BatteryStatsImpl.StopwatchTimer(clocks, null, -1, null, in MockBatteryStatsImpl() 45 mScreenDozeTimer = new BatteryStatsImpl.StopwatchTimer(clocks, null, -1, null, in MockBatteryStatsImpl()
|
D | BatteryStatsStopwatchTimerTest.java | 35 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testCount() 37 final BatteryStatsImpl.StopwatchTimer timer = new BatteryStatsImpl.StopwatchTimer(clocks, in testCount()
|
D | MockClocks.java | 19 public class MockClocks implements BatteryStatsImpl.Clocks {
|
D | BatteryStatsUidTest.java | 29 static class TestBsi extends BatteryStatsImpl {
|
D | LongSamplingCounterTest.java | 21 import static com.android.internal.os.BatteryStatsImpl.LongSamplingCounter; 22 import static com.android.internal.os.BatteryStatsImpl.TimeBase;
|
D | BatteryStatsCpuTimesTest.java | 24 import static com.android.internal.os.BatteryStatsImpl.WAKE_LOCK_WEIGHT; 91 BatteryStatsImpl.UserInfoProvider mUserInfoProvider; 167 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers = getPartialTimers( in testMarkPartialTimersAsEligible() 169 final ArrayList<BatteryStatsImpl.StopwatchTimer> lastPartialTimers in testMarkPartialTimersAsEligible() 469 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers in testReadKernelUidCpuTimesLocked_withPartialTimers() 732 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers in testReadKernelUidCpuFreqTimesLocked_partialTimers() 1321 private ArrayList<BatteryStatsImpl.StopwatchTimer> getPartialTimers(int... uids) { in getPartialTimers() 1322 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers = new ArrayList<>(); in getPartialTimers() 1323 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in getPartialTimers() 1325 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(uid); in getPartialTimers() [all …]
|
D | BatteryStatsTimerTest.java | 25 import com.android.internal.os.BatteryStatsImpl.Clocks; 26 import com.android.internal.os.BatteryStatsImpl.TimeBase; 27 import com.android.internal.os.BatteryStatsImpl.Timer;
|
D | LongSamplingCounterArrayTest.java | 21 import static com.android.internal.os.BatteryStatsImpl.LongSamplingCounterArray; 22 import static com.android.internal.os.BatteryStatsImpl.TimeBase;
|
D | BatteryStatsHistoryTest.java | 48 private final BatteryStatsImpl mBatteryStatsImpl = new MockBatteryStatsImpl();
|
D | BatteryStatsImplTest.java | 417 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(parentUid); in addIsolatedUid() 432 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(uids[i]); in updateProcessStates()
|
D | BatteryStatsBackgroundStatsTest.java | 45 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryBackgroundTimeBase(UID); in testBgTimeBase() 113 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryScreenOffBackgroundTimeBase(UID); in testScreenOffBgTimeBase()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryExternalStatsWorker.java | 42 import com.android.internal.os.BatteryStatsImpl; 62 class BatteryExternalStatsWorker implements BatteryStatsImpl.ExternalStatsSync { 88 private final BatteryStatsImpl mStats; 138 BatteryExternalStatsWorker(Context context, BatteryStatsImpl stats) { in BatteryExternalStatsWorker() 170 BatteryStatsImpl::updateProcStateCpuTimes, in scheduleReadProcStateCpuTimes() 189 BatteryStatsImpl::copyFromAllUidsCpuTimes, in scheduleCopyFromAllUidsCpuTimes() 412 if ((updateFlags & BatteryStatsImpl.ExternalStatsSync.UPDATE_WIFI) != 0) { in updateExternalStatsLocked() 436 if ((updateFlags & BatteryStatsImpl.ExternalStatsSync.UPDATE_BT) != 0) { in updateExternalStatsLocked() 445 if ((updateFlags & BatteryStatsImpl.ExternalStatsSync.UPDATE_RADIO) != 0) { in updateExternalStatsLocked()
|
D | BatteryStatsService.java | 60 import com.android.internal.os.BatteryStatsImpl; 88 BatteryStatsImpl.PlatformIdleStateCallback, 89 BatteryStatsImpl.RailEnergyDataCallback { 95 final BatteryStatsImpl mStats; 96 private final BatteryStatsImpl.UserInfoProvider mUserManagerUserInfoProvider; 183 mUserManagerUserInfoProvider = new BatteryStatsImpl.UserInfoProvider() { in BatteryStatsService() 193 mStats = new BatteryStatsImpl(systemDir, handler, this, in BatteryStatsService() 300 public BatteryStatsImpl getActiveStatistics() { in getActiveStatistics() 1143 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState() 1478 BatteryStatsImpl checkinStats = new BatteryStatsImpl( in dump() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.aidl | 19 parcelable BatteryStatsImpl;
|
D | BatteryStatsHistory.java | 63 private final BatteryStatsImpl mStats; 109 public BatteryStatsHistory(BatteryStatsImpl stats, File systemDir, Parcel historyBuffer) { in BatteryStatsHistory() 154 public BatteryStatsHistory(BatteryStatsImpl stats, Parcel historyBuffer) { in BatteryStatsHistory()
|
D | BatteryStatsHelper.java | 235 return com.android.internal.os.BatteryStatsImpl.CREATOR.createFromParcel(parcel); in statsFromFile() 1056 private static BatteryStatsImpl getStats(IBatteryStats service) { in getStats() 1069 BatteryStatsImpl stats = com.android.internal.os.BatteryStatsImpl.CREATOR in getStats() 1079 return new BatteryStatsImpl(); in getStats()
|
D | BatteryStatsImpl.java | 135 public class BatteryStatsImpl extends BatteryStats { class 365 synchronized (BatteryStatsImpl.this) { 408 synchronized (BatteryStatsImpl.this) { in handleMessage() 434 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes() 459 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes() 484 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes() 501 synchronized (BatteryStatsImpl.this) { in copyFromAllUidsCpuTimes() 514 synchronized (BatteryStatsImpl.this) { in copyFromAllUidsCpuTimes() 645 final SparseArray<BatteryStatsImpl.Uid> mUidStats = new SparseArray<>(); 1086 public BatteryStatsImpl() { in BatteryStatsImpl() method in BatteryStatsImpl [all …]
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 20376 HSPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$7bfIWpn8X2h-hSzLD6dcuK4Ljuw;->onUidCpuTime(I… 20377 HSPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$B-TmZhQb712ePnuJTxvMe7P-YwQ;->onUidCpuTime(I… 20378 HSPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$Xvt9xdVPtevMWGIjcbxXf0_mr_c;->onUidCpuTime(I… 20379 HSPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$_l2oiaRDRhjCXI_PwXPsAhrgegI;->onUidCpuTime(I… 20445 …lper;->getStats(Lcom/android/internal/app/IBatteryStats;)Lcom/android/internal/os/BatteryStatsImpl; 20460 HSPLcom/android/internal/os/BatteryStatsHistory;-><init>(Lcom/android/internal/os/BatteryStatsImpl;… 20461 HSPLcom/android/internal/os/BatteryStatsHistory;-><init>(Lcom/android/internal/os/BatteryStatsImpl;… 20473 HSPLcom/android/internal/os/BatteryStatsImpl$1;-><init>(Lcom/android/internal/os/BatteryStatsImpl;)V 20474 HPLcom/android/internal/os/BatteryStatsImpl$1;->run()V 20475 HSPLcom/android/internal/os/BatteryStatsImpl$2;->onReceive(Landroid/content/Context;Landroid/conten… [all …]
|
D | hiddenapi-greylist-max-o.txt | 87765 …lper;->getStats(Lcom/android/internal/app/IBatteryStats;)Lcom/android/internal/os/BatteryStatsImpl; 87829 …BatteryStatsImpl$BatchTimer;-><init>(Lcom/android/internal/os/BatteryStatsImpl$Clocks;Lcom/android… 87830 …BatteryStatsImpl$BatchTimer;-><init>(Lcom/android/internal/os/BatteryStatsImpl$Clocks;Lcom/android… 87831 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->abortLastDuration(Lcom/android/internal/os/B… 87832 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->addDuration(Lcom/android/internal/os/Battery… 87833 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->computeCurrentCountLocked()I 87834 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->computeOverage(J)J 87835 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->computeRunTimeLocked(J)J 87836 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->logState(Landroid/util/Printer;Ljava/lang/St… 87837 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->mInDischarge:Z [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IBatteryStats.aidl | 19 import com.android.internal.os.BatteryStatsImpl;
|