Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/display/
DDeviceStateAutoRotateSettingController.java48 private final DeviceStateRotationLockSettingsManager mAutoRotateSettingsManager; field in DeviceStateAutoRotateSettingController
64 mAutoRotateSettingsManager = DeviceStateRotationLockSettingsManager.getInstance(context); in DeviceStateAutoRotateSettingController()
80 mAutoRotateSettingsManager.registerListener(mDeviceStateRotationLockSettingsListener); in onStart()
85 mAutoRotateSettingsManager.unregisterListener(mDeviceStateRotationLockSettingsListener); in onStop()
115 return !mAutoRotateSettingsManager.isRotationLocked(mDeviceState); in isChecked()
122 mAutoRotateSettingsManager.updateSetting(mDeviceState, isRotationLocked); in setChecked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DDeviceStateAutoRotateSettingControllerTest.java64 private final DeviceStateRotationLockSettingsManager mAutoRotateSettingsManager = field in DeviceStateAutoRotateSettingControllerTest
137 mAutoRotateSettingsManager.updateSetting(DEFAULT_DEVICE_STATE, /* rotationLocked= */ false); in isChecked_settingForStateIsUnlocked_returnsTrue()
144 mAutoRotateSettingsManager.updateSetting(DEFAULT_DEVICE_STATE, /* rotationLocked= */ true); in isChecked_settingForStateIsLocked_returnsFalse()
153 boolean rotationLocked = mAutoRotateSettingsManager.isRotationLocked(DEFAULT_DEVICE_STATE); in setChecked_true_deviceStateSettingIsUnlocked()
162 boolean rotationLocked = mAutoRotateSettingsManager.isRotationLocked(DEFAULT_DEVICE_STATE); in setChecked_false_deviceStateSettingIsLocked()