Merge \"Add an isListen method to NetworkRequests.\" into nyc-mr1-dev
am: b5239329b1
Change-Id: Ib712c3c7b44d3a623d5f5facf0c7f6844c3ebb82
This commit is contained in:
@@ -283,6 +283,15 @@ public class NetworkRequest implements Parcelable {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns true iff. the contained NetworkRequest is of type LISTEN.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public boolean isListen() {
|
||||
return type == Type.LISTEN;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true iff. the contained NetworkRequest is one that:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user