/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 249 if (!isLocationModeEnabled()) { in enforceCanAccessScanResults() 294 if (!isLocationModeEnabled()) { in enforceCanAccessScanResultsForWifiScanner() 340 if (needLocationModeEnabled && !isLocationModeEnabled()) { in checkCanAccessWifiDirect() 438 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in WifiPermissionsUtil
|
/frameworks/base/core/java/com/android/internal/util/ |
D | LocationPermissionChecker.java | 151 if (!isLocationModeEnabled()) { in checkLocationPermissionInternal() 208 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in LocationPermissionChecker
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiControllerTest.java | 120 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp() 205 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testDoesNotEnterScanModeWhenLocationModeDisabled() 232 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testEnterScanModeWhenLocationModeEnabled() 250 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testEnterScanModeWhenLocationModeEnabled() 266 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testExitScanModeWhenLocationModeDisabled() 283 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testExitScanModeWhenLocationModeDisabled()
|
D | WifiServiceImplTest.java | 1537 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in registerLOHSRequestFull() 1586 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationEnabled() 1595 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotFailsIfRequestorNotForegroundApp() 1608 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotFailsIfInCryptDebounce() 1644 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenAlreadyTethering() 1658 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenTetheringDisallowed()
|
/frameworks/base/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 298 if (!isLocationModeEnabled(context, UserHandle.getUserId(uid))) { in checkSystemLocationAccess() 307 private static boolean isLocationModeEnabled(@NonNull Context context, @UserIdInt int userId) { in isLocationModeEnabled() method in LocationAccessPolicy
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScorerAppManager.java | 216 return isLocationModeEnabled() in canAccessLocation() 223 private boolean isLocationModeEnabled() { in isLocationModeEnabled() method in NetworkScorerAppManager
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiController.java | 141 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start() 185 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in checkScanOnlyModeAvailable()
|
D | WifiServiceImpl.java | 1450 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in startLocalOnlyHotspot()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttServiceImpl.java | 310 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in start() 403 && mWifiPermissionsUtil.isLocationModeEnabled(); in isAvailable() 1098 && mWifiPermissionsUtil.isLocationModeEnabled(); in onRangingResults()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 210 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in setUp() 1354 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(false); in runDisableRttFlow() 1382 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in runDisableRttFlow()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareStateManagerTest.java | 167 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp() 3532 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument 3533 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
|
D | WifiAwareDataPathStateManagerTest.java | 166 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 210 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument 211 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareStateManager.java | 435 if (wifiPermissionsUtil.isLocationModeEnabled()) { in start() 699 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 857 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in P2pStateMachine()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 68309 Landroid/telephony/LocationAccessPolicy;->isLocationModeEnabled(Landroid/content/Context;I)Z
|