summaryrefslogtreecommitdiffstats
path: root/services/accessibility
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-07-10 14:50:06 -0700
committerAlan Viverette <alanv@google.com>2014-07-10 14:54:26 -0700
commite34560b21989eea54a139a0586d156ba573cc2ea (patch)
treed35e6998089afbd5492f23833cedc0c261c74c1e /services/accessibility
parent2db72ad45b0c4d91f0d009c6d98eb7fb5231e1d9 (diff)
downloadframeworks_base-e34560b21989eea54a139a0586d156ba573cc2ea.zip
frameworks_base-e34560b21989eea54a139a0586d156ba573cc2ea.tar.gz
frameworks_base-e34560b21989eea54a139a0586d156ba573cc2ea.tar.bz2
Add accessibility action to open power long-press dialog
Also fixes an infinite recursion bug in the WindowManagerService implementation of WindowManagerInternal. BUG: 16129909 Change-Id: I4f9d32f4e6c3ad460652c5e5271540fa5032a1f5
Diffstat (limited to 'services/accessibility')
-rw-r--r--services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java
index 1be1572..ee7eb9f 100644
--- a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java
+++ b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java
@@ -2443,6 +2443,9 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
case AccessibilityService.GLOBAL_ACTION_QUICK_SETTINGS: {
expandQuickSettings();
} return true;
+ case AccessibilityService.GLOBAL_ACTION_POWER_DIALOG: {
+ showGlobalActions();
+ } return true;
}
return false;
} finally {
@@ -2781,6 +2784,10 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
Binder.restoreCallingIdentity(token);
}
+ private void showGlobalActions() {
+ mWindowManagerService.showGlobalActions();
+ }
+
private IAccessibilityInteractionConnection getConnectionLocked(int windowId) {
if (DEBUG) {
Slog.i(LOG_TAG, "Trying to get interaction connection to windowId: " + windowId);