Lines Matching refs:rule
521 Status TrafficController::updateOwnerMapEntry(UidOwnerMatchType match, uid_t uid, FirewallRule rule, in updateOwnerMapEntry() argument
524 if ((rule == ALLOW && type == ALLOWLIST) || (rule == DENY && type == DENYLIST)) { in updateOwnerMapEntry()
526 } else if ((rule == ALLOW && type == DENYLIST) || (rule == DENY && type == ALLOWLIST)) { in updateOwnerMapEntry()
551 .rule = static_cast<uint8_t>(oldMatch.value().rule & ~match), in removeRule()
553 if (newMatch.rule == 0) { in removeRule()
575 .rule = static_cast<uint8_t>(oldMatch.value().rule | match), in addRule()
581 .rule = static_cast<uint8_t>(match), in addRule()
617 int TrafficController::changeUidOwnerRule(ChildChain chain, uid_t uid, FirewallRule rule, in changeUidOwnerRule() argument
626 res = updateOwnerMapEntry(DOZABLE_MATCH, uid, rule, type); in changeUidOwnerRule()
629 res = updateOwnerMapEntry(STANDBY_MATCH, uid, rule, type); in changeUidOwnerRule()
632 res = updateOwnerMapEntry(POWERSAVE_MATCH, uid, rule, type); in changeUidOwnerRule()
640 res.msg().c_str(), rule, type); in changeUidOwnerRule()
1075 if (value.rule & IIF_MATCH) { in dump()
1078 dw.println("%u %s %s", key, uidMatchTypeToString(value.rule).c_str(), in dump()
1081 dw.println("%u %s %u", key, uidMatchTypeToString(value.rule).c_str(), value.iif); in dump()
1084 dw.println("%u %s", key, uidMatchTypeToString(value.rule).c_str()); in dump()