Lines Matching defs:stats
1139 TetherStats stats;
1150 stats = filter;
1172 stats.rxPackets = packets;
1173 stats.rxBytes = bytes;
1176 stats.txPackets = packets;
1177 stats.txBytes = bytes;
1182 stats.intIface = iface0;
1183 stats.extIface = iface1;
1184 stats.rxPackets = packets;
1185 stats.rxBytes = bytes;
1188 stats.intIface = iface1;
1189 stats.extIface = iface0;
1190 stats.txPackets = packets;
1191 stats.txBytes = bytes;
1194 if (!stats.intIface[0]) {
1196 stats.intIface = iface0;
1197 stats.extIface = iface1;
1198 stats.rxPackets = packets;
1199 stats.rxBytes = bytes;
1200 } else if (stats.intIface == iface1 && stats.extIface == iface0) {
1202 stats.txPackets = packets;
1203 stats.txBytes = bytes;
1206 if (stats.rxBytes != -1 && stats.txBytes != -1) {
1207 ALOGV("rx_bytes=%" PRId64" tx_bytes=%" PRId64" filterPair=%d", stats.rxBytes, stats.txBytes, filterPair);
1208 /* Send out stats, and prep for the next if needed. */
1209 char *msg = stats.getStatsLine();
1215 stats = filter;
1222 /* It is always an error to find only one side of the stats. */
1224 if (((stats.rxBytes == -1) != (stats.txBytes == -1)) ||
1228 cli->sendMsg(ResponseCode::CommandOkay, "Tethering stats list completed", false);
1239 int BandwidthController::getTetherStats(SocketClient *cli, TetherStats &stats, std::string &extraProcessingInfo) {
1260 res = parseForwardChainStats(cli, stats, iptOutput, extraProcessingInfo);