Home
last modified time | relevance | path

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

/system/netd/server/
DNetdNativeService.cpp482 const TetherController::TetherStats& tetherStats) { in tetherAddStatsByInterface() argument
483 if (tetherStatsParcel->extIface == tetherStats.extIface) { in tetherAddStatsByInterface()
484 tetherStatsParcel->rxBytes += tetherStats.rxBytes; in tetherAddStatsByInterface()
485 tetherStatsParcel->rxPackets += tetherStats.rxPackets; in tetherAddStatsByInterface()
486 tetherStatsParcel->txBytes += tetherStats.txBytes; in tetherAddStatsByInterface()
487 tetherStatsParcel->txPackets += tetherStats.txPackets; in tetherAddStatsByInterface()
DNetdNativeService.h150 int ifIndex, android::net::TetherStatsParcel* tetherStats) override;
/system/netd/tests/
Dbinder_test.cpp3808 TetherStatsParcel tetherStats; in TEST_F() local
3809 EXPECT_TRUE(mNetd->tetherOffloadGetAndClearStats(sTun.ifindex(), &tetherStats).isOk()); in TEST_F()
3810 EXPECT_EQ("", tetherStats.iface); in TEST_F()
3811 EXPECT_EQ(static_cast<int64_t>(sizeof(pkt)), tetherStats.rxBytes); in TEST_F()
3812 EXPECT_EQ(1, tetherStats.rxPackets); in TEST_F()
3813 EXPECT_EQ(0, tetherStats.txBytes); in TEST_F()
3814 EXPECT_EQ(0, tetherStats.txPackets); in TEST_F()
3815 EXPECT_EQ(sTun.ifindex(), tetherStats.ifIndex); in TEST_F()
3965 TetherStatsParcel tetherStats; in TEST_F() local
3966 auto status = mNetd->tetherOffloadGetAndClearStats(0 /* ifIndex */, &tetherStats); in TEST_F()