commit | 5f79aa092b33b279ea41e932fdd00310172fc7ae | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Thu Sep 09 15:20:44 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Fri Sep 10 17:56:57 2021 +0800 |
tree | 9cde7fbf133c46aa1a8f6e7c278bc81ff9706da5 | |
parent | 094d9ab72cc2dd9c4d11e31a27ffc6bab0cf9733 [diff] |
Extend onPrivateDnsValidationEvent to support the type of private DNS Bug: 186177613 Test: m dnsresolver_aidl_interface-update-api Change-Id: I929b083d66f6edbe8bc6b6e41a95c6ba2b272354
diff --git a/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/IDnsResolverUnsolicitedEventListener.aidl b/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/IDnsResolverUnsolicitedEventListener.aidl index d8accd1..32963df 100644 --- a/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/IDnsResolverUnsolicitedEventListener.aidl +++ b/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/IDnsResolverUnsolicitedEventListener.aidl
@@ -28,4 +28,6 @@ const int PREFIX_OPERATION_REMOVED = 2; const int VALIDATION_RESULT_SUCCESS = 1; const int VALIDATION_RESULT_FAILURE = 2; + const int PROTOCOL_DOT = 1; + const int PROTOCOL_DOH = 2; }
diff --git a/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/PrivateDnsValidationEventParcel.aidl b/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/PrivateDnsValidationEventParcel.aidl index e66e21c..f3bfbc7 100644 --- a/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/PrivateDnsValidationEventParcel.aidl +++ b/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/PrivateDnsValidationEventParcel.aidl
@@ -24,4 +24,5 @@ @utf8InCpp String ipAddress; @utf8InCpp String hostname; int validation; + int protocol; }
diff --git a/binder/android/net/resolv/aidl/IDnsResolverUnsolicitedEventListener.aidl b/binder/android/net/resolv/aidl/IDnsResolverUnsolicitedEventListener.aidl index b0d6553..a24f409 100644 --- a/binder/android/net/resolv/aidl/IDnsResolverUnsolicitedEventListener.aidl +++ b/binder/android/net/resolv/aidl/IDnsResolverUnsolicitedEventListener.aidl
@@ -58,6 +58,10 @@ const int VALIDATION_RESULT_SUCCESS = 1; const int VALIDATION_RESULT_FAILURE = 2; + /*** Private DNS protocols for {@code protocol} of {@code PrivateDnsValidationEventParcel}. */ + const int PROTOCOL_DOT = 1; + const int PROTOCOL_DOH = 2; + /** * Represents a private DNS validation result. *
diff --git a/binder/android/net/resolv/aidl/PrivateDnsValidationEventParcel.aidl b/binder/android/net/resolv/aidl/PrivateDnsValidationEventParcel.aidl index e5d7f78..08a1da4 100644 --- a/binder/android/net/resolv/aidl/PrivateDnsValidationEventParcel.aidl +++ b/binder/android/net/resolv/aidl/PrivateDnsValidationEventParcel.aidl
@@ -35,4 +35,7 @@ /** The validation result. */ int validation; + + /** The private DNS protocol for which validation was performed. */ + int protocol; }