/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 231 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/ |
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 | ActiveModeWardenTest.java | 160 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()
|
D | WifiServiceImplTest.java | 1949 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/ |
D | LocationAccessPolicy.java | 309 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/ |
D | NetworkScorerAppManager.java | 213 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/ |
D | ActiveModeWarden.java | 588 return mWifiPermissionsUtil.isLocationModeEnabled() in checkScanOnlyModeAvailable() 650 boolean isLocationModeActive = mWifiPermissionsUtil.isLocationModeEnabled(); in start()
|
D | WifiServiceImpl.java | 1749 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in startLocalOnlyHotspot()
|
D | ClientModeImpl.java | 5814 if (config != null && config.SSID != null && mWifiPermissionsUtil.isLocationModeEnabled()) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttServiceImpl.java | 292 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/ |
D | WifiPermissionsUtilTest.java | 1229 assertFalse(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting() 1234 assertTrue(codeUnderTest.isLocationModeEnabled()); in testIsLocationEnabledFallbackToLegacySetting()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 212 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/ |
D | WifiAwareStateManagerTest.java | 162 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp() 3798 private void simulateLocationModeChange(boolean isLocationModeEnabled) { in simulateLocationModeChange() argument 3799 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(isLocationModeEnabled); in simulateLocationModeChange()
|
D | WifiAwareDataPathStateManagerTest.java | 163 when(mWifiPermissionsUtil.isLocationModeEnabled()).thenReturn(true); in setUp()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareStateManager.java | 439 if (wifiPermissionsUtil.isLocationModeEnabled()) { in start() 705 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in enableUsage()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 232 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/ |
D | WifiP2pServiceImpl.java | 863 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in P2pStateMachine() 3095 if (!mWifiPermissionsUtil.isLocationModeEnabled()) { in sendBroadcastMultiplePermissions()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 18719 HSPLandroid/telephony/LocationAccessPolicy;->isLocationModeEnabled(Landroid/content/Context;I)Z
|
/frameworks/base/services/ |
D | art-profile | 2801 PLcom/android/server/NetworkScorerAppManager;->isLocationModeEnabled()Z
|