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.java577 assertEquals(hasPermission, mPermissionMonitor.hasUseBackgroundNetworksPermission(uid)); in assertBackgroundPermission()
581 mPermissionMonitor.hasUseBackgroundNetworksPermission(sdkSandboxUid)); in assertBackgroundPermission()
587 assertFalse(mPermissionMonitor.hasUseBackgroundNetworksPermission(SYSTEM_UID)); in testHasUseBackgroundNetworksPermission()
593 assertFalse(mPermissionMonitor.hasUseBackgroundNetworksPermission(MOCK_UID11)); in testHasUseBackgroundNetworksPermission()
598 assertFalse(mPermissionMonitor.hasUseBackgroundNetworksPermission(MOCK_UID12)); in testHasUseBackgroundNetworksPermission()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java536 public synchronized boolean hasUseBackgroundNetworksPermission(final int uid) { in hasUseBackgroundNetworksPermission() method in PermissionMonitor
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java3131 if (!mPermissionMonitor.hasUseBackgroundNetworksPermission(mDeps.getCallingUid())) {
7001 return mPermissionMonitor.hasUseBackgroundNetworksPermission(uid);