Home
last modified time | relevance | path

Searched refs:postureToDeviceState (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/devicestate/
DPosturesHelperTest.kt95 .that(posturesHelper.postureToDeviceState(DEVICE_STATE_ROTATION_KEY_FOLDED)) in postureToDeviceState_mapsCorrectly()
98 .that(posturesHelper.postureToDeviceState(DEVICE_STATE_ROTATION_KEY_HALF_FOLDED)) in postureToDeviceState_mapsCorrectly()
101 .that(posturesHelper.postureToDeviceState(DEVICE_STATE_ROTATION_KEY_UNFOLDED)) in postureToDeviceState_mapsCorrectly()
104 .that(posturesHelper.postureToDeviceState(DEVICE_STATE_ROTATION_KEY_REAR_DISPLAY)) in postureToDeviceState_mapsCorrectly()
106 expect.that(posturesHelper.postureToDeviceState(DEVICE_STATE_ROTATION_KEY_UNKNOWN)).isNull() in postureToDeviceState_mapsCorrectly()
/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/
DPosturesHelper.kt51 fun postureToDeviceState(@DeviceStateRotationLockKey posture: Int): Int? { in postureToDeviceState() method
DDeviceStateRotationLockSettingsManager.java331 Integer deviceState = mPosturesHelper.postureToDeviceState(posture); in loadDefaults()