Home
last modified time | relevance | path

Searched refs:LocationManager (Results 1 – 25 of 62) sorted by relevance

123

/packages/apps/LegacyCamera/src/com/android/camera/
DLocationManager.java28 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/
DLocationManagerProxyTest.java26 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()
DCarLocationServiceTest.java44 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/
DCountryDetector.java28 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/
DLocationListeners.java26 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/
DLocationFooterPreferenceController.java24 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()
DTopLevelLocationPreferenceController.java10 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/
DLocationFooterPreferenceController.java27 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()
DRecentLocationRequestsEntryPreferenceController.java25 import android.location.LocationManager;
39 new IntentFilter(LocationManager.MODE_CHANGED_ACTION);
41 private final LocationManager mLocationManager;
52 mLocationManager = (LocationManager) getContext().getSystemService( in RecentLocationRequestsEntryPreferenceController()
DLocationSettingsFragment.java24 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/
DLocationFooterPreferenceController.java24 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()
DTopLevelLocationPreferenceController.java10 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/
DLocationUtils.java25 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/
DLegacyLocationProvider.java34 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/
DLocationFooterPreferenceControllerTest.java38 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/
DResourceConstructedImpl.java27 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/
DWifiP2pPreferenceController.java23 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/
DLocationSettingsFragmentTest.java22 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/
DWifiP2pPreferenceController.java23 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/
DCarLocationTestHelper.java20 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/
DWifiWakeupPreferenceController.java26 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/
DLocationUtils.java24 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/
DWifiWakeupPreferenceController.java26 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/
DLocationManagerProxy.java23 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/
DShadowLocationManager.java20 import android.location.LocationManager;
28 @Implements(value = LocationManager.class)
40 LocationManager.MODE_CHANGED_ACTION)); in setLocationEnabledForUser()

123