Home | History | Annotate | Download | only in net

Lines Matching defs:REQUEST

78  * <li>Provide an API that allows applications to request and select networks for their data
467 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an
477 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an
490 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request a network that
503 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request a network that
516 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request a network that
528 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an
538 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an
548 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an
565 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request an
665 * Static unique request used as a tombstone for NetworkCallbacks that have been unregistered.
1221 * 1. This URL should respond with a 204 response to a GET request to indicate no captive
1248 * @param networkType specifies which network the request pertains to
1250 request.
1271 NetworkRequest request = null;
1275 Log.d(TAG, "renewing startUsingNetworkFeature request " + l.networkRequest);
1284 request = requestNetworkForFeatureLocked(netCap);
1286 if (request != null) {
1287 Log.d(TAG, "starting startUsingNetworkFeature for request " + request);
1290 Log.d(TAG, " request Failed");
1305 * @param networkType specifies which network the request pertains to
1307 * @return an integer value representing the outcome of the request.
1362 * Guess what the network request was trying to say so that the resulting
1368 * If the request has more than one transport or capability it doesn't
1370 * so this function cannot map the request to a single legacy type and
1510 Log.d(TAG, "renewing request to seqNum " + l.expireSequenceNumber);
1538 netCap, l.networkCallback, 0, REQUEST, type, getDefaultHandler());
1594 * instance suitable for registering a request or callback. Throws an
1629 * Allows applications to request that the system periodically send specific packets on their
1632 * To request that the system send keepalives, call one of the methods that return a
1668 /** The hardware does not support this request. */
2419 * request asynchronously failed.
2740 * request. If evaluation succeeds, this callback may be followed by an {@link #onAvailable}
2758 * satisfying the request changes.
2782 * satisfying the request changes. This will always immediately be followed by a
2825 * Called when the network the framework connected to for this request
2836 * Called when the network the framework connected to for this request
2845 * Called when the network the framework connected to for this request
2856 * Called when the network the framework connected to for this request
2947 final NetworkRequest request = getObject(message, NetworkRequest.class);
2951 callback = sCallbacks.get(request);
3023 private static final int REQUEST = 2;
3028 Preconditions.checkArgument(action == REQUEST || need != null, "null NetworkCapabilities");
3029 final NetworkRequest request;
3041 request = mService.listenForNetwork(need, messenger, binder);
3043 request = mService.requestNetwork(
3046 if (request != null) {
3047 sCallbacks.put(request, callback);
3049 callback.networkRequest = request;
3056 return request;
3060 * Helper function to request a network with a particular legacy type.
3063 * NetworkRequest API to request networks but relies on CONNECTIVITY_ACTION broadcasts for
3070 public void requestNetwork(NetworkRequest request, NetworkCallback networkCallback,
3073 NetworkCapabilities nc = request.networkCapabilities;
3074 sendRequestForNetwork(nc, networkCallback, timeoutMs, REQUEST, legacyType, cbHandler);
3078 * Request a network to satisfy a set of {@link android.net.NetworkCapabilities}.
3084 * Status of the request can be followed by listening to the various
3087 * <p>It is presently unsupported to request a network with mutable
3094 * know how to go about satisfing a request with these capabilities.
3101 * @param request {@link NetworkRequest} describing this request.
3102 * @param networkCallback The {@link NetworkCallback} to be utilized for this request. Note
3103 * the callback must not be shared - it uniquely specifies this request.
3105 * @throws IllegalArgumentException if {@code request} specifies any mutable
3108 public void requestNetwork(NetworkRequest request, NetworkCallback networkCallback) {
3109 requestNetwork(request, networkCallback, getDefaultHandler());
3113 * Request a network to satisfy a set of {@link android.net.NetworkCapabilities}.
3119 * Status of the request can be followed by listening to the various
3122 * <p>It is presently unsupported to request a network with mutable
3129 * know how to go about satisfing a request with these capabilities.
3136 * @param request {@link NetworkRequest} describing this request.
3137 * @param networkCallback The {@link NetworkCallback} to be utilized for this request. Note
3138 * the callback must not be shared - it uniquely specifies this request.
3140 * @throws IllegalArgumentException if {@code request} specifies any mutable
3144 NetworkRequest request, NetworkCallback networkCallback, Handler handler) {
3145 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities);
3147 requestNetwork(request, networkCallback, 0, legacyType, cbHandler);
3151 * Request a network to satisfy a set of {@link android.net.NetworkCapabilities}, limited
3157 * {@link NetworkCallback#onUnavailable()} callback is called. The request can still be
3160 * request that timed out is not an error.
3171 * @param request {@link NetworkRequest} describing this request.
3172 * @param networkCallback The {@link NetworkCallback} to be utilized for this request. Note
3173 * the callback must not be shared - it uniquely specifies this request.
3178 public void requestNetwork(NetworkRequest request, NetworkCallback networkCallback,
3181 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities);
3182 requestNetwork(request, networkCallback, timeoutMs, legacyType, getDefaultHandler());
3186 * Request a network to satisfy a set of {@link android.net.NetworkCapabilities}, limited
3191 * {@link NetworkCallback#onUnavailable} callback is called. The request can still be
3194 * request that timed out is not an error.
3205 * @param request {@link NetworkRequest} describing this request.
3206 * @param networkCallback The {@link NetworkCallback} to be utilized for this request. Note
3207 * the callback must not be shared - it uniquely specifies this request.
3212 public void requestNetwork(NetworkRequest request, NetworkCallback networkCallback,
3215 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities);
3217 requestNetwork(request, networkCallback, timeoutMs, legacyType, cbHandler);
3222 * successfully finding a network for the applications request. Retrieve it with
3232 * successfully finding a network for the applications request. Retrieve it with
3239 * Request a network to satisfy a set of {@link android.net.NetworkCapabilities}.
3243 * the request may outlive the calling application and get called back when a suitable
3254 * {@link NetworkCallback} based request before completing the processing of the
3258 * If there is already a request for this Intent registered (with the equality of
3262 * The request may be released normally by calling
3264 * <p>It is presently unsupported to request a network with either
3270 * know how to go about satisfing a request with these capabilities.
3277 * @param request {@link NetworkRequest} describing this request.
3281 * @throws IllegalArgumentException if {@code request} contains either
3285 public void requestNetwork(NetworkRequest request, PendingIntent operation) {
3288 mService.pendingRequestForNetwork(request.networkCapabilities, operation);
3297 * Removes a request made via {@link #requestNetwork(NetworkRequest, android.app.PendingIntent)}
3334 * @param request {@link NetworkRequest} describing this request.
3340 public void registerNetworkCallback(NetworkRequest request, NetworkCallback networkCallback) {
3341 registerNetworkCallback(request, networkCallback, getDefaultHandler());
3349 * @param request {@link NetworkRequest} describing this request.
3356 NetworkRequest request, NetworkCallback networkCallback, Handler handler) {
3358 NetworkCapabilities nc = request.networkCapabilities;
3368 * the request may outlive the calling application and get called back when a suitable
3380 * If there is already a request for this Intent registered (with the equality of
3384 * The request may be released normally by calling
3386 * @param request {@link NetworkRequest} describing this request.
3392 public void registerNetworkCallback(NetworkRequest request, PendingIntent operation) {
3395 mService.pendingListenForNetwork(request.networkCapabilities, operation);
3429 // ConnectivityService takes them from the default request.
3431 // Since the capabilities are exactly the same as the default request's
3432 // capabilities, this request is guaranteed, at all times, to be
3434 // request, i.e., the system default network.
3437 sendRequestForNetwork(nullCapabilities, networkCallback, 0, REQUEST, TYPE_NONE, cbHandler);
3441 * Requests bandwidth update for a given {@link Network} and returns whether the update request
3465 * {@code #requestNetwork}, any networks that had been connected to only to satisfy that request
3471 * @param networkCallback The {@link NetworkCallback} used when making the request.