Searched refs:mLocationManager (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/location/src/android/location/cts/ |
D | LocationProviderTest.java | 26 private LocationManager mLocationManager; field in LocationProviderTest 31 mLocationManager = getInstrumentation().getContext().getSystemService( in setUp() 39 mLocationManager.clearTestProviderLocation(PROVIDER_NAME); in tearDown() 40 mLocationManager.removeTestProvider(PROVIDER_NAME); in tearDown() 48 mLocationManager.addTestProvider( in addTestProvider() 59 mLocationManager.setTestProviderEnabled(providerName, true); in addTestProvider() 63 LocationProvider locationProvider = mLocationManager.getProvider(PROVIDER_NAME); in testGetName() 68 LocationProvider locationProvider = mLocationManager.getProvider(PROVIDER_NAME); in testMeetsCriteria()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoLocationPermissionTest.java | 42 private LocationManager mLocationManager; field in NoLocationPermissionTest 51 mLocationManager = (LocationManager) mContext.getSystemService( in setUp() 53 mAllProviders = mLocationManager.getAllProviders(); in setUp() 57 assertNotNull(mLocationManager); in setUp() 142 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener); in checkRequestLocationUpdates() 150 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener, looper); in checkRequestLocationUpdates() 191 mLocationManager.addProximityAlert(0, 0, 100, -1, mockPendingIntent); in testAddProximityAlert() 211 mLocationManager.getLastKnownLocation(provider); in checkGetLastKnownLocation() 254 mLocationManager.getProvider(provider); in checkGetProvider() 300 mLocationManager.isProviderEnabled(provider); in checkIsProviderEnabled() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | GpsTestActivity.java | 45 private LocationManager mLocationManager; field in GpsTestActivity 56 mLocationManager = (LocationManager) getApplicationContext().getSystemService( in onCreate() 97 mLocationVerifier = new LocationVerifier(this, mLocationManager, in nextTest() 103 mLocationVerifier = new LocationVerifier(this, mLocationManager, in nextTest() 109 mLocationVerifier = new LocationVerifier(this, mLocationManager, in nextTest() 115 mLocationVerifier = new LocationVerifier(this, mLocationManager, in nextTest()
|
D | LocationVerifier.java | 54 private final LocationManager mLocationManager; field in LocationVerifier 205 mLocationManager = locationManager; in LocationVerifier() 219 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, in start() 222 mLocationManager.requestLocationUpdates(mProvider, mInterval, 0, in start() 229 mLocationManager.removeUpdates(mActiveListener); in stop() 231 mLocationManager.removeUpdates(mPassiveListener); in stop()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | GeolocationTest.java | 106 private LocationManager mLocationManager; field in GeolocationTest 161 mLocationManager = (LocationManager)getActivity().getApplicationContext() in setUp() 164 mProviders = mLocationManager.getAllProviders(); in setUp() 185 mLocationManager.clearTestProviderEnabled(provider); in tearDown() 186 mLocationManager.removeTestProvider(provider); in tearDown() 201 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders() 202 mLocationManager.addTestProvider(provider.getName(), in addTestProviders() 212 mLocationManager.setTestProviderEnabled(provider.getName(), true); in addTestProviders() 259 mLocationManager.setTestProviderLocation(mProviders.get(i), location); in updateLocation()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 61 private LocationManager mLocationManager; field in SystemFeaturesTest 80 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp() 243 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in testLocationFeatures() 250 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in testLocationFeatures()
|