From 390704908004a9298944091c0f74a481fac1c4a8 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Wed, 17 Aug 2016 16:50:44 -0700 Subject: [PATCH] NanoAppFilter: Workaround HubId issues There's no API to set mContextHubId, but testMatch() uses this. We can't add API at this point of the release cycle, so instead we default mContextHubId to HUB_ANY, which makes it always match. Bug:30018518 Change-Id: I4e08afc65889dc109a4da1bd99a027345da865ca --- core/java/android/hardware/location/NanoAppFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/hardware/location/NanoAppFilter.java b/core/java/android/hardware/location/NanoAppFilter.java index 8db70e9c53f1c..bf35a3d6fbd69 100644 --- a/core/java/android/hardware/location/NanoAppFilter.java +++ b/core/java/android/hardware/location/NanoAppFilter.java @@ -43,7 +43,8 @@ public class NanoAppFilter { private long mAppIdVendorMask; // Id of the context hub this instance is expected on - private int mContextHubId; + // TODO: Provide an API which will let us change this HubId. + private int mContextHubId = HUB_ANY; /** * Flag indicating any version. With this flag set, all versions shall match provided version.