Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsSamplingTimerTest.java31 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 …]
DBatteryStatsDurationTimerTest.java36 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()
DBatteryStatsCounterTest.java32 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()
DBatteryStatsDualTimerTest.java33 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()
DBatteryStatsTimeBaseTest.java38 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()
DMockBatteryStatsImpl.java31 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()
DBatteryStatsUidTest.java31 import com.android.internal.os.BatteryStatsImpl;
41 static class TestBsi extends BatteryStatsImpl {
DBatteryStatsStopwatchTimerTest.java33 final BatteryStatsImpl.TimeBase timeBase = new BatteryStatsImpl.TimeBase(); in testCount()
35 final BatteryStatsImpl.StopwatchTimer timer = new BatteryStatsImpl.StopwatchTimer(clocks, in testCount()
DMockClocks.java19 public class MockClocks implements BatteryStatsImpl.Clocks {
DBatteryStatsCpuTimesTest.java23 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 …]
DLongSamplingCounterTest.java21 import static com.android.internal.os.BatteryStatsImpl.LongSamplingCounter;
22 import static com.android.internal.os.BatteryStatsImpl.TimeBase;
DBatteryStatsTimerTest.java27 import com.android.internal.os.BatteryStatsImpl.Clocks;
28 import com.android.internal.os.BatteryStatsImpl.TimeBase;
29 import com.android.internal.os.BatteryStatsImpl.Timer;
DLongSamplingCounterArrayTest.java23 import static com.android.internal.os.BatteryStatsImpl.LongSamplingCounterArray;
24 import static com.android.internal.os.BatteryStatsImpl.TimeBase;
DBatteryStatsImplTest.java306 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/
DBackupRecord.java19 import com.android.internal.os.BatteryStatsImpl;
31 final BatteryStatsImpl.Uid.Pkg.Serv stats;
39 BackupRecord(BatteryStatsImpl.Uid.Pkg.Serv _agentStats, ApplicationInfo _appInfo, in BackupRecord()
DBatteryExternalStatsWorker.java37 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()
DBatteryStatsService.java58 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()
DProcessRecord.java29 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/
DBatteryStatsImpl.aidl19 parcelable BatteryStatsImpl;
DBatteryStatsHelper.java227 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()
DBatteryStatsImpl.java128 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/
Datoms.proto275 * 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/
DIBatteryStats.aidl19 import com.android.internal.os.BatteryStatsImpl;
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityStarterTests.java74 import com.android.internal.os.BatteryStatsImpl;
202 ? null : new ProcessRecord(null, mock(BatteryStatsImpl.class), in verifyStartActivityPreconditions()
/frameworks/base/config/
Dboot-image-profile.txt8603 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 …]

12