Home
last modified time | relevance | path

Searched refs:mPermissionMonitor (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java121 private PermissionMonitor mPermissionMonitor; field in PermissionMonitorTest
134 mPermissionMonitor = spy(new PermissionMonitor(mContext, mNetdService)); in setUp()
141 mPermissionMonitor.startMonitoring(); in setUp()
155 return mPermissionMonitor.hasRestrictedNetworkPermission(packageInfo); in hasRestrictedNetworkPermission()
209 assertFalse(mPermissionMonitor.hasPermission(app, CHANGE_NETWORK_STATE)); in testHasPermission()
210 assertFalse(mPermissionMonitor.hasPermission(app, NETWORK_STACK)); in testHasPermission()
211 assertFalse(mPermissionMonitor.hasPermission(app, CONNECTIVITY_USE_RESTRICTED_NETWORKS)); in testHasPermission()
212 assertFalse(mPermissionMonitor.hasPermission(app, CONNECTIVITY_INTERNAL)); in testHasPermission()
215 assertTrue(mPermissionMonitor.hasPermission(app, CHANGE_NETWORK_STATE)); in testHasPermission()
216 assertTrue(mPermissionMonitor.hasPermission(app, NETWORK_STACK)); in testHasPermission()
[all …]
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java305 protected final PermissionMonitor mPermissionMonitor; field in ConnectivityService
1105 mPermissionMonitor = new PermissionMonitor(mContext, mNetd); in ConnectivityService()
1758 if (!mPermissionMonitor.hasUseBackgroundNetworksPermission(Binder.getCallingUid())) { in restrictBackgroundRequestForCaller()
2305 mPermissionMonitor.startMonitoring(); in systemReady()
2639 mPermissionMonitor.dump(pw); in doDump()
5125 mPermissionMonitor.onUserAdded(userId); in onUserAdded()
5139 mPermissionMonitor.onUserRemoved(userId); in onUserRemoved()
5157 mPermissionMonitor.onPackageAdded(packageName, uid); in onPackageAdded()
5185 mPermissionMonitor.onPackageRemoved(uid); in onPackageRemoved()
6229 mPermissionMonitor.onVpnUidRangesRemoved(oldIface, ranges, vpnAppUid); in updateVpnFiltering()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2181 mService.mPermissionMonitor.onPackageAdded(testPackageName, uid); in grantUsingBackgroundNetworksPermissionForUid()
6666 assertTrue(mService.mPermissionMonitor.getVpnUidRanges("tun0").equals(vpnRange)); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6674 assertNull(mService.mPermissionMonitor.getVpnUidRanges("tun0")); in testFullyRoutedVpnResultsInInterfaceFilteringRules()