Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f79aa09 authored by Mike Yu's avatar Mike Yu
Browse files

Extend onPrivateDnsValidationEvent to support the type of private DNS

Bug: 186177613
Test: m dnsresolver_aidl_interface-update-api
Change-Id: I929b083d66f6edbe8bc6b6e41a95c6ba2b272354
parent 094d9ab7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -28,4 +28,6 @@ interface IDnsResolverUnsolicitedEventListener {
  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;
}
+1 −0
Original line number Diff line number Diff line
@@ -24,4 +24,5 @@ parcelable PrivateDnsValidationEventParcel {
  @utf8InCpp String ipAddress;
  @utf8InCpp String hostname;
  int validation;
  int protocol;
}
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,10 @@ oneway interface IDnsResolverUnsolicitedEventListener {
    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.
     *
+3 −0
Original line number Diff line number Diff line
@@ -35,4 +35,7 @@ parcelable PrivateDnsValidationEventParcel {

    /** The validation result. */
    int validation;

    /** The private DNS protocol for which validation was performed. */
    int protocol;
}