Merge "Revert "Added a new network capability MMTEL"" am: e5b150a3cd
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1928149 Change-Id: I32605bcfaf46c3ba675b7c2a0556df823a3e348d
This commit is contained in:
@@ -316,7 +316,6 @@ package android.net {
|
|||||||
field public static final int NET_CAPABILITY_INTERNET = 12; // 0xc
|
field public static final int NET_CAPABILITY_INTERNET = 12; // 0xc
|
||||||
field public static final int NET_CAPABILITY_MCX = 23; // 0x17
|
field public static final int NET_CAPABILITY_MCX = 23; // 0x17
|
||||||
field public static final int NET_CAPABILITY_MMS = 0; // 0x0
|
field public static final int NET_CAPABILITY_MMS = 0; // 0x0
|
||||||
field public static final int NET_CAPABILITY_MMTEL = 33; // 0x21
|
|
||||||
field public static final int NET_CAPABILITY_NOT_CONGESTED = 20; // 0x14
|
field public static final int NET_CAPABILITY_NOT_CONGESTED = 20; // 0x14
|
||||||
field public static final int NET_CAPABILITY_NOT_METERED = 11; // 0xb
|
field public static final int NET_CAPABILITY_NOT_METERED = 11; // 0xb
|
||||||
field public static final int NET_CAPABILITY_NOT_RESTRICTED = 13; // 0xd
|
field public static final int NET_CAPABILITY_NOT_RESTRICTED = 13; // 0xd
|
||||||
|
|||||||
@@ -274,7 +274,6 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
NET_CAPABILITY_VSIM,
|
NET_CAPABILITY_VSIM,
|
||||||
NET_CAPABILITY_BIP,
|
NET_CAPABILITY_BIP,
|
||||||
NET_CAPABILITY_HEAD_UNIT,
|
NET_CAPABILITY_HEAD_UNIT,
|
||||||
NET_CAPABILITY_MMTEL,
|
|
||||||
})
|
})
|
||||||
public @interface NetCapability { }
|
public @interface NetCapability { }
|
||||||
|
|
||||||
@@ -513,13 +512,8 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
*/
|
*/
|
||||||
public static final int NET_CAPABILITY_HEAD_UNIT = 32;
|
public static final int NET_CAPABILITY_HEAD_UNIT = 32;
|
||||||
|
|
||||||
/**
|
|
||||||
* Indicates that this network has ability to support MMTEL (Multimedia Telephony service).
|
|
||||||
*/
|
|
||||||
public static final int NET_CAPABILITY_MMTEL = 33;
|
|
||||||
|
|
||||||
private static final int MIN_NET_CAPABILITY = NET_CAPABILITY_MMS;
|
private static final int MIN_NET_CAPABILITY = NET_CAPABILITY_MMS;
|
||||||
private static final int MAX_NET_CAPABILITY = NET_CAPABILITY_MMTEL;
|
private static final int MAX_NET_CAPABILITY = NET_CAPABILITY_HEAD_UNIT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Network capabilities that are expected to be mutable, i.e., can change while a particular
|
* Network capabilities that are expected to be mutable, i.e., can change while a particular
|
||||||
@@ -2096,7 +2090,6 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
case NET_CAPABILITY_VSIM: return "VSIM";
|
case NET_CAPABILITY_VSIM: return "VSIM";
|
||||||
case NET_CAPABILITY_BIP: return "BIP";
|
case NET_CAPABILITY_BIP: return "BIP";
|
||||||
case NET_CAPABILITY_HEAD_UNIT: return "HEAD_UNIT";
|
case NET_CAPABILITY_HEAD_UNIT: return "HEAD_UNIT";
|
||||||
case NET_CAPABILITY_MMTEL: return "MMTEL";
|
|
||||||
default: return Integer.toString(capability);
|
default: return Integer.toString(capability);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ import static android.net.NetworkCapabilities.NET_CAPABILITY_IA;
|
|||||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_IMS;
|
import static android.net.NetworkCapabilities.NET_CAPABILITY_IMS;
|
||||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
|
import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
|
||||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_MMS;
|
import static android.net.NetworkCapabilities.NET_CAPABILITY_MMS;
|
||||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_MMTEL;
|
|
||||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED;
|
import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED;
|
||||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
|
import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
|
||||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
|
import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
|
||||||
@@ -3587,7 +3586,7 @@ public class ConnectivityServiceTest {
|
|||||||
|| capability == NET_CAPABILITY_IA || capability == NET_CAPABILITY_IMS
|
|| capability == NET_CAPABILITY_IA || capability == NET_CAPABILITY_IMS
|
||||||
|| capability == NET_CAPABILITY_RCS || capability == NET_CAPABILITY_XCAP
|
|| capability == NET_CAPABILITY_RCS || capability == NET_CAPABILITY_XCAP
|
||||||
|| capability == NET_CAPABILITY_VSIM || capability == NET_CAPABILITY_BIP
|
|| capability == NET_CAPABILITY_VSIM || capability == NET_CAPABILITY_BIP
|
||||||
|| capability == NET_CAPABILITY_ENTERPRISE || capability == NET_CAPABILITY_MMTEL) {
|
|| capability == NET_CAPABILITY_ENTERPRISE) {
|
||||||
assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED));
|
assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED));
|
||||||
} else {
|
} else {
|
||||||
assertTrue(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED));
|
assertTrue(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED));
|
||||||
@@ -3715,7 +3714,6 @@ public class ConnectivityServiceTest {
|
|||||||
tryNetworkFactoryRequests(NET_CAPABILITY_WIFI_P2P);
|
tryNetworkFactoryRequests(NET_CAPABILITY_WIFI_P2P);
|
||||||
tryNetworkFactoryRequests(NET_CAPABILITY_IA);
|
tryNetworkFactoryRequests(NET_CAPABILITY_IA);
|
||||||
tryNetworkFactoryRequests(NET_CAPABILITY_RCS);
|
tryNetworkFactoryRequests(NET_CAPABILITY_RCS);
|
||||||
tryNetworkFactoryRequests(NET_CAPABILITY_MMTEL);
|
|
||||||
tryNetworkFactoryRequests(NET_CAPABILITY_XCAP);
|
tryNetworkFactoryRequests(NET_CAPABILITY_XCAP);
|
||||||
tryNetworkFactoryRequests(NET_CAPABILITY_ENTERPRISE);
|
tryNetworkFactoryRequests(NET_CAPABILITY_ENTERPRISE);
|
||||||
tryNetworkFactoryRequests(NET_CAPABILITY_EIMS);
|
tryNetworkFactoryRequests(NET_CAPABILITY_EIMS);
|
||||||
|
|||||||
Reference in New Issue
Block a user