Searched refs:CachedDeviceState (Results 1 – 11 of 11) sorted by relevance
37 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()
33 public class CachedDeviceState { class40 public CachedDeviceState() { in CachedDeviceState() method in CachedDeviceState46 public CachedDeviceState(boolean isCharging, boolean isScreenInteractive) { in CachedDeviceState() method in CachedDeviceState76 return new CachedDeviceState.Readonly(); in getReadonlyClient()
53 private CachedDeviceState.Readonly mDeviceState;54 private CachedDeviceState.TimeInStateStopwatch mBatteryStopwatch;65 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState()
93 private CachedDeviceState.Readonly mDeviceState;94 private CachedDeviceState.TimeInStateStopwatch mBatteryStopwatch;107 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState()
29 import com.android.internal.os.CachedDeviceState;39 private final CachedDeviceState mDeviceState = new CachedDeviceState();66 publishLocalService(CachedDeviceState.Readonly.class, mDeviceState.getReadonlyClient()); in onStart()
42 import com.android.internal.os.CachedDeviceState;264 CachedDeviceState.Readonly deviceState = getLocalService( in onBootPhase()265 CachedDeviceState.Readonly.class); in onBootPhase()
36 import com.android.internal.os.CachedDeviceState;208 mStats.setDeviceState(getLocalService(CachedDeviceState.Readonly.class)); in onBootPhase()
27 import com.android.internal.os.CachedDeviceState;48 setDeviceState(new CachedDeviceState(false, false).getReadonlyClient()); in FakeCpuTimeBinderCallsStats()67 CachedDeviceState deviceState = new CachedDeviceState(false, false); in setUp()
26 import com.android.internal.os.CachedDeviceState;46 private CachedDeviceState mDeviceState;53 mDeviceState = new CachedDeviceState(false, false); in setUp()
48 private CachedDeviceState mDeviceState;64 mDeviceState = new CachedDeviceState(); in setUp()531 TestableLooperStats(int samplingInterval, int sizeCap, CachedDeviceState deviceState) { in TestableLooperStats()
53 private final CachedDeviceState mDeviceState = new CachedDeviceState(false, true);765 TestBinderCallsStats(CachedDeviceState deviceState) { in TestBinderCallsStats()