OSDN Git Service

framework: move device key handler logic, fix gesture camera launch
authorRoman Birg <roman@cyngn.com>
Fri, 5 Feb 2016 00:28:00 +0000 (16:28 -0800)
committerSteve Kondik <steve@cyngn.com>
Mon, 19 Sep 2016 20:45:44 +0000 (13:45 -0700)
commitd796f08bcd451ffda61598c1b14730a8e5ac24b2
treeb3b6410f94543a5ef337e42b5511dc105c4f13df
parent6b44c0caea98f5ec7d796b4d3d8a7c3d73a30615
framework: move device key handler logic, fix gesture camera launch

In order to make device camera gestures behave the same way as launching
the camera by double tapping the power button, route DeviceKeyHandler
logic through the GestureLauncherService.

A callback is used in order to avoid publishing the
GestureLauncherService into the System service registry, because the
KeyHandler code cannot directly access services local to the system
process.

OPO-427

Change-Id: I2a8860b278f65ccf31bfee151513d8a23ab746c5
Signed-off-by: Roman Birg <roman@cyngn.com>
KeyHandler: don't break old interfaces

Causing bootloops on devices, don't break old interfaces in the
framework.

OPO-427

Change-Id: I49473b057bc4ed4710e9092c76e41c6a8134d2de
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: handle camera launch gesture from keyhadler

Includes partial reverts:

    Revert "KeyHandler: don't break old interfaces"
    This reverts commit 31ecbdc5fcc1263e9028107858565d951798fd93.

    Revert "framework: move device key handler logic, fix gesture camera launch"
    This reverts commit db1b4e6e4880be1828342be9bc468d36565a2ef0.

Ref: OPO-427

Change-Id: Ic15543a8f63ad4521ab0ab536d00224b0bd70f8c
Signed-off-by: Roman Birg <roman@cyngn.com>
core/java/android/app/StatusBarManager.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
services/core/java/com/android/server/policy/PhoneWindowManager.java