/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 31 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, in testSettingStalePreservesData() 32 Mockito.mock(BatteryStatsImpl.TimeBase.class)); in testSettingStalePreservesData() 58 final BatteryStatsImpl.TimeBase timeBase = Mockito.mock(BatteryStatsImpl.TimeBase.class); in testEndSampleAndContinueWhenTimeOrCountDecreases() 59 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, in testEndSampleAndContinueWhenTimeOrCountDecreases() 101 final BatteryStatsImpl.TimeBase timeBase = Mockito.mock(BatteryStatsImpl.TimeBase.class); in testFirstUpdateIsAbsorbed() 103 BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); in testFirstUpdateIsAbsorbed() 112 timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); in testFirstUpdateIsAbsorbed() 143 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testSampleTimerSummaryParceling() 146 BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); in testSampleTimerSummaryParceling() 188 BatteryStatsImpl.SamplingTimer unparceledOnBatteryTimer = in testSampleTimerSummaryParceling() [all …]
|
D | BatteryStatsDurationTimerTest.java | 36 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testStartStop() 39 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testStartStop() 109 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testParceling() 112 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testParceling() 133 final BatteryStatsImpl.DurationTimer summary = new BatteryStatsImpl.DurationTimer(clocks, in testParceling() 151 final BatteryStatsImpl.DurationTimer full = new BatteryStatsImpl.DurationTimer(clocks, in testParceling()
|
D | BatteryStatsCounterTest.java | 32 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testCounter() 35 final BatteryStatsImpl.Counter counter = new BatteryStatsImpl.Counter(timeBase); in testCounter() 80 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testParceling() 83 final BatteryStatsImpl.Counter origCounter = new BatteryStatsImpl.Counter(timeBase); in testParceling() 96 final BatteryStatsImpl.Counter summaryCounter = new BatteryStatsImpl.Counter(timeBase); in testParceling() 125 final BatteryStatsImpl.Counter fullParcelCounter in testParceling() 126 = new BatteryStatsImpl.Counter(timeBase, fullParcel); in testParceling()
|
D | BatteryStatsDualTimerTest.java | 33 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testResetDetach() 35 final BatteryStatsImpl.TimeBase subTimeBase = new BatteryStatsImpl.TimeBase(); in testResetDetach() 38 final BatteryStatsImpl.DualTimer timer = new BatteryStatsImpl.DualTimer(clocks, in testResetDetach()
|
D | BatteryStatsTimeBaseTest.java | 38 static class TestTimeBase extends BatteryStatsImpl.TimeBase { 84 BatteryStatsImpl.TimeBaseObs observer1 = Mockito.mock(BatteryStatsImpl.TimeBaseObs.class); in testRunning() 85 BatteryStatsImpl.TimeBaseObs observer2 = Mockito.mock(BatteryStatsImpl.TimeBaseObs.class); in testRunning() 86 BatteryStatsImpl.TimeBaseObs observer3 = Mockito.mock(BatteryStatsImpl.TimeBaseObs.class); in testRunning()
|
D | MockBatteryStatsImpl.java | 31 public class MockBatteryStatsImpl extends BatteryStatsImpl { 32 public BatteryStatsImpl.Clocks clocks; 38 mScreenOnTimer = new BatteryStatsImpl.StopwatchTimer(clocks, null, -1, null, in MockBatteryStatsImpl() 40 mScreenDozeTimer = new BatteryStatsImpl.StopwatchTimer(clocks, null, -1, null, in MockBatteryStatsImpl()
|
D | BatteryStatsUidTest.java | 31 import com.android.internal.os.BatteryStatsImpl; 41 static class TestBsi extends BatteryStatsImpl {
|
D | BatteryStatsStopwatchTimerTest.java | 33 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testCount() 35 final BatteryStatsImpl.StopwatchTimer timer = new BatteryStatsImpl.StopwatchTimer(clocks, in testCount()
|
D | MockClocks.java | 19 public class MockClocks implements BatteryStatsImpl.Clocks {
|
D | BatteryStatsCpuTimesTest.java | 23 import static com.android.internal.os.BatteryStatsImpl.WAKE_LOCK_WEIGHT; 85 BatteryStatsImpl.UserInfoProvider mUserInfoProvider; 160 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers = getPartialTimers( in testMarkPartialTimersAsEligible() 162 final ArrayList<BatteryStatsImpl.StopwatchTimer> lastPartialTimers in testMarkPartialTimersAsEligible() 457 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers in testReadKernelUidCpuTimesLocked_withPartialTimers() 719 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers in testReadKernelUidCpuFreqTimesLocked_partialTimers() 1307 private ArrayList<BatteryStatsImpl.StopwatchTimer> getPartialTimers(int... uids) { in getPartialTimers() 1308 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers = new ArrayList<>(); in getPartialTimers() 1309 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in getPartialTimers() 1311 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(uid); in getPartialTimers() [all …]
|
D | LongSamplingCounterTest.java | 21 import static com.android.internal.os.BatteryStatsImpl.LongSamplingCounter; 22 import static com.android.internal.os.BatteryStatsImpl.TimeBase;
|
D | BatteryStatsTimerTest.java | 27 import com.android.internal.os.BatteryStatsImpl.Clocks; 28 import com.android.internal.os.BatteryStatsImpl.TimeBase; 29 import com.android.internal.os.BatteryStatsImpl.Timer;
|
D | LongSamplingCounterArrayTest.java | 23 import static com.android.internal.os.BatteryStatsImpl.LongSamplingCounterArray; 24 import static com.android.internal.os.BatteryStatsImpl.TimeBase;
|
D | BatteryStatsImplTest.java | 306 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(parentUid); in addIsolatedUid() 321 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(uids[i]); in updateProcessStates()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BackupRecord.java | 19 import com.android.internal.os.BatteryStatsImpl; 31 final BatteryStatsImpl.Uid.Pkg.Serv stats; 39 BackupRecord(BatteryStatsImpl.Uid.Pkg.Serv _agentStats, ApplicationInfo _appInfo, in BackupRecord()
|
D | BatteryExternalStatsWorker.java | 37 import com.android.internal.os.BatteryStatsImpl; 59 class BatteryExternalStatsWorker implements BatteryStatsImpl.ExternalStatsSync { 80 private final BatteryStatsImpl mStats; 130 BatteryExternalStatsWorker(Context context, BatteryStatsImpl stats) { in BatteryExternalStatsWorker() 162 BatteryStatsImpl::updateProcStateCpuTimes, in scheduleReadProcStateCpuTimes() 181 BatteryStatsImpl::copyFromAllUidsCpuTimes, in scheduleCopyFromAllUidsCpuTimes() 401 if ((updateFlags & BatteryStatsImpl.ExternalStatsSync.UPDATE_WIFI) != 0) { in updateExternalStatsLocked() 418 if ((updateFlags & BatteryStatsImpl.ExternalStatsSync.UPDATE_BT) != 0) { in updateExternalStatsLocked() 427 if ((updateFlags & BatteryStatsImpl.ExternalStatsSync.UPDATE_RADIO) != 0) { in updateExternalStatsLocked()
|
D | BatteryStatsService.java | 58 import com.android.internal.os.BatteryStatsImpl; 84 BatteryStatsImpl.PlatformIdleStateCallback { 90 final BatteryStatsImpl mStats; 91 private final BatteryStatsImpl.UserInfoProvider mUserManagerUserInfoProvider; 167 mUserManagerUserInfoProvider = new BatteryStatsImpl.UserInfoProvider() { in BatteryStatsService() 177 mStats = new BatteryStatsImpl(systemDir, handler, this, mUserManagerUserInfoProvider); in BatteryStatsService() 283 public BatteryStatsImpl getActiveStatistics() { in getActiveStatistics() 1110 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState() 1431 BatteryStatsImpl checkinStats = new BatteryStatsImpl( in dump() 1469 BatteryStatsImpl checkinStats = new BatteryStatsImpl( in dump()
|
D | ProcessRecord.java | 29 import com.android.internal.os.BatteryStatsImpl; 61 private final BatteryStatsImpl mBatteryStats; // where to collect runtime statistics 77 BatteryStatsImpl.Uid.Proc curProcBatteryStats; 492 ProcessRecord(ActivityManagerService _service, BatteryStatsImpl _batteryStats, in ProcessRecord()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.aidl | 19 parcelable BatteryStatsImpl;
|
D | BatteryStatsHelper.java | 227 return com.android.internal.os.BatteryStatsImpl.CREATOR.createFromParcel(parcel); in statsFromFile() 1030 private static BatteryStatsImpl getStats(IBatteryStats service) { in getStats() 1039 BatteryStatsImpl stats = com.android.internal.os.BatteryStatsImpl.CREATOR in getStats() 1049 return new BatteryStatsImpl(); in getStats()
|
D | BatteryStatsImpl.java | 128 public class BatteryStatsImpl extends BatteryStats { class 369 synchronized (BatteryStatsImpl.this) { in handleMessage() 395 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes() 420 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes() 445 synchronized (BatteryStatsImpl.this) { in updateProcStateCpuTimes() 462 synchronized (BatteryStatsImpl.this) { in copyFromAllUidsCpuTimes() 475 synchronized (BatteryStatsImpl.this) { in copyFromAllUidsCpuTimes() 606 final SparseArray<BatteryStatsImpl.Uid> mUidStats = new SparseArray<>(); 1044 public BatteryStatsImpl() { in BatteryStatsImpl() method in BatteryStatsImpl 1048 public BatteryStatsImpl(Clocks clocks) { in BatteryStatsImpl() method in BatteryStatsImpl [all …]
|
/frameworks/base/cmds/statsd/src/ |
D | atoms.proto | 275 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 309 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 467 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 489 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 503 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 514 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 535 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 546 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 557 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java 582 * frameworks/base/core/java/com/android/internal/os/BatteryStatsImpl.java [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IBatteryStats.aidl | 19 import com.android.internal.os.BatteryStatsImpl;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityStarterTests.java | 74 import com.android.internal.os.BatteryStatsImpl; 202 ? null : new ProcessRecord(null, mock(BatteryStatsImpl.class), in verifyStartActivityPreconditions()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 8603 HPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$WJBQdQHGlhcwV7yfM8vNEWWvVp0;->onUidCpuPolicyT… 8604 HPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$cVkGM5pv4uMLFgnMwqPRDhEl5a0;->onUidCpuTime(IJ… 8605 HPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$mMCK0IbpOZu45KINuNCoRayjoDU;->onUidCpuActiveT… 8606 HPLcom/android/internal/os/-$$Lambda$BatteryStatsImpl$qYIdEyLMO9XI4FHBl_g5LWknDZQ;->onUidCpuFreqTim… 8659 HPLcom/android/internal/os/BatteryStatsImpl$1;->onReceive(Landroid/content/Context;Landroid/content… 8660 HPLcom/android/internal/os/BatteryStatsImpl$2;->run()V 8661 HPLcom/android/internal/os/BatteryStatsImpl$3;-><init>(Lcom/android/internal/os/BatteryStatsImpl;La… 8662 HPLcom/android/internal/os/BatteryStatsImpl$3;->run()V 8663 HPLcom/android/internal/os/BatteryStatsImpl$BatchTimer;->abortLastDuration(Lcom/android/internal/os… 8664 HPLcom/android/internal/os/BatteryStatsImpl$BatchTimer;->addDuration(Lcom/android/internal/os/Batte… [all …]
|