Merge "[AWARE] Add is out-of-band utility function"

This commit is contained in:
Etan Cohen
2017-05-10 13:28:17 +00:00
committed by Android (Google) Code Review

View File

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