/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/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/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/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 319 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/ |
D | LocationControllerImpl.java | 138 LocationManager locationManager = in isLocationEnabled() local 140 return mBootCompleteCache.isBootComplete() && locationManager.isLocationEnabledForUser( in isLocationEnabled()
|
/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, primaryUser.getUserHandle()); in configureUser()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | DeviceIdleController.java | 3166 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/ |
D | DeviceIdleControllerTest.java | 145 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/ |
D | GnssLocationProvider.java | 789 LocationManager locationManager = (LocationManager) mContext.getSystemService( in handleRequestLocation() local 828 locationManager.requestLocationUpdates(locationRequest, in handleRequestLocation() 835 locationManager.removeUpdates(locationListener); in handleRequestLocation()
|