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 = execIptablesRestoreWithOutput;
200 BandwidthController::BandwidthController(void) { in BandwidthController() function in BandwidthController
203 int BandwidthController::runIpxtablesCmd(const char *cmd, IptJumpOp jumpHandling, in runIpxtablesCmd()
213 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { in StrncpyAndCheck()
220 int BandwidthController::runIptablesCmd(const char *cmd, IptJumpOp jumpHandling, in runIptablesCmd()
261 void BandwidthController::flushCleanTables(bool doClean) { in flushCleanTables()
269 int BandwidthController::setupIptablesHooks(void) { in setupIptablesHooks()
275 int BandwidthController::enableBandwidthControl(bool force) { in enableBandwidthControl()
296 int BandwidthController::disableBandwidthControl(void) { in disableBandwidthControl()
302 int BandwidthController::enableDataSaver(bool enable) { in enableDataSaver()
310 int BandwidthController::runCommands(int numCommands, const char *commands[], in runCommands()
326 int BandwidthController::addNaughtyApps(int numUids, char *appUids[]) { in addNaughtyApps()
330 int BandwidthController::removeNaughtyApps(int numUids, char *appUids[]) { in removeNaughtyApps()
334 int BandwidthController::addNiceApps(int numUids, char *appUids[]) { in addNiceApps()
338 int BandwidthController::removeNiceApps(int numUids, char *appUids[]) { in removeNiceApps()
342 int BandwidthController::manipulateNaughtyApps(int numUids, char *appStrUids[], IptOp op) { in manipulateNaughtyApps()
346 int BandwidthController::manipulateNiceApps(int numUids, char *appStrUids[], IptOp op) { in manipulateNiceApps()
350 int BandwidthController::manipulateSpecialApps(int numUids, char *appStrUids[], in manipulateSpecialApps()
362 std::string BandwidthController::makeIptablesQuotaCmd(IptFullOp op, const char *costName, int64_t q… in makeIptablesQuotaCmd()
389 int BandwidthController::prepCostlyIface(const char *ifn, QuotaType quotaType) { in prepCostlyIface()
446 int BandwidthController::cleanupCostlyIface(const char *ifn, QuotaType quotaType) { in cleanupCostlyIface()
480 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { in setInterfaceSharedQuota()
549 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { in removeInterfaceSharedQuota()
589 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { in setInterfaceQuota()
660 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { in getInterfaceSharedQuota()
664 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { in getInterfaceQuota()
685 int BandwidthController::removeInterfaceQuota(const char *iface) { in removeInterfaceQuota()
718 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { in updateQuota()
739 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertCmd()
752 int BandwidthController::runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertFwdCmd()
761 int BandwidthController::setGlobalAlert(int64_t bytes) { in setGlobalAlert()
782 int BandwidthController::setGlobalAlertInForwardChain(void) { in setGlobalAlertInForwardChain()
803 int BandwidthController::removeGlobalAlert(void) { in removeGlobalAlert()
820 int BandwidthController::removeGlobalAlertInForwardChain(void) { in removeGlobalAlertInForwardChain()
844 int BandwidthController::setSharedAlert(int64_t bytes) { in setSharedAlert()
856 int BandwidthController::removeSharedAlert(void) { in removeSharedAlert()
860 int BandwidthController::setInterfaceAlert(const char *iface, int64_t bytes) { in setInterfaceAlert()
885 int BandwidthController::removeInterfaceAlert(const char *iface) { in removeInterfaceAlert()
906 int BandwidthController::setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) { in setCostlyAlert()
936 int BandwidthController::removeCostlyAlert(const char *costName, int64_t *alertBytes) { in removeCostlyAlert()
964 void BandwidthController::addStats(TetherStatsList& statsList, const TetherStats& stats) { in addStats()
991 int BandwidthController::addForwardChainStats(const TetherStats& filter, in addForwardChainStats()
1102 char *BandwidthController::TetherStats::getStatsLine(void) const { in getStatsLine()
1109 int BandwidthController::getTetherStats(SocketClient *cli, TetherStats& filter, in getTetherStats()
1143 void BandwidthController::flushExistingCostlyTables(bool doClean) { in flushExistingCostlyTables()
1156 void BandwidthController::parseAndFlushCostlyTables(const std::string& ruleList, bool doRemove) { in parseAndFlushCostlyTables()
1187 inline const char *BandwidthController::opToString(IptOp op) { in opToString()
1196 inline const char *BandwidthController::jumpToString(IptJumpOp jumpHandling) { in jumpToString()