/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | LocationPermissionChecker.java | 166 if (!isLocationModeEnabled()) { in checkLocationPermissionInternal() 224 public boolean isLocationModeEnabled() { in isLocationModeEnabled() method in LocationPermissionChecker
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 301 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/ |
D | ActiveModeWardenTest.java | 244 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 …]
|
D | WifiServiceImplTest.java | 3542 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 …]
|
D | WakeupControllerTest.java | 144 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp() 273 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(false); in verifyDisabledWhenLocationOff()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiPulledAtomLogger.java | 151 mWifiInjector.getWifiPermissionsUtil().isLocationModeEnabled())); in handleWifiSettingsPull()
|
D | WakeupController.java | 243 && mWifiPermissionsUtil.isLocationModeEnabled(); in isUsable()
|
D | ActiveModeWarden.java | 1939 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start() 2245 return (mWifiPermissionsUtil.isLocationModeEnabled() in shouldEnableScanOnlyMode()
|
D | WifiServiceImpl.java | 748 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/ |
D | RttServiceImpl.java | 355 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/ |
D | RttServiceImplTest.java | 234 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/ |
D | WifiPermissionsUtilTest.java | 1498 assertFalse(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting() 1503 assertTrue(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 375 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/ |
D | WifiP2pServiceImpl.java | 1538 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/ |
D | WifiAwareStateManagerTest.java | 245 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp() 5795 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument 5796 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
|
D | WifiAwareDataPathStateManagerTest.java | 213 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareStateManager.java | 747 if (mWifiPermissionsUtil.isLocationModeEnabled()) { in startLate() 1460 if (!SdkLevel.isAtLeastT() && !mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()
|