Home
last modified time | relevance | path

Searched refs:getPendingState (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DDeviceStateManagerServiceTest.java140 assertEquals(mService.getPendingState(), Optional.empty()); in baseStateChanged()
150 assertEquals(mService.getPendingState(), Optional.empty()); in baseStateChanged()
165 assertEquals(mService.getPendingState(), Optional.of(OTHER_DEVICE_STATE)); in baseStateChanged_withStatePendingPolicyCallback()
175 assertEquals(mService.getPendingState(), Optional.of(OTHER_DEVICE_STATE)); in baseStateChanged_withStatePendingPolicyCallback()
185 assertEquals(mService.getPendingState(), Optional.empty()); in baseStateChanged_withStatePendingPolicyCallback()
198 assertEquals(mService.getPendingState(), Optional.empty()); in baseStateChanged_unsupportedState()
212 assertEquals(mService.getPendingState(), Optional.empty()); in baseStateChanged_invalidState()
226 assertEquals(mService.getPendingState(), Optional.empty()); in supportedStatesChanged()
239 assertEquals(mService.getPendingState(), Optional.empty()); in supportedStatesChanged()
258 assertEquals(mService.getPendingState(), Optional.empty()); in supportedStatesChanged_statesRemainSame()
[all …]
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceStateManagerService.java310 Optional<DeviceState> getPendingState() { in getPendingState() method in DeviceStateManagerService