LockScreen: allow long-press actions from hardware keys (2/2)

Allow following actions with button long-presses on lockscreen:
- toggle flashlight (if available)
- play/pause/next/previous track selection
- toggle silent mode

Allow customizing of back, menu, and home buttons. Search
button events are completely ignored on the lockscreen.

Auto-detect hardware keys, only show appropriate menu
options based on the actual hardware keys available on the
device (or completely hide if there are no hardware keys).

Based largely on Danny Baumann's work from gingerbread.

Ported from CM10

jt1134 authored 11 months ago
Adds ability to answer call with hardware HOME button (preparation to winter time)

Change-Id: I0d22a6fbb92a61f08b50cae5c14d0030b81ee6ec
[1/2] Permit home button wake to be configurable

To activate, enable bool config_show_homeWake in
device overlay/packages/apps/Settings/res/values

sam3000 authored 5 months ago
Enable custom actions for double tap home
LockScreen: allow hardware key longpress to put device to sleep

jt1134 authored 2 months ago