summaryrefslogtreecommitdiffstats
path: root/services
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
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')
-rw-r--r--services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java7
-rw-r--r--services/core/java/com/android/server/wm/WindowManagerService.java11
2 files changed, 17 insertions, 1 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);
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 771b53b..396ec8f 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -5171,6 +5171,10 @@ public class WindowManagerService extends IWindowManager.Stub
}
}
+ void showGlobalActions() {
+ mPolicy.showGlobalActions();
+ }
+
@Override
public void closeSystemDialogs(String reason) {
synchronized(mWindowMap) {
@@ -11130,7 +11134,12 @@ public class WindowManagerService extends IWindowManager.Stub
@Override
public boolean isKeyguardLocked() {
- return isKeyguardLocked();
+ return WindowManagerService.this.isKeyguardLocked();
+ }
+
+ @Override
+ public void showGlobalActions() {
+ WindowManagerService.this.showGlobalActions();
}
@Override