Home
last modified time | relevance | path

Searched refs:statsValue (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java249 TetherStatsValue statsValue = null; in tetherOffloadSetInterfaceQuota() local
252 statsValue = mBpfStatsMap.getValue(new TetherStatsKey(ifIndex)); in tetherOffloadSetInterfaceQuota()
260 if (statsValue != null) { in tetherOffloadSetInterfaceQuota()
262 rxBytes = statsValue.rxBytes; in tetherOffloadSetInterfaceQuota()
263 txBytes = statsValue.txBytes; in tetherOffloadSetInterfaceQuota()
312 TetherStatsValue statsValue = null; in tetherOffloadGetAndClearStats() local
314 statsValue = mBpfStatsMap.getValue(new TetherStatsKey(ifIndex)); in tetherOffloadGetAndClearStats()
320 if (statsValue == null) { in tetherOffloadGetAndClearStats()
339 return statsValue; in tetherOffloadGetAndClearStats()
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DMtsEthernetTetheringTest.java278 final TetherStatsValue statsValue = stats.getValue(); in runUdp4Test() local
279 assertEquals(RX_UDP_PACKET_COUNT, statsValue.rxPackets); in runUdp4Test()
280 assertEquals(RX_UDP_PACKET_COUNT * RX_UDP_PACKET_SIZE, statsValue.rxBytes); in runUdp4Test()
281 assertEquals(0, statsValue.rxErrors); in runUdp4Test()
282 assertEquals(TX_UDP_PACKET_COUNT, statsValue.txPackets); in runUdp4Test()
283 assertEquals(TX_UDP_PACKET_COUNT * TX_UDP_PACKET_SIZE, statsValue.txBytes); in runUdp4Test()
284 assertEquals(0, statsValue.txErrors); in runUdp4Test()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java2122 final TetherStatsValue statsValue = in maybeClearLimit() local
2124 if (statsValue == null) { in maybeClearLimit()
2130 tetherStatsList.put(upstreamIfindex, statsValue); in maybeClearLimit()