Home
last modified time | relevance | path

Searched refs:getBaseState (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DDeviceStateManagerServiceTest.java143 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged()
153 assertEquals(mService.getBaseState(), Optional.of(OTHER_DEVICE_STATE)); in baseStateChanged()
168 assertEquals(mService.getBaseState(), Optional.of(OTHER_DEVICE_STATE)); in baseStateChanged_withStatePendingPolicyCallback()
178 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged_withStatePendingPolicyCallback()
186 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged_withStatePendingPolicyCallback()
201 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged_unsupportedState()
215 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged_invalidState()
229 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in supportedStatesChanged()
242 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in supportedStatesChanged()
261 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in supportedStatesChanged_statesRemainSame()
[all …]
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
DDeviceStateManagerGlobalTest.java141 verify(callback).onDeviceStateChanged(eq(mService.getBaseState())); in submitRequest()
153 verify(callback).onDeviceStateChanged(eq(mService.getBaseState())); in submitRequest()
162 verify(callback).onDeviceStateChanged(eq(mService.getBaseState())); in submitBaseStateOverrideRequest()
175 verify(callback).onDeviceStateChanged(eq(mService.getBaseState())); in submitBaseStateOverrideRequest()
184 verify(callback).onDeviceStateChanged(eq(mService.getBaseState())); in submitBaseAndEmulatedStateOverride()
193 assertEquals(OTHER_DEVICE_STATE, mService.getBaseState()); in submitBaseAndEmulatedStateOverride()
201 assertEquals(OTHER_DEVICE_STATE, mService.getBaseState()); in submitBaseAndEmulatedStateOverride()
413 public DeviceState getBaseState() { in getBaseState() method in DeviceStateManagerGlobalTest.TestDeviceStateManagerService
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceStateManagerShellCommand.java76 Optional<DeviceState> baseState = mService.getBaseState(); in printAllStates()
DDeviceStateManagerService.java327 Optional<DeviceState> getBaseState() { in getBaseState() method in DeviceStateManagerService