Merge "[AWARE] Add is out-of-band utility function"
This commit is contained in:
@@ -161,6 +161,16 @@ public final class WifiAwareNetworkSpecifier extends NetworkSpecifier implements
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Indicates whether the network specifier specifies an OOB (out-of-band) data-path - i.e. a
|
||||
* data-path created without a corresponding Aware discovery session.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public boolean isOutOfBand() {
|
||||
return type == NETWORK_SPECIFIER_TYPE_OOB || type == NETWORK_SPECIFIER_TYPE_OOB_ANY_PEER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user