Home
last modified time | relevance | path

Searched refs:mLocationListener (Results 1 – 6 of 6) 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
69 if (mLocationListener != null) { in tearDown()
70 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
118 mLocationListener = new TestLocationListener(EVENTS_COUNT); in testGnssMeasurementRegistration()
119 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMeasurementRegistration()
122 mLocationListener.await(); in testGnssMeasurementRegistration()
123 Log.i(TAG, "Location received = " + mLocationListener.isLocationReceived()); in testGnssMeasurementRegistration()
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()
128 + mLocationListener.isLocationReceived()); in testGnssMeasurementWhenNoLocation()
148 !mLocationListener.isLocationReceived()); in testGnssMeasurementWhenNoLocation()
DGnssMeasurementsConstellationTest.java51 private TestLocationListener mLocationListener; field in GnssMeasurementsConstellationTest
64 if (mLocationListener != null) { in tearDown()
65 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown()
89 mLocationListener = new TestLocationListener(EVENTS_COUNT); in testGnssMultiConstellationSupported()
90 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMultiConstellationSupported()
/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