diff options
author | Roman Birg <roman@cyngn.com> | 2016-02-04 16:28:00 -0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-02 21:48:12 +0800 |
commit | 812f45fcd534e0502565591425a8fac467169672 (patch) | |
tree | 2bda27b2e96c667c66046471bd211c84374c15eb /core/java | |
parent | 0033b87164458979bf1b99027cef7bd7efd2f2c4 (diff) |
SystemUI: handle camera launch gesture from keyhandler
Author: Roman Birg <roman@cyngn.com>
Date: Thu Feb 4 16:28:00 2016 -0800
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>
Author: Roman Birg <roman@cyngn.com>
Date: Sat Feb 13 09:08:21 2016 -0800
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>
Author: Roman Birg <roman@cyngn.com>
Date: Tue Feb 16 17:22:01 2016 -0800
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>
Author: Michael Bestas <mikeioannina@cyanogenmod.org>
Date: Sat Feb 20 00:56:47 2016 +0200
SystemUI: Don't vibrate on touchscreen camera gesture
* This is usually handled in device-specific keyhandler,
where vibration is optional and has the same duration
in all gestures
Change-Id: I879671c9d6f785137d63b8b70de35f5d5020748d
Change-Id: Iba9211b7d342f618c4082c34d11663d89861607a
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/app/StatusBarManager.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/app/StatusBarManager.java b/core/java/android/app/StatusBarManager.java index be702c2a1756..c2dea42b65a6 100644 --- a/core/java/android/app/StatusBarManager.java +++ b/core/java/android/app/StatusBarManager.java @@ -206,6 +206,8 @@ public class StatusBarManager { public static final int CAMERA_LAUNCH_SOURCE_POWER_DOUBLE_TAP = 1; /** @hide */ public static final int CAMERA_LAUNCH_SOURCE_LIFT_TRIGGER = 2; + /** @hide */ + public static final int CAMERA_LAUNCH_SOURCE_SCREEN_GESTURE = 3; @UnsupportedAppUsage private Context mContext; |