summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/accessibility
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-04-26 15:08:16 -0700
committerSvetoslav <svetoslavganov@google.com>2013-04-26 15:08:19 -0700
commit108fe59c12d49eace4843315655ee4b6b8145e9d (patch)
tree748b99848d986c2a1fb48d8553edfd358fda2f3b /services/java/com/android/server/accessibility
parentca523d6e95061f99455589512100839118044d43 (diff)
downloadframeworks_base-108fe59c12d49eace4843315655ee4b6b8145e9d.zip
frameworks_base-108fe59c12d49eace4843315655ee4b6b8145e9d.tar.gz
frameworks_base-108fe59c12d49eace4843315655ee4b6b8145e9d.tar.bz2
The helper query bridge in AccessibilityServiceManager missing capability.
1. The helper query bridge service did not have the now capability to query the screen content. 2. Fixing the build. bug:8633951 Change-Id: Ief6a3387793710a83b83c18cc6c53b51dcda9bdf
Diffstat (limited to 'services/java/com/android/server/accessibility')
-rw-r--r--services/java/com/android/server/accessibility/AccessibilityInputFilter.java2
-rw-r--r--services/java/com/android/server/accessibility/AccessibilityManagerService.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/accessibility/AccessibilityInputFilter.java b/services/java/com/android/server/accessibility/AccessibilityInputFilter.java
index 6a7aad3..9e893da 100644
--- a/services/java/com/android/server/accessibility/AccessibilityInputFilter.java
+++ b/services/java/com/android/server/accessibility/AccessibilityInputFilter.java
@@ -349,7 +349,7 @@ class AccessibilityInputFilter extends InputFilter implements EventStreamTransfo
}
}
- private void disableFeatures() {
+ void disableFeatures() {
if (mTouchExplorer != null) {
mTouchExplorer.clear();
mTouchExplorer.onDestroy();
diff --git a/services/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/java/com/android/server/accessibility/AccessibilityManagerService.java
index d51f48f..138c51b 100644
--- a/services/java/com/android/server/accessibility/AccessibilityManagerService.java
+++ b/services/java/com/android/server/accessibility/AccessibilityManagerService.java
@@ -797,6 +797,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
private Service getQueryBridge() {
if (mQueryBridge == null) {
AccessibilityServiceInfo info = new AccessibilityServiceInfo();
+ info.setCapabilities(AccessibilityServiceInfo.CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT);
mQueryBridge = new Service(UserHandle.USER_NULL,
sFakeAccessibilityServiceComponentName, info);
}