Home
last modified time | relevance | path

Searched refs:locationManager (Results 1 – 9 of 9) 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/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/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/telephony/common/android/telephony/
DLocationAccessPolicy.java319 LocationManager locationManager = context.getSystemService(LocationManager.class); in isLocationModeEnabled() local
320 if (locationManager == null) { in isLocationModeEnabled()
324 return locationManager.isLocationEnabledForUser(UserHandle.of(userId)); in isLocationModeEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java138 LocationManager locationManager = in isLocationEnabled() local
140 return mBootCompleteCache.isBootComplete() && locationManager.isLocationEnabledForUser( in isLocationEnabled()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java201 LocationManager locationManager = getContext().getSystemService(LocationManager.class); in configureUser() local
202 locationManager.setLocationEnabledForUser(true, primaryUser.getUserHandle()); in configureUser()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java3166 LocationManager locationManager = mInjector.getLocationManager(); in stepIdleStateLocked() local
3167 if (locationManager != null in stepIdleStateLocked()
3168 && locationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in stepIdleStateLocked()
3169 locationManager.requestLocationUpdates(mLocationRequest, in stepIdleStateLocked()
3175 if (locationManager != null in stepIdleStateLocked()
3176 && locationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in stepIdleStateLocked()
3178 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 5, in stepIdleStateLocked()
3554 LocationManager locationManager = mInjector.getLocationManager(); in cancelLocatingLocked() local
3555 locationManager.removeUpdates(mGenericLocationListener); in cancelLocatingLocked()
3556 locationManager.removeUpdates(mGpsLocationListener); in cancelLocatingLocked()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java145 LocationManager locationManager; field in DeviceIdleControllerTest.InjectorForTest
183 return locationManager; in getLocationManager()
762 mInjector.locationManager = null; in testStepIdleStateLocked_ValidStates_NoLocationManager()
828 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders()
1987 mInjector.locationManager = mLocationManager; in enterDeepState()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssLocationProvider.java789 LocationManager locationManager = (LocationManager) mContext.getSystemService( in handleRequestLocation() local
828 locationManager.requestLocationUpdates(locationRequest, in handleRequestLocation()
835 locationManager.removeUpdates(locationListener); in handleRequestLocation()