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
This commit is contained in:
Greg Kaiser
2016-08-17 16:50:44 -07:00
parent 4ecc9d2db4
commit 3907049080

View File

@@ -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.