summaryrefslogtreecommitdiffstats
path: root/location
diff options
context:
space:
mode:
authordestradaa <destradaa@google.com>2015-08-24 10:41:53 -0700
committerdestradaa <destradaa@google.com>2015-08-24 11:02:52 -0700
commit614612edb508dd5ef1a8f463105b16894906264e (patch)
tree2f019f18ce514a953d82f96a691116b44efa5995 /location
parent8b86268be3fd713394915cbed3d71cc85f806fe1 (diff)
downloadframeworks_base-614612edb508dd5ef1a8f463105b16894906264e.zip
frameworks_base-614612edb508dd5ef1a8f463105b16894906264e.tar.gz
frameworks_base-614612edb508dd5ef1a8f463105b16894906264e.tar.bz2
Disable AR HW when client binder dies.
Ensure that activities are unregistered from AR HW when the client's binder dies. This clean up is required to prevent AR HW to keep active when there are no clients listening for events. Bug: 19894637 Change-Id: Iccd609cf1d2d4a4453c7a96cb8645b61639c3234
Diffstat (limited to 'location')
-rw-r--r--location/lib/java/com/android/location/provider/ActivityRecognitionProvider.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/location/lib/java/com/android/location/provider/ActivityRecognitionProvider.java b/location/lib/java/com/android/location/provider/ActivityRecognitionProvider.java
index da33464..25f9fa2 100644
--- a/location/lib/java/com/android/location/provider/ActivityRecognitionProvider.java
+++ b/location/lib/java/com/android/location/provider/ActivityRecognitionProvider.java
@@ -43,6 +43,8 @@ public final class ActivityRecognitionProvider {
public static final String ACTIVITY_STILL = "android.activity_recognition.still";
public static final String ACTIVITY_TILTING = "android.activity_recognition.tilting";
+ // NOTE: when adding an additional EVENT_TYPE_, EVENT_TYPE_COUNT needs to be updated in
+ // android.hardware.location.ActivityRecognitionHardware
public static final int EVENT_TYPE_FLUSH_COMPLETE = 0;
public static final int EVENT_TYPE_ENTER = 1;
public static final int EVENT_TYPE_EXIT = 2;