Home
last modified time | relevance | path

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

/cts/tests/location/common/src/android/location/cts/common/
DTestLocationManager.java40 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 …]
DProviderRequestChangedListenerCapture.java33 private final LocationManager mLocationManager; field in ProviderRequestChangedListenerCapture
37 mLocationManager = context.getSystemService(LocationManager.class); in ProviderRequestChangedListenerCapture()
53 mLocationManager.removeProviderRequestChangedListener(this); in close()
DLocationListenerCapture.java29 private final LocationManager mLocationManager; field in LocationListenerCapture
35 mLocationManager = context.getSystemService(LocationManager.class); in LocationListenerCapture()
75 mLocationManager.removeUpdates(this); in close()
DProximityPendingIntentCapture.java20 private final LocationManager mLocationManager; field in ProximityPendingIntentCapture
27 mLocationManager = context.getSystemService(LocationManager.class); in ProximityPendingIntentCapture()
53 mLocationManager.removeProximityAlert(mPendingIntent); in close()
DLocationPendingIntentCapture.java41 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/
DNoLocationPermissionTest.java44 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/
DPrivilegedLocationPermissionTest.java43 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 …]
DSmsNiSuplTest.java51 private LocationManager mLocationManager; field in SmsNiSuplTest
58 mLocationManager = mContext.getSystemService(LocationManager.class); in setUp()
64 assertNotNull(mLocationManager); in setUp()
DGnssMeasurementRequestTest.java40 private LocationManager mLocationManager; field in GnssMeasurementRequestTest
45 mLocationManager = mContext.getSystemService(LocationManager.class); in setUp()
46 assertNotNull(mLocationManager); in setUp()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiJUnit3TestBase.java31 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()
53 mLocationManager.setLocationEnabledForUser( in tearDown()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DGnssHardwareProviderUnprivilegedTest.java41 private LocationManager mLocationManager; field in GnssHardwareProviderUnprivilegedTest
45 mLocationManager = in setUp()
54 assertThat(mLocationManager.hasProvider(LocationManager.GPS_HARDWARE_PROVIDER)).isFalse(); in testHasProvider()
59 assertThat(mLocationManager.getAllProviders()) in testGetAllProviders()
69 mLocationManager.requestLocationUpdates( in testRequestLocationUpdates()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSetLocationEnabledTest.java43 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DEnableLocationRule.java43 private final LocationManager mLocationManager = field in EnableLocationRule
53 return mLocationManager.isLocationEnabled(); in isLocationEnabled()
58 mLocationManager.setLocationEnabledForUser(true, Process.myUserHandle()); in enableLocation()
64 mLocationManager.setLocationEnabledForUser(false, Process.myUserHandle()); in disableLocation()
/cts/tests/location/common/src/android/location/cts/common/gnss/
DGnssAntennaInfoCapture.java33 private final LocationManager mLocationManager; field in GnssAntennaInfoCapture
37 mLocationManager = context.getSystemService(LocationManager.class); in GnssAntennaInfoCapture()
52 mLocationManager.unregisterAntennaInfoListener(this); in close()
DGnssNavigationMessageCapture.java28 private final LocationManager mLocationManager; field in GnssNavigationMessageCapture
33 mLocationManager = context.getSystemService(LocationManager.class); in GnssNavigationMessageCapture()
57 mLocationManager.unregisterGnssNavigationMessageCallback(this); in close()
DGnssMeasurementsCapture.java28 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/
DLocationCheckerActivity.java59 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/telecom/src/android/telecom/cts/
DEmergencyCallOnSimCallManagerTest.java184 mLocationManager.addTestProvider(TEST_PROVIDER, in testQueryLocationForEmergencyReturnLocation()
186 mLocationManager.setTestProviderEnabled(TEST_PROVIDER, true); in testQueryLocationForEmergencyReturnLocation()
191 mLocationManager.setTestProviderLocation(TEST_PROVIDER, loc); in testQueryLocationForEmergencyReturnLocation()
229 mLocationManager.removeTestProvider(TEST_PROVIDER); in testQueryLocationForEmergencyReturnLocation()
246 mLocationManager.addTestProvider(TEST_PROVIDER, in testQueryLocationForEmergencyReturnTimeoutException()
248 mLocationManager.setTestProviderEnabled(TEST_PROVIDER, true); in testQueryLocationForEmergencyReturnTimeoutException()
290 mLocationManager.removeTestProvider(TEST_PROVIDER); in testQueryLocationForEmergencyReturnTimeoutException()
DBaseTelecomTestWithMockServices.java120 LocationManager mLocationManager; field in BaseTelecomTestWithMockServices
319 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
/cts/tests/tests/webkit/src/android/webkit/cts/
DGeolocationTest.java116 private LocationManager mLocationManager; field in GeolocationTest
173 mLocationManager = (LocationManager) InstrumentationRegistry.getInstrumentation() in setUp()
176 mProviders = mLocationManager.getAllProviders(); in setUp()
202 mLocationManager.clearTestProviderEnabled(provider); in tearDown()
203 mLocationManager.removeTestProvider(provider); in tearDown()
222 LocationProvider provider = mLocationManager.getProvider(providerName); in addTestProviders()
227 mLocationManager.addTestProvider(provider.getName(), in addTestProviders()
237 mLocationManager.setTestProviderEnabled(provider.getName(), true); in addTestProviders()
246 mLocationManager.addTestProvider( in addTestLocationProvider()
257 mLocationManager.setTestProviderEnabled(TEST_PROVIDER_NAME, true); in addTestLocationProvider()
[all …]
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java77 private LocationManager mLocationManager; field in SystemFeaturesTest
95 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()