Searched refs:alertName (Results 1 – 6 of 6) sorted by relevance
/system/netd/server/ |
D | BandwidthController.cpp | 551 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 …]
|
D | BandwidthController.h | 92 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);
|
D | NetlinkHandler.cpp | 187 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/ |
D | TestUnsolService.cpp | 89 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()
|
D | TestUnsolService.h | 58 binder::Status onQuotaLimitReached(const std::string& alertName,
|
D | binder_test.cpp | 2148 std::string alertName = StringPrintf("%sAlert", ifname); in expectBandwidthInterfaceAlertRuleExists() local 2153 expectXtQuotaValueEqual(alertName.c_str(), alertBytes); in expectBandwidthInterfaceAlertRuleExists()
|