diff options
author | Zhentao Sun <robinvane@google.com> | 2015-07-21 17:43:53 -0700 |
---|---|---|
committer | Zhentao Sun <robinvane@google.com> | 2015-07-22 17:42:41 -0700 |
commit | c6cd1f9a83b2807ef7434b6775a07e1e9208d4e0 (patch) | |
tree | dc92ab99fec7f7bd61b1e6ace47a2c2113a69924 /services/java | |
parent | 58adc7ad48990f2ffa0d4858bd6910dd9eb6aabc (diff) | |
download | frameworks_base-c6cd1f9a83b2807ef7434b6775a07e1e9208d4e0.zip frameworks_base-c6cd1f9a83b2807ef7434b6775a07e1e9208d4e0.tar.gz frameworks_base-c6cd1f9a83b2807ef7434b6775a07e1e9208d4e0.tar.bz2 |
Added service that listens for gestures.
Added the GestureLauncherService that listens for camera launch gesture
and starts the camera app.
OEMs need to specify the sensor type of the camera launch gesture in
their overlays.
In the future, we can add more gesture support in this service.
Change-Id: I0769e7ca71e08bd9159aacf29bdcefd316efd2f0
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 014527b..f1fac9e 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -857,6 +857,11 @@ public final class SystemServer { if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_VOICE_RECOGNIZERS)) { mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS); } + + if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) { + Slog.i(TAG, "Gesture Launcher Service"); + mSystemServiceManager.startService(GestureLauncherService.class); + } } try { |