Loading api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading location/java/android/location/LocationManager.java +13 −0 Original line number Diff line number Diff line Loading @@ -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; } } } Loading
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading
location/java/android/location/LocationManager.java +13 −0 Original line number Diff line number Diff line Loading @@ -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; } } }