Home
last modified time | relevance | path

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

/system/netd/server/
DBandwidthController.cpp551 int BandwidthController::runIptablesAlertCmd(IptOp op, const std::string& alertName, in runIptablesAlertCmd() argument
565 alertName.c_str()); in runIptablesAlertCmd()
572 const char *alertName = ALERT_GLOBAL_NAME; in setGlobalAlert() local
581 res = updateQuota(alertName, bytes); in setGlobalAlert()
583 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
594 const char *alertName = ALERT_GLOBAL_NAME; in removeGlobalAlert() local
602 res = runIptablesAlertCmd(IptOpDelete, alertName, mGlobalAlertBytes); in removeGlobalAlert()
673 std::string alertName = costName + "Alert"; in setCostlyAlert() local
676 res = updateQuota(alertName, *alertBytes); in setCostlyAlert()
680 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.cpp2148 std::string alertName = StringPrintf("%sAlert", ifname); in expectBandwidthInterfaceAlertRuleExists() local
2153 expectXtQuotaValueEqual(alertName.c_str(), alertBytes); in expectBandwidthInterfaceAlertRuleExists()