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
This commit is contained in:
@@ -205,6 +205,7 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
NET_CAPABILITY_OEM_PRIVATE,
|
||||
NET_CAPABILITY_VEHICLE_INTERNAL,
|
||||
NET_CAPABILITY_NOT_VCN_MANAGED,
|
||||
NET_CAPABILITY_ENTERPRISE,
|
||||
})
|
||||
public @interface NetCapability { }
|
||||
|
||||
@@ -415,8 +416,17 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
@SystemApi
|
||||
public static final int NET_CAPABILITY_NOT_VCN_MANAGED = 28;
|
||||
|
||||
/**
|
||||
* Indicates that this network is intended for enterprise use.
|
||||
* <p>
|
||||
* 5G URSP rules may indicate that all data should use a connection dedicated for enterprise
|
||||
* use. If the enterprise capability is requested, all enterprise traffic will be routed over
|
||||
* the connection with this capability.
|
||||
*/
|
||||
public static final int NET_CAPABILITY_ENTERPRISE = 29;
|
||||
|
||||
private static final int MIN_NET_CAPABILITY = NET_CAPABILITY_MMS;
|
||||
private static final int MAX_NET_CAPABILITY = NET_CAPABILITY_NOT_VCN_MANAGED;
|
||||
private static final int MAX_NET_CAPABILITY = NET_CAPABILITY_ENTERPRISE;
|
||||
|
||||
/**
|
||||
* Network capabilities that are expected to be mutable, i.e., can change while a particular
|
||||
@@ -474,7 +484,8 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
| (1 << NET_CAPABILITY_MCX)
|
||||
| (1 << NET_CAPABILITY_RCS)
|
||||
| (1 << NET_CAPABILITY_VEHICLE_INTERNAL)
|
||||
| (1 << NET_CAPABILITY_XCAP);
|
||||
| (1 << NET_CAPABILITY_XCAP)
|
||||
| (1 << NET_CAPABILITY_ENTERPRISE);
|
||||
|
||||
/**
|
||||
* Capabilities that force network to be restricted.
|
||||
@@ -2028,8 +2039,9 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
case NET_CAPABILITY_PARTIAL_CONNECTIVITY: return "PARTIAL_CONNECTIVITY";
|
||||
case NET_CAPABILITY_TEMPORARILY_NOT_METERED: return "TEMPORARILY_NOT_METERED";
|
||||
case NET_CAPABILITY_OEM_PRIVATE: return "OEM_PRIVATE";
|
||||
case NET_CAPABILITY_VEHICLE_INTERNAL: return "NET_CAPABILITY_VEHICLE_INTERNAL";
|
||||
case NET_CAPABILITY_VEHICLE_INTERNAL: return "VEHICLE_INTERNAL";
|
||||
case NET_CAPABILITY_NOT_VCN_MANAGED: return "NOT_VCN_MANAGED";
|
||||
case NET_CAPABILITY_ENTERPRISE: return "ENTERPRISE";
|
||||
default: return Integer.toString(capability);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user