diff options
| author | Ken Chen <cken@google.com> | 2021-05-11 12:50:07 +0800 |
|---|---|---|
| committer | Ken Chen <cken@google.com> | 2021-05-11 17:22:43 +0800 |
| commit | 25b6157df869e4a534ea208924c8df9fd0560fa5 (patch) | |
| tree | 94105438bcdb4de6f989e863abe2dbb6a0f82c97 /server/NetworkController.cpp | |
| parent | ab5f347b7f50e8a47940c53334e2c9bac490309d (diff) | |
Freeze netd_aidl_interface V6
Diff:
+ /**
+ * @deprecated use networkCreate() instead.
+ */
void networkCreatePhysical(int netId, int permission);
+ /**
+ * @deprecated use networkCreate() instead.
+ */
void networkCreateVpn(int netId, boolean secure);
...
+ void networkCreate(in android.net.NativeNetworkConfig config);
...
+ const int DUMMY_NET_ID = 51;
+ const int UNREACHABLE_NET_ID = 52;
...
+package android.net;
+@JavaDerive(equals=true, toString=true) @JavaOnlyImmutable
+parcelable NativeNetworkConfig {
+ int netId;
+ android.net.NativeNetworkType networkType = android.net.NativeNetworkType.PHYSICAL;
+ int permission;
+ boolean secure;
+ android.net.NativeVpnType vpnType = android.net.NativeVpnType.PLATFORM;
+}
...
+package android.net;
+@Backing(type="int")
+enum NativeNetworkType {
+ PHYSICAL = 0,
+ VIRTUAL = 1,
+}
...
+package android.net;
+@Backing(type="int")
+enum NativeVpnType {
+ SERVICE = 1,
+ PLATFORM = 2,
+ LEGACY = 3,
+ OEM = 4,
+}
(Auto generated AOSP license are skipped)
Test: m; atest
Change-Id: Ibff436b012b1bb52538eaccf016e5d08ac7ae85a
Diffstat (limited to 'server/NetworkController.cpp')
0 files changed, 0 insertions, 0 deletions
