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

Commit c8f63060 authored by Nathan Harold's avatar Nathan Harold
Browse files

Expose add/removeAddress for IpSecInterfaces

When exposing the APIs, these were missed.
The outer structure is exposed, so this exposes
the addAddress and removeAddress methods.

Bug: 75234273
Test: compilation
Merged-In: I79911434f9baa660e4d8564cc59d80da4a710c42
Change-Id: I79911434f9baa660e4d8564cc59d80da4a710c42
(cherry picked from commit a83601a5)
parent da4b0c65
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3034,8 +3034,10 @@ package android.net {
  }

  public static final class IpSecManager.IpSecTunnelInterface implements java.lang.AutoCloseable {
    method public void addAddress(android.net.LinkAddress) throws java.io.IOException;
    method public void close();
    method public java.lang.String getInterfaceName();
    method public void removeAddress(android.net.LinkAddress) throws java.io.IOException;
  }

  public final class IpSecTransform implements java.lang.AutoCloseable {
+4 −2
Original line number Diff line number Diff line
@@ -658,7 +658,8 @@ public final class IpSecManager {
         * @param address the local address for traffic inside the tunnel
         * @hide
         */
        public void addAddress(LinkAddress address) {
        @SystemApi
        public void addAddress(LinkAddress address) throws IOException {
            try {
                mService.addAddressToTunnelInterface(mResourceId, address);
            } catch (RemoteException e) {
@@ -674,7 +675,8 @@ public final class IpSecManager {
         * @param address to be removed
         * @hide
         */
        public void removeAddress(LinkAddress address) {
        @SystemApi
        public void removeAddress(LinkAddress address) throws IOException {
            try {
                mService.removeAddressFromTunnelInterface(mResourceId, address);
            } catch (RemoteException e) {