Home
last modified time | relevance | path

Searched refs:mLocationManager (Results 1 – 18 of 18) 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 …]
DGnssMeasurementRequestTest.java32 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/
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()
52 mLocationManager.setLocationEnabledForUser( in tearDown()
DWifiJUnit4TestBase.java37 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/
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/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/webkit/src/android/webkit/cts/
DGeolocationTest.java111 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/
DTestBase.java67 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/
DSystemFeaturesTest.java79 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()