/packages/apps/Settings/src/com/android/settings/ |
SoundSettings.java | 17 package com.android.settings; 19 import com.android.settings.bluetooth.DockEventReceiver; 47 import android.provider.Settings; 155 mVibrateWhenRinging.setChecked(Settings.System.getInt(resolver, 156 Settings.System.VIBRATE_WHEN_RINGING, 0) != 0); 160 mDtmfTone.setChecked(Settings.System.getInt(resolver, 161 Settings.System.DTMF_TONE_WHEN_DIALING, 1) != 0); 164 mSoundEffects.setChecked(Settings.System.getInt(resolver, 165 Settings.System.SOUND_EFFECTS_ENABLED, 1) != 0); 168 mHapticFeedback.setChecked(Settings.System.getInt(resolver [all...] |
AirplaneModeEnabler.java | 17 package com.android.settings; 28 import android.provider.Settings; 79 Settings.Global.getUriFor(Settings.Global.AIRPLANE_MODE_ON), true, 90 return Settings.Global.getInt(context.getContentResolver(), 91 Settings.Global.AIRPLANE_MODE_ON, 0) != 0; 96 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON,
|
LocationSettings.java | 17 package com.android.settings; 31 import android.provider.Settings; 40 * Gesture lock pattern settings. 45 // Location Settings 56 // These provide support for receiving notification when Location Manager settings change. 57 // This is necessary because the Network Location Provider can change settings 66 // listen for Location Manager settings changes 67 Cursor settingsCursor = getContentResolver().query(Settings.Secure.CONTENT_URI, null, 68 "(" + Settings.System.NAME + "=?)", 69 new String[]{Settings.Secure.LOCATION_PROVIDERS_ALLOWED} [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
SettingsActivity.java | 28 import com.android.inputmethod.pinyin.Settings; 48 addPreferencesFromResource(R.xml.settings); 61 Settings.getInstance(PreferenceManager 77 Settings.releaseInstance(); 84 Settings.setKeySound(mKeySoundPref.isChecked()); 85 Settings.setVibrate(mVibratePref.isChecked()); 86 Settings.setPrediction(mPredictionPref.isChecked()); 88 Settings.writeBack(); 96 mKeySoundPref.setChecked(Settings.getKeySound()); 97 mVibratePref.setChecked(Settings.getVibrate()) [all...] |
Settings.java | 23 * Class used to maintain settings. 25 public class Settings { 34 private static Settings mInstance = null; 40 protected Settings(SharedPreferences pref) { 45 public static Settings getInstance(SharedPreferences pref) { 47 mInstance = new Settings(pref);
|
/packages/apps/Phone/src/com/android/phone/ |
CdmaSystemSelectListPreference.java | 26 import android.provider.Settings; 27 import android.provider.Settings.Secure; 72 Settings.Global.getInt(mPhone.getContext().getContentResolver(), 73 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 84 //Set the Settings.Secure network mode 85 Settings.Global.putInt(mPhone.getContext().getContentResolver(), 86 Settings.Global.CDMA_ROAMING_MODE, 121 int settingsRoamingMode = Settings.Global.getInt( 123 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 130 //changes the Settings.Secure accordingly to statusCdmaRoamingMod [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
SettingsTest.java | 27 import android.provider.Settings; 33 Settings.System._ID, Settings.System.NAME, Settings.System.VALUE 48 cr.acquireContentProviderClient(Settings.System.CONTENT_URI); 54 value.put(Settings.System.NAME, insertName); 55 value.put(Settings.System.VALUE, insertValue); 57 provider.insert(Settings.System.CONTENT_URI, value); 58 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, 59 Settings.System.NAME + "=\"" + insertName + "\"", null, null, null) [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
BrightnessLimit.java | 25 import android.provider.Settings; 57 Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, 0);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
BootReceiver.java | 23 import android.provider.Settings; 38 if (Settings.Global.getInt(res, Settings.Global.SHOW_PROCESSES, 0) != 0) {
|
/cts/suite/audio_quality/lib/src/ |
Report.cpp | 18 #include "Settings.h" 62 Settings::Instance()->addSetting(Settings::EREPORT_FILE, report); 110 Settings::Instance()->getSetting(Settings::EREPORT_TIME).string()); 113 printf(" %s", Settings::Instance()->getSetting(Settings::EDEVICE_INFO).string()); 116 Settings::Instance()->getSetting(Settings::ETEST_XML).string());
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilitySettingsTest.java | 22 import android.provider.Settings; 30 * accessibility settings has an activity that handles it. 37 Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS); 41 // make sure accessibility settings exist 42 String message = "Accessibility settings activity must be launched via Intent " + 43 "Settings.ACTION_ACCESSIBILITY_SETTINGS";
|
/cts/tests/tests/media/src/android/media/cts/ |
AsyncPlayerTest.java | 23 import android.provider.Settings; 29 final Uri PLAY_URI = Settings.System.DEFAULT_NOTIFICATION_URI;
|
/external/webkit/Source/WebCore/page/ |
DOMTimer.h | 37 class Settings; 40 friend class Settings; 64 // These are only modified via static methods in Settings.
|
/frameworks/base/services/java/com/android/server/am/ |
CoreSettingsObserver.java | 23 import android.provider.Settings; 24 import android.provider.Settings.SettingNotFoundException; 31 * Helper class for watching a set of core settings which the framework 33 * disk I/O operations. Note: This class assumes that all core settings reside 34 * in {@link Settings.Secure}. 43 sCoreSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 44 // add other core settings here... 76 Uri uri = Settings.Secure.getUriFor(setting); 89 String value = Settings.Secure.getString(context.getContentResolver(), 93 int value = Settings.Secure.getInt(context.getContentResolver() [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/ |
ContactsPreferences.java | 24 import android.provider.Settings; 25 import android.provider.Settings.SettingNotFoundException; 68 mSortOrder = Settings.System.getInt(mContext.getContentResolver(), 79 Settings.System.putInt(mContext.getContentResolver(), 102 mDisplayOrder = Settings.System.getInt(mContext.getContentResolver(), 113 Settings.System.putInt(mContext.getContentResolver(), 129 Settings.System.getUriFor( 132 Settings.System.getUriFor(
|
/packages/apps/SpareParts/src/com/android/spare_parts/ |
SpareParts.java | 1 /* //device/apps/Settings/src/com/android/settings/Keyguard.java 37 import android.provider.Settings; 38 import android.provider.Settings.SettingNotFoundException; 128 mCompatibilityMode.setChecked(Settings.Global.getInt(getContentResolver(), 129 Settings.Global.COMPATIBILITY_MODE, 1) != 0); 145 mFancyImeAnimationsPref.setChecked(Settings.Global.getInt( 147 Settings.Global.FANCY_IME_ANIMATIONS, 0) != 0); 148 mHapticFeedbackPref.setChecked(Settings.System.getInt( 150 Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) != 0) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
SettingsValues.java | 72 // Deduced settings 83 // Debug settings 112 // Get the settings preferences 113 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); 114 mVibrateOn = Settings.readVibrationEnabled(prefs, res); 115 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); 116 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); 118 Settings.PREF_SLIDING_KEY_INPUT_PREVIEW, true); 121 mVoiceMode = prefs.getString(Settings.PREF_VOICE_MODE, voiceModeMain); 123 Settings.PREF_AUTO_CORRECTION_THRESHOLD [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
BrightnessController.java | 17 package com.android.systemui.settings; 31 import android.provider.Settings; 32 import android.provider.Settings.SettingNotFoundException; 66 Settings.System.getUriFor(Settings.System.SCREEN_BRIGHTNESS_MODE); 68 Settings.System.getUriFor(Settings.System.SCREEN_BRIGHTNESS); 165 setMode(automatic ? Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC 166 : Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL); 174 Settings.System.putIntForUser(mContext.getContentResolver() [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
SettingsSecureCompatUtils.java | 22 // Note that Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD has been introduced 25 android.provider.Settings.Secure.class, "ACCESSIBILITY_SPEAK_PASSWORD");
|
/frameworks/base/media/java/android/media/audiofx/ |
PresetReverb.java | 234 * The Settings class regroups all preset reverb parameters. It is used in 238 public static class Settings { 241 public Settings() { 245 * Settings class constructor from a key=value; pairs formatted string. The string is 246 * typically returned by Settings.toString() method. 249 public Settings(String settings) { 250 StringTokenizer st = new StringTokenizer(settings, "=;"); 253 throw new IllegalArgumentException("settings: " + settings); 292 Settings settings = new Settings(); local [all...] |
/frameworks/base/services/java/com/android/server/ |
DockObserver.java | 32 import android.provider.Settings; 137 if (Settings.Global.getInt(cr, 138 Settings.Global.DEVICE_PROVISIONED, 0) == 0) { 150 if (Settings.Global.getInt(cr, 151 Settings.Global.DOCK_SOUNDS_ENABLED, 1) == 1) { 157 whichSound = Settings.Global.DESK_UNDOCK_SOUND; 159 whichSound = Settings.Global.CAR_UNDOCK_SOUND; 165 whichSound = Settings.Global.DESK_DOCK_SOUND; 167 whichSound = Settings.Global.CAR_DOCK_SOUND; 172 final String soundPath = Settings.Global.getString(cr, whichSound) [all...] |
/frameworks/base/core/java/android/service/dreams/ |
Sandman.java | 27 import android.provider.Settings; 111 return Settings.Secure.getIntForUser(context.getContentResolver(), 112 Settings.Secure.SCREENSAVER_ENABLED, def, 119 return Settings.Secure.getIntForUser(context.getContentResolver(), 120 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, def,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
AirplaneModeController.java | 28 import android.provider.Settings; 77 return 0 != Settings.Global.getInt(cr, Settings.Global.AIRPLANE_MODE_ON, 0); 85 Settings.Global.putInt( 87 Settings.Global.AIRPLANE_MODE_ON,
|
/frameworks/base/core/java/android/provider/ |
Settings.java | 61 * The Settings provider contains global system-level device preferences. 63 public final class Settings { 65 // Intent actions for Settings 68 * Activity Action: Show system settings. 75 public static final String ACTION_SETTINGS = "android.settings.SETTINGS"; 78 * Activity Action: Show settings to allow configuration of APNs. 85 public static final String ACTION_APN_SETTINGS = "android.settings.APN_SETTINGS"; 88 * Activity Action: Show settings to allow configuration of current location 100 "android.settings.LOCATION_SOURCE_SETTINGS" [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 17 package com.android.providers.settings; 30 import android.provider.Settings; 55 if (Settings.System.SCREEN_BRIGHTNESS.equals(name)) { 57 } else if (Settings.System.SOUND_EFFECTS_ENABLED.equals(name)) { 59 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) { 62 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) { 71 // These are the critical accessibility settings that are required for a 72 // blind user to be able to interact with the device. If these settings are 76 if (Settings.Secure.ACCESSIBILITY_ENABLED.equals(name) 77 || Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION.equals(name [all...] |