Lines Matching refs:callback

473      * Register for location updates using the named provider, and a callback on
486 * implement the callback mechanism, or null to make callbacks on the calling
505 * Register for location updates using a Criteria, and a callback
519 * implement the callback mechanism, or null to make callbacks on the calling
626 * with extra's specific to the provider. If a callback was supplied
669 * a callback.
679 * implement the callback mechanism, or null to make callbacks on the calling
698 * a callback.
709 * implement the callback mechanism, or null to make callbacks on the calling
774 * Register for fused location updates using a LocationRequest and callback.
793 * <p>Only one LocationRequest can be registered for each unique callback
794 * or pending intent. So a subsequent request with the same callback or
799 * {@link android.location.Location} value. If a callback is supplied
801 * {@link LocationListener#onLocationChanged} callback, on the specified
822 * implement the callback mechanism, or null to make callbacks on the calling
1507 GnssStatusListenerTransport(GnssStatus.Callback callback) {
1508 this(callback, null);
1511 GnssStatusListenerTransport(GnssStatus.Callback callback, Handler handler) {
1512 mGnssCallback = callback;
1642 * Registers a GNSS status callback.
1644 * @param callback GNSS status callback object to register
1651 public boolean registerGnssStatusCallback(GnssStatus.Callback callback) {
1652 return registerGnssStatusCallback(callback, null);
1656 * Registers a GNSS status callback.
1658 * @param callback GNSS status callback object to register
1659 * @param handler the handler that the callback runs on.
1666 public boolean registerGnssStatusCallback(GnssStatus.Callback callback, Handler handler) {
1668 if (mGnssStatusListeners.get(callback) != null) {
1674 new GnssStatusListenerTransport(callback, handler);
1677 mGnssStatusListeners.put(callback, transport);
1687 * Removes a GNSS status callback.
1689 * @param callback GNSS status callback object to remove
1691 public void unregisterGnssStatusCallback(GnssStatus.Callback callback) {
1693 GnssStatusListenerTransport transport = mGnssStatusListeners.remove(callback);
1828 * Registers a GPS Measurement callback.
1830 * @param callback a {@link GnssMeasurementsEvent.Callback} object to register.
1831 * @return {@code true} if the callback was added successfully, {@code false} otherwise.
1834 public boolean registerGnssMeasurementsCallback(GnssMeasurementsEvent.Callback callback) {
1835 return registerGnssMeasurementsCallback(callback, null);
1839 * Registers a GPS Measurement callback.
1841 * @param callback a {@link GnssMeasurementsEvent.Callback} object to register.
1842 * @param handler the handler that the callback runs on.
1843 * @return {@code true} if the callback was added successfully, {@code false} otherwise.
1846 public boolean registerGnssMeasurementsCallback(GnssMeasurementsEvent.Callback callback,
1848 return mGnssMeasurementCallbackTransport.add(callback, handler);
1865 * Unregisters a GPS Measurement callback.
1867 * @param callback a {@link GnssMeasurementsEvent.Callback} object to remove.
1869 public void unregisterGnssMeasurementsCallback(GnssMeasurementsEvent.Callback callback) {
1870 mGnssMeasurementCallbackTransport.remove(callback);
1901 * Registers a GNSS Navigation Message callback.
1903 * @param callback a {@link GnssNavigationMessage.Callback} object to register.
1904 * @return {@code true} if the callback was added successfully, {@code false} otherwise.
1907 GnssNavigationMessage.Callback callback) {
1908 return registerGnssNavigationMessageCallback(callback, null);
1912 * Registers a GNSS Navigation Message callback.
1914 * @param callback a {@link GnssNavigationMessage.Callback} object to register.
1915 * @param handler the handler that the callback runs on.
1916 * @return {@code true} if the callback was added successfully, {@code false} otherwise.
1920 GnssNavigationMessage.Callback callback, Handler handler) {
1921 return mGnssNavigationMessageCallbackTransport.add(callback, handler);
1925 * Unregisters a GNSS Navigation Message callback.
1927 * @param callback a {@link GnssNavigationMessage.Callback} object to remove.
1930 GnssNavigationMessage.Callback callback) {
1931 mGnssNavigationMessageCallbackTransport.remove(callback);
1937 * callback to ensure that the data is copied atomically.
2002 * a callback to the listener, when it's internal buffer is full. If
2005 * @param callback The listener on which to return the batched locations
2006 * @param handler The handler on which to process the callback
2014 BatchedLocationCallback callback, Handler handler) {
2015 mBatchedLocationCallbackTransport.add(callback, handler);
2026 * All GNSS locations currently ready in the batch are returned via the callback sent in
2045 * @param callback the specific callback class to remove from the transport layer
2052 public boolean unregisterGnssBatchedLocationCallback(BatchedLocationCallback callback) {
2054 mBatchedLocationCallbackTransport.remove(callback);