Loading api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -4540,8 +4540,8 @@ package android.net { public class Network implements android.os.Parcelable { ctor public Network(@NonNull android.net.Network); method public int getNetId(); method @NonNull public android.net.Network getPrivateDnsBypassingCopy(); field public final int netId; } public abstract class NetworkAgent { Loading api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -1507,6 +1507,7 @@ package android.net { public class Network implements android.os.Parcelable { ctor public Network(@NonNull android.net.Network); method public int getNetId(); method @NonNull public android.net.Network getPrivateDnsBypassingCopy(); } Loading core/java/android/net/Network.java +12 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ public class Network implements Parcelable { * The unique id of the network. * @hide */ @SystemApi @UnsupportedAppUsage public final int netId; // Objects used to perform per-network operations such as getSocketFactory Loading Loading @@ -170,6 +170,17 @@ public class Network implements Parcelable { return new Network(netId, true); } /** * Get the unique id of the network. * * @hide */ @TestApi @SystemApi public int getNetId() { return netId; } /** * Returns a netid marked with the Private DNS bypass flag. * Loading packages/Tethering/src/com/android/server/connectivity/tethering/Tethering.java +1 −1 Original line number Diff line number Diff line Loading @@ -1497,7 +1497,7 @@ public class Tethering { } else { dnsServers = mConfig.defaultIPv4DNS; } final int netId = (network != null) ? network.netId : NETID_UNSET; final int netId = (network != null) ? network.getNetId() : NETID_UNSET; try { mNetd.tetherDnsSet(netId, dnsServers); mLog.log(String.format( Loading Loading
api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -4540,8 +4540,8 @@ package android.net { public class Network implements android.os.Parcelable { ctor public Network(@NonNull android.net.Network); method public int getNetId(); method @NonNull public android.net.Network getPrivateDnsBypassingCopy(); field public final int netId; } public abstract class NetworkAgent { Loading
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -1507,6 +1507,7 @@ package android.net { public class Network implements android.os.Parcelable { ctor public Network(@NonNull android.net.Network); method public int getNetId(); method @NonNull public android.net.Network getPrivateDnsBypassingCopy(); } Loading
core/java/android/net/Network.java +12 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ public class Network implements Parcelable { * The unique id of the network. * @hide */ @SystemApi @UnsupportedAppUsage public final int netId; // Objects used to perform per-network operations such as getSocketFactory Loading Loading @@ -170,6 +170,17 @@ public class Network implements Parcelable { return new Network(netId, true); } /** * Get the unique id of the network. * * @hide */ @TestApi @SystemApi public int getNetId() { return netId; } /** * Returns a netid marked with the Private DNS bypass flag. * Loading
packages/Tethering/src/com/android/server/connectivity/tethering/Tethering.java +1 −1 Original line number Diff line number Diff line Loading @@ -1497,7 +1497,7 @@ public class Tethering { } else { dnsServers = mConfig.defaultIPv4DNS; } final int netId = (network != null) ? network.netId : NETID_UNSET; final int netId = (network != null) ? network.getNetId() : NETID_UNSET; try { mNetd.tetherDnsSet(netId, dnsServers); mLog.log(String.format( Loading