Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLocationManagerTest.java41 private LocationManager locationManager; field in ShadowLocationManagerTest
48 locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in setUp()
49 shadowLocationManager = shadowOf(locationManager); in setUp()
55 assertFalse(locationManager.isLocationEnabled()); in shouldReturnLocationDisabledByDefault()
61 locationManager.setLocationEnabledForUser(true, Process.myUserHandle()); in shouldReturnLocationEnabledOnceSet()
62 assertTrue(locationManager.isLocationEnabled()); in shouldReturnLocationEnabledOnceSet()
67 Boolean enabled = locationManager.isProviderEnabled(GPS_PROVIDER); in shouldReturnNoProviderEnabledByDefault()
69 enabled = locationManager.isProviderEnabled(NETWORK_PROVIDER); in shouldReturnNoProviderEnabledByDefault()
71 enabled = locationManager.isProviderEnabled("RANDOM_PROVIDER"); in shouldReturnNoProviderEnabledByDefault()
80 assertFalse(locationManager.isProviderEnabled(GPS_PROVIDER)); in shouldDisableProvider()
[all …]
/external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/ui/
DHomeActivity.java26 @Inject LocationManager locationManager; field in HomeActivity
33 Log.d("HomeActivity", locationManager.toString()); in onCreate()
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/
DApplicationComponent.java34 LocationManager locationManager(); in locationManager() method
DDemoApplication.java27 @Inject LocationManager locationManager; // to illustrate injecting something into the app. field in DemoApplication
/external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/
DDemoApplication.java37 @Inject LocationManager locationManager; // for some reason. field in DemoApplication
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/ui/
DHomeActivity.java26 @Inject LocationManager locationManager; field in HomeActivity