Home
last modified time | relevance | path

Searched refs:mLocationManager (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/location/src/android/location/cts/
DTestLocationManager.java37 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 …]
DLocationProviderTest.java26 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()
DTestGpsStatusListener.java38 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/
DNoLocationPermissionTest.java42 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/
DGpsTestActivity.java45 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()
DLocationVerifier.java54 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()
DLocationListenerActivity.java28 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/
DGeolocationTest.java107 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/
DSystemFeaturesTest.java61 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()