Home
last modified time | relevance | path

Searched refs:CachedDeviceState (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java37 import com.android.internal.os.CachedDeviceState;
83 LocalServices.removeServiceForTest(CachedDeviceState.Readonly.class); in tearDown()
95 CachedDeviceState.Readonly deviceState = in correctlyReportsScreenInteractive()
96 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyReportsScreenInteractive()
118 CachedDeviceState.Readonly deviceState = in correctlyReportsCharging()
119 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyReportsCharging()
145 CachedDeviceState.Readonly deviceState = in correctlyTracksTimeOnBattery()
146 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyTracksTimeOnBattery()
148 CachedDeviceState.TimeInStateStopwatch stopwatch = in correctlyTracksTimeOnBattery()
/frameworks/base/core/java/com/android/internal/os/
DCachedDeviceState.java33 public class CachedDeviceState { class
40 public CachedDeviceState() { in CachedDeviceState() method in CachedDeviceState
46 public CachedDeviceState(boolean isCharging, boolean isScreenInteractive) { in CachedDeviceState() method in CachedDeviceState
76 return new CachedDeviceState.Readonly(); in getReadonlyClient()
DLooperStats.java53 private CachedDeviceState.Readonly mDeviceState;
54 private CachedDeviceState.TimeInStateStopwatch mBatteryStopwatch;
65 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState()
DBinderCallsStats.java93 private CachedDeviceState.Readonly mDeviceState;
94 private CachedDeviceState.TimeInStateStopwatch mBatteryStopwatch;
107 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState()
/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java29 import com.android.internal.os.CachedDeviceState;
39 private final CachedDeviceState mDeviceState = new CachedDeviceState();
66 publishLocalService(CachedDeviceState.Readonly.class, mDeviceState.getReadonlyClient()); in onStart()
DBinderCallsStatsService.java43 import com.android.internal.os.CachedDeviceState;
267 CachedDeviceState.Readonly deviceState = getLocalService( in onBootPhase()
268 CachedDeviceState.Readonly.class); in onBootPhase()
DLooperStatsService.java36 import com.android.internal.os.CachedDeviceState;
208 mStats.setDeviceState(getLocalService(CachedDeviceState.Readonly.class)); in onBootPhase()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DBinderCallsStatsPerfTest.java27 import com.android.internal.os.CachedDeviceState;
48 setDeviceState(new CachedDeviceState(false, false).getReadonlyClient()); in FakeCpuTimeBinderCallsStats()
67 CachedDeviceState deviceState = new CachedDeviceState(false, false); in setUp()
DLooperStatsPerfTest.java26 import com.android.internal.os.CachedDeviceState;
46 private CachedDeviceState mDeviceState;
53 mDeviceState = new CachedDeviceState(false, false); in setUp()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java48 private CachedDeviceState mDeviceState;
64 mDeviceState = new CachedDeviceState(); in setUp()
531 TestableLooperStats(int samplingInterval, int sizeCap, CachedDeviceState deviceState) { in TestableLooperStats()
DBinderCallsStatsTest.java53 private final CachedDeviceState mDeviceState = new CachedDeviceState(false, true);
765 TestBinderCallsStats(CachedDeviceState deviceState) { in TestBinderCallsStats()
/frameworks/base/config/
Dboot-image-profile.txt21171 …nternal/os/BinderCallsStats;->setDeviceState(Lcom/android/internal/os/CachedDeviceState$Readonly;)V
21190 …PLcom/android/internal/os/CachedDeviceState$Readonly;->createTimeOnBatteryStopwatch()Lcom/android/…
21191 HSPLcom/android/internal/os/CachedDeviceState$Readonly;->isCharging()Z
21192 HPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->getMillis()J
21193 HSPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->isRunning()Z
21194 HSPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->reset()V
21195 HSPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->start()V
21196 HSPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->stop()V
21197 HSPLcom/android/internal/os/CachedDeviceState;-><init>()V
21198 HSPLcom/android/internal/os/CachedDeviceState;->getReadonlyClient()Lcom/android/internal/os/CachedD…
[all …]