Searched refs:getNetPermForUid (Results 1 – 8 of 8) sorted by relevance
57 doReturn(permissions).`when`(bpfNetMaps).getNetPermForUid(anyInt()) in nc()
363 doReturn(PERMISSION_NONE).`when`(bpfNetMaps).getNetPermForUid(Process.myUid()) in cellNc()
856 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()
1967 doReturn(PERMISSION_INTERNET).when(mBpfNetMaps).getNetPermForUid(anyInt()); in setUp()9884 doReturn(INetd.PERMISSION_NONE).when(mBpfNetMaps).getNetPermForUid(Process.myUid());
230 doReturn(PERMISSION_INTERNET).`when`(it).getNetPermForUid(anyInt()) in getNetworkStack()
194 doReturn(PERMISSION_INTERNET).`when`(it).getNetPermForUid(anyInt()) in <lambda>()
820 public int getNetPermForUid(final int uid) { in getNetPermForUid() method in BpfNetMaps
2328 return (mBpfNetMaps.getNetPermForUid(uid) & PERMISSION_INTERNET) != 0;