Home
last modified time | relevance | path

Searched refs:alertName (Results 1 – 6 of 6) sorted by relevance

/system/netd/server/
DBandwidthController.cpp552 int BandwidthController::runIptablesAlertCmd(IptOp op, const std::string& alertName, in runIptablesAlertCmd() argument
566 alertName.c_str()); in runIptablesAlertCmd()
573 const char *alertName = ALERT_GLOBAL_NAME; in setGlobalAlert() local
582 res = updateQuota(alertName, bytes); in setGlobalAlert()
584 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
595 const char *alertName = ALERT_GLOBAL_NAME; in removeGlobalAlert() local
603 res = runIptablesAlertCmd(IptOpDelete, alertName, mGlobalAlertBytes); in removeGlobalAlert()
674 std::string alertName = costName + "Alert"; in setCostlyAlert() local
677 res = updateQuota(alertName, *alertBytes); in setCostlyAlert()
681 StringPrintf(ALERT_IPT_TEMPLATE, "-A", chainName.c_str(), bytes, alertName.c_str()), in setCostlyAlert()
[all …]
DBandwidthController.h92 int runIptablesAlertCmd(IptOp op, const std::string& alertName, int64_t bytes);
93 int runIptablesAlertFwdCmd(IptOp op, const std::string& alertName, int64_t bytes);
95 int updateQuota(const std::string& alertName, int64_t bytes);
DNetlinkHandler.cpp187 const char *alertName = evt->findParam("ALERT_NAME"); in onEvent() local
189 if (alertName && iface) { in onEvent()
190 notifyQuotaLimitReached(alertName, iface); in onEvent()
/system/netd/tests/
DTestUnsolService.cpp89 binder::Status TestUnsolService::onQuotaLimitReached(const std::string& alertName, in onQuotaLimitReached() argument
91 events_.push_back(StringPrintf("onQuotaLimitReached %s %s", alertName.c_str(), ifName.c_str())); in onQuotaLimitReached()
DTestUnsolService.h58 binder::Status onQuotaLimitReached(const std::string& alertName,
Dbinder_test.cpp1959 std::string alertName = StringPrintf("%sAlert", ifname); in expectBandwidthInterfaceAlertRuleExists() local
1964 expectXtQuotaValueEqual(alertName.c_str(), alertBytes); in expectBandwidthInterfaceAlertRuleExists()