Searched refs:tetherStats (Results 1 – 4 of 4) sorted by relevance
/system/netd/server/ |
D | NetdNativeService.cpp | 444 const TetherController::TetherStats& tetherStats) { in tetherAddStatsByInterface() argument 445 if (tetherStatsParcel->extIface == tetherStats.extIface) { in tetherAddStatsByInterface() 446 tetherStatsParcel->rxBytes += tetherStats.rxBytes; in tetherAddStatsByInterface() 447 tetherStatsParcel->rxPackets += tetherStats.rxPackets; in tetherAddStatsByInterface() 448 tetherStatsParcel->txBytes += tetherStats.txBytes; in tetherAddStatsByInterface() 449 tetherStatsParcel->txPackets += tetherStats.txPackets; in tetherAddStatsByInterface() 1307 int ifIndex, android::net::TetherStatsParcel* tetherStats) { in tetherOffloadGetAndClearStats() argument 1313 *tetherStats = toTetherStatsParcel(stats.value()); in tetherOffloadGetAndClearStats()
|
D | TetherControllerTest.cpp | 99 const TetherStatsValue tetherStats = {rxPackets, rxBytes, 0 /*unused*/, in updateMaps() local 101 ASSERT_RESULT_OK(mFakeTetherStatsMap.writeValue(ifaceIndex, tetherStats, BPF_ANY)); in updateMaps()
|
D | NetdNativeService.h | 145 int ifIndex, android::net::TetherStatsParcel* tetherStats) override;
|
/system/netd/tests/ |
D | binder_test.cpp | 3739 TetherStatsParcel tetherStats; in TEST_F() local 3740 EXPECT_TRUE(mNetd->tetherOffloadGetAndClearStats(sTun.ifindex(), &tetherStats).isOk()); in TEST_F() 3741 EXPECT_EQ("", tetherStats.iface); in TEST_F() 3742 EXPECT_EQ(static_cast<int64_t>(sizeof(pkt)), tetherStats.rxBytes); in TEST_F() 3743 EXPECT_EQ(1, tetherStats.rxPackets); in TEST_F() 3744 EXPECT_EQ(0, tetherStats.txBytes); in TEST_F() 3745 EXPECT_EQ(0, tetherStats.txPackets); in TEST_F() 3746 EXPECT_EQ(sTun.ifindex(), tetherStats.ifIndex); in TEST_F()
|