Lines Matching refs:it

22  * If they ever were to allow it, then netd/ would need some tweaking.
69 * - when an interface is marked as costly it should be INSERTED into the INPUT/OUTPUT chains.
322 std::list<int /*uid*/>::iterator it;
348 for (it = naughtyAppUids.begin(); it != naughtyAppUids.end(); it++) {
349 if (*it == uid)
352 bool found = (it != naughtyAppUids.end());
359 naughtyAppUids.erase(it);
419 /* The "-N costly" is created upfront, no need to handle it here. */
426 * Flush the costly_<iface> is allowed to fail in case it didn't exist.
427 * Creating a new one is allowed to fail in case it existed.
491 /* The "-N costly_shared" is created upfront, no need to handle it here. */
509 std::list<std::string>::iterator it;
512 /* Don't talk about -1, deprecate it. */
527 for (it = sharedQuotaIfaces.begin(); it != sharedQuotaIfaces.end(); it++) {
528 if (*it == ifaceName)
532 if (it == sharedQuotaIfaces.end()) {
573 std::list<std::string>::iterator it;
582 for (it = sharedQuotaIfaces.begin(); it != sharedQuotaIfaces.end(); it++) {
583 if (*it == ifaceName)
586 if (it == sharedQuotaIfaces.end()) {
592 sharedQuotaIfaces.erase(it);
612 std::list<QuotaInfo>::iterator it;
616 /* Don't talk about -1, deprecate it. */
632 for (it = quotaIfaces.begin(); it != quotaIfaces.end(); it++) {
633 if (it->ifaceName == ifaceName)
637 if (it == quotaIfaces.end()) {
654 it->quota = maxBytes;
697 std::list<QuotaInfo>::iterator it;
706 for (it = quotaIfaces.begin(); it != quotaIfaces.end(); it++) {
707 if (it->ifaceName == ifaceName)
711 if (it == quotaIfaces.end()) {
719 quotaIfaces.erase(it);
899 std::list<QuotaInfo>::iterator it;
905 for (it = quotaIfaces.begin(); it != quotaIfaces.end(); it++) {
906 if (it->ifaceName == iface)
910 if (it == quotaIfaces.end()) {
915 return setCostlyAlert(iface, bytes, &it->alert);
919 std::list<QuotaInfo>::iterator it;
921 for (it = quotaIfaces.begin(); it != quotaIfaces.end(); it++) {
922 if (it->ifaceName == iface)
926 if (it == quotaIfaces.end()) {
931 return removeCostlyAlert(iface, &it->alert);