diff options
author | Jorim Jaggi <jjaggi@google.com> | 2015-09-23 12:59:22 -0700 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2015-09-24 16:32:09 -0700 |
commit | 40aa8811bc817293d7400c14fa60350d2350d29f (patch) | |
tree | f5812936dd4fd539d695bde5584812a4413ccb20 /core | |
parent | e1de9f674575df3b17e475c4f32dd93d33e596e3 (diff) | |
download | frameworks_base-40aa8811bc817293d7400c14fa60350d2350d29f.zip frameworks_base-40aa8811bc817293d7400c14fa60350d2350d29f.tar.gz frameworks_base-40aa8811bc817293d7400c14fa60350d2350d29f.tar.bz2 |
Deliver camera launch source for analytics
Bug: 24304031
Change-Id: I606bccf4b62b651e17c6e6d9472648deeab703da
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/StatusBarManager.java | 3 | ||||
-rw-r--r-- | core/java/com/android/internal/statusbar/IStatusBar.aidl | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/app/StatusBarManager.java b/core/java/android/app/StatusBarManager.java index 31d1ab7..5e8ad68 100644 --- a/core/java/android/app/StatusBarManager.java +++ b/core/java/android/app/StatusBarManager.java @@ -90,6 +90,9 @@ public class StatusBarManager { public static final int WINDOW_STATE_HIDING = 1; public static final int WINDOW_STATE_HIDDEN = 2; + public static final int CAMERA_LAUNCH_SOURCE_WIGGLE = 0; + public static final int CAMERA_LAUNCH_SOURCE_POWER_DOUBLE_TAP = 1; + private Context mContext; private IStatusBarService mService; private IBinder mToken = new Binder(); diff --git a/core/java/com/android/internal/statusbar/IStatusBar.aidl b/core/java/com/android/internal/statusbar/IStatusBar.aidl index feed3903..ba67cf4 100644 --- a/core/java/com/android/internal/statusbar/IStatusBar.aidl +++ b/core/java/com/android/internal/statusbar/IStatusBar.aidl @@ -72,7 +72,9 @@ oneway interface IStatusBar /** * Notifies the status bar that a camera launch gesture has been detected. + * + * @param source the identifier for the gesture, see {@link StatusBarManager} */ - void onCameraLaunchGestureDetected(); + void onCameraLaunchGestureDetected(int source); } |