• Home
  • Raw
  • Download

Lines Matching refs:costName

476 std::string BandwidthController::makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota…  in makeIptablesQuotaCmd()  argument
500 …asprintf(&buff, "%s bw_costly_%s -m quota2 ! --quota %" PRId64" --name %s", opFlag, costName, quot… in makeIptablesQuotaCmd()
501 costName); in makeIptablesQuotaCmd()
602 const char *costName = "shared"; in setInterfaceSharedQuota() local
631 quotaCmd = makeIptablesQuotaCmd(IptOpInsert, costName, maxBytes); in setInterfaceSharedQuota()
644 res |= updateQuota(costName, maxBytes); in setInterfaceSharedQuota()
646 ALOGE("Failed update quota for %s", costName); in setInterfaceSharedQuota()
670 const char *costName = "shared"; in removeInterfaceSharedQuota() local
694 quotaCmd = makeIptablesQuotaCmd(IptOpDelete, costName, sharedQuotaBytes); in removeInterfaceSharedQuota()
709 const char *costName; in setInterfaceQuota() local
730 costName = iface; in setInterfaceQuota()
746 quotaCmd = makeIptablesQuotaCmd(IptOpAppend, costName, maxBytes); in setInterfaceQuota()
756 res |= updateQuota(costName, maxBytes); in setInterfaceQuota()
780 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { in getInterfaceQuota() argument
785 if (!isIfaceName(costName)) in getInterfaceQuota()
788 asprintf(&fname, "/proc/net/xt_quota/%s", costName); in getInterfaceQuota()
792 ALOGE("Reading quota %s failed (%s)", costName, strerror(errno)); in getInterfaceQuota()
806 const char *costName; in removeInterfaceQuota() local
816 costName = iface; in removeInterfaceQuota()
1062 int BandwidthController::setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) { in setCostlyAlert() argument
1068 if (!isIfaceName(costName)) { in setCostlyAlert()
1069 ALOGE("setCostlyAlert: Invalid costName \"%s\"", costName); in setCostlyAlert()
1077 asprintf(&alertName, "%sAlert", costName); in setCostlyAlert()
1081 asprintf(&chainName, "bw_costly_%s", costName); in setCostlyAlert()
1092 int BandwidthController::removeCostlyAlert(const char *costName, int64_t *alertBytes) { in removeCostlyAlert() argument
1098 if (!isIfaceName(costName)) { in removeCostlyAlert()
1099 ALOGE("removeCostlyAlert: Invalid costName \"%s\"", costName); in removeCostlyAlert()
1104 ALOGE("No prior alert set for %s alert", costName); in removeCostlyAlert()
1108 asprintf(&alertName, "%sAlert", costName); in removeCostlyAlert()
1109 asprintf(&chainName, "bw_costly_%s", costName); in removeCostlyAlert()