summaryrefslogtreecommitdiffstats
path: root/services/devicepolicy
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-05-20 21:24:38 -0700
committerJeff Brown <jeffbrown@google.com>2014-05-20 21:24:38 -0700
commit6d8fd27e51d799cf7418b14092b5e806d9792812 (patch)
tree67fcf6b8d44c838db82bab1b854ce41aee78248b /services/devicepolicy
parent969579bb9d208c91e081ff96d2fd788269d254bd (diff)
downloadframeworks_base-6d8fd27e51d799cf7418b14092b5e806d9792812.zip
frameworks_base-6d8fd27e51d799cf7418b14092b5e806d9792812.tar.gz
frameworks_base-6d8fd27e51d799cf7418b14092b5e806d9792812.tar.bz2
Make power button behavior configurable.
Allow power button to be used to either go to sleep as usual, which may doze, or skip that completely and really go to sleep. May also really go to sleep and go home all at once. Bug: 14406056 Change-Id: Ia19e2551b9c2a72271bb2eddd5c0d1749761e019
Diffstat (limited to 'services/devicepolicy')
-rw-r--r--services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
index 296d852..1b74f4d 100644
--- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
+++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
@@ -2119,7 +2119,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
try {
// Power off the display
getIPowerManager().goToSleep(SystemClock.uptimeMillis(),
- PowerManager.GO_TO_SLEEP_REASON_DEVICE_ADMIN);
+ PowerManager.GO_TO_SLEEP_REASON_DEVICE_ADMIN, 0);
// Ensure the device is locked
getWindowManager().lockNow(null);
} catch (RemoteException e) {