Loading location/java/android/location/LocationManager.java +2 −3 Original line number Diff line number Diff line Loading @@ -424,8 +424,7 @@ public class LocationManager { * {@link LocationListener#onLocationChanged} method will be called for * each location update * * @throws IllegalArgumentException if provider is null or doesn't exist * @throws IllegalArgumentException if listener is null * @throws IllegalArgumentException if provider or listener is null * @throws RuntimeException if the calling thread has no Looper * @throws SecurityException if no suitable permission is present for the provider. */ Loading Loading @@ -977,7 +976,7 @@ public class LocationManager { * @return true if the provider is enabled * * @throws SecurityException if no suitable permission is present for the provider. * @throws IllegalArgumentException if provider is null or doesn't exist * @throws IllegalArgumentException if provider is null */ public boolean isProviderEnabled(String provider) { if (provider == null) { Loading services/java/com/android/server/LocationManagerService.java +2 −6 Original line number Diff line number Diff line Loading @@ -1613,8 +1613,6 @@ public class LocationManagerService extends ILocationManager.Stub implements Run } } catch (SecurityException se) { throw se; } catch (IllegalArgumentException iae) { throw iae; } catch (Exception e) { Slog.e(TAG, "isProviderEnabled got exception:", e); return false; Loading @@ -1638,7 +1636,7 @@ public class LocationManagerService extends ILocationManager.Stub implements Run LocationProviderInterface p = mProvidersByName.get(provider); if (p == null) { throw new IllegalArgumentException("provider=" + provider); return false; } return isAllowedBySettingsLocked(provider); } Loading @@ -1650,8 +1648,6 @@ public class LocationManagerService extends ILocationManager.Stub implements Run } } catch (SecurityException se) { throw se; } catch (IllegalArgumentException iae) { throw iae; } catch (Exception e) { Slog.e(TAG, "getLastKnownLocation got exception:", e); return null; Loading @@ -1663,7 +1659,7 @@ public class LocationManagerService extends ILocationManager.Stub implements Run LocationProviderInterface p = mProvidersByName.get(provider); if (p == null) { throw new IllegalArgumentException("provider=" + provider); return null; } if (!isAllowedBySettingsLocked(provider)) { Loading Loading
location/java/android/location/LocationManager.java +2 −3 Original line number Diff line number Diff line Loading @@ -424,8 +424,7 @@ public class LocationManager { * {@link LocationListener#onLocationChanged} method will be called for * each location update * * @throws IllegalArgumentException if provider is null or doesn't exist * @throws IllegalArgumentException if listener is null * @throws IllegalArgumentException if provider or listener is null * @throws RuntimeException if the calling thread has no Looper * @throws SecurityException if no suitable permission is present for the provider. */ Loading Loading @@ -977,7 +976,7 @@ public class LocationManager { * @return true if the provider is enabled * * @throws SecurityException if no suitable permission is present for the provider. * @throws IllegalArgumentException if provider is null or doesn't exist * @throws IllegalArgumentException if provider is null */ public boolean isProviderEnabled(String provider) { if (provider == null) { Loading
services/java/com/android/server/LocationManagerService.java +2 −6 Original line number Diff line number Diff line Loading @@ -1613,8 +1613,6 @@ public class LocationManagerService extends ILocationManager.Stub implements Run } } catch (SecurityException se) { throw se; } catch (IllegalArgumentException iae) { throw iae; } catch (Exception e) { Slog.e(TAG, "isProviderEnabled got exception:", e); return false; Loading @@ -1638,7 +1636,7 @@ public class LocationManagerService extends ILocationManager.Stub implements Run LocationProviderInterface p = mProvidersByName.get(provider); if (p == null) { throw new IllegalArgumentException("provider=" + provider); return false; } return isAllowedBySettingsLocked(provider); } Loading @@ -1650,8 +1648,6 @@ public class LocationManagerService extends ILocationManager.Stub implements Run } } catch (SecurityException se) { throw se; } catch (IllegalArgumentException iae) { throw iae; } catch (Exception e) { Slog.e(TAG, "getLastKnownLocation got exception:", e); return null; Loading @@ -1663,7 +1659,7 @@ public class LocationManagerService extends ILocationManager.Stub implements Run LocationProviderInterface p = mProvidersByName.get(provider); if (p == null) { throw new IllegalArgumentException("provider=" + provider); return null; } if (!isAllowedBySettingsLocked(provider)) { Loading