Home
last modified time | relevance | path

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

/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/location/java/android/location/
DBatchedLocationCallbackTransport.java35 public BatchedLocationCallbackTransport(Context context, ILocationManager locationManager) { in BatchedLocationCallbackTransport() argument
37 mLocationManager = locationManager; in BatchedLocationCallbackTransport()
DGnssNavigationMessageCallbackTransport.java35 ILocationManager locationManager) { in GnssNavigationMessageCallbackTransport() argument
37 mLocationManager = locationManager; in GnssNavigationMessageCallbackTransport()
DGnssMeasurementCallbackTransport.java36 public GnssMeasurementCallbackTransport(Context context, ILocationManager locationManager) { in GnssMeasurementCallbackTransport() argument
38 mLocationManager = locationManager; in GnssMeasurementCallbackTransport()
/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/telephony/java/android/telephony/
DLocationAccessPolicy.java293 LocationManager locationManager = context.getSystemService(LocationManager.class); in isLocationModeEnabled() local
294 if (locationManager == null) { in isLocationModeEnabled()
298 return locationManager.isLocationEnabledForUser(UserHandle.of(userId)); in isLocationModeEnabled()
/frameworks/base/core/java/com/android/internal/app/
DNetInitiatedActivity.java140 LocationManager locationManager = (LocationManager) in sendUserResponse() local
142 locationManager.sendNiResponse(notificationId, response); in sendUserResponse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java129 LocationManager locationManager = in isLocationEnabled() local
131 return locationManager.isLocationEnabledForUser( in isLocationEnabled()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java59 LocationManager locationManager = context.getSystemService(LocationManager.class); in updateLocationEnabled() local
66 final int oldMode = locationManager.isLocationEnabled() in updateLocationEnabled()
77 locationManager.setLocationEnabledForUser(enabled, UserHandle.of(userId)); in updateLocationEnabled()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java188 LocationManager locationManager = getContext().getSystemService(LocationManager.class); in configureUser() local
189 locationManager.setLocationEnabledForUser(true, primaryUser.getUserHandle()); in configureUser()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java129 LocationManager locationManager; field in DeviceIdleControllerTest.InjectorForTest
159 return locationManager; in getLocationManager()
642 mInjector.locationManager = null; in testStepIdleStateLocked_ValidStates_NoLocationManager()
708 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders()
1625 mInjector.locationManager = mLocationManager; in enterDeepState()
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java2960 LocationManager locationManager = mInjector.getLocationManager(); in stepIdleStateLocked() local
2961 if (locationManager != null in stepIdleStateLocked()
2962 && locationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in stepIdleStateLocked()
2963 locationManager.requestLocationUpdates(mLocationRequest, in stepIdleStateLocked()
2969 if (locationManager != null in stepIdleStateLocked()
2970 && locationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in stepIdleStateLocked()
2972 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 5, in stepIdleStateLocked()
3350 LocationManager locationManager = mInjector.getLocationManager(); in cancelLocatingLocked() local
3351 locationManager.removeUpdates(mGenericLocationListener); in cancelLocatingLocked()
3352 locationManager.removeUpdates(mGpsLocationListener); in cancelLocatingLocked()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java725 LocationManager locationManager = (LocationManager) mContext.getSystemService( in handleRequestLocation() local
759 locationManager.requestLocationUpdates(locationRequest, in handleRequestLocation()
766 locationManager.removeUpdates(locationListener); in handleRequestLocation()