Searched refs:hasUseBackgroundNetworksPermission (Results 1 – 3 of 3) sorted by relevance
439 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()
343 public synchronized boolean hasUseBackgroundNetworksPermission(final int uid) { in hasUseBackgroundNetworksPermission() method in PermissionMonitor
2275 if (!mPermissionMonitor.hasUseBackgroundNetworksPermission(mDeps.getCallingUid())) { in restrictBackgroundRequestForCaller()5151 return mPermissionMonitor.hasUseBackgroundNetworksPermission(uid); in queryUserAccess()