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
This commit is contained in:
paulhu
2020-12-08 17:24:21 +08:00
committed by Paul Hu
parent 5884555cd2
commit 81bbd3c1db
2 changed files with 17 additions and 0 deletions

View File

@@ -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 {
public class Binder implements android.os.IBinder {

View File

@@ -16,12 +16,15 @@
package android.net;
import android.annotation.SystemApi;
/**
* Corresponds to C's {@code struct tcp_repair_window} from
* include/uapi/linux/tcp.h
*
* @hide
*/
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public final class TcpRepairWindow {
public final int sndWl1;
public final int sndWnd;