Searched refs:DEFAULT_DEVICE_STATE (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/ |
D | DeviceStateManagerServiceTest.java | 72 private static final DeviceState DEFAULT_DEVICE_STATE = new DeviceState( field in DeviceStateManagerServiceTest 89 DEFAULT_DEVICE_STATE, OTHER_DEVICE_STATE, 139 assertEquals(mService.getCommittedState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged() 142 DEFAULT_DEVICE_STATE.getIdentifier() + ":" + DEFAULT_DEVICE_STATE.getName()); in baseStateChanged() 143 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged() 145 DEFAULT_DEVICE_STATE.getIdentifier()); in baseStateChanged() 164 assertEquals(mService.getCommittedState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged_withStatePendingPolicyCallback() 167 DEFAULT_DEVICE_STATE.getIdentifier() + ":" + DEFAULT_DEVICE_STATE.getName()); in baseStateChanged_withStatePendingPolicyCallback() 172 mProvider.setState(DEFAULT_DEVICE_STATE.getIdentifier()); in baseStateChanged_withStatePendingPolicyCallback() 174 assertEquals(mService.getCommittedState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged_withStatePendingPolicyCallback() [all …]
|
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/ |
D | DeviceStateManagerGlobalTest.java | 56 private static final DeviceState DEFAULT_DEVICE_STATE = new DeviceState( field in DeviceStateManagerGlobalTest 91 mService.setSupportedStates(List.of(DEFAULT_DEVICE_STATE)); in registerCallback() 94 mService.setSupportedStates(List.of(DEFAULT_DEVICE_STATE, OTHER_DEVICE_STATE)); in registerCallback() 109 DEFAULT_DEVICE_STATE.getIdentifier()).build(); in registerCallback() 197 DEFAULT_DEVICE_STATE.getIdentifier()).build(); in submitBaseAndEmulatedStateOverride() 202 verify(callback).onDeviceStateChanged(eq(DEFAULT_DEVICE_STATE)); in submitBaseAndEmulatedStateOverride() 212 verify(callback).onDeviceStateChanged(DEFAULT_DEVICE_STATE); in submitBaseAndEmulatedStateOverride() 257 private List<DeviceState> mSupportedDeviceStates = List.of(DEFAULT_DEVICE_STATE, 260 private DeviceState mBaseState = DEFAULT_DEVICE_STATE;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/ |
D | DeviceStateProviderImplTest.java | 27 import static com.android.server.policy.DeviceStateProviderImpl.DEFAULT_DEVICE_STATE; 142 assertArrayEquals(new DeviceState[]{DEFAULT_DEVICE_STATE}, in assertDefaultProviderValues() 146 assertEquals(DEFAULT_DEVICE_STATE.getIdentifier(), mIntegerCaptor.getValue().intValue()); in assertDefaultProviderValues()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | DeviceStateProviderImpl.java | 99 static final DeviceState DEFAULT_DEVICE_STATE = field in DeviceStateProviderImpl 209 deviceStateList.add(DEFAULT_DEVICE_STATE); in createFromConfig()
|