summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/accessibility/AccessibilityButtonModeObserver.java
Commit message (Collapse)AuthorAgeFilesLines
* [DO NOT MERGE] Replace UserHandle.CURRENT with UserTrackerAlex Stetson2023-01-171-2/+3
| | | | | | Bug: 249831072 Test: atest SystemUITests Change-Id: Id98ed38495feaab4780452ded14fe24b68ae6944
* Update the supported type in ACCESSIBILITY_BUTTON_MODE according to ↵jasonwshsu2021-07-151-1/+3
| | | | | | | | | | | | | | navigation gestural mode or button mode Root cause: From the user feedback, accessibiltiy gesture has more benifits than floating accessibility button especially to low vision users. Solution: Bring back accessibility gesture to be one of the options of the accessibility button, then update to supported type according to navigation gestural mode or button mode. ACCESSIBILITY_BUTTON_MODE_NAVIGATION_BAR is incompatible under gestural mode; ACCESSIBILITY_BUTTON_MODE_GESTURE is incompatible under non gestural mode; ACCESSIBILITY_BUTTON_MODE_FLOATING_MENU is compatible under both mode. Bug: 190563948 Test: install new SettingsProvider.apk & adb reboot & manual test Change-Id: I9ac163603112bc899f64164bee5752a5249ed0dc
* Handle the basic logic to show or hide accessibility floating menujasonwshsu2021-03-191-66/+25
| | | | | | | | | | | | * AccessibilityFloatingMenuController will listen to the changes from AccessibilityButtonTargetsObserver and AccessibilityButtonModeObserver then handle the visibility of FloatingMenu * Add abstract class SecureSettingsContentObserver to handle a registry of listeners of specific types and dispatch changes to child Cherry picked from commit 523514fd24d72b8420c0ca184643751980e6f218 Bug: 173940864 Test: atest AccessibilityButtonTargetsObserverTest AccessibilityButtonModeObserverTest AccessibilityFloatingMenuControllerTest Change-Id: I07fded55340644bce84a3f17a7a4da950268d2d2 Merged-In: I07fded55340644bce84a3f17a7a4da950268d2d2
* Observer for the accessibility button mode and notify its listeners for the ↵jasonwshsu2021-03-191-0/+142
changes * Update accessibility button state (visibility) in navigationbar when accessibility button mode listener receive the changes. Cherry picked from commit 2c60295be9ceb019ac934b38da14f97f08b1c6f0 Bug: 173938894 Bug: 173940864 Test: atest AccessibilityButtonModeObserverTest Change-Id: I03b961c95a20e4698491443012beb3ab73333199 Merged-In: I03b961c95a20e4698491443012beb3ab73333199