Home
last modified time | relevance | path

Searched refs:UID_RULES_CONFIGURATION_KEY (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStackBpfNetMapsTest.kt27 import android.net.BpfNetMapsConstants.UID_RULES_CONFIGURATION_KEY
79 UID_RULES_CONFIGURATION_KEY, in getConfigurationMap()
83 testConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, U32(0)) in getConfigurationMap()
123 val config = testConfigurationMap.getValue(UID_RULES_CONFIGURATION_KEY).`val` in mockChainEnabled()
129 testConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, U32(newConfig)) in mockChainEnabled()
144 testConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, U32(0)) in isUidNetworkingBlocked()
165 testConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, U32(0)) in testIsUidNetworkingBlockedByFirewallChains_denyChain()
181 testConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, U32(0)) in testIsUidNetworkingBlockedByFirewallChains_blockedWithAllowed()
193 testConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, U32(0)) in testIsUidNetworkingBlockedByDataSaver()
258 testConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, U32(0)) in testIsUidNetworkingBlocked_SystemUid()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java40 import static android.net.BpfNetMapsConstants.UID_RULES_CONFIGURATION_KEY;
180 mConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, new U32(0)); in setUp()
212 mConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, new U32(getMatch(enableChains))); in doTestIsChainEnabled()
278 assertEquals(0, mConfigurationMap.getValue(UID_RULES_CONFIGURATION_KEY).val); in doTestSetChildChain()
283 assertEquals(expectedMatch, mConfigurationMap.getValue(UID_RULES_CONFIGURATION_KEY).val); in doTestSetChildChain()
288 assertEquals(0, mConfigurationMap.getValue(UID_RULES_CONFIGURATION_KEY).val); in doTestSetChildChain()
298 mConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, new U32(0)); in testSetChildChain()
312 mConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, new U32(0)); in testSetChildChainMultipleChain()
1025 mConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, new U32(match)); in doTestDumpOwnerMatchConfig()
1186 mConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, new U32(configurationMatches)); in doTestGetUidNetworkingBlockedReasons()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DBpfNetMapsUtils.java39 import static android.net.BpfNetMapsConstants.UID_RULES_CONFIGURATION_KEY;
218 final U32 config = configurationMap.getValue(UID_RULES_CONFIGURATION_KEY); in isChainEnabled()
267 uidRuleConfig = configurationMap.getValue(UID_RULES_CONFIGURATION_KEY).val; in getUidNetworkingBlockedReasons()
DBpfNetMapsConstants.java63 public static final Struct.S32 UID_RULES_CONFIGURATION_KEY = new Struct.S32(0); field in BpfNetMapsConstants
/packages/modules/Connectivity/DnsResolver/
DDnsBpfHelperTest.cpp123 EXPECT_RESULT_OK(mFakeConfigurationMap.writeValue(UID_RULES_CONFIGURATION_KEY, in TEST_F()
195 EXPECT_RESULT_OK(mFakeConfigurationMap.writeValue(UID_RULES_CONFIGURATION_KEY, in TEST_F()
DDnsBpfHelper.cpp55 auto enabledRules = mConfigurationMap.readValue(UID_RULES_CONFIGURATION_KEY); in isUidNetworkingBlocked()
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java31 import static android.net.BpfNetMapsConstants.UID_RULES_CONFIGURATION_KEY;
256 sConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, in initBpfMaps()
467 final U32 config = sConfigurationMap.getValue(UID_RULES_CONFIGURATION_KEY); in setChildChain()
469 sConfigurationMap.updateEntry(UID_RULES_CONFIGURATION_KEY, new U32(newConfig)); in setChildChain()
1001 final long match = sConfigurationMap.getValue(UID_RULES_CONFIGURATION_KEY).val; in dumpOwnerMatchConfig()
/packages/modules/Connectivity/bpf_progs/
Dnetd.h247 #define UID_RULES_CONFIGURATION_KEY 0 macro
Dnetd.c416 BpfConfig enabledRules = getConfig(UID_RULES_CONFIGURATION_KEY); in bpf_owner_match()
/packages/modules/Connectivity/tests/native/utilities/
Dfirewall.cpp45 uint32_t key = UID_RULES_CONFIGURATION_KEY; in toggleStandbyMatch()