Home
last modified time | relevance | path

Searched refs:isLocationModeEnabled (Results 1 – 19 of 19) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java231 if (!isLocationModeEnabled()) { in enforceCanAccessScanResults()
277 if (!isLocationModeEnabled()) { in enforceCanAccessScanResultsForWifiScanner()
324 if (needLocationModeEnabled && !isLocationModeEnabled()) { in checkCanAccessWifiDirect()
414 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in WifiPermissionsUtil
/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java151 if (!isLocationModeEnabled()) { in checkLocationPermissionInternal()
208 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in LocationPermissionChecker
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java160 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
254 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in enterScanOnlyModeActiveState()
306 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in enterStaDisabledMode()
1078 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testDoesNotEnterScanModeWhenLocationModeDisabled()
1100 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testEnterScanModeWhenLocationModeEnabled()
1115 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testEnterScanModeWhenLocationModeEnabled()
1131 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testExitScanModeWhenLocationModeDisabled()
1148 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testExitScanModeWhenLocationModeDisabled()
2043 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in staDisabled_toggleWifiOff_scanNotAvailable_dontGoToScanMode()
2065 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in staDisabled_toggleWifiOff_scanAvailable_goToScanMode()
DWifiServiceImplTest.java1949 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setupLohsPermissions()
2006 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationEnabled()
2016 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotFailsIfRequestorNotForegroundApp()
2078 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenAlreadyTethering()
2091 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenTetheringDisallowed()
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java309 if (!isLocationModeEnabled(context, UserHandle.getUserHandleForUid(uid).getIdentifier())) { in checkSystemLocationAccess()
318 private static boolean isLocationModeEnabled(@NonNull Context context, @UserIdInt int userId) { in isLocationModeEnabled() method in LocationAccessPolicy
/frameworks/base/services/core/java/com/android/server/
DNetworkScorerAppManager.java213 return isLocationModeEnabled() && PermissionChecker.checkPermissionForPreflight(mContext, in canAccessLocation()
218 private boolean isLocationModeEnabled() { in isLocationModeEnabled() method in NetworkScorerAppManager
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java588 return mWifiPermissionsUtil.isLocationModeEnabled() in checkScanOnlyModeAvailable()
650 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start()
DWifiServiceImpl.java1749 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in startLocalOnlyHotspot()
DClientModeImpl.java5814 if (config != null && config.SSID != null && mWifiPermissionsUtil.isLocationModeEnabled()) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java292 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in start()
377 && mWifiPermissionsUtil.isLocationModeEnabled(); in isAvailable()
1064 && mWifiPermissionsUtil.isLocationModeEnabled(); in onRangingResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1229 assertFalse(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
1234 assertTrue(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java212 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
1380 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(false); in runDisableRttFlow()
1408 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in runDisableRttFlow()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java162 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
3798 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument
3799 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
DWifiAwareDataPathStateManagerTest.java163 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java439 if (wifiPermissionsUtil.isLocationModeEnabled()) { in start()
705 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java232 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument
233 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java863 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in P2pStateMachine()
3095 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in sendBroadcastMultiplePermissions()
/frameworks/base/config/
Dboot-image-profile.txt18719 HSPLandroid/telephony/LocationAccessPolicy;->isLocationModeEnabled(Landroid/content/Context;I)Z
/frameworks/base/services/
Dart-profile2801 PLcom/android/server/NetworkScorerAppManager;->isLocationModeEnabled()Z