/cts/tests/location/common/src/android/location/cts/common/ |
D | TestLocationManager.java | 40 private LocationManager mLocationManager; field in TestLocationManager 45 mLocationManager = in TestLocationManager() 56 mLocationManager.removeUpdates(listener); in removeLocationUpdates() 68 mLocationManager.registerGnssMeasurementsCallback(callback); in registerGnssMeasurementCallback() 86 mLocationManager.registerGnssMeasurementsCallback(callback, handler); in registerGnssMeasurementCallback() 104 mLocationManager.registerGnssMeasurementsCallback(request, Runnable::run, callback); in registerGnssMeasurementCallback() 122 mLocationManager.registerGnssMeasurementsCallback(request, Runnable::run, callback); in registerGnssMeasurementCallback() 139 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in requestLowPowerModeGnssLocationUpdates() 141 mLocationManager.requestLocationUpdates( in requestLowPowerModeGnssLocationUpdates() 157 mLocationManager.unregisterGnssMeasurementsCallback(callback); in unregisterGnssMeasurementCallback() [all …]
|
D | ProviderRequestChangedListenerCapture.java | 33 private final LocationManager mLocationManager; field in ProviderRequestChangedListenerCapture 37 mLocationManager = context.getSystemService(LocationManager.class); in ProviderRequestChangedListenerCapture() 53 mLocationManager.removeProviderRequestChangedListener(this); in close()
|
D | LocationListenerCapture.java | 29 private final LocationManager mLocationManager; field in LocationListenerCapture 35 mLocationManager = context.getSystemService(LocationManager.class); in LocationListenerCapture() 75 mLocationManager.removeUpdates(this); in close()
|
D | ProximityPendingIntentCapture.java | 20 private final LocationManager mLocationManager; field in ProximityPendingIntentCapture 27 mLocationManager = context.getSystemService(LocationManager.class); in ProximityPendingIntentCapture() 53 mLocationManager.removeProximityAlert(mPendingIntent); in close()
|
D | LocationPendingIntentCapture.java | 41 private final LocationManager mLocationManager; field in LocationPendingIntentCapture 50 mLocationManager = context.getSystemService(LocationManager.class); in LocationPendingIntentCapture() 94 mLocationManager.removeUpdates(mPendingIntent); in close()
|
/cts/tests/location/location_none/src/android/location/cts/none/ |
D | NoLocationPermissionTest.java | 44 private LocationManager mLocationManager; field in NoLocationPermissionTest 49 mLocationManager = mContext.getSystemService(LocationManager.class); in setUp() 51 assertNotNull(mLocationManager); in setUp() 56 for (String provider : mLocationManager.getAllProviders()) { in testRequestLocationUpdates() 58 mLocationManager.requestLocationUpdates(provider, 0, 0, capture, in testRequestLocationUpdates() 66 mLocationManager.requestLocationUpdates(provider, 0, 0, Runnable::run, capture); in testRequestLocationUpdates() 74 mLocationManager.requestLocationUpdates(provider, 0, 0, capture.getPendingIntent()); in testRequestLocationUpdates() 85 mLocationManager.addProximityAlert(0, 0, 100, -1, capture.getPendingIntent()); in testAddProximityAlert() 94 for (String provider : mLocationManager.getAllProviders()) { in testGetLastKnownLocation() 96 mLocationManager.getLastKnownLocation(provider); in testGetLastKnownLocation() [all …]
|
/cts/tests/location/location_privileged/src/android/location/cts/privileged/ |
D | PrivilegedLocationPermissionTest.java | 43 private LocationManager mLocationManager; field in PrivilegedLocationPermissionTest 48 mLocationManager = mContext.getSystemService(LocationManager.class); in setUp() 49 assertNotNull(mLocationManager); in setUp() 67 String originalPackageName = mLocationManager.getExtraLocationControllerPackage(); in testExtraLocationControllerPackage() 68 boolean originalPackageEnabeld = mLocationManager.isExtraLocationControllerPackageEnabled(); in testExtraLocationControllerPackage() 72 mLocationManager.setExtraLocationControllerPackage(packageName); in testExtraLocationControllerPackage() 74 mLocationManager.getExtraLocationControllerPackage()).isEqualTo(packageName); in testExtraLocationControllerPackage() 77 mLocationManager.setExtraLocationControllerPackageEnabled(!originalPackageEnabeld); in testExtraLocationControllerPackage() 79 mLocationManager.isExtraLocationControllerPackageEnabled()).isEqualTo( in testExtraLocationControllerPackage() 83 mLocationManager.setExtraLocationControllerPackage(originalPackageName); in testExtraLocationControllerPackage() [all …]
|
D | GnssMeasurementRequestTest.java | 32 private LocationManager mLocationManager; field in GnssMeasurementRequestTest 37 mLocationManager = mContext.getSystemService(LocationManager.class); in setUp() 38 assertNotNull(mLocationManager); in setUp()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiJUnit3TestBase.java | 31 private LocationManager mLocationManager; field in WifiJUnit3TestBase 38 mLocationManager = mContext.getSystemService(LocationManager.class); in setUp() 39 if (!mLocationManager.isLocationEnabled()) { in setUp() 42 mLocationManager.setLocationEnabledForUser( in setUp() 52 mLocationManager.setLocationEnabledForUser( in tearDown()
|
D | WifiJUnit4TestBase.java | 37 private LocationManager mLocationManager; field in WifiJUnit4TestBase 44 mLocationManager = context.getSystemService(LocationManager.class); in enableLocationIfNotEnabled() 45 if (!mLocationManager.isLocationEnabled()) { in enableLocationIfNotEnabled() 48 mLocationManager.setLocationEnabledForUser( in enableLocationIfNotEnabled() 58 mLocationManager.setLocationEnabledForUser( in disableLocationIfOriginallyDisabled()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | SetLocationEnabledTest.java | 43 private LocationManager mLocationManager; field in SetLocationEnabledTest 49 mLocationManager = mContext.getSystemService(LocationManager.class); in setUp() 53 boolean enabled = mLocationManager.isLocationEnabled(); in testSetLocationEnabled() 67 assertWithMessage("isLocationEnabled()").that(mLocationManager.isLocationEnabled()) in runDisableLocationFirst() 71 assertWithMessage("isLocationEnabled()").that(mLocationManager.isLocationEnabled()) in runDisableLocationFirst() 79 assertWithMessage("isLocationEnabled()").that(mLocationManager.isLocationEnabled()) in runEnableLocationFirst() 83 assertWithMessage("isLocationEnabled()").that(mLocationManager.isLocationEnabled()) in runEnableLocationFirst()
|
/cts/tests/location/common/src/android/location/cts/common/gnss/ |
D | GnssAntennaInfoCapture.java | 33 private final LocationManager mLocationManager; field in GnssAntennaInfoCapture 37 mLocationManager = context.getSystemService(LocationManager.class); in GnssAntennaInfoCapture() 52 mLocationManager.unregisterAntennaInfoListener(this); in close()
|
D | GnssNavigationMessageCapture.java | 28 private final LocationManager mLocationManager; field in GnssNavigationMessageCapture 33 mLocationManager = context.getSystemService(LocationManager.class); in GnssNavigationMessageCapture() 57 mLocationManager.unregisterGnssNavigationMessageCallback(this); in close()
|
D | GnssMeasurementsCapture.java | 28 private final LocationManager mLocationManager; field in GnssMeasurementsCapture 33 mLocationManager = context.getSystemService(LocationManager.class); in GnssMeasurementsCapture() 58 mLocationManager.unregisterGnssMeasurementsCallback(this); in close()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | LocationCheckerActivity.java | 59 private LocationManager mLocationManager; field in LocationCheckerActivity 68 mLocationManager = getSystemService(LocationManager.class); in onCreate() 80 mProviders = mLocationManager.getAllProviders().stream() in requestCurrentLocation() 81 .filter(mLocationManager::isProviderEnabled) in requestCurrentLocation() 92 mLocationManager.getCurrentLocation(provider, request, mCancellationSignal, in requestCurrentLocation()
|
/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/tests/tests/wifi/src/android/net/wifi/rtt/cts/ |
D | TestBase.java | 67 private LocationManager mLocationManager; field in TestBase 105 mLocationManager = (LocationManager) getContext().getSystemService( in setUp() 108 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()
|