- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
72 lines
2.0 KiB
Java
72 lines
2.0 KiB
Java
package androidx.core.net;
|
|
|
|
import android.net.TrafficStats;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RequiresApi;
|
|
import java.net.DatagramSocket;
|
|
import java.net.Socket;
|
|
import java.net.SocketException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class TrafficStatsCompat {
|
|
@Deprecated
|
|
public static void clearThreadStatsTag() {
|
|
TrafficStats.clearThreadStatsTag();
|
|
}
|
|
|
|
@Deprecated
|
|
public static int getThreadStatsTag() {
|
|
return TrafficStats.getThreadStatsTag();
|
|
}
|
|
|
|
@Deprecated
|
|
public static void incrementOperationCount(int i) {
|
|
TrafficStats.incrementOperationCount(i);
|
|
}
|
|
|
|
@Deprecated
|
|
public static void incrementOperationCount(int i, int i2) {
|
|
TrafficStats.incrementOperationCount(i, i2);
|
|
}
|
|
|
|
@Deprecated
|
|
public static void setThreadStatsTag(int i) {
|
|
TrafficStats.setThreadStatsTag(i);
|
|
}
|
|
|
|
@Deprecated
|
|
public static void tagSocket(Socket socket) throws SocketException {
|
|
TrafficStats.tagSocket(socket);
|
|
}
|
|
|
|
@Deprecated
|
|
public static void untagSocket(Socket socket) throws SocketException {
|
|
TrafficStats.untagSocket(socket);
|
|
}
|
|
|
|
public static void tagDatagramSocket(@NonNull DatagramSocket datagramSocket) throws SocketException {
|
|
Api24Impl.tagDatagramSocket(datagramSocket);
|
|
}
|
|
|
|
public static void untagDatagramSocket(@NonNull DatagramSocket datagramSocket) throws SocketException {
|
|
Api24Impl.untagDatagramSocket(datagramSocket);
|
|
}
|
|
|
|
private TrafficStatsCompat() {
|
|
}
|
|
|
|
@RequiresApi(24)
|
|
public static class Api24Impl {
|
|
private Api24Impl() {
|
|
}
|
|
|
|
public static void tagDatagramSocket(DatagramSocket datagramSocket) throws SocketException {
|
|
TrafficStats.tagDatagramSocket(datagramSocket);
|
|
}
|
|
|
|
public static void untagDatagramSocket(DatagramSocket datagramSocket) throws SocketException {
|
|
TrafficStats.untagDatagramSocket(datagramSocket);
|
|
}
|
|
}
|
|
}
|