summaryrefslogtreecommitdiff
path: root/core/java/android/accessibilityservice/AccessibilityButtonController.java
Commit message (Collapse)AuthorAgeFilesLines
* Replace com.android.internal.util.Preconditions.checkNotNull withDaulet Zhanguzin2019-12-311-4/+4
| | | | | | | | | java.util.Objects.requireNonNull Bug: 126528330 Test: Treehugger Change-Id: Ie079008722ed1d3423eef5d5391b273754b4ad10
* Add null check for AccessibilityButtonController.isAccessibilityButtonAvailablemincheli2019-03-211-7/+9
| | | | | | | | Just add a null check to reduce NullPointerException happening. Bug: 110361782 Test: Test: a11y CTS & unit test Change-Id: Ia4e39c5b3af4943fba2f9ad545b96d5983ee780d
* Fix accessibility button CTS testCasey Burkhardt2017-04-281-1/+2
| | | | | | | | | Ensure accessibility button callbacks are registered with a Handler that has a valid Looper. Bug: 37789861 Test: Passing CTS Change-Id: Idf91547940fe7754bbabe55a729193c4100b8532
* @NonNull on AccessibilityButtonController methodsCasey Burkhardt2017-04-271-16/+10
| | | | | | | | | Make Handler parameter @NonNull and adjust implementation to always expect non-null Handlers. Bug: 37709203 Test: Manual Change-Id: I3937ae1c4e49bfc7652750cc64cac9e78f9d3ce2
* Initial implementation of Nav Bar Accessibility ButtonCasey Burkhardt2017-02-061-0/+223
This allows an AccessibilityService to set a flag in its AccessibilityServiceInfo that triggers the navigation bar to show an Accessibility Button and observe callbacks when the button is clicked or there are changes in the visibility of the navigation bar. Test: Manual (Created a sample AccessibilityService) + CTS Bug:29231271 Change-Id: I03d653d85bc37df28ed71d8bba94b7c75fe56e43