From 677adf1e66ba83b8fb2c849c181303b35bd489bc Mon Sep 17 00:00:00 2001 From: Nick Armstrong-Crews Date: Thu, 27 Aug 2015 13:53:25 -0700 Subject: Handle KEYCODE_SOFT_SLEEP from Ungaze. Needed for Ungaze to trigger "soft sleep" (respecting wake locks); operates by sending new KEYCODE_SOFT_SLEEP to PhoneWindowManager, which calls PowerManagerService's new method setUserInactiveOverride (thereby causing immediate sleep, modulo wakelocks, upon next iteration of PowerManagerService's main loop). BUG: b/23589870 Change-Id: I24a96bd6db8ff28674c907f2898e49c4f6140209 --- api/current.txt | 1 + api/system-current.txt | 1 + 2 files changed, 2 insertions(+) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index d7fdb2d..1946e49 100644 --- a/api/current.txt +++ b/api/current.txt @@ -35217,6 +35217,7 @@ package android.view { field public static final int KEYCODE_SLEEP = 223; // 0xdf field public static final int KEYCODE_SOFT_LEFT = 1; // 0x1 field public static final int KEYCODE_SOFT_RIGHT = 2; // 0x2 + field public static final int KEYCODE_SOFT_SLEEP = 276; // 0x114 field public static final int KEYCODE_SPACE = 62; // 0x3e field public static final int KEYCODE_STAR = 17; // 0x11 field public static final int KEYCODE_STB_INPUT = 180; // 0xb4 diff --git a/api/system-current.txt b/api/system-current.txt index f464292..b2a1539 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -37520,6 +37520,7 @@ package android.view { field public static final int KEYCODE_SLEEP = 223; // 0xdf field public static final int KEYCODE_SOFT_LEFT = 1; // 0x1 field public static final int KEYCODE_SOFT_RIGHT = 2; // 0x2 + field public static final int KEYCODE_SOFT_SLEEP = 276; // 0x114 field public static final int KEYCODE_SPACE = 62; // 0x3e field public static final int KEYCODE_STAR = 17; // 0x11 field public static final int KEYCODE_STB_INPUT = 180; // 0xb4 -- cgit v1.1