Loading api/system-current.txt +5 −0 Original line number Diff line number Diff line Loading @@ -3090,6 +3090,11 @@ package android.net { method public void onTetheringStarted(); } public class LinkAddress implements android.os.Parcelable { ctor public LinkAddress(java.net.InetAddress, int); ctor public LinkAddress(java.lang.String); } public final class NetworkCapabilities implements android.os.Parcelable { field public static final int NET_CAPABILITY_OEM_PAID = 22; // 0x16 } Loading core/java/android/net/LinkAddress.java +3 −2 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import static android.system.OsConstants.RT_SCOPE_LINK; import static android.system.OsConstants.RT_SCOPE_SITE; import static android.system.OsConstants.RT_SCOPE_UNIVERSE; import android.annotation.SystemApi; import android.annotation.UnsupportedAppUsage; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -167,7 +168,7 @@ public class LinkAddress implements Parcelable { * @param prefixLength The prefix length. * @hide */ @UnsupportedAppUsage @SystemApi public LinkAddress(InetAddress address, int prefixLength) { this(address, prefixLength, 0, 0); this.scope = scopeForUnicastAddress(address); Loading @@ -190,7 +191,7 @@ public class LinkAddress implements Parcelable { * @param string The string to parse. * @hide */ @UnsupportedAppUsage @SystemApi public LinkAddress(String address) { this(address, 0, 0); this.scope = scopeForUnicastAddress(this.address); Loading Loading
api/system-current.txt +5 −0 Original line number Diff line number Diff line Loading @@ -3090,6 +3090,11 @@ package android.net { method public void onTetheringStarted(); } public class LinkAddress implements android.os.Parcelable { ctor public LinkAddress(java.net.InetAddress, int); ctor public LinkAddress(java.lang.String); } public final class NetworkCapabilities implements android.os.Parcelable { field public static final int NET_CAPABILITY_OEM_PAID = 22; // 0x16 } Loading
core/java/android/net/LinkAddress.java +3 −2 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import static android.system.OsConstants.RT_SCOPE_LINK; import static android.system.OsConstants.RT_SCOPE_SITE; import static android.system.OsConstants.RT_SCOPE_UNIVERSE; import android.annotation.SystemApi; import android.annotation.UnsupportedAppUsage; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -167,7 +168,7 @@ public class LinkAddress implements Parcelable { * @param prefixLength The prefix length. * @hide */ @UnsupportedAppUsage @SystemApi public LinkAddress(InetAddress address, int prefixLength) { this(address, prefixLength, 0, 0); this.scope = scopeForUnicastAddress(address); Loading @@ -190,7 +191,7 @@ public class LinkAddress implements Parcelable { * @param string The string to parse. * @hide */ @UnsupportedAppUsage @SystemApi public LinkAddress(String address) { this(address, 0, 0); this.scope = scopeForUnicastAddress(this.address); Loading