Home
last modified time | relevance | path

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

/cts/tests/location/common/src/android/location/cts/common/
DTestLocationManager.java138 LocationListener locationListener) { in requestLowPowerModeGnssLocationUpdates() argument
145 locationListener); in requestLowPowerModeGnssLocationUpdates()
165 public void requestLocationUpdates(LocationListener locationListener, int minTimeMsec) { in requestLocationUpdates() argument
171 locationListener, in requestLocationUpdates()
181 public void requestLocationUpdates(LocationListener locationListener) { in requestLocationUpdates() argument
182 requestLocationUpdates(locationListener, 0 /* minTimeMsec */); in requestLocationUpdates()
191 public boolean requestNetworkLocationUpdates(LocationListener locationListener) { in requestNetworkLocationUpdates() argument
197 locationListener, in requestNetworkLocationUpdates()
209 public void requestPassiveLocationUpdates(LocationListener locationListener, int minTimeMsec) { in requestPassiveLocationUpdates() argument
215 locationListener, in requestPassiveLocationUpdates()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssMeasurementCorrectionsInjectionTest.java97 TestLocationListener locationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in testInjectGnssMeasurementCorrections() local
98 mTestLocationManager.requestLocationUpdates(locationListener); in testInjectGnssMeasurementCorrections()
101 && locationListener.await(); in testInjectGnssMeasurementCorrections()
102 mTestLocationManager.removeLocationUpdates(locationListener); in testInjectGnssMeasurementCorrections()
118 List<Location> locations = locationListener.getReceivedLocationList(); in testInjectGnssMeasurementCorrections()
DGnssLocationValuesTest.java95 TestLocationListener locationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in waitForRegularGnssLocations() local
96 mTestLocationManager.requestLocationUpdates(locationListener); in waitForRegularGnssLocations()
97 boolean success = locationListener.await(); in waitForRegularGnssLocations()
98 mTestLocationManager.removeLocationUpdates(locationListener); in waitForRegularGnssLocations()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssLocationUpdateIntervalTest.java170 TestLocationListener locationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in testUtcToElapsedRealtimeDriftAtInterval() local
171 mTestLocationManager.requestLocationUpdates(locationListener, 1000); in testUtcToElapsedRealtimeDriftAtInterval()
192 success = locationListener.await(); in testUtcToElapsedRealtimeDriftAtInterval()
201 locationListener.clearReceivedLocationsAndResetCounter(LOCATION_TO_COLLECT_COUNT); in testUtcToElapsedRealtimeDriftAtInterval()
203 success = locationListener.await( in testUtcToElapsedRealtimeDriftAtInterval()
209 mTestLocationManager.removeLocationUpdates(locationListener); in testUtcToElapsedRealtimeDriftAtInterval()
212 List<Location> locations = locationListener.getReceivedLocationList(); in testUtcToElapsedRealtimeDriftAtInterval()
DGnssTtffTests.java147 TestLocationListener locationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in checkTtffByThreshold() local
148 mTestLocationManager.requestLocationUpdates(locationListener); in checkTtffByThreshold()
161 mTestLocationManager.removeLocationUpdates(locationListener); in checkTtffByThreshold()
DGnssStatusTest.java63 TestLocationListener locationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT); in checkGnssChange() local
64 mTestLocationManager.requestLocationUpdates(locationListener); in checkGnssChange()
75 mTestLocationManager.removeLocationUpdates(locationListener); in checkGnssChange()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt563 val locationListener = object : LocationListener { in nativeNoteOp() constant
573 locationManager.requestSingleUpdate(LocationManager.NETWORK_PROVIDER, locationListener, in nativeNoteOp()
591 assertThat(asyncNoted[0].message).contains(locationListener::class.java.name) in nativeNoteOp()
593 Integer.toString(System.identityHashCode(locationListener))) in nativeNoteOp()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java1016 LocationListenerCapture locationListener = new LocationListenerCapture(mContext)) { in testAddProviderRequestListener()
1020 Executors.newSingleThreadExecutor(), locationListener); in testAddProviderRequestListener()