Home | History | Annotate | Download | only in netd

Lines Matching refs:stats

924 int BandwidthController::parseForwardChainStats(TetherStats &stats, FILE *fp) {
944 if ((stats.ifaceIn == iface0) && (stats.ifaceOut == iface1)) {
946 stats.rxPackets = packets;
947 stats.rxBytes = bytes;
948 } else if ((stats.ifaceOut == iface0) && (stats.ifaceIn == iface1)) {
950 stats.txPackets = packets;
951 stats.txBytes = bytes;
955 return (stats.rxBytes == -1 || stats.txBytes == -1) ? -1 : 0;
966 int BandwidthController::getTetherStats(TetherStats &stats) {
972 if (stats.rxBytes != -1 || stats.txBytes != -1) {
973 LOGE("Unexpected input stats. Byte counts should be -1.");
991 res = parseForwardChainStats(stats, iptOutput);