Lines Matching refs:rule
433 FirewallRule rule, FirewallType type) { in updateOwnerMapEntry() argument
438 if ((rule == ALLOW && type == WHITELIST) || (rule == DENY && type == BLACKLIST)) { in updateOwnerMapEntry()
441 } else if ((rule == ALLOW && type == BLACKLIST) || (rule == DENY && type == WHITELIST)) { in updateOwnerMapEntry()
450 int TrafficController::changeUidOwnerRule(ChildChain chain, uid_t uid, FirewallRule rule, in changeUidOwnerRule() argument
460 res = updateOwnerMapEntry(mDozableUidMap, uid, rule, type); in changeUidOwnerRule()
463 res = updateOwnerMapEntry(mStandbyUidMap, uid, rule, type); in changeUidOwnerRule()
466 res = updateOwnerMapEntry(mPowerSaveUidMap, uid, rule, type); in changeUidOwnerRule()
474 res.msg().c_str(), rule, type); in changeUidOwnerRule()
481 const std::vector<int32_t>& uids, FirewallRule rule, in replaceUidsInMap() argument
499 RETURN_IF_NOT_OK(updateOwnerMapEntry(map, uid, rule, type)); in replaceUidsInMap()
507 FirewallRule rule; in replaceUidOwnerMap() local
511 rule = ALLOW; in replaceUidOwnerMap()
514 rule = DENY; in replaceUidOwnerMap()
518 res = replaceUidsInMap(mDozableUidMap, uids, rule, type); in replaceUidOwnerMap()
520 res = replaceUidsInMap(mStandbyUidMap, uids, rule, type); in replaceUidOwnerMap()
522 res = replaceUidsInMap(mPowerSaveUidMap, uids, rule, type); in replaceUidOwnerMap()