Merge "Remove @TestApi from @SystemApi symbols"
This commit is contained in:
@@ -19,7 +19,6 @@ import android.annotation.IntDef;
|
|||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.RequiresPermission;
|
import android.annotation.RequiresPermission;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
@@ -42,7 +41,6 @@ public class CaptivePortal implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final int APP_RETURN_DISMISSED = 0;
|
public static final int APP_RETURN_DISMISSED = 0;
|
||||||
/**
|
/**
|
||||||
* Response code from the captive portal application, indicating that the user did not login and
|
* Response code from the captive portal application, indicating that the user did not login and
|
||||||
@@ -52,7 +50,6 @@ public class CaptivePortal implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final int APP_RETURN_UNWANTED = 1;
|
public static final int APP_RETURN_UNWANTED = 1;
|
||||||
/**
|
/**
|
||||||
* Response code from the captive portal application, indicating that the user does not wish to
|
* Response code from the captive portal application, indicating that the user does not wish to
|
||||||
@@ -62,7 +59,6 @@ public class CaptivePortal implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final int APP_RETURN_WANTED_AS_IS = 2;
|
public static final int APP_RETURN_WANTED_AS_IS = 2;
|
||||||
/** Event offset of request codes from captive portal application. */
|
/** Event offset of request codes from captive portal application. */
|
||||||
private static final int APP_REQUEST_BASE = 100;
|
private static final int APP_REQUEST_BASE = 100;
|
||||||
@@ -74,7 +70,6 @@ public class CaptivePortal implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final int APP_REQUEST_REEVALUATION_REQUIRED = APP_REQUEST_BASE + 0;
|
public static final int APP_REQUEST_REEVALUATION_REQUIRED = APP_REQUEST_BASE + 0;
|
||||||
|
|
||||||
private final IBinder mBinder;
|
private final IBinder mBinder;
|
||||||
@@ -154,7 +149,6 @@ public class CaptivePortal implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public void useNetwork() {
|
public void useNetwork() {
|
||||||
try {
|
try {
|
||||||
ICaptivePortal.Stub.asInterface(mBinder).appResponse(APP_RETURN_WANTED_AS_IS);
|
ICaptivePortal.Stub.asInterface(mBinder).appResponse(APP_RETURN_WANTED_AS_IS);
|
||||||
@@ -167,7 +161,6 @@ public class CaptivePortal implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
@RequiresPermission(android.Manifest.permission.NETWORK_STACK)
|
@RequiresPermission(android.Manifest.permission.NETWORK_STACK)
|
||||||
public void reevaluateNetwork() {
|
public void reevaluateNetwork() {
|
||||||
try {
|
try {
|
||||||
@@ -183,7 +176,6 @@ public class CaptivePortal implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public void logEvent(@EventId int eventId, @NonNull String packageName) {
|
public void logEvent(@EventId int eventId, @NonNull String packageName) {
|
||||||
try {
|
try {
|
||||||
ICaptivePortal.Stub.asInterface(mBinder).logEvent(eventId, packageName);
|
ICaptivePortal.Stub.asInterface(mBinder).logEvent(eventId, packageName);
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ package android.net;
|
|||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
@@ -30,7 +29,6 @@ import java.util.Objects;
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public final class CaptivePortalData implements Parcelable {
|
public final class CaptivePortalData implements Parcelable {
|
||||||
private final long mRefreshTimeMillis;
|
private final long mRefreshTimeMillis;
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|||||||
@@ -269,7 +269,6 @@ public class ConnectivityManager {
|
|||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final String EXTRA_CAPTIVE_PORTAL_PROBE_SPEC =
|
public static final String EXTRA_CAPTIVE_PORTAL_PROBE_SPEC =
|
||||||
"android.net.extra.CAPTIVE_PORTAL_PROBE_SPEC";
|
"android.net.extra.CAPTIVE_PORTAL_PROBE_SPEC";
|
||||||
|
|
||||||
@@ -278,7 +277,6 @@ public class ConnectivityManager {
|
|||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final String EXTRA_CAPTIVE_PORTAL_USER_AGENT =
|
public static final String EXTRA_CAPTIVE_PORTAL_USER_AGENT =
|
||||||
"android.net.extra.CAPTIVE_PORTAL_USER_AGENT";
|
"android.net.extra.CAPTIVE_PORTAL_USER_AGENT";
|
||||||
|
|
||||||
@@ -4413,7 +4411,6 @@ public class ConnectivityManager {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
@RequiresPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)
|
@RequiresPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)
|
||||||
public void startCaptivePortalApp(@NonNull Network network, @NonNull Bundle appExtras) {
|
public void startCaptivePortalApp(@NonNull Network network, @NonNull Bundle appExtras) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ package android.net;
|
|||||||
import android.annotation.IntRange;
|
import android.annotation.IntRange;
|
||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.util.Pair;
|
import android.util.Pair;
|
||||||
@@ -88,7 +87,6 @@ public final class IpPrefix implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public IpPrefix(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength) {
|
public IpPrefix(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength) {
|
||||||
// We don't reuse the (byte[], int) constructor because it calls clone() on the byte array,
|
// We don't reuse the (byte[], int) constructor because it calls clone() on the byte array,
|
||||||
// which is unnecessary because getAddress() already returns a clone.
|
// which is unnecessary because getAddress() already returns a clone.
|
||||||
@@ -107,7 +105,6 @@ public final class IpPrefix implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public IpPrefix(@NonNull String prefix) {
|
public IpPrefix(@NonNull String prefix) {
|
||||||
// We don't reuse the (InetAddress, int) constructor because "error: call to this must be
|
// We don't reuse the (InetAddress, int) constructor because "error: call to this must be
|
||||||
// first statement in constructor". We could factor out setting the member variables to an
|
// first statement in constructor". We could factor out setting the member variables to an
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ import android.annotation.IntRange;
|
|||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
@@ -158,7 +157,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @return true if the address is IPv6.
|
* @return true if the address is IPv6.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean isIpv6() {
|
public boolean isIpv6() {
|
||||||
return address instanceof Inet6Address;
|
return address instanceof Inet6Address;
|
||||||
@@ -180,7 +178,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @return true if the address is IPv4 or is a mapped IPv4 address.
|
* @return true if the address is IPv4 or is a mapped IPv4 address.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean isIpv4() {
|
public boolean isIpv4() {
|
||||||
return address instanceof Inet4Address;
|
return address instanceof Inet4Address;
|
||||||
@@ -243,7 +240,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public LinkAddress(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength,
|
public LinkAddress(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength,
|
||||||
int flags, int scope) {
|
int flags, int scope) {
|
||||||
init(address, prefixLength, flags, scope, LIFETIME_UNKNOWN, LIFETIME_UNKNOWN);
|
init(address, prefixLength, flags, scope, LIFETIME_UNKNOWN, LIFETIME_UNKNOWN);
|
||||||
@@ -275,7 +271,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public LinkAddress(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength,
|
public LinkAddress(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength,
|
||||||
int flags, int scope, long deprecationTime, long expirationTime) {
|
int flags, int scope, long deprecationTime, long expirationTime) {
|
||||||
init(address, prefixLength, flags, scope, deprecationTime, expirationTime);
|
init(address, prefixLength, flags, scope, deprecationTime, expirationTime);
|
||||||
@@ -289,7 +284,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public LinkAddress(@NonNull InetAddress address,
|
public LinkAddress(@NonNull InetAddress address,
|
||||||
@IntRange(from = 0, to = 128) int prefixLength) {
|
@IntRange(from = 0, to = 128) int prefixLength) {
|
||||||
this(address, prefixLength, 0, 0);
|
this(address, prefixLength, 0, 0);
|
||||||
@@ -314,7 +308,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public LinkAddress(@NonNull String address) {
|
public LinkAddress(@NonNull String address) {
|
||||||
this(address, 0, 0);
|
this(address, 0, 0);
|
||||||
this.scope = scopeForUnicastAddress(this.address);
|
this.scope = scopeForUnicastAddress(this.address);
|
||||||
@@ -329,7 +322,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public LinkAddress(@NonNull String address, int flags, int scope) {
|
public LinkAddress(@NonNull String address, int flags, int scope) {
|
||||||
// This may throw an IllegalArgumentException; catching it is the caller's responsibility.
|
// This may throw an IllegalArgumentException; catching it is the caller's responsibility.
|
||||||
// TODO: consider rejecting mapped IPv4 addresses such as "::ffff:192.0.2.5/24".
|
// TODO: consider rejecting mapped IPv4 addresses such as "::ffff:192.0.2.5/24".
|
||||||
@@ -389,7 +381,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* otherwise.
|
* otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean isSameAddressAs(@Nullable LinkAddress other) {
|
public boolean isSameAddressAs(@Nullable LinkAddress other) {
|
||||||
if (other == null) {
|
if (other == null) {
|
||||||
@@ -469,7 +460,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public long getDeprecationTime() {
|
public long getDeprecationTime() {
|
||||||
return deprecationTime;
|
return deprecationTime;
|
||||||
}
|
}
|
||||||
@@ -485,7 +475,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public long getExpirationTime() {
|
public long getExpirationTime() {
|
||||||
return expirationTime;
|
return expirationTime;
|
||||||
}
|
}
|
||||||
@@ -496,7 +485,6 @@ public class LinkAddress implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean isGlobalPreferred() {
|
public boolean isGlobalPreferred() {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ package android.net;
|
|||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
import android.net.util.LinkPropertiesUtils;
|
import android.net.util.LinkPropertiesUtils;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
@@ -161,7 +160,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public LinkProperties(@Nullable LinkProperties source) {
|
public LinkProperties(@Nullable LinkProperties source) {
|
||||||
this(source, false /* parcelSensitiveFields */);
|
this(source, false /* parcelSensitiveFields */);
|
||||||
}
|
}
|
||||||
@@ -177,7 +175,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public LinkProperties(@Nullable LinkProperties source, boolean parcelSensitiveFields) {
|
public LinkProperties(@Nullable LinkProperties source, boolean parcelSensitiveFields) {
|
||||||
mParcelSensitiveFields = parcelSensitiveFields;
|
mParcelSensitiveFields = parcelSensitiveFields;
|
||||||
if (source == null) return;
|
if (source == null) return;
|
||||||
@@ -292,7 +289,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public boolean addLinkAddress(@NonNull LinkAddress address) {
|
public boolean addLinkAddress(@NonNull LinkAddress address) {
|
||||||
if (address == null) {
|
if (address == null) {
|
||||||
return false;
|
return false;
|
||||||
@@ -321,7 +317,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public boolean removeLinkAddress(@NonNull LinkAddress toRemove) {
|
public boolean removeLinkAddress(@NonNull LinkAddress toRemove) {
|
||||||
int i = findLinkAddressIndex(toRemove);
|
int i = findLinkAddressIndex(toRemove);
|
||||||
if (i >= 0) {
|
if (i >= 0) {
|
||||||
@@ -375,7 +370,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @return true if the DNS server was added, false if it was already present.
|
* @return true if the DNS server was added, false if it was already present.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean addDnsServer(@NonNull InetAddress dnsServer) {
|
public boolean addDnsServer(@NonNull InetAddress dnsServer) {
|
||||||
if (dnsServer != null && !mDnses.contains(dnsServer)) {
|
if (dnsServer != null && !mDnses.contains(dnsServer)) {
|
||||||
@@ -392,7 +386,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @return true if the DNS server was removed, false if it did not exist.
|
* @return true if the DNS server was removed, false if it did not exist.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean removeDnsServer(@NonNull InetAddress dnsServer) {
|
public boolean removeDnsServer(@NonNull InetAddress dnsServer) {
|
||||||
return mDnses.remove(dnsServer);
|
return mDnses.remove(dnsServer);
|
||||||
@@ -427,7 +420,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @param usePrivateDns The private DNS state.
|
* @param usePrivateDns The private DNS state.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public void setUsePrivateDns(boolean usePrivateDns) {
|
public void setUsePrivateDns(boolean usePrivateDns) {
|
||||||
mUsePrivateDns = usePrivateDns;
|
mUsePrivateDns = usePrivateDns;
|
||||||
@@ -454,7 +446,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @param privateDnsServerName The private DNS server name.
|
* @param privateDnsServerName The private DNS server name.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public void setPrivateDnsServerName(@Nullable String privateDnsServerName) {
|
public void setPrivateDnsServerName(@Nullable String privateDnsServerName) {
|
||||||
mPrivateDnsServerName = privateDnsServerName;
|
mPrivateDnsServerName = privateDnsServerName;
|
||||||
@@ -533,7 +524,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* object.
|
* object.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public void setValidatedPrivateDnsServers(@NonNull Collection<InetAddress> dnsServers) {
|
public void setValidatedPrivateDnsServers(@NonNull Collection<InetAddress> dnsServers) {
|
||||||
mValidatedPrivateDnses.clear();
|
mValidatedPrivateDnses.clear();
|
||||||
@@ -550,7 +540,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* DNS servers on this link.
|
* DNS servers on this link.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public @NonNull List<InetAddress> getValidatedPrivateDnsServers() {
|
public @NonNull List<InetAddress> getValidatedPrivateDnsServers() {
|
||||||
return Collections.unmodifiableList(mValidatedPrivateDnses);
|
return Collections.unmodifiableList(mValidatedPrivateDnses);
|
||||||
@@ -591,7 +580,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public void setPcscfServers(@NonNull Collection<InetAddress> pcscfServers) {
|
public void setPcscfServers(@NonNull Collection<InetAddress> pcscfServers) {
|
||||||
mPcscfs.clear();
|
mPcscfs.clear();
|
||||||
for (InetAddress pcscfServer: pcscfServers) {
|
for (InetAddress pcscfServer: pcscfServers) {
|
||||||
@@ -607,7 +595,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public @NonNull List<InetAddress> getPcscfServers() {
|
public @NonNull List<InetAddress> getPcscfServers() {
|
||||||
return Collections.unmodifiableList(mPcscfs);
|
return Collections.unmodifiableList(mPcscfs);
|
||||||
}
|
}
|
||||||
@@ -661,7 +648,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public void setTcpBufferSizes(@Nullable String tcpBufferSizes) {
|
public void setTcpBufferSizes(@Nullable String tcpBufferSizes) {
|
||||||
mTcpBufferSizes = tcpBufferSizes;
|
mTcpBufferSizes = tcpBufferSizes;
|
||||||
@@ -674,7 +660,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public @Nullable String getTcpBufferSizes() {
|
public @Nullable String getTcpBufferSizes() {
|
||||||
return mTcpBufferSizes;
|
return mTcpBufferSizes;
|
||||||
@@ -743,7 +728,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean removeRoute(@NonNull RouteInfo route) {
|
public boolean removeRoute(@NonNull RouteInfo route) {
|
||||||
return Objects.equals(mIfaceName, route.getInterface()) && mRoutes.remove(route);
|
return Objects.equals(mIfaceName, route.getInterface()) && mRoutes.remove(route);
|
||||||
@@ -1020,7 +1004,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @return {@code true} if there is an IPv4 address, {@code false} otherwise.
|
* @return {@code true} if there is an IPv4 address, {@code false} otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean hasIpv4Address() {
|
public boolean hasIpv4Address() {
|
||||||
for (LinkAddress address : mLinkAddresses) {
|
for (LinkAddress address : mLinkAddresses) {
|
||||||
@@ -1061,7 +1044,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @return {@code true} if there is a global preferred IPv6 address, {@code false} otherwise.
|
* @return {@code true} if there is a global preferred IPv6 address, {@code false} otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean hasGlobalIpv6Address() {
|
public boolean hasGlobalIpv6Address() {
|
||||||
for (LinkAddress address : mLinkAddresses) {
|
for (LinkAddress address : mLinkAddresses) {
|
||||||
@@ -1148,7 +1130,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @return {@code true} if there is an IPv6 default route, {@code false} otherwise.
|
* @return {@code true} if there is an IPv6 default route, {@code false} otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean hasIpv6DefaultRoute() {
|
public boolean hasIpv6DefaultRoute() {
|
||||||
for (RouteInfo r : mRoutes) {
|
for (RouteInfo r : mRoutes) {
|
||||||
@@ -1264,7 +1245,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @return {@code true} if the link is provisioned, {@code false} otherwise.
|
* @return {@code true} if the link is provisioned, {@code false} otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean isIpv4Provisioned() {
|
public boolean isIpv4Provisioned() {
|
||||||
return (hasIpv4Address()
|
return (hasIpv4Address()
|
||||||
@@ -1279,7 +1259,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @return {@code true} if the link is provisioned, {@code false} otherwise.
|
* @return {@code true} if the link is provisioned, {@code false} otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean isIpv6Provisioned() {
|
public boolean isIpv6Provisioned() {
|
||||||
return (hasGlobalIpv6Address()
|
return (hasGlobalIpv6Address()
|
||||||
@@ -1307,7 +1286,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @return {@code true} if the link is provisioned, {@code false} otherwise.
|
* @return {@code true} if the link is provisioned, {@code false} otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean isProvisioned() {
|
public boolean isProvisioned() {
|
||||||
return (isIpv4Provisioned() || isIpv6Provisioned());
|
return (isIpv4Provisioned() || isIpv6Provisioned());
|
||||||
@@ -1320,7 +1298,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* {@code false} otherwise.
|
* {@code false} otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean isReachable(@NonNull InetAddress ip) {
|
public boolean isReachable(@NonNull InetAddress ip) {
|
||||||
final List<RouteInfo> allRoutes = getAllRoutes();
|
final List<RouteInfo> allRoutes = getAllRoutes();
|
||||||
@@ -1577,7 +1554,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public void setCaptivePortalApiUrl(@Nullable Uri url) {
|
public void setCaptivePortalApiUrl(@Nullable Uri url) {
|
||||||
mCaptivePortalApiUrl = url;
|
mCaptivePortalApiUrl = url;
|
||||||
}
|
}
|
||||||
@@ -1592,7 +1568,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public Uri getCaptivePortalApiUrl() {
|
public Uri getCaptivePortalApiUrl() {
|
||||||
return mCaptivePortalApiUrl;
|
return mCaptivePortalApiUrl;
|
||||||
@@ -1603,7 +1578,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public void setCaptivePortalData(@Nullable CaptivePortalData data) {
|
public void setCaptivePortalData(@Nullable CaptivePortalData data) {
|
||||||
mCaptivePortalData = data;
|
mCaptivePortalData = data;
|
||||||
}
|
}
|
||||||
@@ -1617,7 +1591,6 @@ public final class LinkProperties implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public CaptivePortalData getCaptivePortalData() {
|
public CaptivePortalData getCaptivePortalData() {
|
||||||
return mCaptivePortalData;
|
return mCaptivePortalData;
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ package android.net;
|
|||||||
|
|
||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
@@ -127,7 +126,6 @@ public class Network implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public Network(@NonNull Network that) {
|
public Network(@NonNull Network that) {
|
||||||
this(that.netId, that.mPrivateDnsBypass);
|
this(that.netId, that.mPrivateDnsBypass);
|
||||||
}
|
}
|
||||||
@@ -164,7 +162,6 @@ public class Network implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public @NonNull Network getPrivateDnsBypassingCopy() {
|
public @NonNull Network getPrivateDnsBypassingCopy() {
|
||||||
return new Network(netId, true);
|
return new Network(netId, true);
|
||||||
@@ -175,7 +172,6 @@ public class Network implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public int getNetId() {
|
public int getNetId() {
|
||||||
return netId;
|
return netId;
|
||||||
|
|||||||
@@ -850,7 +850,6 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
* @return an array of transport type values for this instance.
|
* @return an array of transport type values for this instance.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@NonNull public @Transport int[] getTransportTypes() {
|
@NonNull public @Transport int[] getTransportTypes() {
|
||||||
return BitUtils.unpackBits(mTransportTypes);
|
return BitUtils.unpackBits(mTransportTypes);
|
||||||
@@ -1025,7 +1024,6 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
*/
|
*/
|
||||||
@NonNull
|
@NonNull
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public int[] getAdministratorUids() {
|
public int[] getAdministratorUids() {
|
||||||
return Arrays.copyOf(mAdministratorUids, mAdministratorUids.length);
|
return Arrays.copyOf(mAdministratorUids, mAdministratorUids.length);
|
||||||
}
|
}
|
||||||
@@ -1506,7 +1504,6 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public @Nullable String getSsid() {
|
public @Nullable String getSsid() {
|
||||||
return mSSID;
|
return mSSID;
|
||||||
}
|
}
|
||||||
@@ -1590,7 +1587,6 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public boolean satisfiedByNetworkCapabilities(@Nullable NetworkCapabilities nc) {
|
public boolean satisfiedByNetworkCapabilities(@Nullable NetworkCapabilities nc) {
|
||||||
return satisfiedByNetworkCapabilities(nc, false);
|
return satisfiedByNetworkCapabilities(nc, false);
|
||||||
@@ -2136,7 +2132,6 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final class Builder {
|
public static final class Builder {
|
||||||
private final NetworkCapabilities mCaps;
|
private final NetworkCapabilities mCaps;
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import android.annotation.IntDef;
|
|||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
import android.net.util.NetUtils;
|
import android.net.util.NetUtils;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
@@ -87,17 +86,14 @@ public final class RouteInfo implements Parcelable {
|
|||||||
|
|
||||||
/** Unicast route. @hide */
|
/** Unicast route. @hide */
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final int RTN_UNICAST = 1;
|
public static final int RTN_UNICAST = 1;
|
||||||
|
|
||||||
/** Unreachable route. @hide */
|
/** Unreachable route. @hide */
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final int RTN_UNREACHABLE = 7;
|
public static final int RTN_UNREACHABLE = 7;
|
||||||
|
|
||||||
/** Throw route. @hide */
|
/** Throw route. @hide */
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public static final int RTN_THROW = 9;
|
public static final int RTN_THROW = 9;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -135,7 +131,6 @@ public final class RouteInfo implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway,
|
public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway,
|
||||||
@Nullable String iface, @RouteType int type) {
|
@Nullable String iface, @RouteType int type) {
|
||||||
this(destination, gateway, iface, type, 0);
|
this(destination, gateway, iface, type, 0);
|
||||||
@@ -397,7 +392,6 @@ public final class RouteInfo implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@RouteType
|
@RouteType
|
||||||
public int getType() {
|
public int getType() {
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ package android.net;
|
|||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
@@ -52,7 +51,6 @@ import java.util.Objects;
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public final class StaticIpConfiguration implements Parcelable {
|
public final class StaticIpConfiguration implements Parcelable {
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ package android.net.apf;
|
|||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.TestApi;
|
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
@@ -36,7 +35,6 @@ import com.android.internal.R;
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@TestApi
|
|
||||||
public final class ApfCapabilities implements Parcelable {
|
public final class ApfCapabilities implements Parcelable {
|
||||||
/**
|
/**
|
||||||
* Version of APF instruction set supported for packet filtering. 0 indicates no support for
|
* Version of APF instruction set supported for packet filtering. 0 indicates no support for
|
||||||
|
|||||||
Reference in New Issue
Block a user