Home
last modified time | relevance | path

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

/cts/tests/tests/location/src/android/location/cts/
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()
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()
DGnssLocationValuesTest.java35 private TestLocationListener mLocationListener; field in GnssLocationValuesTest
46 mLocationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in setUp()
52 if (mLocationListener != null) { in tearDown()
53 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
70 mTestLocationManager.requestLocationUpdates(mLocationListener); in testAccuracyFields()
71 boolean success = mLocationListener.await(); in testAccuracyFields()
78 for (Location location : mLocationListener.getReceivedLocationList()) { in testAccuracyFields()
142 mTestLocationManager.requestLocationUpdates(mLocationListener); in testLocationRegularFields()
143 boolean success = mLocationListener.await(); in testLocationRegularFields()
152 for (Location location : mLocationListener.getReceivedLocationList()) { in testLocationRegularFields()
DGnssMeasurementValuesTest.java49 private TestLocationListener mLocationListener; field in GnssMeasurementValuesTest
64 if (mLocationListener != null) { in tearDown()
65 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
86 mLocationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in testListenForGnssMeasurements()
87 mTestLocationManager.requestLocationUpdates(mLocationListener); in testListenForGnssMeasurements()
99 boolean success = mLocationListener.await(); in testListenForGnssMeasurements()
107 Log.i(TAG, "Location status received = " + mLocationListener.isLocationReceived()); in testListenForGnssMeasurements()
DGnssMeasurementWhenNoLocationTest.java61 private TestLocationListener mLocationListener; field in GnssMeasurementWhenNoLocationTest
79 if (mLocationListener != null) { in tearDown()
80 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
134 mLocationListener = new TestLocationListener(LOCATIONS_COUNT); in testGnssMeasurementWhenNoLocation()
135 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMeasurementWhenNoLocation()
147 + mLocationListener.isLocationReceived()); in testGnssMeasurementWhenNoLocation()
174 !mLocationListener.isLocationReceived()); in testGnssMeasurementWhenNoLocation()
DGnssMeasurementsConstellationTest.java48 private TestLocationListener mLocationListener; field in GnssMeasurementsConstellationTest
61 if (mLocationListener != null) { in tearDown()
62 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
86 mLocationListener = new TestLocationListener(EVENTS_COUNT); in testGnssMultiConstellationSupported()
87 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMultiConstellationSupported()
DGnssPseudorangeVerificationTest.java73 private TestLocationListener mLocationListener; field in GnssPseudorangeVerificationTest
85 if (mLocationListener != null) { in tearDown()
86 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
108 mLocationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in testPseudorangeValue()
109 mTestLocationManager.requestLocationUpdates(mLocationListener); in testPseudorangeValue()
115 boolean success = mLocationListener.await(); in testPseudorangeValue()
124 Log.i(TAG, "Location status received = " + mLocationListener.isLocationReceived()); in testPseudorangeValue()
253 mLocationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in testPseudoPosition()
254 mTestLocationManager.requestLocationUpdates(mLocationListener); in testPseudoPosition()
260 boolean success = mLocationListener.await(); in testPseudoPosition()
[all …]
DGnssNavigationMessageTest.java44 private TestLocationListener mLocationListener; field in GnssNavigationMessageTest
55 if (mLocationListener != null) { in tearDown()
56 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
80 mLocationListener = new TestLocationListener(EVENTS_COUNT); in testGnssNavigationMessageMandatoryFieldRanges()
81 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssNavigationMessageMandatoryFieldRanges()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationListenerActivity.java70 mLocationManager.removeUpdates(mLocationListener); in onActivityResult()
92 LocationManager.GPS_PROVIDER, 0, 0, mLocationListener); in handleLocationAction()
95 private final LocationListener mLocationListener = new LocationListener() { field in LocationListenerActivity