Home
last modified time | relevance | path

Searched refs:mUidOwnerMap (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/tests/native/utilities/
Dfirewall.cpp28 result = mUidOwnerMap.init(UID_OWNER_MAP_PATH); in Firewall()
70 auto oldMatch = mUidOwnerMap.readValue(uid); in addRule()
76 auto res = mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY); in addRule()
83 auto res = mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY); in addRule()
91 auto oldMatch = mUidOwnerMap.readValue(uid); in removeRule()
99 auto res = mUidOwnerMap.deleteValue(uid); in removeRule()
102 auto res = mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY); in removeRule()
Dfirewall.h41 BpfMap<uint32_t, UidOwnerValue> mUidOwnerMap GUARDED_BY(mMutex);
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java164 private final IBpfMap<S32, UidOwnerValue> mUidOwnerMap = field in BpfNetMapsTest
183 BpfNetMaps.setUidOwnerMapForTest(mUidOwnerMap); in setUp()
343 final UidOwnerValue config = mUidOwnerMap.getValue(new S32(uid)); in checkUidOwnerValue()
355 mUidOwnerMap.updateEntry(new S32(TEST_UID), new UidOwnerValue(iif, match)); in doTestUpdateUidLockdownRule()
425 mUidOwnerMap.updateEntry(new S32(uid0), new UidOwnerValue(NO_IIF, match0)); in testAddUidInterfaceRulesWithOtherMatch()
426 mUidOwnerMap.updateEntry(new S32(uid1), new UidOwnerValue(NO_IIF, match1)); in testAddUidInterfaceRulesWithOtherMatch()
441 mUidOwnerMap.updateEntry(new S32(uid0), new UidOwnerValue(TEST_IF_INDEX + 1, match0)); in testAddUidInterfaceRulesWithExistingIifMatch()
442 mUidOwnerMap.updateEntry(new S32(uid1), new UidOwnerValue(NULL_IIF, match1)); in testAddUidInterfaceRulesWithExistingIifMatch()
465 mUidOwnerMap.updateEntry(new S32(uid0), new UidOwnerValue(TEST_IF_INDEX, match0)); in testAddUidInterfaceRulesWithNullInterface()
466 mUidOwnerMap.updateEntry(new S32(uid1), new UidOwnerValue(NULL_IIF, match1)); in testAddUidInterfaceRulesWithNullInterface()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DNetworkStackBpfNetMaps.java56 private final IBpfMap<S32, UidOwnerValue> mUidOwnerMap; field in NetworkStackBpfNetMaps
85 mUidOwnerMap = mDeps.getUidOwnerMap(); in NetworkStackBpfNetMaps()
150 return BpfNetMapsUtils.getUidRule(mUidOwnerMap, chain, uid); in getUidRule()
168 mConfigurationMap, mUidOwnerMap, mDataSaverEnabledMap); in isUidNetworkingBlocked()
/packages/modules/Connectivity/DnsResolver/
DDnsBpfHelper.cpp42 RETURN_IF_RESULT_NOT_OK(mUidOwnerMap.init(UID_OWNER_MAP_PATH)); in init()
49 if (!mConfigurationMap.isValid() || !mUidOwnerMap.isValid()) { in isUidNetworkingBlocked()
58 auto value = mUidOwnerMap.readValue(uid); in isUidNetworkingBlocked()
DDnsBpfHelperTest.cpp51 mDnsBpfHelper.mUidOwnerMap = mFakeUidOwnerMap; in SetUp()
52 ASSERT_VALID(mDnsBpfHelper.mUidOwnerMap); in SetUp()
59 mDnsBpfHelper.mUidOwnerMap.reset(); in ResetAllMaps()
DDnsBpfHelper.h38 android::bpf::BpfMapRO<uint32_t, UidOwnerValue> mUidOwnerMap; variable