Merge "APIs for 5G slicing" am: 08b9f41364
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1593931 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4d2a9cd1442a1bd0f194d5bb2b17f98c3f29e747
This commit is contained in:
@@ -302,6 +302,7 @@ package android.net {
|
||||
field public static final int NET_CAPABILITY_CBS = 5; // 0x5
|
||||
field public static final int NET_CAPABILITY_DUN = 2; // 0x2
|
||||
field public static final int NET_CAPABILITY_EIMS = 10; // 0xa
|
||||
field public static final int NET_CAPABILITY_ENTERPRISE = 29; // 0x1d
|
||||
field public static final int NET_CAPABILITY_FOREGROUND = 19; // 0x13
|
||||
field public static final int NET_CAPABILITY_FOTA = 3; // 0x3
|
||||
field public static final int NET_CAPABILITY_IA = 7; // 0x7
|
||||
|
||||
@@ -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