Merge "remove unused TcpTx/RxPackets java & jni constants" into main
This commit is contained in:
@@ -1121,8 +1121,4 @@ public class TrafficStats {
|
||||
public static final int TYPE_TX_BYTES = 2;
|
||||
/** {@hide} */
|
||||
public static final int TYPE_TX_PACKETS = 3;
|
||||
/** {@hide} */
|
||||
public static final int TYPE_TCP_RX_PACKETS = 4;
|
||||
/** {@hide} */
|
||||
public static final int TYPE_TCP_TX_PACKETS = 5;
|
||||
}
|
||||
|
||||
@@ -47,8 +47,6 @@ enum StatsType {
|
||||
RX_PACKETS = 1,
|
||||
TX_BYTES = 2,
|
||||
TX_PACKETS = 3,
|
||||
TCP_RX_PACKETS = 4, // not supported, always returns UNKNOWN (-1)
|
||||
TCP_TX_PACKETS = 5, // not supported, always returns UNKNOWN (-1)
|
||||
};
|
||||
|
||||
static uint64_t getStatsType(StatsValue* stats, StatsType type) {
|
||||
@@ -61,8 +59,6 @@ static uint64_t getStatsType(StatsValue* stats, StatsType type) {
|
||||
return stats->txBytes;
|
||||
case TX_PACKETS:
|
||||
return stats->txPackets;
|
||||
case TCP_RX_PACKETS:
|
||||
case TCP_TX_PACKETS:
|
||||
default:
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user