Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/
DDeviceStateRotationLockSettingsManager.java65 private List<SettableDeviceState> mSettableDeviceStates;
205 public List<SettableDeviceState> getSettableDeviceStates() { in getSettableDeviceStates()
333 mSettableDeviceStates.add(new SettableDeviceState(deviceState, isSettable)); in loadDefaults()
382 public static class SettableDeviceState { class in DeviceStateRotationLockSettingsManager
386 SettableDeviceState(int deviceState, boolean isSettable) { in SettableDeviceState() method in DeviceStateRotationLockSettingsManager.SettableDeviceState
404 if (!(o instanceof SettableDeviceState)) return false; in equals()
405 SettableDeviceState that = (SettableDeviceState) o; in equals()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/devicestate/
DDeviceStateRotationLockSettingsManagerTest.java34 …ort com.android.settingslib.devicestate.DeviceStateRotationLockSettingsManager.SettableDeviceState;
137 List<SettableDeviceState> settableDeviceStates = in getSettableDeviceStates_returnsExpectedValuesInOriginalOrder()
142 new SettableDeviceState(/* deviceState= */ 2, /* isSettable= */ true), in getSettableDeviceStates_returnsExpectedValuesInOriginalOrder()
143 new SettableDeviceState(/* deviceState= */ 1, /* isSettable= */ false), in getSettableDeviceStates_returnsExpectedValuesInOriginalOrder()
144 new SettableDeviceState(/* deviceState= */ 0, /* isSettable= */ true) in getSettableDeviceStates_returnsExpectedValuesInOriginalOrder()