Lines Matching defs:NetworkRequest

25  * Defines a request for a network, made through {@link NetworkRequest.Builder} and used
29 public class NetworkRequest implements Parcelable {
52 * A NetworkRequest as used by the system can be one of the following types:
83 * creates a NetworkRequest, it does not have a type; the type is set
107 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) {
120 public NetworkRequest(NetworkRequest that) {
128 * Builder used to create {@link NetworkRequest} objects. Specify the Network features
140 * Build {@link NetworkRequest} give the current set of capabilities.
142 public NetworkRequest build() {
149 return new NetworkRequest(nc, ConnectivityManager.TYPE_NONE,
285 public static final Creator<NetworkRequest> CREATOR =
286 new Creator<NetworkRequest>() {
287 public NetworkRequest createFromParcel(Parcel in) {
292 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type);
295 public NetworkRequest[] newArray(int size) {
296 return new NetworkRequest[size];
301 * Returns true iff. this NetworkRequest is of type LISTEN.
310 * Returns true iff. the contained NetworkRequest is one that:
317 * NetworkRequest.
329 * Returns true iff. the contained NetworkRequest is one that:
335 * it is the best network which can satisfy the NetworkRequest.
347 * Returns true iff. this NetworkRequest is of type BACKGROUND_REQUEST.
356 return "NetworkRequest [ " + type + " id=" + requestId +
362 if (obj instanceof NetworkRequest == false) return false;
363 NetworkRequest that = (NetworkRequest)obj;