Home
last modified time | relevance | path

Searched refs:BatteryStatsImpl (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsSamplingTimerTest.java33 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 …]
DBatteryStatsDurationTimerTest.java38 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()
DBatteryStatsCounterTest.java34 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()
DBatteryStatsDualTimerTest.java35 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()
DBatteryStatsTimeBaseTest.java39 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()
DMockBatteryStatsImpl.java36 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()
DBatteryStatsStopwatchTimerTest.java35 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testCount()
37 final BatteryStatsImpl.StopwatchTimer timer = new BatteryStatsImpl.StopwatchTimer(clocks, in testCount()
DMockClocks.java19 public class MockClocks implements BatteryStatsImpl.Clocks {
DBatteryStatsUidTest.java29 static class TestBsi extends BatteryStatsImpl {
DLongSamplingCounterTest.java21 import static com.android.internal.os.BatteryStatsImpl.LongSamplingCounter;
22 import static com.android.internal.os.BatteryStatsImpl.TimeBase;
DBatteryStatsTimerTest.java25 import com.android.internal.os.BatteryStatsImpl.Clocks;
26 import com.android.internal.os.BatteryStatsImpl.TimeBase;
27 import com.android.internal.os.BatteryStatsImpl.Timer;
DBatteryStatsCpuTimesTest.java24 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 …]
DLongSamplingCounterArrayTest.java21 import static com.android.internal.os.BatteryStatsImpl.LongSamplingCounterArray;
22 import static com.android.internal.os.BatteryStatsImpl.TimeBase;
DBatteryStatsHistoryTest.java48 private final BatteryStatsImpl mBatteryStatsImpl = new MockBatteryStatsImpl();
DBatteryStatsImplTest.java417 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(parentUid); in addIsolatedUid()
432 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(uids[i]); in updateProcessStates()
DBatteryStatsBackgroundStatsTest.java45 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/
DBatteryExternalStatsWorker.java42 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()
DBatteryStatsService.java60 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()
1485 BatteryStatsImpl checkinStats = new BatteryStatsImpl( in dump()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.aidl19 parcelable BatteryStatsImpl;
DBatteryStatsHistory.java63 private final BatteryStatsImpl mStats;
109 public BatteryStatsHistory(BatteryStatsImpl stats, File systemDir, Parcel historyBuffer) { in BatteryStatsHistory()
154 public BatteryStatsHistory(BatteryStatsImpl stats, Parcel historyBuffer) { in BatteryStatsHistory()
DBatteryStatsHelper.java235 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()
DBatteryStatsImpl.java133 public class BatteryStatsImpl extends BatteryStats { class
363 synchronized (BatteryStatsImpl.this) {
406 synchronized (BatteryStatsImpl.this) { in handleMessage()
432 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes()
457 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes()
482 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes()
499 synchronized (BatteryStatsImpl.this) { in copyFromAllUidsCpuTimes()
512 synchronized (BatteryStatsImpl.this) { in copyFromAllUidsCpuTimes()
643 final SparseArray<BatteryStatsImpl.Uid> mUidStats = new SparseArray<>();
1084 public BatteryStatsImpl() { in BatteryStatsImpl() method in BatteryStatsImpl
[all …]
/frameworks/base/config/
Dboot-image-profile.txt20377 HSPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$7bfIWpn8X2h-hSzLD6dcuK4Ljuw;->onUidCpuTime(I…
20378 HSPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$B-TmZhQb712ePnuJTxvMe7P-YwQ;->onUidCpuTime(I…
20379 HSPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$Xvt9xdVPtevMWGIjcbxXf0_mr_c;->onUidCpuTime(I…
20380 HSPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$_l2oiaRDRhjCXI_PwXPsAhrgegI;->onUidCpuTime(I…
20446 …lper;->getStats(Lcom/android/internal/app/IBatteryStats;)Lcom/android/internal/os/BatteryStatsImpl;
20461 HSPLcom/android/internal/os/BatteryStatsHistory;-><init>(Lcom/android/internal/os/BatteryStatsImpl;…
20462 HSPLcom/android/internal/os/BatteryStatsHistory;-><init>(Lcom/android/internal/os/BatteryStatsImpl;…
20474 HSPLcom/android/internal/os/BatteryStatsImpl$1;-><init>(Lcom/android/internal/os/BatteryStatsImpl;)V
20475 HPLcom/android/internal/os/BatteryStatsImpl$1;->run()V
20476 HSPLcom/android/internal/os/BatteryStatsImpl$2;->onReceive(Landroid/content/Context;Landroid/conten…
[all …]
Dhiddenapi-greylist-max-o.txt94096 …lper;->getStats(Lcom/android/internal/app/IBatteryStats;)Lcom/android/internal/os/BatteryStatsImpl;
94160 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;
94161BatteryStatsImpl$BatchTimer;-><init>(Lcom/android/internal/os/BatteryStatsImpl$Clocks;Lcom/android…
94162BatteryStatsImpl$BatchTimer;-><init>(Lcom/android/internal/os/BatteryStatsImpl$Clocks;Lcom/android…
94163 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->abortLastDuration(Lcom/android/internal/os/B…
94164 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->addDuration(Lcom/android/internal/os/Battery…
94165 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->computeCurrentCountLocked()I
94166 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->computeOverage(J)J
94167 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->computeRunTimeLocked(J)J
94168 Lcom/android/internal/os/BatteryStatsImpl$BatchTimer;->logState(Landroid/util/Printer;Ljava/lang/St…
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl19 import com.android.internal.os.BatteryStatsImpl;

12