Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DCachedDeviceStateServiceTest.java38 import com.android.internal.os.CachedDeviceState;
85 LocalServices.removeServiceForTest(CachedDeviceState.Readonly.class); in tearDown()
97 CachedDeviceState.Readonly deviceState = in correctlyReportsScreenInteractive()
98 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyReportsScreenInteractive()
120 CachedDeviceState.Readonly deviceState = in correctlyReportsCharging()
121 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyReportsCharging()
147 CachedDeviceState.Readonly deviceState = in correctlyTracksTimeOnBattery()
148 LocalServices.getService(CachedDeviceState.Readonly.class); in correctlyTracksTimeOnBattery()
150 CachedDeviceState.TimeInStateStopwatch stopwatch = in correctlyTracksTimeOnBattery()
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A 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()
H A DLooperStats.java54 private CachedDeviceState.Readonly mDeviceState;
55 private CachedDeviceState.TimeInStateStopwatch mBatteryStopwatch;
67 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState()
H A DBinderCallsStats.java117 private CachedDeviceState.Readonly mDeviceState;
118 private CachedDeviceState.TimeInStateStopwatch mBatteryStopwatch;
191 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DCachedDeviceStateService.java29 import com.android.internal.os.CachedDeviceState;
39 private final CachedDeviceState mDeviceState = new CachedDeviceState();
66 publishLocalService(CachedDeviceState.Readonly.class, mDeviceState.getReadonlyClient()); in onStart()
H A DLooperStatsService.java36 import com.android.internal.os.CachedDeviceState;
221 mStats.setDeviceState(getLocalService(CachedDeviceState.Readonly.class)); in onBootPhase()
H A DBinderCallsStatsService.java56 import com.android.internal.os.CachedDeviceState;
287 CachedDeviceState.Readonly deviceState = getLocalService( in onBootPhase()
288 CachedDeviceState.Readonly.class); in onBootPhase()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/os/
H A 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()
H A DLooperStatsPerfTest.java26 import com.android.internal.os.CachedDeviceState;
46 private CachedDeviceState mDeviceState;
53 mDeviceState = new CachedDeviceState(false, false); in setUp()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DLooperStatsTest.java48 private CachedDeviceState mDeviceState;
64 mDeviceState = new CachedDeviceState(); in setUp()
548 TestableLooperStats(int samplingInterval, int sizeCap, CachedDeviceState deviceState) { in TestableLooperStats()
H A DBinderCallsStatsTest.java63 private final CachedDeviceState mDeviceState = new CachedDeviceState(false, true);
1052 TestBinderCallsStats(CachedDeviceState deviceState) { in TestBinderCallsStats()
/aosp14/frameworks/base/config/
H A Dboot-profile.txt789 Lcom/android/internal/os/CachedDeviceState;->access$200(Lcom/android/internal/os/CachedDeviceState;…
792 Lcom/android/internal/os/CachedDeviceState$Readonly;->isCharging()Z
H A Dpreloaded-classes10998 com.android.internal.os.CachedDeviceState$Readonly
10999 com.android.internal.os.CachedDeviceState$TimeInStateStopwatch
11000 com.android.internal.os.CachedDeviceState
H A Dboot-image-profile.txt21927 HSPLcom/android/internal/os/CachedDeviceState$Readonly;->isCharging()Z
43907 Lcom/android/internal/os/CachedDeviceState$Readonly;
43908 Lcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;
43909 Lcom/android/internal/os/CachedDeviceState;
/aosp14/frameworks/base/boot/
H A Dpreloaded-classes10967 com.android.internal.os.CachedDeviceState$Readonly
10968 com.android.internal.os.CachedDeviceState$TimeInStateStopwatch
10969 com.android.internal.os.CachedDeviceState
H A Dboot-image-profile.txt21863 HSPLcom/android/internal/os/CachedDeviceState$Readonly;->isCharging()Z
33773 Lcom/android/internal/os/CachedDeviceState$Readonly;
33774 Lcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;
33775 Lcom/android/internal/os/CachedDeviceState;