Searched refs:alertBytes (Results 1 – 4 of 4) sorted by relevance
/system/netd/server/ |
D | BandwidthControllerTest.cpp | 438 int64_t alertBytes = 0; in TEST_F() local 445 EXPECT_EQ(0, setCostlyAlert("shared", kQuota, &alertBytes)); in TEST_F() 446 EXPECT_EQ(kQuota, alertBytes); in TEST_F() 451 EXPECT_EQ(0, setCostlyAlert("shared", kQuota + 1, &alertBytes)); in TEST_F() 452 EXPECT_EQ(kQuota + 1, alertBytes); in TEST_F() 460 EXPECT_EQ(0, removeCostlyAlert("shared", &alertBytes)); in TEST_F() 461 EXPECT_EQ(0, alertBytes); in TEST_F()
|
D | BandwidthController.cpp | 692 int64_t* alertBytes) { in setCostlyAlert() argument 707 if (*alertBytes) { in setCostlyAlert() 708 res = updateQuota(alertName, *alertBytes); in setCostlyAlert() 722 *alertBytes = bytes; in setCostlyAlert() 727 int BandwidthController::removeCostlyAlert(const std::string& costName, int64_t* alertBytes) { in removeCostlyAlert() argument 733 if (!*alertBytes) { in removeCostlyAlert() 742 StringPrintf(ALERT_IPT_TEMPLATE, "-D", chainName.c_str(), *alertBytes, alertName.c_str()), in removeCostlyAlert() 750 *alertBytes = 0; in removeCostlyAlert()
|
D | BandwidthController.h | 101 int setCostlyAlert(const std::string& costName, int64_t bytes, int64_t* alertBytes); 102 int removeCostlyAlert(const std::string& costName, int64_t* alertBytes);
|
/system/netd/tests/ |
D | binder_test.cpp | 1663 void expectBandwidthInterfaceAlertRuleExists(const char* ifname, long alertBytes) { in expectBandwidthInterfaceAlertRuleExists() argument 1671 expectXtQuotaValueEqual(alertName.c_str(), alertBytes); in expectBandwidthInterfaceAlertRuleExists() 1683 void expectBandwidthGlobalAlertRuleExists(long alertBytes) { in expectBandwidthGlobalAlertRuleExists() argument 1690 expectXtQuotaValueEqual(globalAlertName, alertBytes); in expectBandwidthGlobalAlertRuleExists()
|