Loading services/core/java/com/android/server/net/NetworkStatsService.java +7 −1 Original line number Diff line number Diff line Loading @@ -941,8 +941,14 @@ public class NetworkStatsService extends INetworkStatsService.Stub { @Override public long getIfaceStats(String iface, int type) { // eBPF code doesn't provide per-interface TCP counters. Use xt_qtaguid for now. // TODO: delete getMobileTcp(Rx|Tx)Packets entirely. See b/110443385 . if (type == TYPE_TCP_TX_PACKETS || type == TYPE_TCP_RX_PACKETS) { return nativeGetIfaceStat(iface, type, false); } else { return nativeGetIfaceStat(iface, type, checkBpfStatsEnable()); } } @Override public long getTotalStats(int type) { Loading Loading
services/core/java/com/android/server/net/NetworkStatsService.java +7 −1 Original line number Diff line number Diff line Loading @@ -941,8 +941,14 @@ public class NetworkStatsService extends INetworkStatsService.Stub { @Override public long getIfaceStats(String iface, int type) { // eBPF code doesn't provide per-interface TCP counters. Use xt_qtaguid for now. // TODO: delete getMobileTcp(Rx|Tx)Packets entirely. See b/110443385 . if (type == TYPE_TCP_TX_PACKETS || type == TYPE_TCP_RX_PACKETS) { return nativeGetIfaceStat(iface, type, false); } else { return nativeGetIfaceStat(iface, type, checkBpfStatsEnable()); } } @Override public long getTotalStats(int type) { Loading