Home
last modified time | relevance | path

Searched refs:mLocationListener (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/location/src/android/location/cts/
DGnssMeasurementRegistrationTest.java55 private TestLocationListener mLocationListener; field in GnssMeasurementRegistrationTest
68 if (mLocationListener != null) { in tearDown()
69 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
114 mLocationListener = new TestLocationListener(EVENTS_COUNT); in testGnssMeasurementRegistration()
115 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMeasurementRegistration()
118 mLocationListener.await(); in testGnssMeasurementRegistration()
119 Log.i(TAG, "Location received = " + mLocationListener.isLocationReceived()); in testGnssMeasurementRegistration()
DGnssNavigationMessageRegistrationTest.java54 private TestLocationListener mLocationListener; field in GnssNavigationMessageRegistrationTest
71 if (mLocationListener != null) { in tearDown()
72 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
116 mLocationListener = new TestLocationListener(EVENTS_COUNT); in testGnssNavigationMessageRegistration()
117 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssNavigationMessageRegistration()
120 mLocationListener.await(); in testGnssNavigationMessageRegistration()
121 Log.i(TAG, "Location received = " + mLocationListener.isLocationReceived()); in testGnssNavigationMessageRegistration()
DGnssLocationValuesTest.java37 private TestLocationListener mLocationListener; field in GnssLocationValuesTest
50 mLocationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in setUp()
56 if (mLocationListener != null) { in tearDown()
57 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
68 mTestLocationManager.requestLocationUpdates(mLocationListener); in testAccuracyFields()
69 boolean success = mLocationListener.await(); in testAccuracyFields()
76 for (Location location : mLocationListener.getReceivedLocationList()) { in testAccuracyFields()
127 mTestLocationManager.requestLocationUpdates(mLocationListener); in testLocationRegularFields()
128 boolean success = mLocationListener.await(); in testLocationRegularFields()
136 for (Location location : mLocationListener.getReceivedLocationList()) { in testLocationRegularFields()
DGnssMeasurementValuesTest.java47 private TestLocationListener mLocationListener; field in GnssMeasurementValuesTest
59 if (mLocationListener != null) { in tearDown()
60 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
81 mLocationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in testListenForGnssMeasurements()
82 mTestLocationManager.requestLocationUpdates(mLocationListener); in testListenForGnssMeasurements()
87 boolean success = mLocationListener.await(); in testListenForGnssMeasurements()
94 Log.i(TAG, "Location status received = " + mLocationListener.isLocationReceived()); in testListenForGnssMeasurements()
DGnssMeasurementWhenNoLocationTest.java61 private TestLocationListener mLocationListener; field in GnssMeasurementWhenNoLocationTest
78 if (mLocationListener != null) { in tearDown()
79 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
116 mLocationListener = new TestLocationListener(LOCATIONS_COUNT); in testGnssMeasurementWhenNoLocation()
117 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMeasurementWhenNoLocation()
129 + mLocationListener.isLocationReceived()); in testGnssMeasurementWhenNoLocation()
153 !mLocationListener.isLocationReceived()); in testGnssMeasurementWhenNoLocation()
154 if (mLocationListener.isLocationReceived() && !isMeasurementTestStrict()) { in testGnssMeasurementWhenNoLocation()
DGnssMeasurementsConstellationTest.java50 private TestLocationListener mLocationListener; field in GnssMeasurementsConstellationTest
63 if (mLocationListener != null) { in tearDown()
64 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
88 mLocationListener = new TestLocationListener(EVENTS_COUNT); in testGnssMultiConstellationSupported()
89 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMultiConstellationSupported()
DGnssPseudorangeVerificationTest.java59 private TestLocationListener mLocationListener; field in GnssPseudorangeVerificationTest
71 if (mLocationListener != null) { in tearDown()
72 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
94 mLocationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in testPseudorangeValue()
95 mTestLocationManager.requestLocationUpdates(mLocationListener); in testPseudorangeValue()
101 boolean success = mLocationListener.await(); in testPseudorangeValue()
109 Log.i(TAG, "Location status received = " + mLocationListener.isLocationReceived()); in testPseudorangeValue()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationListenerActivity.java54 mLocationManager.removeUpdates(mLocationListener); in onActivityResult()
76 LocationManager.GPS_PROVIDER, 0, 0, mLocationListener); in handleLocationAction()
79 private final LocationListener mLocationListener = new LocationListener() { field in LocationListenerActivity