maybeLogBlockedStatusChanged multilayer requests
Updating maybeLogBlockedStatusChanged logging so that it outputs the currently active request's information as part of the multilayared requests updates. Bug: 173145245 Bug: 171991028 Test: atest FrameworksNetTests Change-Id: I68f364b457e0e5ac8f47df4a4356e4bc25360bca
This commit is contained in:
@@ -1376,8 +1376,11 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
return;
|
||||
}
|
||||
final String action = blocked ? "BLOCKED" : "UNBLOCKED";
|
||||
final NetworkRequest satisfiedRequest = nri.getSatisfiedRequest();
|
||||
int requestId = satisfiedRequest != null
|
||||
? satisfiedRequest.requestId : nri.mRequests.get(0).requestId;
|
||||
mNetworkInfoBlockingLogs.log(String.format(
|
||||
"%s %d(%d) on netId %d", action, nri.mUid, nri.request.requestId, net.getNetId()));
|
||||
"%s %d(%d) on netId %d", action, nri.mUid, requestId, net.getNetId()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user