Lines Matching refs:BandwidthController

61 const char* BandwidthController::LOCAL_INPUT = "bw_INPUT";
62 const char* BandwidthController::LOCAL_FORWARD = "bw_FORWARD";
63 const char* BandwidthController::LOCAL_OUTPUT = "bw_OUTPUT";
64 const char* BandwidthController::LOCAL_RAW_PREROUTING = "bw_raw_PREROUTING";
65 const char* BandwidthController::LOCAL_MANGLE_POSTROUTING = "bw_mangle_POSTROUTING";
67 auto BandwidthController::execFunction = android_fork_execvp;
68 auto BandwidthController::popenFunction = popen;
69 auto BandwidthController::iptablesRestoreFunction = execIptablesRestore;
192 BandwidthController::BandwidthController(void) { in BandwidthController() function in BandwidthController
195 int BandwidthController::runIpxtablesCmd(const char *cmd, IptJumpOp jumpHandling, in runIpxtablesCmd()
205 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { in StrncpyAndCheck()
212 int BandwidthController::runIptablesCmd(const char *cmd, IptJumpOp jumpHandling, in runIptablesCmd()
268 void BandwidthController::flushCleanTables(bool doClean) { in flushCleanTables()
276 int BandwidthController::setupIptablesHooks(void) { in setupIptablesHooks()
282 int BandwidthController::enableBandwidthControl(bool force) { in enableBandwidthControl()
303 int BandwidthController::disableBandwidthControl(void) { in disableBandwidthControl()
309 int BandwidthController::enableDataSaver(bool enable) { in enableDataSaver()
314 int BandwidthController::runCommands(int numCommands, const char *commands[], in runCommands()
330 std::string BandwidthController::makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain) { in makeIptablesSpecialAppCmd()
358 int BandwidthController::addNaughtyApps(int numUids, char *appUids[]) { in addNaughtyApps()
362 int BandwidthController::removeNaughtyApps(int numUids, char *appUids[]) { in removeNaughtyApps()
366 int BandwidthController::addNiceApps(int numUids, char *appUids[]) { in addNiceApps()
370 int BandwidthController::removeNiceApps(int numUids, char *appUids[]) { in removeNiceApps()
374 int BandwidthController::manipulateNaughtyApps(int numUids, char *appStrUids[], SpecialAppOp appOp)… in manipulateNaughtyApps()
378 int BandwidthController::manipulateNiceApps(int numUids, char *appStrUids[], SpecialAppOp appOp) { in manipulateNiceApps()
383 int BandwidthController::manipulateSpecialApps(int numUids, char *appStrUids[], in manipulateSpecialApps()
435 std::string BandwidthController::makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota… in makeIptablesQuotaCmd()
466 int BandwidthController::prepCostlyIface(const char *ifn, QuotaType quotaType) { in prepCostlyIface()
526 int BandwidthController::cleanupCostlyIface(const char *ifn, QuotaType quotaType) { in cleanupCostlyIface()
563 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { in setInterfaceSharedQuota()
632 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { in removeInterfaceSharedQuota()
672 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { in setInterfaceQuota()
743 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { in getInterfaceSharedQuota()
747 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { in getInterfaceQuota()
768 int BandwidthController::removeInterfaceQuota(const char *iface) { in removeInterfaceQuota()
801 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { in updateQuota()
822 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertCmd()
854 int BandwidthController::runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertFwdCmd()
882 int BandwidthController::setGlobalAlert(int64_t bytes) { in setGlobalAlert()
903 int BandwidthController::setGlobalAlertInForwardChain(void) { in setGlobalAlertInForwardChain()
924 int BandwidthController::removeGlobalAlert(void) { in removeGlobalAlert()
941 int BandwidthController::removeGlobalAlertInForwardChain(void) { in removeGlobalAlertInForwardChain()
965 int BandwidthController::setSharedAlert(int64_t bytes) { in setSharedAlert()
977 int BandwidthController::removeSharedAlert(void) { in removeSharedAlert()
981 int BandwidthController::setInterfaceAlert(const char *iface, int64_t bytes) { in setInterfaceAlert()
1006 int BandwidthController::removeInterfaceAlert(const char *iface) { in removeInterfaceAlert()
1027 int BandwidthController::setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) { in setCostlyAlert()
1057 int BandwidthController::removeCostlyAlert(const char *costName, int64_t *alertBytes) { in removeCostlyAlert()
1096 int BandwidthController::parseForwardChainStats(SocketClient *cli, const TetherStats filter, in parseForwardChainStats()
1197 char *BandwidthController::TetherStats::getStatsLine(void) const { in getStatsLine()
1204 int BandwidthController::getTetherStats(SocketClient *cli, TetherStats &stats, std::string &extraPr… in getTetherStats()
1232 void BandwidthController::flushExistingCostlyTables(bool doClean) { in flushExistingCostlyTables()
1249 void BandwidthController::parseAndFlushCostlyTables(FILE *fp, bool doRemove) { in parseAndFlushCostlyTables()