Lines Matching refs:StringPrintf
75 using android::base::StringPrintf;
214 StringPrintf("-A bw_INPUT -m mark --mark 0x%x/0x%x -j RETURN", uidBillingMask, in getBasicAccountingCommands()
216 StringPrintf("-A bw_INPUT -j MARK --or-mark 0x%x", uidBillingMask), in getBasicAccountingCommands()
228 StringPrintf("-A bw_raw_PREROUTING -m mark --mark 0x%x -j DROP", CLAT_MARK), in getBasicAccountingCommands()
251 StringPrintf("-A bw_mangle_POSTROUTING -j MARK --set-mark 0x0/0x%x", uidBillingMask), in getBasicAccountingCommands()
344 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
345 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
346 StringPrintf("-A bw_FORWARD -i %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota()
347 StringPrintf("-A bw_FORWARD -o %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota()
350 cmds.push_back(StringPrintf("-I %s -m quota2 ! --quota %" PRId64 " --name %s -j REJECT", in setInterfaceSharedQuota()
394 StringPrintf("-D bw_INPUT -i %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
395 StringPrintf("-D bw_OUTPUT -o %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
396 StringPrintf("-D bw_FORWARD -i %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
397 StringPrintf("-D bw_FORWARD -o %s -j %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
400 cmds.push_back(StringPrintf("-D %s -m quota2 ! --quota %" PRIu64 " --name %s -j REJECT", in removeInterfaceSharedQuota()
456 StringPrintf(":%s -", chain.c_str()), in setInterfaceQuota()
457 StringPrintf("-A %s -j bw_penalty_box", chain.c_str()), in setInterfaceQuota()
458 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleInsertPos, iface.c_str(), chain.c_str()), in setInterfaceQuota()
459 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleInsertPos, iface.c_str(), in setInterfaceQuota()
461 StringPrintf("-A bw_FORWARD -i %s -j %s", iface.c_str(), chain.c_str()), in setInterfaceQuota()
462 StringPrintf("-A bw_FORWARD -o %s -j %s", iface.c_str(), chain.c_str()), in setInterfaceQuota()
463 StringPrintf("-A %s -m quota2 ! --quota %" PRId64 " --name %s -j REJECT", chain.c_str(), in setInterfaceQuota()
514 StringPrintf("-D bw_INPUT -i %s -j %s", iface.c_str(), chain.c_str()), in removeInterfaceQuota()
515 StringPrintf("-D bw_OUTPUT -o %s -j %s", iface.c_str(), chain.c_str()), in removeInterfaceQuota()
516 StringPrintf("-D bw_FORWARD -i %s -j %s", iface.c_str(), chain.c_str()), in removeInterfaceQuota()
517 StringPrintf("-D bw_FORWARD -o %s -j %s", iface.c_str(), chain.c_str()), in removeInterfaceQuota()
518 StringPrintf("-F %s", chain.c_str()), in removeInterfaceQuota()
519 StringPrintf("-X %s", chain.c_str()), in removeInterfaceQuota()
681 StringPrintf(ALERT_IPT_TEMPLATE, "-A", chainName.c_str(), bytes, alertName.c_str()), in setCostlyAlert()
711 StringPrintf(ALERT_IPT_TEMPLATE, "-D", chainName.c_str(), *alertBytes, alertName.c_str()), in removeCostlyAlert()
752 clearCommands.push_back(StringPrintf(":%s -", chainName.c_str())); in parseAndFlushCostlyTables()
754 clearCommands.push_back(StringPrintf("-X %s", chainName.c_str())); in parseAndFlushCostlyTables()