Revert "Return the registry in registerNetworkAgent."
Revert submission 3535182 Reason for revert: <Droidmonitor created revert due to b/404070202.Will be verified through ABTD for standard investigation.> Reverted changes: /q/submissionid:3535182 Change-Id: I2febd2ee7227d487d9cd69dcabd9c04f888fd2de
This commit is contained in:
parent
30fcf820f9
commit
653d5f1ef4
1 changed files with 32 additions and 104 deletions
|
|
@ -228,7 +228,6 @@ import android.net.NattSocketKeepalive;
|
|||
import android.net.Network;
|
||||
import android.net.NetworkAgent;
|
||||
import android.net.NetworkAgentConfig;
|
||||
import android.net.NetworkAndAgentRegistryParcelable;
|
||||
import android.net.NetworkCapabilities;
|
||||
import android.net.NetworkInfo;
|
||||
import android.net.NetworkInfo.DetailedState;
|
||||
|
|
@ -9317,7 +9316,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||
* @param providerId the ID of the provider owning this NetworkAgent.
|
||||
* @return the network created for this agent.
|
||||
*/
|
||||
public NetworkAndAgentRegistryParcelable registerNetworkAgent(INetworkAgent na,
|
||||
public Network registerNetworkAgent(INetworkAgent na,
|
||||
NetworkInfo networkInfo,
|
||||
LinkProperties linkProperties,
|
||||
NetworkCapabilities networkCapabilities,
|
||||
|
|
@ -9360,8 +9359,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||
}
|
||||
}
|
||||
|
||||
private NetworkAndAgentRegistryParcelable registerNetworkAgentInternal(
|
||||
INetworkAgent na, NetworkInfo networkInfo,
|
||||
private Network registerNetworkAgentInternal(INetworkAgent na, NetworkInfo networkInfo,
|
||||
LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
|
||||
NetworkScore currentScore, NetworkAgentConfig networkAgentConfig,
|
||||
@Nullable LocalNetworkConfig localNetworkConfig, int providerId,
|
||||
|
|
@ -9393,11 +9391,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||
// NetworkAgentInfo registration will finish when the NetworkMonitor is created.
|
||||
// If the network disconnects or sends any other event before that, messages are deferred by
|
||||
// NetworkAgent until nai.connect(), which will be called when finalizing the
|
||||
// registration. TODO : have NetworkAgentInfo defer them instead.
|
||||
final NetworkAndAgentRegistryParcelable result = new NetworkAndAgentRegistryParcelable();
|
||||
result.network = nai.network;
|
||||
result.registry = nai.getRegistry();
|
||||
return result;
|
||||
// registration.
|
||||
return nai.network;
|
||||
}
|
||||
|
||||
private void handleRegisterNetworkAgent(NetworkAgentInfo nai, INetworkMonitor networkMonitor) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue