Home
last modified time | relevance | path

Searched refs:locationManager (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/apps/
DMapsEnterPipTest.kt71 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/
DExternalSharedPermsFLTest.java33 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/
DExternalSharedPermsTest.java38 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/
DExternalSharedPermsDiffKeyTest.java36 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/
DGnssTimeUpdateService.java76 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/
DPrivacyDialogController.kt66 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()
DPrivacyDialogControllerV2.kt69 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/
DLocationAccessPolicy.java371 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/
DGnssLocationProvider.java563 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/
DLocationControllerImpl.java191 LocationManager locationManager = in isLocationEnabled() local
193 return mBootCompleteCache.isBootComplete() && locationManager.isLocationEnabledForUser( in isLocationEnabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DPrivacyDialogControllerTest.kt90 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>()
DPrivacyDialogControllerV2Test.kt90 @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/
DTelephonyCountryDetector.java185 @NonNull LocationManager locationManager, in TelephonyCountryDetector() argument
188 mLocationManager = locationManager; in TelephonyCountryDetector()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java201 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/
DTelephonyCountryDetectorTest.java360 LocationManager locationManager, ConnectivityManager connectivityManager) { in TestTelephonyCountryDetector() argument
361 super(looper, context, locationManager, connectivityManager); in TestTelephonyCountryDetector()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java157 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/
DMockSystemServices.java143 public final LocationManager locationManager; field in MockSystemServices
201 locationManager = mock(LocationManager.class); in MockSystemServices()
DDpmMockContext.java249 return mMockSystemServices.locationManager; in getSystemService()
DDevicePolicyManagerTest.java8522 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/
DUtils.java111 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/
DDeviceIdleController.java3921 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()