Lines Matching refs:c_str
345 "COMMIT\n", chainName, criticalCommands.c_str(), chainName, op); in makeDataSaverCommand()
401 ALOGE("unable to update the Bandwidth Uid Map: %s", toString(status).c_str()); in manipulateSpecialApps()
407 StringAppendF(&cmd, "%s %s -m owner --uid-owner %s%s\n", opToString(op), chain.c_str(), in manipulateSpecialApps()
408 appStrUid.c_str(), jumpToString(jumpHandling)); in manipulateSpecialApps()
438 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
439 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
440 StringPrintf("-A bw_FORWARD -i %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota()
441 StringPrintf("-A bw_FORWARD -o %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota()
482 ALOGE("No such iface %s to delete", iface.c_str()); in removeInterfaceSharedQuota()
488 StringPrintf("-D bw_INPUT -i %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
489 StringPrintf("-D bw_OUTPUT -o %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
490 StringPrintf("-D bw_FORWARD -i %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
491 StringPrintf("-D bw_FORWARD -o %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
500 ALOGE("Failed to remove shared quota on %s", iface.c_str()); in removeInterfaceSharedQuota()
538 ALOGE("Failed update quota for %s", iface.c_str()); in setInterfaceQuota()
550 StringPrintf(":%s -", chain.c_str()), in setInterfaceQuota()
551 StringPrintf("-A %s -j bw_penalty_box", chain.c_str()), in setInterfaceQuota()
552 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleInsertPos, iface.c_str(), chain.c_str()), in setInterfaceQuota()
553 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleInsertPos, iface.c_str(), in setInterfaceQuota()
554 chain.c_str()), in setInterfaceQuota()
555 StringPrintf("-A bw_FORWARD -i %s -j %s", iface.c_str(), chain.c_str()), in setInterfaceQuota()
556 StringPrintf("-A bw_FORWARD -o %s -j %s", iface.c_str(), chain.c_str()), in setInterfaceQuota()
557 StringPrintf("-A %s -m quota2 ! --quota %" PRId64 " --name %s -j REJECT", chain.c_str(), in setInterfaceQuota()
558 maxBytes, cost.c_str()), in setInterfaceQuota()
583 ALOGE("Reading quota %s failed (%s)", iface.c_str(), toString(file).c_str()); in getInterfaceQuota()
588 ALOGE("Reading quota %s failed (%s)", iface.c_str(), toString(rv).c_str()); in getInterfaceQuota()
601 ALOGE("No such iface %s to delete", iface.c_str()); in removeInterfaceQuota()
608 StringPrintf("-D bw_INPUT -i %s -j %s", iface.c_str(), chain.c_str()), in removeInterfaceQuota()
609 StringPrintf("-D bw_OUTPUT -o %s -j %s", iface.c_str(), chain.c_str()), in removeInterfaceQuota()
610 StringPrintf("-D bw_FORWARD -i %s -j %s", iface.c_str(), chain.c_str()), in removeInterfaceQuota()
611 StringPrintf("-D bw_FORWARD -o %s -j %s", iface.c_str(), chain.c_str()), in removeInterfaceQuota()
612 StringPrintf("-F %s", chain.c_str()), in removeInterfaceQuota()
613 StringPrintf("-X %s", chain.c_str()), in removeInterfaceQuota()
631 ALOGE("updateQuota: Invalid quotaName \"%s\"", quotaName.c_str()); in updateQuota()
638 ALOGE("Updating quota %s failed (%s)", quotaName.c_str(), toString(file).c_str()); in updateQuota()
660 alertName.c_str()); in runIptablesAlertCmd()
720 ALOGE("setInterfaceAlert: Invalid iface \"%s\"", iface.c_str()); in setInterfaceAlert()
740 ALOGE("removeInterfaceAlert: Invalid iface \"%s\"", iface.c_str()); in removeInterfaceAlert()
747 ALOGE("No prior alert set for interface %s", iface.c_str()); in removeInterfaceAlert()
759 ALOGE("setCostlyAlert: Invalid costName \"%s\"", costName.c_str()); in setCostlyAlert()
775 StringPrintf(ALERT_IPT_TEMPLATE, "-A", chainName.c_str(), bytes, alertName.c_str()), in setCostlyAlert()
780 ALOGE("Failed to set costly alert for %s", costName.c_str()); in setCostlyAlert()
792 ALOGE("removeCostlyAlert: Invalid costName \"%s\"", costName.c_str()); in removeCostlyAlert()
797 ALOGE("No prior alert set for %s alert", costName.c_str()); in removeCostlyAlert()
805 StringPrintf(ALERT_IPT_TEMPLATE, "-D", chainName.c_str(), *alertBytes, alertName.c_str()), in removeCostlyAlert()
809 ALOGE("Failed to remove costly alert %s", costName.c_str()); in removeCostlyAlert()
840 ALOGV("parse chainName=<%s> orig line=<%s>", chainName.c_str(), rule.c_str()); in parseAndFlushCostlyTables()
846 clearCommands.push_back(StringPrintf(":%s -", chainName.c_str())); in parseAndFlushCostlyTables()
848 clearCommands.push_back(StringPrintf("-X %s", chainName.c_str())); in parseAndFlushCostlyTables()