Add a setTeardownDelayMs API to NetworkAgent.
This allows transports to request that when the network is disconnected, the system should delay destroying the native network until the specified time has passed after the network disconnected. Bug: 181941583 Test: next CL in the stack Change-Id: I9765f1c9d1e55c23c6d583d6709dbe06505975b1
This commit is contained in:
@@ -219,7 +219,7 @@ package android.net {
|
||||
method public void onAutomaticReconnectDisabled();
|
||||
method public void onBandwidthUpdateRequested();
|
||||
method public void onNetworkCreated();
|
||||
method public void onNetworkDisconnected();
|
||||
method public void onNetworkDestroyed();
|
||||
method public void onNetworkUnwanted();
|
||||
method public void onQosCallbackRegistered(int, @NonNull android.net.QosFilter);
|
||||
method public void onQosCallbackUnregistered(int);
|
||||
@@ -238,6 +238,7 @@ package android.net {
|
||||
method public final void sendQosSessionLost(int, int, int);
|
||||
method public final void sendSocketKeepaliveEvent(int, int);
|
||||
method @Deprecated public void setLegacySubtype(int, @NonNull String);
|
||||
method public void setTeardownDelayMs(@IntRange(from=0, to=0x1388) int);
|
||||
method public final void setUnderlyingNetworks(@Nullable java.util.List<android.net.Network>);
|
||||
method public void unregister();
|
||||
field public static final int VALIDATION_STATUS_NOT_VALID = 2; // 0x2
|
||||
|
||||
Reference in New Issue
Block a user