diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2011-06-16 16:15:20 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-16 16:15:20 -0700 |
commit | 63eeff7427a2d0266659066bf1286eb1eb578d35 (patch) | |
tree | 4e81e5b7ccd5d846f53a6487dd228cc1d50f983f | |
parent | bec9be2f513617a35988a1cd225afd8f1f513867 (diff) | |
parent | 9dc98e3d1764dbcf7828599b70e7a71a3c82a407 (diff) | |
download | frameworks_base-63eeff7427a2d0266659066bf1286eb1eb578d35.zip frameworks_base-63eeff7427a2d0266659066bf1286eb1eb578d35.tar.gz frameworks_base-63eeff7427a2d0266659066bf1286eb1eb578d35.tar.bz2 |
Merge "Accessiiblity in right state upon connection of a test agent."
-rw-r--r-- | services/java/com/android/server/accessibility/AccessibilityManagerService.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/services/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/java/com/android/server/accessibility/AccessibilityManagerService.java index ec59da6..a9dfb22 100644 --- a/services/java/com/android/server/accessibility/AccessibilityManagerService.java +++ b/services/java/com/android/server/accessibility/AccessibilityManagerService.java @@ -441,6 +441,14 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub if (oldService != null) { tryRemoveServiceLocked(oldService); } + // This API is intended for testing so enable accessibility to make + // sure clients can start poking with the window content. + Settings.Secure.putInt(mContext.getContentResolver(), + Settings.Secure.ACCESSIBILITY_ENABLED, 1); + // Also disable all accessibility services to avoid interference + // with the tests. + Settings.Secure.putString(mContext.getContentResolver(), + Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, ""); } AccessibilityServiceInfo accessibilityServiceInfo = new AccessibilityServiceInfo(); accessibilityServiceInfo.eventTypes = AccessibilityEvent.TYPES_ALL_MASK; |