Home
last modified time | relevance | path

Searched refs:deviceState (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java95 CachedDeviceState.Readonly deviceState = in correctlyReportsScreenInteractive() local
99 assertThat(deviceState.isScreenInteractive()).isFalse(); in correctlyReportsScreenInteractive()
103 assertThat(deviceState.isScreenInteractive()).isTrue(); in correctlyReportsScreenInteractive()
106 assertThat(deviceState.isScreenInteractive()).isFalse(); in correctlyReportsScreenInteractive()
109 assertThat(deviceState.isScreenInteractive()).isTrue(); in correctlyReportsScreenInteractive()
118 CachedDeviceState.Readonly deviceState = in correctlyReportsCharging() local
122 assertThat(deviceState.isCharging()).isTrue(); in correctlyReportsCharging()
126 assertThat(deviceState.isCharging()).isFalse(); in correctlyReportsCharging()
131 assertThat(deviceState.isCharging()).isTrue(); in correctlyReportsCharging()
136 assertThat(deviceState.isCharging()).isFalse(); in correctlyReportsCharging()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DBinderCallsStatsPerfTest.java67 CachedDeviceState deviceState = new CachedDeviceState(false, false); in setUp() local
68 mBinderCallsStats.setDeviceState(deviceState.getReadonlyClient()); in setUp()
/frameworks/base/core/java/com/android/internal/os/
DLooperStats.java65 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState() argument
70 mDeviceState = deviceState; in setDeviceState()
71 mBatteryStopwatch = deviceState.createTimeOnBatteryStopwatch(); in setDeviceState()
DBinderCallsStats.java107 public void setDeviceState(@NonNull CachedDeviceState.Readonly deviceState) { in setDeviceState() argument
111 mDeviceState = deviceState; in setDeviceState()
112 mBatteryStopwatch = deviceState.createTimeOnBatteryStopwatch(); in setDeviceState()
/frameworks/base/services/core/java/com/android/server/
DBinderCallsStatsService.java264 CachedDeviceState.Readonly deviceState = getLocalService( in onBootPhase() local
266 mBinderCallsStats.setDeviceState(deviceState); in onBootPhase()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNewNitzStateMachine.java102 DeviceState deviceState, TimeZoneLookupHelper timeZoneLookupHelper) { in NewNitzStateMachine() argument
110 mDeviceState = deviceState; in NewNitzStateMachine()
DOldNitzStateMachine.java103 DeviceState deviceState, TimeZoneLookupHelper timeZoneLookupHelper) { in OldNitzStateMachine() argument
111 mDeviceState = deviceState; in OldNitzStateMachine()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java286 public CaptureCollector(int maxInFlight, CameraDeviceState deviceState) { in CaptureCollector() argument
296 mDeviceState = deviceState; in CaptureCollector()
DRequestThreadManager.java1006 CameraDeviceState deviceState) { in RequestThreadManager() argument
1012 mDeviceState = checkNotNull(deviceState, "deviceState must not be null"); in RequestThreadManager()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java531 TestableLooperStats(int samplingInterval, int sizeCap, CachedDeviceState deviceState) { in TestableLooperStats() argument
536 if (deviceState != null) { in TestableLooperStats()
537 setDeviceState(deviceState.getReadonlyClient()); in TestableLooperStats()
DBinderCallsStatsTest.java765 TestBinderCallsStats(CachedDeviceState deviceState) { in TestBinderCallsStats() argument
782 if (deviceState != null) { in TestBinderCallsStats()
783 setDeviceState(deviceState.getReadonlyClient()); in TestBinderCallsStats()