Loading services/java/com/android/server/accessibility/AccessibilityManagerService.java +8 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
services/java/com/android/server/accessibility/AccessibilityManagerService.java +8 −0 Original line number Diff line number Diff line Loading @@ -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; Loading