/cts/tests/tests/location/src/android/location/cts/ |
D | TestLocationManager.java | 37 private LocationManager mLocationManager; field in TestLocationManager 42 mLocationManager = in TestLocationManager() 53 mLocationManager.removeUpdates(listener); in removeLocationUpdates() 65 mLocationManager.registerGnssMeasurementsCallback(callback); in registerGnssMeasurementCallback() 83 mLocationManager.registerGnssMeasurementsCallback(callback, handler); in registerGnssMeasurementCallback() 99 mLocationManager.unregisterGnssMeasurementsCallback(callback); in unregisterGnssMeasurementCallback() 108 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in requestLocationUpdates() 110 mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, in requestLocationUpdates() 130 mLocationManager.addGpsStatusListener(listener); in addGpsStatusListener() 142 mLocationManager.removeGpsStatusListener(listener); in removeGpsStatusListener() [all …]
|
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()
|
D | TestGpsStatusListener.java | 38 private final LocationManager mLocationManager; field in TestGpsStatusListener 44 mLocationManager = testLocationManager.getLocationManager(); in TestGpsStatusListener() 51 mGpsStatus = mLocationManager.getGpsStatus(mGpsStatus); in onGpsStatusChanged()
|
/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()
|
D | LocationListenerActivity.java | 28 private LocationManager mLocationManager; field in LocationListenerActivity 35 mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE); in onCreate() 54 mLocationManager.removeUpdates(mLocationListener); in onActivityResult() 75 mLocationManager.requestLocationUpdates( in handleLocationAction()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | GeolocationTest.java | 107 private LocationManager mLocationManager; field in GeolocationTest 162 mLocationManager = (LocationManager)getActivity().getApplicationContext() in setUp() 165 mProviders = mLocationManager.getAllProviders(); in setUp() 191 mLocationManager.clearTestProviderEnabled(provider); in tearDown() 192 mLocationManager.removeTestProvider(provider); in tearDown() 211 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders() 212 mLocationManager.addTestProvider(provider.getName(), in addTestProviders() 222 mLocationManager.setTestProviderEnabled(provider.getName(), true); in addTestProviders() 230 mLocationManager.addTestProvider( in addTestLocationProvider() 241 mLocationManager.setTestProviderEnabled(TEST_PROVIDER_NAME, true); in addTestLocationProvider() [all …]
|
/cts/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() 244 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in testLocationFeatures() 251 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in testLocationFeatures()
|