summaryrefslogtreecommitdiff
path: root/src/com/android/settings/display/AutoRotatePreferenceController.java
AgeCommit message (Collapse)Author
2021-11-01Add highlight menu keys for all toggle pref controllers and custom slicesJason Chiu
Bug: 204695404 Test: manual, robotest build pass, unit Change-Id: Iad2e28ada8ddb766ffa7eff2c8dc581250cbd6f8
2021-06-02Use list+ toggle on devices without face detectionAbel Tesfaye
Test: verified intended behavior on crosshatch and no regression on flame, make RunSettingsRoboTests -j$(nproc) ROBOTEST_FILTER=SmartAutoRotatePreferenceFragmentTest Bug: 181299673 Change-Id: Ic9f44091e95915bc78bc70b86d7f132ba6e159ed
2021-02-18Check for available rotation resolver service and camera permission before ↵Abel Tesfaye
showing setting for face based auto-rotation Test: locally with crosshatch & make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.display.SmartAutoRotateControllerTest" Bug: 172857585 Change-Id: I825b0c2471c71a3de59532b39a47c5442f234fb5
2019-11-28Make some display related slices public.Yi-Ling Chuang
Only PreferenceControllers with isPublicSlice() set to true are exposed to other apps. Others will be Settings only. Bug: 141088937 Test: robotests Change-Id: I2a36da4ac4bb14a4d2ac7b89ab2bb3ebf8e655f7
2019-01-17Migrate all MetricsProto enums to SettingsEnumsFan Zhang
Bug: 122855168 Test: rebuild Change-Id: I962d9a71179f86b7cae9dc5e9a00e0aa1557dc76
2018-08-28Sort importsFan Zhang
Having consistent import order will reduce chance of merge conflict between internal and external master Test: rebuild Change-Id: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
2018-06-18Reorder and clean up imports.Fan Zhang
Test: rebuild Change-Id: I178485c84ae7146f991fd77b6d7504b029942a68
2018-05-22Add isSliceable API to BasePrefControllerMatthew Fritze
Only support explicitly approved Settings Slices, dictated by controllers which return true for the new method isSliceable. Updating the supported settings to a whitelist means that the method to return all available slices must be updated, and checking slicability when we index slices. Test: robotests Bug: 79779103 Change-Id: Ib2b9690cdd0036b5cc4a1cb846c52bce7c824ab9
2018-05-09Establish permanently unavailable settingsMatthew Fritze
Distinguish between settings which are permanently unavailable on the device, and temporarily unavailable. This enables us to restrict which setting slices are exposed in onSliceGetDescendants. The primary changes in this CL are renaming: "DISABLED_UNSUPPORTED" -> "UNSUPPORTED_ON_DEVICE" to be more clear the the setting will cannot be accessed on the device, and, adding a new enum to encapsulate settings which are currently unavailable, but could be enabled in the future. Also remove UNAVAILABLE_UNKNOWN. Devs should never need this enum. Bug: 78910582 Bug: 79245656 Test: robotests Change-Id: I58821a6cfd6134b3b351657b6edf5f74ead00643
2018-04-20Migrate Settings to androidx.Aurimas Liutikas
Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
2018-03-30Support Screen Rotate in the Universal Settings APILexHuang
Change extend from AbstractPreferenceController to TogglePreferenceControllear Bug: 67997439 Test: make RunSettingsRoboTests Change-Id: I86e59d00384fb131f2f2b92186e8536324db2e1b
2018-01-24Migrate to use instrumentation classes from settingslib.Leif Hendrik Wilden
Test: Compiles. Manually tested. Change-Id: I70a6e76cc8440547746ecc008c32bd06a7de8161
2018-01-22Revert "Migrate to use instrumentation classes from settingslib."Leif Wilden
This reverts commit 1546cca529bf56430332e15b05ceb6efb37e57bf. Reason for revert: Broke fingerprint setup flow. b/72267201 Change-Id: I8321265ae64732c526325882ddea51080decddf5
2018-01-18Migrate to use instrumentation classes from settingslib.Leif Hendrik Wilden
Test: Compiles. Manually tested. Change-Id: Ie5515bb0fe3e621fc7723a9b04ba23e4bfa9c401
2017-06-26Make PreferenceController a mixinTony Mantler
Bug: 62912136 Test: Existing tests in BaseSearchIndexProviderTest Change-Id: Ieda359806c09a019840b2005446c7ec8b61fdb00
2017-05-12Depend on SettingsLib's version of lifecycle and FooterMixin.Juan Lang
The implementations have been imported into SettingsLib. Setting's copy can now be removed, which this change also does. Test: Manually check battery status, which uses FooterMixin, looks OK. make RunSettingsLibRobotTests && make RunSettingsRoboTests && make RunSettingsGoogleRoboTests Change-Id: I6539605fdad80d156ff5ff249e68df4a1c412067
2017-05-06Use a SwitchPreference for auto-rotate insteadFan Zhang
- Change the UI to SwitchPreference - Remove old string used by DropDownPreference - Attach listener to monitor setting change Change-Id: If42cceb74296814311eb0eff8e26b4a48a1c4d29 Fix: 35959797 Test: robotests
2016-12-07Remove no-op handlePerferenceTreeClick from PrefControllersFan Zhang
Bug: 33429853 Test: RunSettingsRoboTests Change-Id: I5633953e3d7b07f9006e541b96a24a2a769e2686
2016-11-08Update package names to work with the proto3 compilerTamas Berghammer
Bug: b/28974522 Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
2016-10-25Fix logging spam in DashboardFragment.Fan Zhang
When updating preferences managed through PreferenceController, the fragment should skip prefs that are not available. Bug: 32255863 Test: RunSettingsRoboTests Change-Id: I2f9b6ddf8c78d40068dc18f07e60672dcba4474a
2016-10-18Add progressive disclsoureFan Zhang
- Add a ProgressiveDisclosureMixin that contains all logic for collapse preference list when it's too long - Refactored PreferenceController's updateState to take a preference instead of PreferenceScreen, because with progressive disclosure the preference can either be in screen or the mixin. DashboardFragment is responsible finding the preference before passing it to controller. Bug: 32255863 Test: RunSettingsRoboTests Change-Id: I6713abd61c954ce12732902e5b3ca4d4c0b1563e
2016-10-10Add display settings dashboard to new IA.Fan Zhang
- Added a activity-alias pointing to displaySettings as top level setting item. - Refactored all preference logic in DisplaySettings into PreferenceControllers. During fragment onAttach it installs all controllers, and during onResume it updates preference state. Each controller listens to its own preference change event. Bug: 31800242 Test: RunSettingsRoboTests Change-Id: Ibc9bf200c5acce7c4ae9292340822afee27a3a28