Lines Matching refs:stats
923 int BandwidthController::parseForwardChainStats(TetherStats &stats, FILE *fp) {
943 if ((stats.ifaceIn == iface0) && (stats.ifaceOut == iface1)) {
945 stats.rxPackets = packets;
946 stats.rxBytes = bytes;
947 } else if ((stats.ifaceOut == iface0) && (stats.ifaceIn == iface1)) {
949 stats.txPackets = packets;
950 stats.txBytes = bytes;
954 return (stats.rxBytes == -1 || stats.txBytes == -1) ? -1 : 0;
965 int BandwidthController::getTetherStats(TetherStats &stats) {
971 if (stats.rxBytes != -1 || stats.txBytes != -1) {
972 LOGE("Unexpected input stats. Byte counts should be -1.");
990 res = parseForwardChainStats(stats, iptOutput);