Searched refs:alertBytes (Results 1 – 4 of 4) sorted by relevance
/system/netd/server/ |
D | BandwidthControllerTest.cpp | 488 int64_t alertBytes = 0; in TEST_F() local 495 EXPECT_EQ(0, setCostlyAlert("shared", kQuota, &alertBytes)); in TEST_F() 496 EXPECT_EQ(kQuota, alertBytes); in TEST_F() 501 EXPECT_EQ(0, setCostlyAlert("shared", kQuota + 1, &alertBytes)); in TEST_F() 502 EXPECT_EQ(kQuota + 1, alertBytes); in TEST_F() 510 EXPECT_EQ(0, removeCostlyAlert("shared", &alertBytes)); in TEST_F() 511 EXPECT_EQ(0, alertBytes); in TEST_F()
|
D | BandwidthController.cpp | 755 int64_t* alertBytes) { in setCostlyAlert() argument 770 if (*alertBytes) { in setCostlyAlert() 771 res = updateQuota(alertName, *alertBytes); in setCostlyAlert() 785 *alertBytes = bytes; in setCostlyAlert() 790 int BandwidthController::removeCostlyAlert(const std::string& costName, int64_t* alertBytes) { in removeCostlyAlert() argument 796 if (!*alertBytes) { in removeCostlyAlert() 805 StringPrintf(ALERT_IPT_TEMPLATE, "-D", chainName.c_str(), *alertBytes, alertName.c_str()), in removeCostlyAlert() 813 *alertBytes = 0; in removeCostlyAlert()
|
D | BandwidthController.h | 107 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/ |
D | binder_test.cpp | 1503 void expectBandwidthInterfaceAlertRuleExists(const char* ifname, long alertBytes) { in expectBandwidthInterfaceAlertRuleExists() argument 1511 expectXtQuotaValueEqual(alertName.c_str(), alertBytes); in expectBandwidthInterfaceAlertRuleExists() 1523 void expectBandwidthGlobalAlertRuleExists(long alertBytes) { in expectBandwidthGlobalAlertRuleExists() argument 1530 expectXtQuotaValueEqual(globalAlertName, alertBytes); in expectBandwidthGlobalAlertRuleExists()
|