[KA04] Expose TCP socket keepalive API
The new set of API allows applications to request keepalives offload for established TCP sockets over wifi. However, the application must not write to or read from the socket after calling this method, until specific callbacks are called. Bug: 114151147 Test: atest FrameworksNetTests FrameworksWifiTests NetworkStackTests Change-Id: I3880505dbc35fefa34ef6c79555458ecf5d296a4
This commit is contained in:
parent
6e55aca3fa
commit
0835a1eaea
1 changed files with 338 additions and 64 deletions
|
|
@ -19,6 +19,7 @@ package android.net;
|
|||
import android.annotation.IntDef;
|
||||
import android.annotation.IntRange;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
import android.os.Looper;
|
||||
|
|
@ -155,7 +156,7 @@ public abstract class SocketKeepalive implements AutoCloseable {
|
|||
@NonNull private final SocketKeepalive.Callback mCallback;
|
||||
@NonNull private final Looper mLooper;
|
||||
@NonNull final Messenger mMessenger;
|
||||
@NonNull Integer mSlot;
|
||||
@Nullable Integer mSlot;
|
||||
|
||||
SocketKeepalive(@NonNull IConnectivityManager service, @NonNull Network network,
|
||||
@NonNull Executor executor, @NonNull Callback callback) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue