Merge \"Add an isListen method to NetworkRequests.\" into nyc-mr1-dev

am: b5239329b1

Change-Id: Ib712c3c7b44d3a623d5f5facf0c7f6844c3ebb82
This commit is contained in:
Lorenzo Colitti
2016-07-18 15:08:54 +00:00
committed by android-build-merger
2 changed files with 14 additions and 5 deletions

View File

@@ -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:
*