summaryrefslogtreecommitdiff
path: root/common/networkstackclient/aidl_api
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-05-01 04:47:52 +0000
committerLorenzo Colitti <lorenzo@google.com>2020-05-01 06:50:58 +0000
commit2286603c87027195ee8efefe9ea4863b73b6ebeb (patch)
tree5bd3cd2ffeb06808cf685b2971799ecb82fac97a /common/networkstackclient/aidl_api
parent9d5175317630e14c2f76de6d6f273609a46a4b76 (diff)
Add default and nullable annotations to NetworkStack AIDLs.
All new fields should have defaults. Do that for fields added in v6 before we freeze v6. Fields added in v5 can no longer be changed because v5 is frozen. Test: m Bug: 133526962 Original-Change: https://android-review.googlesource.com/1299381 Merged-In: Ie2ecd84919a59adf89d0c56e4fdf2b2258fa1448 Change-Id: Ie2ecd84919a59adf89d0c56e4fdf2b2258fa1448
Diffstat (limited to 'common/networkstackclient/aidl_api')
-rw-r--r--common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/DhcpResultsParcelable.aidl4
-rw-r--r--common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/ProvisioningConfigurationParcelable.aidl4
-rw-r--r--common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/dhcp/DhcpServingParamsParcel.aidl4
3 files changed, 6 insertions, 6 deletions
diff --git a/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/DhcpResultsParcelable.aidl b/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/DhcpResultsParcelable.aidl
index a74f98c..7bb5c41 100644
--- a/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/DhcpResultsParcelable.aidl
+++ b/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/DhcpResultsParcelable.aidl
@@ -22,6 +22,6 @@ parcelable DhcpResultsParcelable {
int mtu;
String serverAddress;
String vendorInfo;
- String serverHostName;
- String captivePortalApiUrl;
+ @nullable String serverHostName;
+ @nullable String captivePortalApiUrl;
}
diff --git a/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/ProvisioningConfigurationParcelable.aidl b/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/ProvisioningConfigurationParcelable.aidl
index b789e5f..b8dfb91 100644
--- a/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/ProvisioningConfigurationParcelable.aidl
+++ b/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/ProvisioningConfigurationParcelable.aidl
@@ -30,6 +30,6 @@ parcelable ProvisioningConfigurationParcelable {
android.net.Network network;
String displayName;
boolean enablePreconnection;
- android.net.ScanResultInfoParcelable scanResultInfo;
- android.net.Layer2InformationParcelable layer2Info;
+ @nullable android.net.ScanResultInfoParcelable scanResultInfo;
+ @nullable android.net.Layer2InformationParcelable layer2Info;
}
diff --git a/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/dhcp/DhcpServingParamsParcel.aidl b/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/dhcp/DhcpServingParamsParcel.aidl
index 2570995..d66ca9d 100644
--- a/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/dhcp/DhcpServingParamsParcel.aidl
+++ b/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/dhcp/DhcpServingParamsParcel.aidl
@@ -25,6 +25,6 @@ parcelable DhcpServingParamsParcel {
long dhcpLeaseTimeSecs;
int linkMtu;
boolean metered;
- int singleClientAddr;
- boolean changePrefixOnDecline;
+ int singleClientAddr = 0;
+ boolean changePrefixOnDecline = false;
}