Home
last modified time | relevance | path

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

/aosp12/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()
/aosp12/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()
/aosp12/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 DBinderCallsStatsService.java56 import com.android.internal.os.CachedDeviceState;
287 CachedDeviceState.Readonly deviceState = getLocalService( in onBootPhase()
288 CachedDeviceState.Readonly.class); in onBootPhase()
H A DLooperStatsService.java36 import com.android.internal.os.CachedDeviceState;
221 mStats.setDeviceState(getLocalService(CachedDeviceState.Readonly.class)); in onBootPhase()
/aosp12/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()
/aosp12/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()
/aosp12/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-classes9063 com.android.internal.os.CachedDeviceState$Readonly
9064 com.android.internal.os.CachedDeviceState$TimeInStateStopwatch
9065 com.android.internal.os.CachedDeviceState
H A Dboot-image-profile.txt21775 HSPLcom/android/internal/os/CachedDeviceState$Readonly;->isCharging()Z
21776 HSPLcom/android/internal/os/CachedDeviceState;->access$200(Lcom/android/internal/os/CachedDeviceSta…
21811 …wsCollection()Z+]Lcom/android/internal/os/CachedDeviceState$Readonly;Lcom/android/internal/os/Cach…
42947 Lcom/android/internal/os/CachedDeviceState$Readonly;
42948 Lcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;
42949 Lcom/android/internal/os/CachedDeviceState;
/aosp12/frameworks/base/boot/
H A Dpreloaded-classes9042 com.android.internal.os.CachedDeviceState$Readonly
9043 com.android.internal.os.CachedDeviceState$TimeInStateStopwatch
9044 com.android.internal.os.CachedDeviceState
H A Dboot-image-profile.txt21728 HSPLcom/android/internal/os/CachedDeviceState$Readonly;->isCharging()Z
21729 HSPLcom/android/internal/os/CachedDeviceState;->access$200(Lcom/android/internal/os/CachedDeviceSta…
21764 …wsCollection()Z+]Lcom/android/internal/os/CachedDeviceState$Readonly;Lcom/android/internal/os/Cach…
33283 Lcom/android/internal/os/CachedDeviceState$Readonly;
33284 Lcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;
33285 Lcom/android/internal/os/CachedDeviceState;
/aosp12/frameworks/base/services/
H A Dart-profile1220 …g;Ljava/lang/String;]Lcom/android/internal/os/CachedDeviceState;Lcom/android/internal/os/CachedDev…
1222 …ccess$000(Lcom/android/server/CachedDeviceStateService;)Lcom/android/internal/os/CachedDeviceState;