summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Greg Kaiser <gkaiser@google.com> 2016-08-17 16:50:44 -0700
committer Greg Kaiser <gkaiser@google.com> 2016-08-19 11:04:32 -0700
commit390704908004a9298944091c0f74a481fac1c4a8 (patch)
tree158bbbbd8d3b431056308121fdae90124e30c0a7
parent4ecc9d2db400225b6f5e0d76d17b8f94354996a6 (diff)
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
-rw-r--r--core/java/android/hardware/location/NanoAppFilter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/hardware/location/NanoAppFilter.java b/core/java/android/hardware/location/NanoAppFilter.java
index 8db70e9c53f1..bf35a3d6fbd6 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.