Merge "SuppressLint for use of TIOCOUTQ constant." am: c17aee3117

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2620253

Change-Id: Iba3db37fee69d38a08746649b53b9d29fbca2ed0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-06-09 15:53:24 +00:00
committed by Automerger Merge Worker

View File

@@ -34,6 +34,7 @@ import static android.system.OsConstants.TIOCOUTQ;
import static com.android.net.module.util.NetworkStackConstants.IPV4_HEADER_MIN_LEN;
import android.annotation.NonNull;
import android.annotation.SuppressLint;
import android.net.ISocketKeepaliveCallback;
import android.net.InvalidPacketException;
import android.net.NetworkUtils;
@@ -106,6 +107,8 @@ public class TcpKeepaliveController {
private static final int TCP_REPAIR_ON = 1;
// Reference include/uapi/linux/sockios.h
private static final int SIOCINQ = FIONREAD;
// arch specific BSD socket API constant that predates Linux and Android
@SuppressLint("NewApi")
private static final int SIOCOUTQ = TIOCOUTQ;
/**