/packages/apps/LegacyCamera/src/com/android/camera/ |
D | LocationManager.java | 28 public class LocationManager { class 33 private android.location.LocationManager mLocationManager; 37 new LocationListener(android.location.LocationManager.GPS_PROVIDER), 38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER) 46 public LocationManager(Context context, Listener listener) { in LocationManager() method in LocationManager 76 mLocationManager = (android.location.LocationManager) in startReceivingLocationUpdates() 82 android.location.LocationManager.NETWORK_PROVIDER, in startReceivingLocationUpdates() 93 android.location.LocationManager.GPS_PROVIDER, in startReceivingLocationUpdates() 142 android.location.LocationManager.GPS_PROVIDER.equals(mProvider)) { in onLocationChanged() 169 android.location.LocationManager.GPS_PROVIDER.equals(provider)) { in onStatusChanged()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | LocationManagerProxyTest.java | 26 import android.location.LocationManager; 44 private LocationManager mMockLocationManager; 57 Location location = new Location(LocationManager.GPS_PROVIDER); in testLocationManagerProxyCanInjectLocation() 64 Location location = new Location(LocationManager.GPS_PROVIDER); in testLocationManagerProxyCanGetLastKnownLocation() 65 when(mMockLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER)) in testLocationManagerProxyCanGetLastKnownLocation() 68 .getLastKnownLocation(LocationManager.GPS_PROVIDER); in testLocationManagerProxyCanGetLastKnownLocation()
|
D | CarLocationServiceTest.java | 44 import android.location.LocationManager; 189 assertThat(intentFilter.getAction(0)).isEqualTo(LocationManager.MODE_CHANGED_ACTION); in testRegistersToReceiveEvents() 328 Location timbuktu = new Location(LocationManager.GPS_PROVIDER); in testStoresLocationUponShutdownPrepare() 334 when(mMockLocationManagerProxy.getLastKnownLocation(LocationManager.GPS_PROVIDER)) in testStoresLocationUponShutdownPrepare() 341 verify(mMockLocationManagerProxy).getLastKnownLocation(LocationManager.GPS_PROVIDER); in testStoresLocationUponShutdownPrepare() 380 when(mMockLocationManagerProxy.getLastKnownLocation(LocationManager.GPS_PROVIDER)) in testDoesNotStoreNullLocation() 388 verify(mMockLocationManagerProxy).getLastKnownLocation(LocationManager.GPS_PROVIDER); in testDoesNotStoreNullLocation() 410 new Intent(LocationManager.MODE_CHANGED_ACTION)); in testDeletesCacheFileWhenLocationIsDisabled()
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 28 import android.location.LocationManager; 87 LocationManager locationManager, in CountryDetector() 103 private static void registerForLocationUpdates(Context context, LocationManager locationManager) { in registerForLocationUpdates() 118 LocationManager.PASSIVE_PROVIDER, in registerForLocationUpdates() 132 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE), in getInstance() 205 if (!intent.hasExtra(LocationManager.KEY_LOCATION_CHANGED)) { in onReceive() 210 (Location) intent.getExtras().get(LocationManager.KEY_LOCATION_CHANGED); in onReceive()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | LocationListeners.java | 26 import android.location.LocationManager; 37 LocationManager mLocationMgr; 46 mLocationMgr = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in LocationListeners() 56 if (mLocationMgr.isProviderEnabled(LocationManager.GPS_PROVIDER)) { in startListening() 57 mLocationMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in startListening() 118 if (mLocationMgr.isProviderEnabled(LocationManager.GPS_PROVIDER)) { in stopListening()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/ |
D | LocationFooterPreferenceController.java | 24 import android.location.LocationManager; 49 new Intent(LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); 127 final Intent intent = new Intent(LocationManager.SETTINGS_FOOTER_REMOVED_ACTION); in onPause() 139 Intent intent = new Intent(LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); in sendBroadcastFooterDisplayed() 182 activityInfo.metaData.getInt(LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getFooterData() 187 + LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getFooterData()
|
D | TopLevelLocationPreferenceController.java | 10 import android.location.LocationManager; 27 new IntentFilter(LocationManager.MODE_CHANGED_ACTION); 28 private final LocationManager mLocationManager; 36 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in TopLevelLocationPreferenceController()
|
/packages/apps/Car/Settings/src/com/android/car/settings/location/ |
D | LocationFooterPreferenceController.java | 27 import android.location.LocationManager; 49 new Intent(LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); 98 LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); in onCreateInternal() 113 sendBroadcast(componentName, LocationManager.SETTINGS_FOOTER_REMOVED_ACTION); in onStopInternal() 160 activityInfo.metaData.getInt(LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getInjectedLocationFooters() 163 + LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getInjectedLocationFooters()
|
D | RecentLocationRequestsEntryPreferenceController.java | 25 import android.location.LocationManager; 39 new IntentFilter(LocationManager.MODE_CHANGED_ACTION); 41 private final LocationManager mLocationManager; 52 mLocationManager = (LocationManager) getContext().getSystemService( in RecentLocationRequestsEntryPreferenceController()
|
D | LocationSettingsFragment.java | 24 import android.location.LocationManager; 44 new IntentFilter(LocationManager.MODE_CHANGED_ACTION); 46 private LocationManager mLocationManager; 84 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in onAttach()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | LocationFooterPreferenceController.java | 24 import android.location.LocationManager; 49 new Intent(LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); 127 final Intent intent = new Intent(LocationManager.SETTINGS_FOOTER_REMOVED_ACTION); in onPause() 139 Intent intent = new Intent(LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); in sendBroadcastFooterDisplayed() 182 activityInfo.metaData.getInt(LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getFooterData() 187 + LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getFooterData()
|
D | TopLevelLocationPreferenceController.java | 10 import android.location.LocationManager; 32 new IntentFilter(LocationManager.MODE_CHANGED_ACTION); 33 private final LocationManager mLocationManager; 43 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in TopLevelLocationPreferenceController()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/ |
D | LocationUtils.java | 25 import android.location.LocationManager; 70 return context.getSystemService(LocationManager.class).isLocationEnabled(); in isLocationEnabled() 76 && context.getSystemService(LocationManager.class).isProviderPackage(packageName); in isLocationGroupAndProvider() 82 && packageName.equals(context.getSystemService(LocationManager.class) in isLocationGroupAndControllerExtraPackage() 89 return context.getSystemService(LocationManager.class) in isExtraLocationControllerPackageEnabled()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | LegacyLocationProvider.java | 34 private android.location.LocationManager mLocationManager; 38 new LocationListener(android.location.LocationManager.GPS_PROVIDER), 39 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER) 90 android.location.LocationManager.NETWORK_PROVIDER, in startReceivingLocationUpdates() 101 android.location.LocationManager.GPS_PROVIDER, in startReceivingLocationUpdates()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | LocationFooterPreferenceControllerTest.java | 38 import android.location.LocationManager; 130 .isEqualTo(LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); in sendBroadcastFooterInject() 144 .isEqualTo(LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); in updateState_sendBroadcast() 183 .isEqualTo(LocationManager.SETTINGS_FOOTER_DISPLAYED_ACTION); in updateState_thenOnPause_sendBroadcasts() 188 .isEqualTo(LocationManager.SETTINGS_FOOTER_REMOVED_ACTION); in updateState_thenOnPause_sendBroadcasts() 216 LocationManager.METADATA_SETTINGS_FOOTER_STRING, TEST_RES_ID); in getTestResolveInfo()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
D | ResourceConstructedImpl.java | 27 import com.android.camera.app.LocationManager; 47 private final LocationManager mLocationManager; 72 LocationManager locationManager, in create() 96 LocationManager locationManager, in ResourceConstructedImpl() 167 public LocationManager getLocationManager() { in getLocationManager()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/ |
D | WifiP2pPreferenceController.java | 23 import android.location.LocationManager; 54 private final LocationManager mLocationManager; 64 new IntentFilter(LocationManager.MODE_CHANGED_ACTION); 73 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiP2pPreferenceController()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/location/ |
D | LocationSettingsFragmentTest.java | 22 import android.location.LocationManager; 48 private LocationManager mLocationManager; 54 mLocationManager = (LocationManager) RuntimeEnvironment.application in setUp() 75 assertThat(intentFired.getAction()).isEqualTo(LocationManager.MODE_CHANGED_ACTION); in locationSwitch_toggle_shouldBroadcastLocationModeChangedIntent()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pPreferenceController.java | 23 import android.location.LocationManager; 54 private final LocationManager mLocationManager; 64 new IntentFilter(LocationManager.MODE_CHANGED_ACTION); 73 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiP2pPreferenceController()
|
/packages/services/Car/car-lib/src/android/car/test/ |
D | CarLocationTestHelper.java | 20 import android.location.LocationManager; 36 LocationManager locationManager = in injectLocation() 37 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in injectLocation()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiWakeupPreferenceController.java | 26 import android.location.LocationManager; 61 LocationManager mLocationManager; 69 new IntentFilter(LocationManager.MODE_CHANGED_ACTION); 75 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiWakeupPreferenceController()
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | LocationUtils.java | 24 import android.location.LocationManager; 201 private static LocationManager sLocationManager; 206 (LocationManager) in startLocationUpdates() 210 LocationManager.NETWORK_PROVIDER, 1000, 10, LOCATION_LISTENER, null); in startLocationUpdates()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiWakeupPreferenceController.java | 26 import android.location.LocationManager; 61 LocationManager mLocationManager; 69 new IntentFilter(LocationManager.MODE_CHANGED_ACTION); 75 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiWakeupPreferenceController()
|
/packages/services/Car/service/src/com/android/car/ |
D | LocationManagerProxy.java | 23 import android.location.LocationManager; 31 private final LocationManager mLocationManager; 40 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in LocationManagerProxy()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowLocationManager.java | 20 import android.location.LocationManager; 28 @Implements(value = LocationManager.class) 40 LocationManager.MODE_CHANGED_ACTION)); in setLocationEnabledForUser()
|