summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2012-11-08 13:13:23 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-08 13:13:23 -0800
commita2bf6181dfca0f93461fc041f2bd2444551a4515 (patch)
tree6ff5aa54451c772965985395ec17b0a400270802 /services
parent79b08a499f5ac7aa4f9dcba4e6c5d9a54463799b (diff)
parent2c29deaa2650091d9206b8fa93f8a447ee247d52 (diff)
downloadframeworks_base-a2bf6181dfca0f93461fc041f2bd2444551a4515.zip
frameworks_base-a2bf6181dfca0f93461fc041f2bd2444551a4515.tar.gz
frameworks_base-a2bf6181dfca0f93461fc041f2bd2444551a4515.tar.bz2
am 2c29deaa: am 6be441c5: Merge "Add mechanism to kick keyguard to show the assistant" into jb-mr1-lockscreen-dev
* commit '2c29deaa2650091d9206b8fa93f8a447ee247d52': Add mechanism to kick keyguard to show the assistant
Diffstat (limited to 'services')
-rwxr-xr-xservices/java/com/android/server/wm/WindowManagerService.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java
index 4659c9d..7e4490e 100755
--- a/services/java/com/android/server/wm/WindowManagerService.java
+++ b/services/java/com/android/server/wm/WindowManagerService.java
@@ -10352,6 +10352,15 @@ public class WindowManagerService extends IWindowManager.Stub
return mSafeMode;
}
+ public void showAssistant() {
+ // TODO: What permission?
+ if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER)
+ != PackageManager.PERMISSION_GRANTED) {
+ return;
+ }
+ mPolicy.showAssistant();
+ }
+
void dumpPolicyLocked(PrintWriter pw, String[] args, boolean dumpAll) {
pw.println("WINDOW MANAGER POLICY STATE (dumpsys window policy)");
mPolicy.dump(" ", pw, args);