Loading core/java/android/provider/Settings.java +0 −8 Original line number Diff line number Diff line Loading @@ -9648,14 +9648,6 @@ public final class Settings { public static final String LOCATION_IGNORE_SETTINGS_PACKAGE_WHITELIST = "location_ignore_settings_package_whitelist"; /** * Maximum staleness allowed for last location when returned to clients with only foreground * location permissions. * @hide */ public static final String LOCATION_LAST_LOCATION_MAX_AGE_MILLIS = "location_last_location_max_age_millis"; /** * Whether TV will switch to MHL port when a mobile device is plugged in. * (0 = false, 1 = true) Loading location/java/android/location/ILocationManager.aidl +15 −20 Original line number Diff line number Diff line Loading @@ -47,16 +47,14 @@ interface ILocationManager Location getLastLocation(in LocationRequest request, String packageName, String featureId); boolean getCurrentLocation(in LocationRequest request, in ICancellationSignal cancellationSignal, in ILocationListener listener, String packageName, String featureId, String listenerIdentifier); String packageName, String featureId); void requestLocationUpdates(in LocationRequest request, in ILocationListener listener, in PendingIntent intent, String packageName, String featureId, String listenerIdentifier); void removeUpdates(in ILocationListener listener, in PendingIntent intent, String packageName); in PendingIntent intent, String packageName, String featureId); void removeUpdates(in ILocationListener listener, in PendingIntent intent); void requestGeofence(in LocationRequest request, in Geofence geofence, in PendingIntent intent, String packageName, String featureId, String listenerIdentifier); in PendingIntent intent, String packageName, String featureId); void removeGeofence(in Geofence fence, in PendingIntent intent, String packageName); boolean registerGnssStatusCallback(IGnssStatusListener callback, String packageName, Loading @@ -73,34 +71,31 @@ interface ILocationManager boolean addGnssMeasurementsListener(in GnssRequest request, in IGnssMeasurementsListener listener, String packageName, String featureId, String listenerIdentifier); String packageName, String featureId); void injectGnssMeasurementCorrections(in GnssMeasurementCorrections corrections, in String packageName); long getGnssCapabilities(in String packageName); long getGnssCapabilities(); void removeGnssMeasurementsListener(in IGnssMeasurementsListener listener); boolean addGnssAntennaInfoListener(in IGnssAntennaInfoListener listener, String packageName, String featureId, String listenerIdentifier); String packageName, String featureId); void removeGnssAntennaInfoListener(in IGnssAntennaInfoListener listener); boolean addGnssNavigationMessageListener(in IGnssNavigationMessageListener listener, String packageName, String featureId, String listenerIdentifier); String packageName, String featureId); void removeGnssNavigationMessageListener(in IGnssNavigationMessageListener listener); int getGnssYearOfHardware(); String getGnssHardwareModelName(); int getGnssBatchSize(String packageName); boolean addGnssBatchingCallback(in IBatchedLocationCallback callback, String packageName, String featureId, String listenerIdentifier); boolean addGnssBatchingCallback(in IBatchedLocationCallback callback, String packageName, String featureId); void removeGnssBatchingCallback(); boolean startGnssBatch(long periodNanos, boolean wakeOnFifoFull, String packageName); boolean startGnssBatch(long periodNanos, boolean wakeOnFifoFull, String packageName, String featureId); void flushGnssBatch(String packageName); boolean stopGnssBatch(); void injectLocation(in Location location); @UnsupportedAppUsage List<String> getAllProviders(); List<String> getProviders(in Criteria criteria, boolean enabledOnly); String getBestProvider(in Criteria criteria, boolean enabledOnly); Loading @@ -116,11 +111,11 @@ interface ILocationManager boolean isProviderEnabledForUser(String provider, int userId); boolean isLocationEnabledForUser(int userId); void setLocationEnabledForUser(boolean enabled, int userId); void addTestProvider(String name, in ProviderProperties properties, String opPackageName); void removeTestProvider(String provider, String opPackageName); void setTestProviderLocation(String provider, in Location loc, String opPackageName); void setTestProviderEnabled(String provider, boolean enabled, String opPackageName); List<LocationRequest> getTestProviderCurrentRequests(String provider, String opPackageName); void addTestProvider(String name, in ProviderProperties properties, String packageName, String featureId); void removeTestProvider(String provider, String packageName, String featureId); void setTestProviderLocation(String provider, in Location location, String packageName, String featureId); void setTestProviderEnabled(String provider, boolean enabled, String packageName, String featureId); List<LocationRequest> getTestProviderCurrentRequests(String provider); LocationTime getGnssTimeMillis(); boolean sendExtraCommand(String provider, String command, inout Bundle extras); Loading location/java/android/location/Location.java +10 −0 Original line number Diff line number Diff line Loading @@ -585,6 +585,16 @@ public class Location implements Parcelable { return mElapsedRealtimeNanos; } /** @hide */ public long getElapsedRealtimeAgeNanos(long referenceRealtimeNs) { return referenceRealtimeNs - mElapsedRealtimeNanos; } /** @hide */ public long getElapsedRealtimeAgeNanos() { return getElapsedRealtimeAgeNanos(SystemClock.elapsedRealtimeNanos()); } /** * Set the time of this fix, in elapsed real-time since system boot. * Loading location/java/android/location/LocationManager.java +22 −35 Original line number Diff line number Diff line Loading @@ -651,19 +651,6 @@ public class LocationManager { } } /** * Create a string that allows an app to identify a listener * * @param listener The listener * * @return A identifying string */ private static String getListenerIdentifier(@NonNull Object listener) { return listener.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(listener)); } /** * Asynchronously returns a single current location fix. This may activate sensors in order to * compute a new location, unlike {@link #getLastKnownLocation(String)}, which will only return Loading Loading @@ -742,8 +729,7 @@ public class LocationManager { try { if (mService.getCurrentLocation(currentLocationRequest, remoteCancellationSignal, listenerTransport, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(consumer))) { listenerTransport, mContext.getPackageName(), mContext.getAttributionTag())) { listenerTransport.register(mContext.getSystemService(AlarmManager.class), remoteCancellationSignal); if (cancellationSignal != null) { Loading Loading @@ -1189,8 +1175,7 @@ public class LocationManager { boolean registered = false; try { mService.requestLocationUpdates(locationRequest, transport, null, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(listener)); mContext.getPackageName(), mContext.getAttributionTag()); registered = true; } catch (RemoteException e) { throw e.rethrowFromSystemServer(); Loading Loading @@ -1235,8 +1220,7 @@ public class LocationManager { try { mService.requestLocationUpdates(locationRequest, null, pendingIntent, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(pendingIntent)); mContext.getPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1293,7 +1277,7 @@ public class LocationManager { transport.unregister(); try { mService.removeUpdates(transport, null, mContext.getPackageName()); mService.removeUpdates(transport, null); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading @@ -1312,7 +1296,7 @@ public class LocationManager { Preconditions.checkArgument(pendingIntent != null, "invalid null pending intent"); try { mService.removeUpdates(null, pendingIntent, mContext.getPackageName()); mService.removeUpdates(null, pendingIntent); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1515,7 +1499,8 @@ public class LocationManager { requiresSatellite, requiresCell, hasMonetaryCost, supportsAltitude, supportsSpeed, supportsBearing, powerRequirement, accuracy); try { mService.addTestProvider(provider, properties, mContext.getOpPackageName()); mService.addTestProvider(provider, properties, mContext.getOpPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading @@ -1536,7 +1521,8 @@ public class LocationManager { Preconditions.checkArgument(provider != null, "invalid null provider"); try { mService.removeTestProvider(provider, mContext.getOpPackageName()); mService.removeTestProvider(provider, mContext.getOpPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1570,7 +1556,8 @@ public class LocationManager { } try { mService.setTestProviderLocation(provider, location, mContext.getOpPackageName()); mService.setTestProviderLocation(provider, location, mContext.getOpPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1599,7 +1586,8 @@ public class LocationManager { Preconditions.checkArgument(provider != null, "invalid null provider"); try { mService.setTestProviderEnabled(provider, enabled, mContext.getOpPackageName()); mService.setTestProviderEnabled(provider, enabled, mContext.getOpPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1643,8 +1631,7 @@ public class LocationManager { public List<LocationRequest> getTestProviderCurrentRequests(String providerName) { Preconditions.checkArgument(providerName != null, "invalid null provider"); try { return mService.getTestProviderCurrentRequests(providerName, mContext.getOpPackageName()); return mService.getTestProviderCurrentRequests(providerName); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1711,7 +1698,7 @@ public class LocationManager { LocationRequest request = new LocationRequest().setExpireIn(expiration); try { mService.requestGeofence(request, fence, intent, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(intent)); mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1798,7 +1785,7 @@ public class LocationManager { try { mService.requestGeofence(request, fence, intent, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(intent)); mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1867,7 +1854,7 @@ public class LocationManager { */ public @NonNull GnssCapabilities getGnssCapabilities() { try { long gnssCapabilities = mService.getGnssCapabilities(mContext.getPackageName()); long gnssCapabilities = mService.getGnssCapabilities(); if (gnssCapabilities == GnssCapabilities.INVALID_CAPABILITIES) { gnssCapabilities = 0L; } Loading Loading @@ -2493,7 +2480,7 @@ public class LocationManager { try { if (mBatchedLocationCallbackManager.addListener(callback, handler)) { return mService.startGnssBatch(periodNanos, wakeOnFifoFull, mContext.getPackageName()); mContext.getPackageName(), mContext.getAttributionTag()); } return false; } catch (RemoteException e) { Loading Loading @@ -3012,7 +2999,7 @@ public class LocationManager { GnssMeasurementsListener transport = new GnssMeasurementsListener(); if (mService.addGnssMeasurementsListener(request, transport, mContext.getPackageName(), mContext.getAttributionTag(), "gnss measurement callback")) { mContext.getAttributionTag())) { mListenerTransport = transport; return true; } else { Loading Loading @@ -3065,7 +3052,7 @@ public class LocationManager { GnssNavigationMessageListener transport = new GnssNavigationMessageListener(); if (mService.addGnssNavigationMessageListener(transport, mContext.getPackageName(), mContext.getAttributionTag(), "gnss navigation callback")) { mContext.getAttributionTag())) { mListenerTransport = transport; return true; } else { Loading Loading @@ -3106,7 +3093,7 @@ public class LocationManager { GnssAntennaInfoListener transport = new GnssAntennaInfoListener(); if (mService.addGnssAntennaInfoListener(transport, mContext.getPackageName(), mContext.getAttributionTag(), "gnss antenna info callback")) { mContext.getAttributionTag())) { mListenerTransport = transport; return true; } else { Loading Loading @@ -3143,7 +3130,7 @@ public class LocationManager { BatchedLocationCallback transport = new BatchedLocationCallback(); if (mService.addGnssBatchingCallback(transport, mContext.getPackageName(), mContext.getAttributionTag(), "batched location callback")) { mContext.getAttributionTag())) { mListenerTransport = transport; return true; } else { Loading packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java +0 −1 Original line number Diff line number Diff line Loading @@ -318,7 +318,6 @@ public class SettingsBackupTest { Settings.Global.LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS, Settings.Global.LOCATION_BACKGROUND_THROTTLE_PACKAGE_WHITELIST, Settings.Global.LOCATION_IGNORE_SETTINGS_PACKAGE_WHITELIST, Settings.Global.LOCATION_LAST_LOCATION_MAX_AGE_MILLIS, Settings.Global.LOCATION_GLOBAL_KILL_SWITCH, Settings.Global.LOCATION_SETTINGS_LINK_TO_PERMISSIONS_ENABLED, Settings.Global.LOCK_SOUND, Loading Loading
core/java/android/provider/Settings.java +0 −8 Original line number Diff line number Diff line Loading @@ -9648,14 +9648,6 @@ public final class Settings { public static final String LOCATION_IGNORE_SETTINGS_PACKAGE_WHITELIST = "location_ignore_settings_package_whitelist"; /** * Maximum staleness allowed for last location when returned to clients with only foreground * location permissions. * @hide */ public static final String LOCATION_LAST_LOCATION_MAX_AGE_MILLIS = "location_last_location_max_age_millis"; /** * Whether TV will switch to MHL port when a mobile device is plugged in. * (0 = false, 1 = true) Loading
location/java/android/location/ILocationManager.aidl +15 −20 Original line number Diff line number Diff line Loading @@ -47,16 +47,14 @@ interface ILocationManager Location getLastLocation(in LocationRequest request, String packageName, String featureId); boolean getCurrentLocation(in LocationRequest request, in ICancellationSignal cancellationSignal, in ILocationListener listener, String packageName, String featureId, String listenerIdentifier); String packageName, String featureId); void requestLocationUpdates(in LocationRequest request, in ILocationListener listener, in PendingIntent intent, String packageName, String featureId, String listenerIdentifier); void removeUpdates(in ILocationListener listener, in PendingIntent intent, String packageName); in PendingIntent intent, String packageName, String featureId); void removeUpdates(in ILocationListener listener, in PendingIntent intent); void requestGeofence(in LocationRequest request, in Geofence geofence, in PendingIntent intent, String packageName, String featureId, String listenerIdentifier); in PendingIntent intent, String packageName, String featureId); void removeGeofence(in Geofence fence, in PendingIntent intent, String packageName); boolean registerGnssStatusCallback(IGnssStatusListener callback, String packageName, Loading @@ -73,34 +71,31 @@ interface ILocationManager boolean addGnssMeasurementsListener(in GnssRequest request, in IGnssMeasurementsListener listener, String packageName, String featureId, String listenerIdentifier); String packageName, String featureId); void injectGnssMeasurementCorrections(in GnssMeasurementCorrections corrections, in String packageName); long getGnssCapabilities(in String packageName); long getGnssCapabilities(); void removeGnssMeasurementsListener(in IGnssMeasurementsListener listener); boolean addGnssAntennaInfoListener(in IGnssAntennaInfoListener listener, String packageName, String featureId, String listenerIdentifier); String packageName, String featureId); void removeGnssAntennaInfoListener(in IGnssAntennaInfoListener listener); boolean addGnssNavigationMessageListener(in IGnssNavigationMessageListener listener, String packageName, String featureId, String listenerIdentifier); String packageName, String featureId); void removeGnssNavigationMessageListener(in IGnssNavigationMessageListener listener); int getGnssYearOfHardware(); String getGnssHardwareModelName(); int getGnssBatchSize(String packageName); boolean addGnssBatchingCallback(in IBatchedLocationCallback callback, String packageName, String featureId, String listenerIdentifier); boolean addGnssBatchingCallback(in IBatchedLocationCallback callback, String packageName, String featureId); void removeGnssBatchingCallback(); boolean startGnssBatch(long periodNanos, boolean wakeOnFifoFull, String packageName); boolean startGnssBatch(long periodNanos, boolean wakeOnFifoFull, String packageName, String featureId); void flushGnssBatch(String packageName); boolean stopGnssBatch(); void injectLocation(in Location location); @UnsupportedAppUsage List<String> getAllProviders(); List<String> getProviders(in Criteria criteria, boolean enabledOnly); String getBestProvider(in Criteria criteria, boolean enabledOnly); Loading @@ -116,11 +111,11 @@ interface ILocationManager boolean isProviderEnabledForUser(String provider, int userId); boolean isLocationEnabledForUser(int userId); void setLocationEnabledForUser(boolean enabled, int userId); void addTestProvider(String name, in ProviderProperties properties, String opPackageName); void removeTestProvider(String provider, String opPackageName); void setTestProviderLocation(String provider, in Location loc, String opPackageName); void setTestProviderEnabled(String provider, boolean enabled, String opPackageName); List<LocationRequest> getTestProviderCurrentRequests(String provider, String opPackageName); void addTestProvider(String name, in ProviderProperties properties, String packageName, String featureId); void removeTestProvider(String provider, String packageName, String featureId); void setTestProviderLocation(String provider, in Location location, String packageName, String featureId); void setTestProviderEnabled(String provider, boolean enabled, String packageName, String featureId); List<LocationRequest> getTestProviderCurrentRequests(String provider); LocationTime getGnssTimeMillis(); boolean sendExtraCommand(String provider, String command, inout Bundle extras); Loading
location/java/android/location/Location.java +10 −0 Original line number Diff line number Diff line Loading @@ -585,6 +585,16 @@ public class Location implements Parcelable { return mElapsedRealtimeNanos; } /** @hide */ public long getElapsedRealtimeAgeNanos(long referenceRealtimeNs) { return referenceRealtimeNs - mElapsedRealtimeNanos; } /** @hide */ public long getElapsedRealtimeAgeNanos() { return getElapsedRealtimeAgeNanos(SystemClock.elapsedRealtimeNanos()); } /** * Set the time of this fix, in elapsed real-time since system boot. * Loading
location/java/android/location/LocationManager.java +22 −35 Original line number Diff line number Diff line Loading @@ -651,19 +651,6 @@ public class LocationManager { } } /** * Create a string that allows an app to identify a listener * * @param listener The listener * * @return A identifying string */ private static String getListenerIdentifier(@NonNull Object listener) { return listener.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(listener)); } /** * Asynchronously returns a single current location fix. This may activate sensors in order to * compute a new location, unlike {@link #getLastKnownLocation(String)}, which will only return Loading Loading @@ -742,8 +729,7 @@ public class LocationManager { try { if (mService.getCurrentLocation(currentLocationRequest, remoteCancellationSignal, listenerTransport, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(consumer))) { listenerTransport, mContext.getPackageName(), mContext.getAttributionTag())) { listenerTransport.register(mContext.getSystemService(AlarmManager.class), remoteCancellationSignal); if (cancellationSignal != null) { Loading Loading @@ -1189,8 +1175,7 @@ public class LocationManager { boolean registered = false; try { mService.requestLocationUpdates(locationRequest, transport, null, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(listener)); mContext.getPackageName(), mContext.getAttributionTag()); registered = true; } catch (RemoteException e) { throw e.rethrowFromSystemServer(); Loading Loading @@ -1235,8 +1220,7 @@ public class LocationManager { try { mService.requestLocationUpdates(locationRequest, null, pendingIntent, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(pendingIntent)); mContext.getPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1293,7 +1277,7 @@ public class LocationManager { transport.unregister(); try { mService.removeUpdates(transport, null, mContext.getPackageName()); mService.removeUpdates(transport, null); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading @@ -1312,7 +1296,7 @@ public class LocationManager { Preconditions.checkArgument(pendingIntent != null, "invalid null pending intent"); try { mService.removeUpdates(null, pendingIntent, mContext.getPackageName()); mService.removeUpdates(null, pendingIntent); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1515,7 +1499,8 @@ public class LocationManager { requiresSatellite, requiresCell, hasMonetaryCost, supportsAltitude, supportsSpeed, supportsBearing, powerRequirement, accuracy); try { mService.addTestProvider(provider, properties, mContext.getOpPackageName()); mService.addTestProvider(provider, properties, mContext.getOpPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading @@ -1536,7 +1521,8 @@ public class LocationManager { Preconditions.checkArgument(provider != null, "invalid null provider"); try { mService.removeTestProvider(provider, mContext.getOpPackageName()); mService.removeTestProvider(provider, mContext.getOpPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1570,7 +1556,8 @@ public class LocationManager { } try { mService.setTestProviderLocation(provider, location, mContext.getOpPackageName()); mService.setTestProviderLocation(provider, location, mContext.getOpPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1599,7 +1586,8 @@ public class LocationManager { Preconditions.checkArgument(provider != null, "invalid null provider"); try { mService.setTestProviderEnabled(provider, enabled, mContext.getOpPackageName()); mService.setTestProviderEnabled(provider, enabled, mContext.getOpPackageName(), mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1643,8 +1631,7 @@ public class LocationManager { public List<LocationRequest> getTestProviderCurrentRequests(String providerName) { Preconditions.checkArgument(providerName != null, "invalid null provider"); try { return mService.getTestProviderCurrentRequests(providerName, mContext.getOpPackageName()); return mService.getTestProviderCurrentRequests(providerName); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1711,7 +1698,7 @@ public class LocationManager { LocationRequest request = new LocationRequest().setExpireIn(expiration); try { mService.requestGeofence(request, fence, intent, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(intent)); mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1798,7 +1785,7 @@ public class LocationManager { try { mService.requestGeofence(request, fence, intent, mContext.getPackageName(), mContext.getAttributionTag(), getListenerIdentifier(intent)); mContext.getAttributionTag()); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } Loading Loading @@ -1867,7 +1854,7 @@ public class LocationManager { */ public @NonNull GnssCapabilities getGnssCapabilities() { try { long gnssCapabilities = mService.getGnssCapabilities(mContext.getPackageName()); long gnssCapabilities = mService.getGnssCapabilities(); if (gnssCapabilities == GnssCapabilities.INVALID_CAPABILITIES) { gnssCapabilities = 0L; } Loading Loading @@ -2493,7 +2480,7 @@ public class LocationManager { try { if (mBatchedLocationCallbackManager.addListener(callback, handler)) { return mService.startGnssBatch(periodNanos, wakeOnFifoFull, mContext.getPackageName()); mContext.getPackageName(), mContext.getAttributionTag()); } return false; } catch (RemoteException e) { Loading Loading @@ -3012,7 +2999,7 @@ public class LocationManager { GnssMeasurementsListener transport = new GnssMeasurementsListener(); if (mService.addGnssMeasurementsListener(request, transport, mContext.getPackageName(), mContext.getAttributionTag(), "gnss measurement callback")) { mContext.getAttributionTag())) { mListenerTransport = transport; return true; } else { Loading Loading @@ -3065,7 +3052,7 @@ public class LocationManager { GnssNavigationMessageListener transport = new GnssNavigationMessageListener(); if (mService.addGnssNavigationMessageListener(transport, mContext.getPackageName(), mContext.getAttributionTag(), "gnss navigation callback")) { mContext.getAttributionTag())) { mListenerTransport = transport; return true; } else { Loading Loading @@ -3106,7 +3093,7 @@ public class LocationManager { GnssAntennaInfoListener transport = new GnssAntennaInfoListener(); if (mService.addGnssAntennaInfoListener(transport, mContext.getPackageName(), mContext.getAttributionTag(), "gnss antenna info callback")) { mContext.getAttributionTag())) { mListenerTransport = transport; return true; } else { Loading Loading @@ -3143,7 +3130,7 @@ public class LocationManager { BatchedLocationCallback transport = new BatchedLocationCallback(); if (mService.addGnssBatchingCallback(transport, mContext.getPackageName(), mContext.getAttributionTag(), "batched location callback")) { mContext.getAttributionTag())) { mListenerTransport = transport; return true; } else { Loading
packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java +0 −1 Original line number Diff line number Diff line Loading @@ -318,7 +318,6 @@ public class SettingsBackupTest { Settings.Global.LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS, Settings.Global.LOCATION_BACKGROUND_THROTTLE_PACKAGE_WHITELIST, Settings.Global.LOCATION_IGNORE_SETTINGS_PACKAGE_WHITELIST, Settings.Global.LOCATION_LAST_LOCATION_MAX_AGE_MILLIS, Settings.Global.LOCATION_GLOBAL_KILL_SWITCH, Settings.Global.LOCATION_SETTINGS_LINK_TO_PERMISSIONS_ENABLED, Settings.Global.LOCK_SOUND, Loading