summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2015-12-08 03:03:45 -0800
committerandroid-build-merger <android-build-merger@google.com>2015-12-08 03:03:45 -0800
commit4407cbde63db301dc6383bc47b6dc95fa55fffaa (patch)
tree4a6e62016268811cdf0f8c9970dafeb9fce0bd4b /core/java
parent3e5f615800c37b8ba2af409c7d9f775b617e9a44 (diff)
parent37c8bcbcc9f5098a2a7fde91a3b112abd35a85ad (diff)
Merge "Add support for locking the screen when the lid is closed" am: 9dc3c36c9c am: 4d9e6190b1
am: 37c8bcbcc9 * commit '37c8bcbcc9f5098a2a7fde91a3b112abd35a85ad': Add support for locking the screen when the lid is closed
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/WindowManagerPolicy.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java
index 7e45bbb82e96..b1a8479868bc 100644
--- a/core/java/android/view/WindowManagerPolicy.java
+++ b/core/java/android/view/WindowManagerPolicy.java
@@ -431,6 +431,11 @@ public interface WindowManagerPolicy {
public int getLidState();
/**
+ * Lock the device now.
+ */
+ public void lockDeviceNow();
+
+ /**
* Returns a code that descripbes whether the camera lens is covered or not.
*/
public int getCameraLensCoverState();