Searched refs:CachedDeviceState (Results 1 – 12 of 12) 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()
43 import com.android.internal.os.CachedDeviceState;267 CachedDeviceState.Readonly deviceState = getLocalService( in onBootPhase()268 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()
21171 …nternal/os/BinderCallsStats;->setDeviceState(Lcom/android/internal/os/CachedDeviceState$Readonly;)V21190 …PLcom/android/internal/os/CachedDeviceState$Readonly;->createTimeOnBatteryStopwatch()Lcom/android/…21191 HSPLcom/android/internal/os/CachedDeviceState$Readonly;->isCharging()Z21192 HPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->getMillis()J21193 HSPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->isRunning()Z21194 HSPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->reset()V21195 HSPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->start()V21196 HSPLcom/android/internal/os/CachedDeviceState$TimeInStateStopwatch;->stop()V21197 HSPLcom/android/internal/os/CachedDeviceState;-><init>()V21198 HSPLcom/android/internal/os/CachedDeviceState;->getReadonlyClient()Lcom/android/internal/os/CachedD…[all …]