[VCN20] Change requestBackgroundNetwork argument order
Test: atest FrameworksNetTests FrameworksVcnTests Fix: 185215095 Merged-In: Id281678fe85ce0894b0e92e11c0283d4d1b4ecdb Change-Id: Id281678fe85ce0894b0e92e11c0283d4d1b4ecdb (cherry-picked from ag/14198667)
This commit is contained in:
@@ -5307,10 +5307,10 @@ public class ConnectivityManager {
|
||||
* {@link #unregisterNetworkCallback(NetworkCallback)}.
|
||||
*
|
||||
* @param request {@link NetworkRequest} describing this request.
|
||||
* @param handler {@link Handler} to specify the thread upon which the callback will be invoked.
|
||||
* If null, the callback is invoked on the default internal Handler.
|
||||
* @param networkCallback The {@link NetworkCallback} to be utilized for this request. Note
|
||||
* the callback must not be shared - it uniquely specifies this request.
|
||||
* @param handler {@link Handler} to specify the thread upon which the callback will be invoked.
|
||||
* If null, the callback is invoked on the default internal Handler.
|
||||
* @throws IllegalArgumentException if {@code request} contains invalid network capabilities.
|
||||
* @throws SecurityException if missing the appropriate permissions.
|
||||
* @throws RuntimeException if the app already has too many callbacks registered.
|
||||
@@ -5325,7 +5325,8 @@ public class ConnectivityManager {
|
||||
NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
|
||||
})
|
||||
public void requestBackgroundNetwork(@NonNull NetworkRequest request,
|
||||
@NonNull Handler handler, @NonNull NetworkCallback networkCallback) {
|
||||
@NonNull NetworkCallback networkCallback,
|
||||
@SuppressLint("ListenerLast") @NonNull Handler handler) {
|
||||
final NetworkCapabilities nc = request.networkCapabilities;
|
||||
sendRequestForNetwork(nc, networkCallback, 0, BACKGROUND_REQUEST,
|
||||
TYPE_NONE, new CallbackHandler(handler));
|
||||
|
||||
Reference in New Issue
Block a user