Home
last modified time | relevance | path

Searched refs:alertBytes (Results 1 – 4 of 4) sorted by relevance

/system/netd/server/
DBandwidthControllerTest.cpp487 int64_t alertBytes = 0; in TEST_F() local
494 EXPECT_EQ(0, setCostlyAlert("shared", kQuota, &alertBytes)); in TEST_F()
495 EXPECT_EQ(kQuota, alertBytes); in TEST_F()
500 EXPECT_EQ(0, setCostlyAlert("shared", kQuota + 1, &alertBytes)); in TEST_F()
501 EXPECT_EQ(kQuota + 1, alertBytes); in TEST_F()
509 EXPECT_EQ(0, removeCostlyAlert("shared", &alertBytes)); in TEST_F()
510 EXPECT_EQ(0, alertBytes); in TEST_F()
DBandwidthController.cpp738 int64_t* alertBytes) { in setCostlyAlert() argument
753 if (*alertBytes) { in setCostlyAlert()
754 res = updateQuota(alertName, *alertBytes); in setCostlyAlert()
768 *alertBytes = bytes; in setCostlyAlert()
773 int BandwidthController::removeCostlyAlert(const std::string& costName, int64_t* alertBytes) { in removeCostlyAlert() argument
779 if (!*alertBytes) { in removeCostlyAlert()
788 StringPrintf(ALERT_IPT_TEMPLATE, "-D", chainName.c_str(), *alertBytes, alertName.c_str()), in removeCostlyAlert()
796 *alertBytes = 0; in removeCostlyAlert()
DBandwidthController.h107 int setCostlyAlert(const std::string& costName, int64_t bytes, int64_t* alertBytes);
108 int removeCostlyAlert(const std::string& costName, int64_t* alertBytes);
/system/netd/tests/
Dbinder_test.cpp1532 void expectBandwidthInterfaceAlertRuleExists(const char* ifname, long alertBytes) { in expectBandwidthInterfaceAlertRuleExists() argument
1540 expectXtQuotaValueEqual(alertName.c_str(), alertBytes); in expectBandwidthInterfaceAlertRuleExists()
1552 void expectBandwidthGlobalAlertRuleExists(long alertBytes) { in expectBandwidthGlobalAlertRuleExists() argument
1559 expectXtQuotaValueEqual(globalAlertName, alertBytes); in expectBandwidthGlobalAlertRuleExists()