summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2011-07-13 17:16:34 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2011-07-13 17:22:15 -0700
commit63c04eeb00dd71380d5ebba701014793d8f9a2ea (patch)
tree17d31cc878565bc12a184bcb5b7a9f2900b74035
parent3ac60ada279e2cd24001c0f084982b7e14532ea6 (diff)
downloadframeworks_base-63c04eeb00dd71380d5ebba701014793d8f9a2ea.zip
frameworks_base-63c04eeb00dd71380d5ebba701014793d8f9a2ea.tar.gz
frameworks_base-63c04eeb00dd71380d5ebba701014793d8f9a2ea.tar.bz2
Touch exploration gesture events change the window id.
1. Touch exploration start and end events are generated by the sytstem to provide additional information for accessibility services. Since such events do not come from any particular window they whould not change the id of the window that currently allows exploring its content. 2. Touch exploration start and end events were lealing the touch explorer class wich is private. bug:5026258 Change-Id: Icaf3e2bd9566716f2afb876cf8e0d50813b0c76e
-rw-r--r--services/java/com/android/server/accessibility/AccessibilityManagerService.java4
-rw-r--r--services/java/com/android/server/accessibility/TouchExplorer.java2
2 files changed, 1 insertions, 5 deletions
diff --git a/services/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/java/com/android/server/accessibility/AccessibilityManagerService.java
index 80cdf6b..f99951fa 100644
--- a/services/java/com/android/server/accessibility/AccessibilityManagerService.java
+++ b/services/java/com/android/server/accessibility/AccessibilityManagerService.java
@@ -1155,9 +1155,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
| AccessibilityNodeInfo.ACTION_CLEAR_SELECTION;
private static final int RETRIEVAL_ALLOWING_EVENT_TYPES =
- AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END
- | AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START
- | AccessibilityEvent.TYPE_VIEW_CLICKED | AccessibilityEvent.TYPE_VIEW_FOCUSED
+ AccessibilityEvent.TYPE_VIEW_CLICKED | AccessibilityEvent.TYPE_VIEW_FOCUSED
| AccessibilityEvent.TYPE_VIEW_HOVER_ENTER | AccessibilityEvent.TYPE_VIEW_HOVER_EXIT
| AccessibilityEvent.TYPE_VIEW_LONG_CLICKED | AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED
| AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED | AccessibilityEvent.TYPE_VIEW_SELECTED
diff --git a/services/java/com/android/server/accessibility/TouchExplorer.java b/services/java/com/android/server/accessibility/TouchExplorer.java
index 1af7015..dbd9474 100644
--- a/services/java/com/android/server/accessibility/TouchExplorer.java
+++ b/services/java/com/android/server/accessibility/TouchExplorer.java
@@ -838,8 +838,6 @@ public class TouchExplorer implements Explorer {
*/
private void sendAccessibilityEvent(int eventType) {
AccessibilityEvent event = AccessibilityEvent.obtain(eventType);
- event.setPackageName(mContext.getPackageName());
- event.setClassName(getClass().getName());
mAccessibilityManager.sendAccessibilityEvent(event);
}