Lines Matching defs:stats
762 void BandwidthController::addStats(TetherStatsList& statsList, const TetherStats& stats) {
764 if (existing.addStatsIfMatch(stats)) {
769 statsList.push_back(stats);
799 TetherStats stats;
808 stats = filter;
843 stats.rxPackets = packets;
844 stats.rxBytes = bytes;
847 stats.txPackets = packets;
848 stats.txBytes = bytes;
853 stats.intIface = iface0;
854 stats.extIface = iface1;
855 stats.rxPackets = packets;
856 stats.rxBytes = bytes;
859 stats.intIface = iface1;
860 stats.extIface = iface0;
861 stats.txPackets = packets;
862 stats.txBytes = bytes;
865 if (!stats.intIface[0]) {
867 stats.intIface = iface0;
868 stats.extIface = iface1;
869 stats.rxPackets = packets;
870 stats.rxBytes = bytes;
871 } else if (stats.intIface == iface1 && stats.extIface == iface0) {
873 stats.txPackets = packets;
874 stats.txBytes = bytes;
877 if (stats.rxBytes != -1 && stats.txBytes != -1) {
878 ALOGV("rx_bytes=%" PRId64" tx_bytes=%" PRId64" filterPair=%d", stats.rxBytes, stats.txBytes, filterPair);
879 addStats(statsList, stats);
884 stats = filter;
889 /* It is always an error to find only one side of the stats. */
891 if (((stats.rxBytes == -1) != (stats.txBytes == -1)) ||
929 stats: statsList) {
931 stats.getStatsLine().c_str(), false);
934 cli->sendMsg(ResponseCode::CommandOkay, "Tethering stats list completed", false);