Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLocationPermissionChecker.java166 if (!isLocationModeEnabled()) { in checkLocationPermissionInternal()
224 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in LocationPermissionChecker
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java301 if (!isLocationModeEnabled()) { in enforceNearbyDevicesPermission()
581 if (!isLocationModeEnabled()) { in enforceCanAccessScanResults()
652 if (!isLocationModeEnabled()) { in enforceCanAccessScanResultsForWifiScanner()
699 if (needLocationModeEnabled && !isLocationModeEnabled()) { in checkCanAccessWifiDirect()
779 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in WifiPermissionsUtil
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java244 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
425 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in enterScanOnlyModeActiveState()
507 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in enterStaDisabledMode()
816 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testSwitchFromConnectModeToScanOnlyModeRemovesAdditionalCMMs()
1476 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testDoesNotEnterScanModeWhenLocationModeDisabled()
1498 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testEnterScanModeWhenLocationModeEnabled()
1515 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testEnterScanModeWhenLocationModeEnabled()
1647 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testExitScanModeWhenLocationModeDisabled()
1666 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testExitScanModeWhenLocationModeDisabled()
2856 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in staDisabled_toggleWifiOff_scanNotAvailable_dontGoToScanMode()
[all …]
DWifiServiceImplTest.java3542 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setupLohsPermissions()
3621 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotDoesNotCheckNearbyPermissionIfTargetPreT()
3636 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutLocationEnabled()
3646 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testStartLocalOnlyHotspotFailsIfRequestorNotForegroundApp()
3754 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenAlreadyTethering()
3767 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testHotspotDoesNotStartWhenTetheringDisallowed()
5593 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToNewNetwork_success()
5630 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToNewNetwork_failure()
5649 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToExistingNetwork()
5673 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in connectToSimBasedNetworkWhenSimPresent()
[all …]
DWakeupControllerTest.java144 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
273 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in verifyDisabledWhenLocationOff()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiPulledAtomLogger.java151 mWifiInjector.getWifiPermissionsUtil().isLocationModeEnabled())); in handleWifiSettingsPull()
DWakeupController.java243 && mWifiPermissionsUtil.isLocationModeEnabled(); in isUsable()
DActiveModeWarden.java1939 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start()
2245 return (mWifiPermissionsUtil.isLocationModeEnabled() in shouldEnableScanOnlyMode()
DWifiServiceImpl.java748 mIsLocationModeEnabled = mWifiPermissionsUtil.isLocationModeEnabled(); in updateLocationMode()
2754 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in startLocalOnlyHotspot()
6670 if (config != null && config.SSID != null && mWifiPermissionsUtil.isLocationModeEnabled()) {
7542 if (!mWifiPermissionsUtil.isLocationModeEnabled()) {
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java355 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in start()
458 && mWifiPermissionsUtil.isLocationModeEnabled(); in isAvailable()
1260 null) && mWifiPermissionsUtil.isLocationModeEnabled(); in onRangingResults()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java234 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
1515 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(false); in runDisableRttFlow()
1546 when(mockPermissionUtil.isLocationModeEnabled()).thenReturn(true); in runDisableRttFlow()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1498 assertFalse(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
1503 assertTrue(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java375 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument
376 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
1284 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in checkSendThisDeviceChangedBroadcast()
1317 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in checkSendThisDeviceChangedBroadcast()
1547 verify(mWifiPermissionsUtil, never()).isLocationModeEnabled(); in setUpWifiP2pServiceImpl()
7945 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in testSendP2pConnectionChangedBroadcast()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java1538 if (!mWifiPermissionsUtil.isLocationModeEnabled() in P2pStateMachine()
5738 boolean isLocationModeEnabled = mWifiPermissionsUtil.isLocationModeEnabled(); in sendBroadcastWithExcludedPermissions()
5739 String[] permissions = isLocationModeEnabled ? RECEIVER_PERMISSIONS_FOR_BROADCAST in sendBroadcastWithExcludedPermissions()
5758 if (isLocationModeEnabled) { in sendBroadcastWithExcludedPermissions()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java245 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
5795 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument
5796 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
DWifiAwareDataPathStateManagerTest.java213 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java747 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in startLate()
1460 if (!SdkLevel.isAtLeastT() && !mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()