summaryrefslogtreecommitdiff
path: root/core/java/android/view/TouchDelegate.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I5be7335b23a92b8ac80d2fd890198273b66ad644
* Refine API javadoc: onTouchExplorationHoverEventDieter Hsu2018-12-121-0/+5
| | | | | | | | Bug: 35702820 Fixes: 120488378 Test: make docs Change-Id: Id04a31bd9c89e423706ce0256ed668eebd12bd47
* Improve TouchDelegate Accessibility: Explore by Touch handle hover eventsDieter Hsu2018-11-021-7/+54
| | | | | | | | | | | | | | - Add TouchDelegate#onHoverEvent Bug: 35702820 Test: Install TestBack with flag FLAG_REQUEST_TOUCH_EXPLORATION_MODE enabled. In Settings APP, enable TestBack then touch/hover into most left side of SwitchBar in the same subactivity to confirm Switch delegated and hover enter event exist Test: manually test with sample app in issue #7. Touch button delegate and hover move over text view to confirm text get a11y focused. Change-Id: I0abea81ea2fee4d391e2ee448710c5f0180f7533
* Fixed NPE in TouchDelegateInfo.Rhed Jao2018-10-231-1/+5
| | | | | | | | | TouchDelegate allows nullable bounds of delegated view. We provide a default bounds to create TouchDelegateInfo if it's null. Bug: 117951101 Test: atest atest AccessibilityEndToEndTest Change-Id: I914a44520edf159bba37af0b0eb00ab97c00b177
* Accessibility: Improve TouchDelegate AccessibilityRhed Jao2018-10-091-0/+25
| | | | | | | | | | Adding api to get touch delegate behavior for the represented view of AccessibilityNodeInfo. Bug: 80061718 Test: atest AccessibilityNodeInfoTest Test: atest AccessibilityEndToEndTest Change-Id: I2ae65d7d44fceaf16609e512c3384f766266ecbd
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | For packages: android.view.textservice android.view.textclassifier.logging android.view.textclassifier android.view.inputmethod android.view.autofill android.view.accessibility android.view This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I4147b038ed7adf0311ee9918b44766f82a057eaf
* Allow TouchDelegate to forward non-primary pointerSiarhei Vishniakou2018-02-161-1/+3
| | | | | | | | | | | | | | | Currently, TouchDelegate can be used to receive the primary pointer events with actions ACTION_DOWN, ACTION_UP, and ACTION_MOVE. While ACTION_MOVE will contain the data for all active pointers (not just primary), currently TouchDelegate will not forward ACTION_POINTER_DOWN and ACTION_POINTER_UP events. This change modifies TouchDelegate behaviour to also forward the non-primary pointer DOWN and UP events to the target view. Bug: 37060799 Test: atest cts.TouchDelegateTest Change-Id: Ieb457c9e15058302cb26d9d4a83f958bbec8dbc0
* Prevent touch delegate from blocking parent eventsSiarhei Vishniakou2017-10-251-26/+20
| | | | | | | | | | | | | | | | Make sure that TouchDelegate does not interfere with handling of parent's events, such as onClick(). Currently, the variable mDelegateTargeted is sticky, and after the TouchDelegate is first activated, stays true for the remainder of its life. Therefore, the parent view will no longer receive clicks after the TouchDelegate is first clicked. This patch forces the re-evaluation of mDelegateTargeted on each new ACTION_DOWN event. Test: bit CtsViewTestCases:.TouchDelegateTest Bug: 65392236 Change-Id: Ifa6430ce6e8400c0411df7da66281219ea97733c
* Fix import statement in view|transition|animation packages.Aurimas Liutikas2016-10-121-11/+8
| | | | | | | This change also remove trailing whitespace. Test: code still compiles Change-Id: I7eff4546320d67d2bae58d31bad0625ea0791b8f
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+153
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-153/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-5/+7
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+151