Searched refs:mPermissionMonitor (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 120 private PermissionMonitor mPermissionMonitor; field in PermissionMonitorTest 133 mPermissionMonitor = spy(new PermissionMonitor(mContext, mNetdService)); in setUp() 140 mPermissionMonitor.startMonitoring(); in setUp() 156 return mPermissionMonitor.hasUseBackgroundNetworksPermission(uid); in hasBgPermission() 207 assertFalse(mPermissionMonitor.hasPermission(app, CHANGE_NETWORK_STATE)); in testHasPermission() 208 assertFalse(mPermissionMonitor.hasPermission(app, NETWORK_STACK)); in testHasPermission() 209 assertFalse(mPermissionMonitor.hasPermission(app, CONNECTIVITY_USE_RESTRICTED_NETWORKS)); in testHasPermission() 210 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/ |
D | ConnectivityService.java | 285 protected final PermissionMonitor mPermissionMonitor; field in ConnectivityService 972 mPermissionMonitor = new PermissionMonitor(mContext, mNetd); in ConnectivityService() 1591 if (!mPermissionMonitor.hasUseBackgroundNetworksPermission(Binder.getCallingUid())) { in restrictBackgroundRequestForCaller() 2132 mPermissionMonitor.startMonitoring(); in systemReady() 2458 mPermissionMonitor.dump(pw); in doDump() 4805 mPermissionMonitor.onUserAdded(userId); in onUserAdded() 4819 mPermissionMonitor.onUserRemoved(userId); in onUserRemoved() 4837 mPermissionMonitor.onPackageAdded(packageName, uid); in onPackageAdded() 4865 mPermissionMonitor.onPackageRemoved(uid); in onPackageRemoved() 5719 mPermissionMonitor.onVpnUidRangesRemoved(oldIface, ranges, vpnAppUid); in updateVpnFiltering() [all …]
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 6392 assertTrue(mService.mPermissionMonitor.getVpnUidRanges("tun0").equals(vpnRange)); in testFullyRoutedVpnResultsInInterfaceFilteringRules() 6400 assertNull(mService.mPermissionMonitor.getVpnUidRanges("tun0")); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
|