/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/apps/ |
D | MapsEnterPipTest.kt | 71 val locationManager: LocationManager = constant 87 locationManager.setTestProviderLocation(LocationManager.GPS_PROVIDER, location) in run() 94 locationManager.addTestProvider( in <lambda>() 106 locationManager.setTestProviderEnabled(LocationManager.GPS_PROVIDER, true) in <lambda>() 134 locationManager.removeTestProvider(LocationManager.GPS_PROVIDER) in <lambda>()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/ |
D | ExternalSharedPermsFLTest.java | 33 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunFineLocation() local 35 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunFineLocation()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/ |
D | ExternalSharedPermsTest.java | 38 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunLocationAndBluetooth() local 40 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunLocationAndBluetooth()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/ |
D | ExternalSharedPermsDiffKeyTest.java | 36 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunBluetoothAndFineLocation() local 38 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunBluetoothAndFineLocation()
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | GnssTimeUpdateService.java | 76 LocationManager locationManager = context.getSystemService(LocationManager.class); in onStart() local 82 mService = new GnssTimeUpdateService(context, alarmManager, locationManager, in onStart() 129 @NonNull LocationManager locationManager, in GnssTimeUpdateService() argument 134 mLocationManager = Objects.requireNonNull(locationManager); in GnssTimeUpdateService()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
D | PrivacyDialogController.kt | 66 private val locationManager: LocationManager, constant in com.android.systemui.privacy.PrivacyDialogController 83 locationManager: LocationManager, 96 locationManager, 164 locationManager.isProviderPackage(null, packageName, attributionTag.toString())) { in getManagePermissionIntent()
|
D | PrivacyDialogControllerV2.kt | 69 private val locationManager: LocationManager, constant in com.android.systemui.privacy.PrivacyDialogControllerV2 87 locationManager: LocationManager, 101 locationManager, 183 locationManager.isProviderPackage(null, packageName, attributionTag.toString()) in getStartViewPermissionUsageIntent()
|
/frameworks/base/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 371 LocationManager locationManager = context.getSystemService(LocationManager.class); in isLocationModeEnabled() local 372 if (locationManager == null) { in isLocationModeEnabled() 376 return locationManager.isLocationEnabledForUser(UserHandle.of(userId)); in isLocationModeEnabled()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssLocationProvider.java | 563 LocationManager locationManager = Objects.requireNonNull( in handleInitialize() local 565 if (locationManager.getAllProviders().contains(LocationManager.NETWORK_PROVIDER)) { in handleInitialize() 566 locationManager.requestLocationUpdates( in handleInitialize() 698 LocationManager locationManager = (LocationManager) mContext.getSystemService( in handleRequestLocation() local 736 if (locationManager.getProvider(provider) != null) { in handleRequestLocation() 737 locationManager.requestLocationUpdates(provider, locationRequest.build(), in handleRequestLocation() 954 LocationManager locationManager = mContext.getSystemService(LocationManager.class); in updateEnabled() local 958 enabled |= locationManager.isLocationEnabledForUser(visibleUserHandle); in updateEnabled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 191 LocationManager locationManager = in isLocationEnabled() local 193 return mBootCompleteCache.isBootComplete() && locationManager.isLocationEnabledForUser( in isLocationEnabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyDialogControllerTest.kt | 90 private lateinit var locationManager: LocationManager in <lambda>() variable in com.android.systemui.privacy.PrivacyDialogControllerTest 141 locationManager, in <lambda>() 667 `when`(locationManager.isProviderPackage(null, TEST_PACKAGE_NAME, TEST_ATTRIBUTION_TAG)) in <lambda>() 696 `when`(locationManager.isProviderPackage(null, TEST_PACKAGE_NAME, TEST_ATTRIBUTION_TAG)) in <lambda>()
|
D | PrivacyDialogControllerV2Test.kt | 90 @Mock private lateinit var locationManager: LocationManager in <lambda>() variable in com.android.systemui.privacy.PrivacyDialogControllerV2Test 141 locationManager, in <lambda>() 675 `when`(locationManager.isProviderPackage(null, TEST_PACKAGE_NAME, TEST_ATTRIBUTION_TAG)) in <lambda>() 707 `when`(locationManager.isProviderPackage(null, TEST_PACKAGE_NAME, TEST_ATTRIBUTION_TAG)) in <lambda>()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | TelephonyCountryDetector.java | 185 @NonNull LocationManager locationManager, in TelephonyCountryDetector() argument 188 mLocationManager = locationManager; in TelephonyCountryDetector()
|
/frameworks/base/services/core/java/com/android/server/testharness/ |
D | TestHarnessModeService.java | 201 LocationManager locationManager = getContext().getSystemService(LocationManager.class); in configureUser() local 202 locationManager.setLocationEnabledForUser(true, UserHandle.of(mainUserId)); in configureUser()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyCountryDetectorTest.java | 360 LocationManager locationManager, ConnectivityManager connectivityManager) { in TestTelephonyCountryDetector() argument 361 super(looper, context, locationManager, connectivityManager); in TestTelephonyCountryDetector()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DeviceIdleControllerTest.java | 157 LocationManager locationManager; field in DeviceIdleControllerTest.InjectorForTest 197 return locationManager; in getLocationManager() 835 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_MissingMotionSensor() 974 mInjector.locationManager = null; in testStepIdleStateLocked_ValidStates_NoLocationManager() 1007 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_LocationPrefetchDisabled() 1077 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_MissingProviders() 1117 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders() 2690 mInjector.locationManager = mLocationManager; in enterDeepState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 143 public final LocationManager locationManager; field in MockSystemServices 201 locationManager = mock(LocationManager.class); in MockSystemServices()
|
D | DpmMockContext.java | 249 return mMockSystemServices.locationManager; in getSystemService()
|
D | DevicePolicyManagerTest.java | 8522 when(getServices().locationManager.isProviderEnabled(FUSED_PROVIDER)).thenReturn(true); in testSendLostModeLocationUpdate_asDeviceOwner() 8526 verify(getServices().locationManager, times(1)).getCurrentLocation( in testSendLostModeLocationUpdate_asDeviceOwner() 8538 when(getServices().locationManager.isProviderEnabled(FUSED_PROVIDER)).thenReturn(true); in testSendLostModeLocationUpdate_asProfileOwnerOfOrgOwnedDevice() 8542 verify(getServices().locationManager, times(1)).getCurrentLocation( in testSendLostModeLocationUpdate_asProfileOwnerOfOrgOwnedDevice() 8550 when(getServices().locationManager.isProviderEnabled(FUSED_PROVIDER)).thenReturn(false); in testSendLostModeLocationUpdate_noProviderIsEnabled() 8551 when(getServices().locationManager.isProviderEnabled(NETWORK_PROVIDER)).thenReturn(false); in testSendLostModeLocationUpdate_noProviderIsEnabled() 8552 when(getServices().locationManager.isProviderEnabled(GPS_PROVIDER)).thenReturn(false); in testSendLostModeLocationUpdate_noProviderIsEnabled() 8556 verify(getServices().locationManager, never()).getCurrentLocation( in testSendLostModeLocationUpdate_noProviderIsEnabled()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | Utils.java | 111 LocationManager locationManager = context.getSystemService(LocationManager.class); in updateLocationEnabled() local 112 locationManager.setLocationEnabledForUser(enabled, UserHandle.of(userId)); in updateLocationEnabled()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | DeviceIdleController.java | 3921 LocationManager locationManager = mInjector.getLocationManager(); in stepIdleStateLocked() local 3922 if (locationManager != null in stepIdleStateLocked() 3923 && locationManager.getProvider(LocationManager.FUSED_PROVIDER) in stepIdleStateLocked() 3926 locationManager.requestLocationUpdates(LocationManager.FUSED_PROVIDER, in stepIdleStateLocked() 3934 if (locationManager != null in stepIdleStateLocked() 3935 && locationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in stepIdleStateLocked() 3937 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, in stepIdleStateLocked() 4223 LocationManager locationManager = mInjector.getLocationManager(); in cancelLocatingLocked() local 4224 locationManager.removeUpdates(mGenericLocationListener); in cancelLocatingLocked() 4225 locationManager.removeUpdates(mGpsLocationListener); in cancelLocatingLocked()
|