Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java439 assertEquals(hasPermission, mPermissionMonitor.hasUseBackgroundNetworksPermission(uid)); in assertBackgroundPermission()
444 assertFalse(mPermissionMonitor.hasUseBackgroundNetworksPermission(SYSTEM_UID)); in testHasUseBackgroundNetworksPermission()
450 assertFalse(mPermissionMonitor.hasUseBackgroundNetworksPermission(MOCK_UID1)); in testHasUseBackgroundNetworksPermission()
455 assertFalse(mPermissionMonitor.hasUseBackgroundNetworksPermission(MOCK_UID2)); in testHasUseBackgroundNetworksPermission()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java343 public synchronized boolean hasUseBackgroundNetworksPermission(final int uid) { in hasUseBackgroundNetworksPermission() method in PermissionMonitor
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java2275 if (!mPermissionMonitor.hasUseBackgroundNetworksPermission(mDeps.getCallingUid())) { in restrictBackgroundRequestForCaller()
5151 return mPermissionMonitor.hasUseBackgroundNetworksPermission(uid); in queryUserAccess()