Remove unused settings constants from the SDK (framework).
The settings constants for various volumes do nothing and are used by nothing since API version 2. These are however backed up in the cloud which is a waste of resource. This change removes these constants from the SDK while keeping them hidden to avoid breaking released apps and also prevents unnecessary backup. Change-Id: I2e91863115f5a4b997a14f8d0f57b4dc9689cfab
This commit is contained in:
committed by
Svetoslav Ganov
parent
5ca9616733
commit
dbbeeb3f44
@@ -25931,7 +25931,6 @@ package android.provider {
|
||||
field public static final deprecated java.lang.String ALWAYS_FINISH_ACTIVITIES = "always_finish_activities";
|
||||
field public static final deprecated java.lang.String ANDROID_ID = "android_id";
|
||||
field public static final deprecated java.lang.String ANIMATOR_DURATION_SCALE = "animator_duration_scale";
|
||||
field public static final java.lang.String APPEND_FOR_LAST_AUDIBLE = "_last_audible";
|
||||
field public static final deprecated java.lang.String AUTO_TIME = "auto_time";
|
||||
field public static final deprecated java.lang.String AUTO_TIME_ZONE = "auto_time_zone";
|
||||
field public static final java.lang.String BLUETOOTH_DISCOVERABILITY = "bluetooth_discoverability";
|
||||
@@ -25994,14 +25993,6 @@ package android.provider {
|
||||
field public static final java.lang.String USER_ROTATION = "user_rotation";
|
||||
field public static final deprecated java.lang.String USE_GOOGLE_MAIL = "use_google_mail";
|
||||
field public static final java.lang.String VIBRATE_ON = "vibrate_on";
|
||||
field public static final java.lang.String VOLUME_ALARM = "volume_alarm";
|
||||
field public static final java.lang.String VOLUME_BLUETOOTH_SCO = "volume_bluetooth_sco";
|
||||
field public static final java.lang.String VOLUME_MUSIC = "volume_music";
|
||||
field public static final java.lang.String VOLUME_NOTIFICATION = "volume_notification";
|
||||
field public static final java.lang.String VOLUME_RING = "volume_ring";
|
||||
field public static final java.lang.String[] VOLUME_SETTINGS;
|
||||
field public static final java.lang.String VOLUME_SYSTEM = "volume_system";
|
||||
field public static final java.lang.String VOLUME_VOICE = "volume_voice";
|
||||
field public static final deprecated java.lang.String WAIT_FOR_DEBUGGER = "wait_for_debugger";
|
||||
field public static final deprecated java.lang.String WALLPAPER_ACTIVITY = "wallpaper_activity";
|
||||
field public static final deprecated java.lang.String WIFI_MAX_DHCP_RETRY_COUNT = "wifi_max_dhcp_retry_count";
|
||||
|
||||
@@ -34,6 +34,22 @@ package android.os {
|
||||
|
||||
}
|
||||
|
||||
package android.provider {
|
||||
|
||||
public static final class Settings.System extends android.provider.Settings.NameValueTable {
|
||||
field public static final java.lang.String APPEND_FOR_LAST_AUDIBLE = "_last_audible";
|
||||
field public static final java.lang.String VOLUME_ALARM = "volume_alarm";
|
||||
field public static final java.lang.String VOLUME_BLUETOOTH_SCO = "volume_bluetooth_sco";
|
||||
field public static final java.lang.String VOLUME_MUSIC = "volume_music";
|
||||
field public static final java.lang.String VOLUME_NOTIFICATION = "volume_notification";
|
||||
field public static final java.lang.String VOLUME_RING = "volume_ring";
|
||||
field public static final java.lang.String[] VOLUME_SETTINGS;
|
||||
field public static final java.lang.String VOLUME_SYSTEM = "volume_system";
|
||||
field public static final java.lang.String VOLUME_VOICE = "volume_voice";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.text.format {
|
||||
|
||||
public class DateFormat {
|
||||
|
||||
@@ -27537,7 +27537,6 @@ package android.provider {
|
||||
field public static final deprecated java.lang.String ALWAYS_FINISH_ACTIVITIES = "always_finish_activities";
|
||||
field public static final deprecated java.lang.String ANDROID_ID = "android_id";
|
||||
field public static final deprecated java.lang.String ANIMATOR_DURATION_SCALE = "animator_duration_scale";
|
||||
field public static final java.lang.String APPEND_FOR_LAST_AUDIBLE = "_last_audible";
|
||||
field public static final deprecated java.lang.String AUTO_TIME = "auto_time";
|
||||
field public static final deprecated java.lang.String AUTO_TIME_ZONE = "auto_time_zone";
|
||||
field public static final java.lang.String BLUETOOTH_DISCOVERABILITY = "bluetooth_discoverability";
|
||||
@@ -27600,14 +27599,6 @@ package android.provider {
|
||||
field public static final java.lang.String USER_ROTATION = "user_rotation";
|
||||
field public static final deprecated java.lang.String USE_GOOGLE_MAIL = "use_google_mail";
|
||||
field public static final java.lang.String VIBRATE_ON = "vibrate_on";
|
||||
field public static final java.lang.String VOLUME_ALARM = "volume_alarm";
|
||||
field public static final java.lang.String VOLUME_BLUETOOTH_SCO = "volume_bluetooth_sco";
|
||||
field public static final java.lang.String VOLUME_MUSIC = "volume_music";
|
||||
field public static final java.lang.String VOLUME_NOTIFICATION = "volume_notification";
|
||||
field public static final java.lang.String VOLUME_RING = "volume_ring";
|
||||
field public static final java.lang.String[] VOLUME_SETTINGS;
|
||||
field public static final java.lang.String VOLUME_SYSTEM = "volume_system";
|
||||
field public static final java.lang.String VOLUME_VOICE = "volume_voice";
|
||||
field public static final deprecated java.lang.String WAIT_FOR_DEBUGGER = "wait_for_debugger";
|
||||
field public static final deprecated java.lang.String WALLPAPER_ACTIVITY = "wallpaper_activity";
|
||||
field public static final deprecated java.lang.String WIFI_MAX_DHCP_RETRY_COUNT = "wifi_max_dhcp_retry_count";
|
||||
|
||||
@@ -34,6 +34,22 @@ package android.os {
|
||||
|
||||
}
|
||||
|
||||
package android.provider {
|
||||
|
||||
public static final class Settings.System extends android.provider.Settings.NameValueTable {
|
||||
field public static final java.lang.String APPEND_FOR_LAST_AUDIBLE = "_last_audible";
|
||||
field public static final java.lang.String VOLUME_ALARM = "volume_alarm";
|
||||
field public static final java.lang.String VOLUME_BLUETOOTH_SCO = "volume_bluetooth_sco";
|
||||
field public static final java.lang.String VOLUME_MUSIC = "volume_music";
|
||||
field public static final java.lang.String VOLUME_NOTIFICATION = "volume_notification";
|
||||
field public static final java.lang.String VOLUME_RING = "volume_ring";
|
||||
field public static final java.lang.String[] VOLUME_SETTINGS;
|
||||
field public static final java.lang.String VOLUME_SYSTEM = "volume_system";
|
||||
field public static final java.lang.String VOLUME_VOICE = "volume_voice";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.text.format {
|
||||
|
||||
public class DateFormat {
|
||||
|
||||
@@ -2254,54 +2254,66 @@ public final class Settings {
|
||||
/**
|
||||
* Ringer volume. This is used internally, changing this value will not
|
||||
* change the volume. See AudioManager.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String VOLUME_RING = "volume_ring";
|
||||
|
||||
/**
|
||||
* System/notifications volume. This is used internally, changing this
|
||||
* value will not change the volume. See AudioManager.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String VOLUME_SYSTEM = "volume_system";
|
||||
|
||||
/**
|
||||
* Voice call volume. This is used internally, changing this value will
|
||||
* not change the volume. See AudioManager.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String VOLUME_VOICE = "volume_voice";
|
||||
|
||||
/**
|
||||
* Music/media/gaming volume. This is used internally, changing this
|
||||
* value will not change the volume. See AudioManager.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String VOLUME_MUSIC = "volume_music";
|
||||
|
||||
/**
|
||||
* Alarm volume. This is used internally, changing this
|
||||
* value will not change the volume. See AudioManager.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String VOLUME_ALARM = "volume_alarm";
|
||||
|
||||
/**
|
||||
* Notification volume. This is used internally, changing this
|
||||
* value will not change the volume. See AudioManager.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String VOLUME_NOTIFICATION = "volume_notification";
|
||||
|
||||
/**
|
||||
* Bluetooth Headset volume. This is used internally, changing this value will
|
||||
* not change the volume. See AudioManager.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String VOLUME_BLUETOOTH_SCO = "volume_bluetooth_sco";
|
||||
|
||||
/**
|
||||
* Master volume (float in the range 0.0f to 1.0f).
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static final String VOLUME_MASTER = "volume_master";
|
||||
|
||||
private static final Validator VOLUME_MASTER_VALIDATOR =
|
||||
new InclusiveFloatRangeValidator(0, 1);
|
||||
|
||||
/**
|
||||
* Master volume mute (int 1 = mute, 0 = not muted).
|
||||
*
|
||||
@@ -2358,6 +2370,8 @@ public final class Settings {
|
||||
|
||||
/**
|
||||
* The mapping of stream type (integer) to its setting.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String[] VOLUME_SETTINGS = {
|
||||
VOLUME_VOICE, VOLUME_SYSTEM, VOLUME_RING, VOLUME_MUSIC,
|
||||
@@ -2368,6 +2382,8 @@ public final class Settings {
|
||||
* Appended to various volume related settings to record the previous
|
||||
* values before they the settings were affected by a silent/vibrate
|
||||
* ringer mode change.
|
||||
*
|
||||
* @removed Not used by anything since API 2.
|
||||
*/
|
||||
public static final String APPEND_FOR_LAST_AUDIBLE = "_last_audible";
|
||||
|
||||
@@ -2981,20 +2997,6 @@ public final class Settings {
|
||||
SCREEN_AUTO_BRIGHTNESS_ADJ,
|
||||
VIBRATE_INPUT_DEVICES,
|
||||
MODE_RINGER_STREAMS_AFFECTED,
|
||||
VOLUME_VOICE,
|
||||
VOLUME_SYSTEM,
|
||||
VOLUME_RING,
|
||||
VOLUME_MUSIC,
|
||||
VOLUME_ALARM,
|
||||
VOLUME_NOTIFICATION,
|
||||
VOLUME_BLUETOOTH_SCO,
|
||||
VOLUME_VOICE + APPEND_FOR_LAST_AUDIBLE,
|
||||
VOLUME_SYSTEM + APPEND_FOR_LAST_AUDIBLE,
|
||||
VOLUME_RING + APPEND_FOR_LAST_AUDIBLE,
|
||||
VOLUME_MUSIC + APPEND_FOR_LAST_AUDIBLE,
|
||||
VOLUME_ALARM + APPEND_FOR_LAST_AUDIBLE,
|
||||
VOLUME_NOTIFICATION + APPEND_FOR_LAST_AUDIBLE,
|
||||
VOLUME_BLUETOOTH_SCO + APPEND_FOR_LAST_AUDIBLE,
|
||||
TEXT_AUTO_REPLACE,
|
||||
TEXT_AUTO_CAPS,
|
||||
TEXT_AUTO_PUNCTUATE,
|
||||
@@ -3167,7 +3169,6 @@ public final class Settings {
|
||||
VALIDATORS.put(ADVANCED_SETTINGS, ADVANCED_SETTINGS_VALIDATOR);
|
||||
VALIDATORS.put(SCREEN_AUTO_BRIGHTNESS_ADJ, SCREEN_AUTO_BRIGHTNESS_ADJ_VALIDATOR);
|
||||
VALIDATORS.put(VIBRATE_INPUT_DEVICES, VIBRATE_INPUT_DEVICES_VALIDATOR);
|
||||
VALIDATORS.put(VOLUME_MASTER, VOLUME_MASTER_VALIDATOR);
|
||||
VALIDATORS.put(VOLUME_MASTER_MUTE, VOLUME_MASTER_MUTE_VALIDATOR);
|
||||
VALIDATORS.put(MICROPHONE_MUTE, MICROPHONE_MUTE_VALIDATOR);
|
||||
VALIDATORS.put(NOTIFICATIONS_USE_RING_VOLUME, NOTIFICATIONS_USE_RING_VOLUME_VALIDATOR);
|
||||
|
||||
Reference in New Issue
Block a user