/cts/suite/audio_quality/lib/src/ |
Settings.cpp | 17 #include "Settings.h" 20 Settings* Settings::mInstance = NULL; 22 Settings* Settings::Instance() 25 mInstance = new Settings(); 30 void Settings::Finalize() 37 void Settings::addSetting(SettingType type, const android::String8 setting) 41 const android::String8& Settings::getSetting(SettingType type)
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
SettingsProviderTest.java | 31 import android.provider.Settings; 43 Settings.Secure.putString(r, "test_service", "Value"); 44 assertEquals("Value", Settings.Secure.getString(r, "test_service")); 47 Settings.Secure.putString(r, "test_service", "New"); 48 assertEquals("New", Settings.Secure.getString(r, "test_service")); 51 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null)); 52 assertEquals(null, Settings.Secure.getString(r, "test_service")); 55 Settings.System.putString(r, "test_setting", "Value"); 56 assertEquals("Value", Settings.System.getString(r, "test_setting")); 58 Settings.System.putString(r, "test_setting", "New") [all...] |
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
SettingsDelegate.h | 40 class Settings; 44 explicit SettingsDelegate(PassOwnPtr<Settings>); 47 Settings* settings() const { return m_settings.get(); } function in class:WebCore::SettingsDelegate 50 // functions to make generating Settings.in slightly easier. 67 OwnPtr<Settings> const m_settings;
|
Settings.cpp | 27 #include "core/frame/Settings.h" 67 Settings::Settings() 79 PassOwnPtr<Settings> Settings::create() 81 return adoptPtr(new Settings); 86 void Settings::setDelegate(SettingsDelegate* delegate) 91 void Settings::invalidate(SettingsDelegate::ChangeType changeType) 97 void Settings::setTextAutosizingEnabled(bool textAutosizingEnabled) 106 // FIXME: Move to Settings.in once make_settings can understand IntSize [all...] |
Settings.h | 42 class Settings { 43 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED; 45 static PassOwnPtr<Settings> create(); 71 Settings();
|
/packages/apps/Settings/src/com/android/settings/ |
AirplaneModeVoiceActivity.java | 17 package com.android.settings; 20 import android.provider.Settings; 24 * Activity for modifying the {@link Settings.Global#AIRPLANE_MODE_ON AIRPLANE_MODE_ON} 31 if (intent.hasExtra(Settings.EXTRA_AIRPLANE_MODE_ENABLED)) { 33 intent.getBooleanExtra(Settings.EXTRA_AIRPLANE_MODE_ENABLED, false); 34 Settings.Global.putInt(getContentResolver(), 35 Settings.Global.AIRPLANE_MODE_ON, enabled ? 1 : 0);
|
ApplicationSettings.java | 17 package com.android.settings; 26 import android.provider.Settings; 63 boolean userSetInstLocation = (Settings.Global.getInt(getContentResolver(), 64 Settings.Global.SET_INSTALL_LOCATION, 0) != 0); 81 Settings.Global.putInt(getContentResolver(), 82 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_DEVICE); 84 Settings.Global.putInt(getContentResolver(), 85 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_SDCARD); 87 Settings.Global.putInt(getContentResolver(), 88 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
PreferenceUtils.java | 17 package com.android.tv.settings; 20 import android.provider.Settings; 21 import android.provider.Settings.Global; 35 return Settings.Global.getInt(mContext.getContentResolver(), 36 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0) == 1; 40 Settings.Global.putInt(mContext.getContentResolver(), 41 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, enabled ? 1 : 0);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiSettingsStore.java | 21 import android.provider.Settings; 26 /* Tracks persisted settings for Wi-Fi and airplane mode interaction */ 28 /* Values tracked in Settings.Global.WIFI_ON */ 36 /* Persisted state that tracks the wifi & airplane interaction from settings */ 138 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state); 143 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(), 144 Settings.Global.AIRPLANE_MODE_RADIOS); 146 || airplaneModeRadios.contains(Settings.Global.RADIO_WIFI); 151 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver() [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/ |
SettingsTest.java | 20 import static com.squareup.okhttp.internal.spdy.Settings.DEFAULT_INITIAL_WINDOW_SIZE; 21 import static com.squareup.okhttp.internal.spdy.Settings.DOWNLOAD_BANDWIDTH; 22 import static com.squareup.okhttp.internal.spdy.Settings.DOWNLOAD_RETRANS_RATE; 23 import static com.squareup.okhttp.internal.spdy.Settings.MAX_CONCURRENT_STREAMS; 24 import static com.squareup.okhttp.internal.spdy.Settings.PERSISTED; 25 import static com.squareup.okhttp.internal.spdy.Settings.PERSIST_VALUE; 26 import static com.squareup.okhttp.internal.spdy.Settings.UPLOAD_BANDWIDTH; 33 Settings settings = new Settings(); local 38 Settings settings = new Settings(); local 83 Settings settings = new Settings(); local 114 Settings settings = new Settings(); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
Contacts_SettingsTest.java | 20 import android.provider.Contacts.Settings; 37 Settings.setSetting(mContentResolver, "account", key1, value1); 38 Settings.setSetting(mContentResolver, "account", key2, value2); 39 assertEquals(value1, Settings.getSetting(mContentResolver, "account", key1)); 40 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key2)); 41 assertNull(Settings.getSetting(mContentResolver, "account", "key not exist")); 43 Settings.setSetting(mContentResolver, "account", key1, value2); 44 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key1));
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SettingsTest.java | 6 import android.provider.Settings; 30 Settings.System.putInt(contentResolver, "property", 1); 31 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)); 35 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)); 40 Settings.System.putInt(contentResolver, "property", 1); 41 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)); 46 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(0)); 51 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(0)); 52 assertThat(Settings.System.getInt(contentResolver, "property", 2), equalTo(2)); 54 Settings.System.putInt(contentResolver, "property", 1) [all...] |
/packages/apps/Provision/src/com/android/provision/ |
DefaultActivity.java | 23 import android.provider.Settings; 35 Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1); 36 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
SettingsContentObserver.java | 17 package com.android.settings.accessibility; 23 import android.provider.Settings; 31 contentResolver.registerContentObserver(Settings.Secure.getUriFor( 32 Settings.Secure.ACCESSIBILITY_ENABLED), false, this); 33 contentResolver.registerContentObserver(Settings.Secure.getUriFor( 34 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES), false, this);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/ |
DeviceManager.java | 17 package com.android.tv.settings.name; 21 import android.provider.Settings; 25 * Retrieves the name from Settings.Global.DEVICE_NAME 27 * @param context A context that can access Settings.Global 31 return Settings.Global.getString(context.getContentResolver(), Settings.Global.DEVICE_NAME); 38 * to use the Settings.Global.DEVICE_NAME entry. 40 * @param context A context that can access Settings.Global 44 Settings.Global.putString(context.getContentResolver(), Settings.Global.DEVICE_NAME, name) [all...] |
/cts/suite/audio_quality/lib/include/ |
Settings.h | 23 class Settings { 25 static Settings* Instance(); 38 static Settings* mInstance;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
MultiLingualSettingsFragment.java | 17 package com.android.inputmethod.latin.settings; 26 * "Multilingual options" settings sub screen. 28 * This settings sub screen handles the following input preferences. 37 if (!Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS) { 38 removePreference(Settings.PREF_SHOW_LANGUAGE_SWITCH_KEY); 39 removePreference(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST);
|
PreferencesSettingsFragment.java | 17 package com.android.inputmethod.latin.settings; 30 * "Preferences" settings sub screen. 32 * This settings sub screen handles the following input preferences. 49 // When we are called from the Settings application but we are not already running, some 57 removePreference(Settings.PREF_VOICE_INPUT_KEY); 60 removePreference(Settings.PREF_VIBRATE_ON); 62 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { 63 removePreference(Settings.PREF_POPUP_ON); 72 final Preference voiceInputKeyOption = findPreference(Settings.PREF_VOICE_INPUT_KEY); 85 if (key.equals(Settings.PREF_POPUP_ON)) [all...] |
/external/chromium_org/tools/gn/ |
ninja_toolchain_writer.h | 17 class Settings; 23 // Takes the settings for the toolchain, as well as the list of all targets 25 static bool RunAndWriteFile(const Settings* settings, 30 NinjaToolchainWriter(const Settings* settings, 41 const Settings* settings_;
|
ninja_writer.h | 16 class Settings; 26 // settings for the files written will be added to the vector. 30 std::vector<const Settings*>* all_settings); 37 std::vector<const Settings*>* all_settings, 39 bool WriteRootBuildfiles(const std::vector<const Settings*>& all_settings,
|
input_conversion.h | 12 class Settings; 24 Value ConvertInputToValue(const Settings* settings,
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
SensorFeaturesDeactivator.java | 24 import android.provider.Settings; 94 super(Settings.ACTION_WIRELESS_SETTINGS, R.string.snsr_setting_airplane_mode); 100 // Settings.System.AIRPLANE_MODE_ON is deprecated in API 17 102 return Settings.System 103 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); 105 return Settings.Global 106 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); 113 super(Settings.ACTION_DISPLAY_SETTINGS, R.string.snsr_setting_screen_brightness_mode); 118 return Settings.System.getInt( 120 Settings.System.SCREEN_BRIGHTNESS_MODE [all...] |
/frameworks/base/services/core/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}. 47 sSecureSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 48 // add other secure settings here... 50 sSystemSettingToTypeMap.put(Settings.System.TIME_12_24, String.class); 51 // add other system settings here... 53 sGlobalSettingToTypeMap.put(Settings.Global.DEBUG_VIEW_ATTRIBUTES, int.class) [all...] |
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
SipSharedPreferences.java | 23 import android.provider.Settings; 24 import android.provider.Settings.SettingNotFoundException; 73 Settings.System.putString(mContext.getContentResolver(), 74 Settings.System.SIP_CALL_OPTIONS, option); 84 String option = Settings.System.getString(mContext.getContentResolver(), 85 Settings.System.SIP_CALL_OPTIONS); 91 Settings.System.putInt(mContext.getContentResolver(), 92 Settings.System.SIP_RECEIVE_CALLS, (enabled ? 1 : 0)); 97 return (Settings.System.getInt(mContext.getContentResolver(), 98 Settings.System.SIP_RECEIVE_CALLS) != 0) [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
DatabaseHelper.java | 17 package com.android.providers.settings; 40 import android.provider.Settings; 41 import android.provider.Settings.Global; 42 import android.provider.Settings.Secure; 67 private static final String DATABASE_NAME = "settings.db"; 72 // settings. 188 // Load inital settings values 194 Log.w(TAG, "Upgrading settings database from version " + oldVersion + " to " 276 // This introduces the new secure settings table. 289 Settings.Secure.ADB_ENABLED [all...] |