public class NanoAppFilter extends Object
Modifier and Type | Field and Description |
---|---|
static int |
APP_ANY
If this flag is set, only versions strictly equal to the version specified shall match.
|
static Parcelable.Creator<NanoAppFilter> |
CREATOR |
static int |
FLAGS_VERSION_ANY
Flag indicating any version.
|
static int |
FLAGS_VERSION_GREAT_THAN
If this flag is set, only versions strictly greater than the version specified shall match.
|
static int |
FLAGS_VERSION_LESS_THAN
If this flag is set, only versions strictly less than the version specified shall match.
|
static int |
FLAGS_VERSION_STRICTLY_EQUAL
If this flag is set, only versions strictly equal to the
version specified shall match.
|
static int |
HUB_ANY
If this flag is set, any hub shall match.
|
static int |
VENDOR_ANY
If this flag is set, all vendors shall match.
|
Constructor and Description |
---|
NanoAppFilter(long appId,
int appVersion,
int versionMask,
long vendorMask)
Create a filter
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
testMatch(NanoAppInstanceInfo info)
Test match method.
|
void |
writeToParcel(Parcel out,
int flags) |
public static final int FLAGS_VERSION_ANY
public static final int FLAGS_VERSION_GREAT_THAN
public static final int FLAGS_VERSION_LESS_THAN
public static final int FLAGS_VERSION_STRICTLY_EQUAL
public static final int APP_ANY
public static final int VENDOR_ANY
public static final int HUB_ANY
public static final Parcelable.Creator<NanoAppFilter> CREATOR
public NanoAppFilter(long appId, int appVersion, int versionMask, long vendorMask)
appId
- application idappVersion
- application versionversionMask
- versionvendorMask
- vendorpublic int describeContents()
public void writeToParcel(Parcel out, int flags)
public boolean testMatch(NanoAppInstanceInfo info)
info
- nano app instance info