Home
last modified time | relevance | path

Searched refs:oldMatch (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/tests/native/utilities/
Dfirewall.cpp70 auto oldMatch = mUidOwnerMap.readValue(uid); in addRule() local
71 if (oldMatch.ok()) { in addRule()
73 .iif = iif ? iif : oldMatch.value().iif, in addRule()
74 .rule = oldMatch.value().rule | match, in addRule()
91 auto oldMatch = mUidOwnerMap.readValue(uid); in removeRule() local
92 if (!oldMatch.ok()) return Errorf("uid: %u does not exist in map", uid); in removeRule()
95 .iif = (match == IIF_MATCH) ? 0 : oldMatch.value().iif, in removeRule()
96 .rule = oldMatch.value().rule & ~match, in removeRule()
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java393 final UidOwnerValue oldMatch = sUidOwnerMap.getValue(new S32(uid)); in removeRule() local
395 if (oldMatch == null) { in removeRule()
401 (match == IIF_MATCH) ? 0 : oldMatch.iif, in removeRule()
402 oldMatch.rule & ~match in removeRule()
425 final UidOwnerValue oldMatch = sUidOwnerMap.getValue(new S32(uid)); in addRule() local
428 if (oldMatch != null) { in addRule()
430 (match == IIF_MATCH) ? iif : oldMatch.iif, in addRule()
431 oldMatch.rule | match in addRule()