/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() 133 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in requestNetworkLocationUpdates() 135 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, in requestNetworkLocationUpdates() [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()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoLocationPermissionTest.java | 44 private LocationManager mLocationManager; field in NoLocationPermissionTest 53 mLocationManager = (LocationManager) mContext.getSystemService( in setUp() 55 mAllProviders = mLocationManager.getAllProviders(); in setUp() 59 assertNotNull(mLocationManager); in setUp() 159 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener); in checkRequestLocationUpdates() 167 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener, looper); in checkRequestLocationUpdates() 208 mLocationManager.addProximityAlert(0, 0, 100, -1, mockPendingIntent); in testAddProximityAlert() 228 mLocationManager.getLastKnownLocation(provider); in checkGetLastKnownLocation() 271 mLocationManager.getProvider(provider); in checkGetProvider() 317 mLocationManager.isProviderEnabled(provider); in checkIsProviderEnabled() [all …]
|
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySaverLocationTest.java | 86 private LocationManager mLocationManager; field in BatterySaverLocationTest 113 mLocationManager = getLocationManager(); in setUp() 116 LocationProvider lp = mLocationManager.getProvider(TEST_PROVIDER_NAME); in setUp() 118 mLocationManager.removeTestProvider(TEST_PROVIDER_NAME); in setUp() 136 mLocationManager.getTestProviderCurrentRequests(TEST_PROVIDER_NAME); in areOnlyIgnoreSettingsRequestsSentToProvider() 243 mLocationManager.addTestProvider(TEST_PROVIDER_NAME, in testLocationRequestThrottling() 253 mLocationManager.setTestProviderEnabled(TEST_PROVIDER_NAME, true); in testLocationRequestThrottling() 269 mLocationManager.requestLocationUpdates( in testLocationRequestThrottling() 271 mLocationManager.requestLocationUpdates( in testLocationRequestThrottling() 274 mLocationManager.getTestProviderCurrentRequests(TEST_PROVIDER_NAME).size() >= 2); in testLocationRequestThrottling() [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | GeolocationTest.java | 111 private LocationManager mLocationManager; field in GeolocationTest 166 mLocationManager = (LocationManager)getActivity().getApplicationContext() in setUp() 169 mProviders = mLocationManager.getAllProviders(); in setUp() 195 mLocationManager.clearTestProviderEnabled(provider); in tearDown() 196 mLocationManager.removeTestProvider(provider); in tearDown() 216 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders() 221 mLocationManager.addTestProvider(provider.getName(), in addTestProviders() 231 mLocationManager.setTestProviderEnabled(provider.getName(), true); in addTestProviders() 240 mLocationManager.addTestProvider( in addTestLocationProvider() 251 mLocationManager.setTestProviderEnabled(TEST_PROVIDER_NAME, true); in addTestLocationProvider() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | LocationListenerActivity.java | 44 private LocationManager mLocationManager; field in LocationListenerActivity 51 mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE); in onCreate() 70 mLocationManager.removeUpdates(mLocationListener); in onActivityResult() 91 mLocationManager.requestLocationUpdates( in handleLocationAction()
|
/cts/tests/tests/net/src/android/net/wifi/rtt/cts/ |
D | TestBase.java | 57 private LocationManager mLocationManager; field in TestBase 84 mLocationManager = (LocationManager) getContext().getSystemService( in setUp() 87 mLocationManager.isLocationEnabled()); in setUp()
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 79 private LocationManager mLocationManager; field in SystemFeaturesTest 97 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp() 305 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in testLocationFeatures() 312 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in testLocationFeatures()
|