Home
last modified time | relevance | path

Searched refs:getNetPermForUid (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSActiveNetworkInfoTest.kt57 doReturn(permissions).`when`(bpfNetMaps).getNetPermForUid(anyInt()) in nc()
DCSBlockedReasonsTest.kt363 doReturn(PERMISSION_NONE).`when`(bpfNetMaps).getNetPermForUid(Process.myUid()) in cellNc()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java856 assertEquals(PERMISSION_INTERNET, mBpfNetMaps.getNetPermForUid(TEST_UID)); in testGetNetPermFoUid()
859 assertEquals(PERMISSION_NONE, mBpfNetMaps.getNetPermForUid(TEST_UID)); in testGetNetPermFoUid()
864 mBpfNetMaps.getNetPermForUid(TEST_UID)); in testGetNetPermFoUid()
DConnectivityServiceTest.java1967 doReturn(PERMISSION_INTERNET).when(mBpfNetMaps).getNetPermForUid(anyInt()); in setUp()
9884 doReturn(INetd.PERMISSION_NONE).when(mBpfNetMaps).getNetPermForUid(Process.myUid());
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt230 doReturn(PERMISSION_INTERNET).`when`(it).getNetPermForUid(anyInt()) in getNetworkStack()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSTest.kt194 doReturn(PERMISSION_INTERNET).`when`(it).getNetPermForUid(anyInt()) in <lambda>()
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java820 public int getNetPermForUid(final int uid) { in getNetPermForUid() method in BpfNetMaps
DConnectivityService.java2328 return (mBpfNetMaps.getNetPermForUid(uid) & PERMISSION_INTERNET) != 0;