diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-07-05 18:45:28 +0200 |
---|---|---|
committer | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-07-05 18:45:28 +0200 |
commit | 6de3427dab42c47d51355a727c9492e6693298df (patch) | |
tree | 0ff1afe7ad8396ce8a586b8ff519902d3eb497cb | |
parent | e0a8c35c1572f0f0dbbda4d871d0a919a79cbe3f (diff) | |
download | frameworks_base-6de3427dab42c47d51355a727c9492e6693298df.zip frameworks_base-6de3427dab42c47d51355a727c9492e6693298df.tar.gz frameworks_base-6de3427dab42c47d51355a727c9492e6693298df.tar.bz2 |
implement noise suppression for phone calls (1/2)
Change-Id: Ie67f15fd154dd0e64b6f3a007c938bf162e25e77
-rw-r--r-- | core/java/android/provider/Settings.java | 8 | ||||
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 83e28e4..157acea 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1912,6 +1912,13 @@ public final class Settings { public static final String TTY_MODE = "tty_mode"; /** + * Whether noise suppression is enabled. The value is + * boolean (1 or 0). + * @hide + */ + public static final String NOISE_SUPPRESSION = "noise_suppression"; + + /** * Whether the sounds effects (key clicks, lid open ...) are enabled. The value is * boolean (1 or 0). */ @@ -2618,6 +2625,7 @@ public final class Settings { CALL_AUTO_RETRY, HEARING_AID, TTY_MODE, + NOISE_SUPPRESSION, SOUND_EFFECTS_ENABLED, HAPTIC_FEEDBACK_ENABLED, POWER_SOUNDS_ENABLED, diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index 630dfa5..e0753d0 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -1355,6 +1355,9 @@ public class DatabaseHelper extends SQLiteOpenHelper { // Set default tty mode loadSetting(stmt, Settings.System.TTY_MODE, 0); + + // Set default noise suppression value + loadSetting(stmt, Settings.System.NOISE_SUPPRESSION, 0); loadBooleanSetting(stmt, Settings.System.AIRPLANE_MODE_ON, R.bool.def_airplane_mode_on); |