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

Commit 81bbd3c1 authored by paulhu's avatar paulhu Committed by Paul Hu
Browse files

Expose TcpRepairWindow as module-lib API

Connectivity service is going to become a mainline module which
will not be able to access hidden APIs. TcpKeepaliveController
is a part of CS mainline module, it uses TcpRepairWindow to
store tcp repair window info. Thus, expose TcpRepairWindow as
module-lib API to support the usage.

Bug: 172183305
Test: atest FrameworksNetTests
Change-Id: I1b6f5ae698f4b6e030a0f776aeafc774fa9f1437
parent 5884555c
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -8,6 +8,20 @@ package android.app {


}
}


package android.net {

  public final class TcpRepairWindow {
    ctor public TcpRepairWindow(int, int, int, int, int, int);
    field public final int maxWindow;
    field public final int rcvWnd;
    field public final int rcvWndScale;
    field public final int rcvWup;
    field public final int sndWl1;
    field public final int sndWnd;
  }

}

package android.os {
package android.os {


  public class Binder implements android.os.IBinder {
  public class Binder implements android.os.IBinder {
+3 −0
Original line number Original line Diff line number Diff line
@@ -16,12 +16,15 @@


package android.net;
package android.net;


import android.annotation.SystemApi;

/**
/**
 * Corresponds to C's {@code struct tcp_repair_window} from
 * Corresponds to C's {@code struct tcp_repair_window} from
 * include/uapi/linux/tcp.h
 * include/uapi/linux/tcp.h
 *
 *
 * @hide
 * @hide
 */
 */
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public final class TcpRepairWindow {
public final class TcpRepairWindow {
    public final int sndWl1;
    public final int sndWl1;
    public final int sndWnd;
    public final int sndWnd;