APIs for 5G slicing
Create TrafficDescriptor class Create new APN ENTERPRISE Update setupDataCall and DataCallResponse to take TrafficDescriptor and matchAllRuleAllowed Move ApnTypes from Annotation to ApnSetting Bug: 179312227 Test: atest FrameworksTelephonyTests Change-Id: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3 Merged-In: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3
This commit is contained in:
@@ -53,6 +53,7 @@ import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL;
|
||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_CBS;
|
||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_DUN;
|
||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_EIMS;
|
||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_ENTERPRISE;
|
||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
|
||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_FOTA;
|
||||
import static android.net.NetworkCapabilities.NET_CAPABILITY_IA;
|
||||
@@ -2795,7 +2796,8 @@ public class ConnectivityServiceTest {
|
||||
if (capability == NET_CAPABILITY_CBS || capability == NET_CAPABILITY_DUN ||
|
||||
capability == NET_CAPABILITY_EIMS || capability == NET_CAPABILITY_FOTA ||
|
||||
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_ENTERPRISE) {
|
||||
assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED));
|
||||
} else {
|
||||
assertTrue(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED));
|
||||
@@ -2898,6 +2900,7 @@ public class ConnectivityServiceTest {
|
||||
tryNetworkFactoryRequests(NET_CAPABILITY_IA);
|
||||
tryNetworkFactoryRequests(NET_CAPABILITY_RCS);
|
||||
tryNetworkFactoryRequests(NET_CAPABILITY_XCAP);
|
||||
tryNetworkFactoryRequests(NET_CAPABILITY_ENTERPRISE);
|
||||
tryNetworkFactoryRequests(NET_CAPABILITY_EIMS);
|
||||
tryNetworkFactoryRequests(NET_CAPABILITY_NOT_METERED);
|
||||
tryNetworkFactoryRequests(NET_CAPABILITY_INTERNET);
|
||||
|
||||
Reference in New Issue
Block a user