summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/accessibility/AccessibilitySlicePreferenceController.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix the NPE error when get the service summary.jasonwshsu2020-02-151-8/+2
| | | | | | | | | * Check NPE for AccessibilityInfo.loadSummary() * Remove the state argument that could get from info argument Bug: 148837311 Test: Manual test Change-Id: Ic6906fdbdd7f1c241776d1045be33f89468670b6
* Remove on/off information if the services cannot toggle service on/offmenghanli2020-02-131-4/+13
| | | | | | Bug: 148837311 Test: Manual test Change-Id: I57e0ed33bebc41cde99008bb2ed014c63194c52a
* Make some accessibility related slices public.Yi-Ling Chuang2019-11-281-1/+1
| | | | | | | | | Only PreferenceControllers with isPublicSlice() set to true are exposed to other apps. Others will be Settings only. Bug: 141088937 Test: robotests Change-Id: If0fa79f7c270b10f8f1a47cb5f914d19566dedfb
* Add isSliceable API to BasePrefControllerMatthew Fritze2018-05-221-0/+5
| | | | | | | | | | | | | | 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
* Establish permanently unavailable settingsMatthew Fritze2018-05-091-2/+1
| | | | | | | | | | | | | | | | | | | 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
* Add A11y SlicesMatthew Fritze2018-04-171-0/+108
Add AccessibilityPreferenceController, which wraps all a11y settings since they are share common infrastructure for enabling, current value, and availability. We add an overlay for OEMs to declare their bundled a11y services. This is the only list of services that will be possible to enabled via Settings slices. Accessibility Slices are built by getting a list of valid services, and indexing the service names as a key in the Slices DB. When they are built at runtime, they use the generic A11yPrefController to get the status and enable/disable the service. Bug: 67997836 Bug: 67997672 Test: robotests Change-Id: I66f905bf1c55eecb937945c4675c12bcbc96d698