Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e57c50d authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Android (Google) Code Review
Browse files

Merge "Expose LocationManager#getNetworkProviderPackage as @SystemApi"

parents f0e6794c 71225ecc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2615,6 +2615,7 @@ package android.location {
    method public deprecated boolean addGpsNavigationMessageListener(android.location.GpsNavigationMessageEvent.Listener);
    method public void flushGnssBatch();
    method public int getGnssBatchSize();
    method public java.lang.String getNetworkProviderPackage();
    method public boolean isLocationEnabledForUser(android.os.UserHandle);
    method public boolean isProviderEnabledForUser(java.lang.String, android.os.UserHandle);
    method public boolean registerGnssBatchedLocationCallback(long, boolean, android.location.BatchedLocationCallback, android.os.Handler);
+13 −0
Original line number Diff line number Diff line
@@ -2378,4 +2378,17 @@ public class LocationManager {
            throw new IllegalArgumentException("invalid geofence: " + fence);
        }
    }

    /**
     * @hide
     */
    @SystemApi
    public String getNetworkProviderPackage() {
        try {
            return mService.getNetworkProviderPackage();
        } catch (RemoteException e) {
            e.rethrowFromSystemServer();
            return null;
        }
    }
}