Searched refs:locationManager (Results 1 – 6 of 6) sorted by relevance
41 private LocationManager locationManager; field in ShadowLocationManagerTest48 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 …]
26 @Inject LocationManager locationManager; field in HomeActivity33 Log.d("HomeActivity", locationManager.toString()); in onCreate()
34 LocationManager locationManager(); in locationManager() method
27 @Inject LocationManager locationManager; // to illustrate injecting something into the app. field in DemoApplication
37 @Inject LocationManager locationManager; // for some reason. field in DemoApplication
26 @Inject LocationManager locationManager; field in HomeActivity