diff options
author | David Christie <dnchrist@google.com> | 2013-08-21 17:09:30 -0700 |
---|---|---|
committer | David Christie <dnchrist@google.com> | 2013-08-21 17:09:30 -0700 |
commit | 4c18b585e43c391fcd8364cde52e7016147707fb (patch) | |
tree | 15b870997bf25c9a5f3601b15dbe3afa6a8d2a37 | |
parent | 435e7dfd922510bbc081800d0c6092ea52ed9cd1 (diff) | |
download | frameworks_base-4c18b585e43c391fcd8364cde52e7016147707fb.zip frameworks_base-4c18b585e43c391fcd8364cde52e7016147707fb.tar.gz frameworks_base-4c18b585e43c391fcd8364cde52e7016147707fb.tar.bz2 |
Remove newly added but deprecated master switch location setting methods.
Change-Id: I5e85a1efafe45cee89e08b97a0dcb016c91fd572
-rw-r--r-- | core/java/android/provider/Settings.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index fad6c73..7539a4b 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -4344,22 +4344,6 @@ public final class Settings { } /** - * Helper method for determining if the location master switch is enabled. - * - * TODO: worth retaining this method? - * - * @param cr the content resolver to use - * @return true if the master switch is enabled - * @deprecated use {@link #getLocationMode(ContentResolver)} != {@link #LOCATION_MODE_OFF} - * @hide - */ - @Deprecated - public static final boolean isLocationMasterSwitchEnabled(ContentResolver cr) { - int mode = getLocationMode(cr); - return mode != LOCATION_MODE_OFF; - } - - /** * Helper method for determining if a location provider is enabled. * @param cr the content resolver to use * @param provider the location provider to query @@ -4389,26 +4373,6 @@ public final class Settings { } /** - * Thread-safe method for enabling or disabling the location master switch. - * - * @param cr the content resolver to use - * @param enabled true if master switch should be enabled - * @deprecated use {@link #setLocationMode(ContentResolver, int)} with - * {@link #LOCATION_MODE_HIGH_ACCURACY} - * @hide - */ - @Deprecated - public static final void setLocationMasterSwitchEnabled(ContentResolver cr, - boolean enabled) { - int uid = UserHandle.myUserId(); - synchronized (mLocationSettingsLock) { - setLocationProviderEnabledForUser(cr, LocationManager.GPS_PROVIDER, enabled, uid); - setLocationProviderEnabledForUser(cr, LocationManager.NETWORK_PROVIDER, enabled, - uid); - } - } - - /** * Thread-safe method for enabling or disabling a single location provider. * @param cr the content resolver to use * @param provider the location provider to enable or disable |