diff options
| author | Michael Wright <michaelwr@google.com> | 2015-12-07 23:19:53 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2015-12-07 23:19:53 +0000 |
| commit | 4d9e6190b186f1d2e1cd25defd0d6e12dd833b38 (patch) | |
| tree | 99052c1fa1f8d927f075a417757f973b348ec526 /core/java | |
| parent | ff8ef28e73c0959a4993fea975d0bdefbc27a20b (diff) | |
| parent | 9dc3c36c9cd796d90b65543567495d910d266e4c (diff) | |
Merge "Add support for locking the screen when the lid is closed"
am: 9dc3c36c9c
* commit '9dc3c36c9cd796d90b65543567495d910d266e4c':
Add support for locking the screen when the lid is closed
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index aaf605274a9a..0a7e594f081c 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -430,6 +430,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(); |
