Remove unnecessary public API getActiveNetworkForUid
We have exposed the CS module API getActiveNetworkForUid (Used in Jobscheduler) as a temporary solution for the mainline Connectivity service module. This API usage has now been removed in Jobscheduler(b/165835257), so we can permanently remove the public getActiveNetworkForUid API. Bug: 183465229 Test: atest FrameworksNetTests Change-Id: I0f23272d2d8a5118f2e11ac325fdb9e8f9dbe0e3
This commit is contained in:
@@ -68,7 +68,6 @@ package android.net {
|
|||||||
method public boolean bindProcessToNetwork(@Nullable android.net.Network);
|
method public boolean bindProcessToNetwork(@Nullable android.net.Network);
|
||||||
method @NonNull public android.net.SocketKeepalive createSocketKeepalive(@NonNull android.net.Network, @NonNull android.net.IpSecManager.UdpEncapsulationSocket, @NonNull java.net.InetAddress, @NonNull java.net.InetAddress, @NonNull java.util.concurrent.Executor, @NonNull android.net.SocketKeepalive.Callback);
|
method @NonNull public android.net.SocketKeepalive createSocketKeepalive(@NonNull android.net.Network, @NonNull android.net.IpSecManager.UdpEncapsulationSocket, @NonNull java.net.InetAddress, @NonNull java.net.InetAddress, @NonNull java.util.concurrent.Executor, @NonNull android.net.SocketKeepalive.Callback);
|
||||||
method @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.Network getActiveNetwork();
|
method @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.Network getActiveNetwork();
|
||||||
method @Nullable @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public android.net.Network getActiveNetworkForUid(int);
|
|
||||||
method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.NetworkInfo getActiveNetworkInfo();
|
method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.NetworkInfo getActiveNetworkInfo();
|
||||||
method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.NetworkInfo[] getAllNetworkInfo();
|
method @Deprecated @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.NetworkInfo[] getAllNetworkInfo();
|
||||||
method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.Network[] getAllNetworks();
|
method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.Network[] getAllNetworks();
|
||||||
|
|||||||
@@ -1192,7 +1192,8 @@ public class ConnectivityManager {
|
|||||||
*
|
*
|
||||||
* @return a {@link Network} object for the current default network for the
|
* @return a {@link Network} object for the current default network for the
|
||||||
* given UID or {@code null} if no default network is currently active
|
* given UID or {@code null} if no default network is currently active
|
||||||
* TODO: b/183465229 Cleanup getActiveNetworkForUid once b/165835257 is fixed
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
@RequiresPermission(android.Manifest.permission.NETWORK_STACK)
|
@RequiresPermission(android.Manifest.permission.NETWORK_STACK)
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|||||||
Reference in New Issue
Block a user