OSDN Git Service

Implement multi-press behavior for power key.
authorJeff Brown <jeffbrown@google.com>
Fri, 31 Oct 2014 21:45:50 +0000 (14:45 -0700)
committerJeff Brown <jeffbrown@google.com>
Sat, 1 Nov 2014 02:15:33 +0000 (19:15 -0700)
commit13f00f07d69f087cf186c23ae6c6fc938e2be561
treeddee2a032be2aed3f0b15423af38117523285e27
parente333e674a758c39885d4d9779a1aad387fb0e6aa
Implement multi-press behavior for power key.

Added support for brightness boost or setting theater
mode from the power key.  This behavior is disabled by default and
must be enabled for specific products in a config.xml overlay.

Because the power key is already so overloaded, refactored the
code to split out handling of the similar ENDCALL button and
renamed all of the state that has to do with screenshot chord
detection to avoid confusion.

Bug: 17949215
Change-Id: Id282133188e3781472aabb64fabcee7b98d0c77d
core/res/res/values/config.xml
core/res/res/values/symbols.xml
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java