/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...] |
/packages/apps/Settings/src/com/android/settings/ |
SubSettings.java | 17 package com.android.settings; 20 * Stub class for showing sub-settings; we can't use the main Settings class 23 public class SubSettings extends Settings {
|
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...] |
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/ |
SettingsTest.java | 20 import static com.squareup.okhttp.internal.spdy.Settings.DOWNLOAD_BANDWIDTH; 21 import static com.squareup.okhttp.internal.spdy.Settings.DOWNLOAD_RETRANS_RATE; 22 import static com.squareup.okhttp.internal.spdy.Settings.MAX_CONCURRENT_STREAMS; 23 import static com.squareup.okhttp.internal.spdy.Settings.PERSISTED; 24 import static com.squareup.okhttp.internal.spdy.Settings.PERSIST_VALUE; 25 import static com.squareup.okhttp.internal.spdy.Settings.UPLOAD_BANDWIDTH; 32 Settings settings = new Settings(); local 33 assertEquals(-3, settings.getUploadBandwidth(-3)) 37 Settings settings = new Settings(); local 73 Settings settings = new Settings(); local 104 Settings settings = new Settings(); local [all...] |
/frameworks/base/services/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...] |
/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));
|
Settings_SettingNotFoundExceptionTest.java | 20 import android.provider.Settings.SettingNotFoundException;
|
/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...] |
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
CachedFramePlatformDataAndroid.h | 32 class Settings; 39 CachedFramePlatformDataAndroid(WebCore::Settings* settings); 42 void restoreMetadata(WebCore::Settings* settings);
|
/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);
|
/external/webkit/Source/WebCore/page/ |
Settings.cpp | 27 #include "Settings.h" 51 frame->document()->cachedResourceLoader()->setAutoLoadImages(page->settings()->loadsImagesAutomatically()); 55 bool Settings::gShouldPaintNativeControls = true; 59 bool Settings::gShouldUseHighResolutionTimers = true; 83 Settings::Settings(Page* page) 216 void Settings::setStandardFontFamily(const AtomicString& standardFontFamily) 225 void Settings::setFixedFontFamily(const AtomicString& fixedFontFamily) 234 void Settings::setSerifFontFamily(const AtomicString& serifFontFamily) 243 void Settings::setSansSerifFontFamily(const AtomicString& sansSerifFontFamily [all...] |
/cts/suite/audio_quality/lib/include/ |
Settings.h | 23 class Settings { 25 static Settings* Instance(); 38 static Settings* mInstance;
|
/external/webkit/Source/WebCore/inspector/ |
InspectorFrontendClientLocal.h | 48 class Settings { 50 Settings() { } 51 virtual ~Settings() { } 56 InspectorFrontendClientLocal(InspectorController*, Page*, PassOwnPtr<Settings>); 88 OwnPtr<InspectorFrontendClientLocal::Settings> m_settings;
|
/packages/apps/Phone/src/com/android/phone/sip/ |
SipSharedPreferences.java | 24 import android.provider.Settings; 25 import android.provider.Settings.SettingNotFoundException; 82 Settings.System.putString(mContext.getContentResolver(), 83 Settings.System.SIP_CALL_OPTIONS, option); 87 String option = Settings.System.getString(mContext.getContentResolver(), 88 Settings.System.SIP_CALL_OPTIONS); 94 Settings.System.putInt(mContext.getContentResolver(), 95 Settings.System.SIP_RECEIVE_CALLS, (enabled ? 1 : 0)); 100 return (Settings.System.getInt(mContext.getContentResolver(), 101 Settings.System.SIP_RECEIVE_CALLS) != 0) [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
RotationPolicy.java | 27 import android.provider.Settings; 47 * Display settings should be hidden, but it should remain available in Accessibility 48 * settings. 59 Settings.System.getIntForUser(context.getContentResolver(), 60 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0, 68 return Settings.System.getIntForUser(context.getContentResolver(), 69 Settings.System.ACCELEROMETER_ROTATION, 0, UserHandle.USER_CURRENT) == 0; 78 Settings.System.putIntForUser(context.getContentResolver(), 79 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0, 103 * Should be used by Display settings and Accessibility settings [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
SettingsFragment.java | 89 // When we are called from the Settings application but we are not already running, some 96 mVoicePreference = (ListPreference) findPreference(Settings.PREF_VOICE_MODE); 98 (ListPreference) findPreference(Settings.PREF_SHOW_SUGGESTIONS_SETTING); 103 (ListPreference) findPreference(Settings.PREF_AUTO_CORRECTION_THRESHOLD); 104 mBigramPrediction = (CheckBoxPreference) findPreference(Settings.PREF_BIGRAM_PREDICTIONS); 108 (PreferenceGroup) findPreference(Settings.PREF_GENERAL_SETTINGS); 110 (PreferenceGroup) findPreference(Settings.PREF_MISC_SETTINGS); 112 final Preference debugSettings = findPreference(Settings.PREF_DEBUG_SETTINGS); 114 if (Settings.isInternal(prefs)) { 124 final Preference feedbackSettings = findPreference(Settings.PREF_SEND_FEEDBACK) [all...] |
/development/apps/SdkSetup/src/com/android/sdksetup/ |
DefaultActivity.java | 28 import android.provider.Settings; 41 Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1); 44 // Not needed since this SDK will contain the Settings app. 45 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, 49 Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 1);
|
/frameworks/base/core/tests/coretests/src/android/content/ |
ContentQueryMapTest.java | 25 import android.provider.Settings; 57 Settings.System.putString(r, "test", "Value"); 59 Settings.System.CONTENT_URI, 61 Settings.System.NAME, 62 Settings.System.VALUE, 66 cursor, Settings.System.NAME, true, null); 72 Settings.System.putString(r, "test", "New Value"); 74 String value = v.getAsString(Settings.System.VALUE); 82 String value = v.getAsString(Settings.System.VALUE);
|
/cts/suite/audio_quality/executable/src/ |
main.cpp | 26 #include "Settings.h" 42 Settings::Instance()->getSetting(Settings::EREPORT_FILE).getPathDir(); 50 Settings::Finalize(); 94 if (Settings::Instance() == NULL) { 95 fprintf(stderr, "caanot create Settings"); 100 Settings::Instance()->addSetting(Settings::EADB, strSerial); 120 if (!client->init(Settings::Instance()->getSetting(Settings::EADB))) [all...] |
/external/webkit/Source/WebKit/wx/ |
WebSettings.h | 40 class Settings; 57 call its wxWebView::GetWebSettings() method to get and change that WebView's settings. 63 wxWebSettings(WebCore::Settings* settings) : 65 m_settings(settings) 154 WebCore::Settings* m_settings;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSettings.java | 4 import android.provider.Settings; 14 * Shadow of {@code Settings} that allows the status of various System and Secure settings to be simulated, changed and 18 @Implements(Settings.class) 20 @Implements(Settings.class) 40 public static int getInt(ContentResolver cr, String name) throws Settings.SettingNotFoundException { 44 throw new Settings.SettingNotFoundException(name); 79 public static long getLong(ContentResolver cr, String name) throws Settings.SettingNotFoundException { 83 throw new Settings.SettingNotFoundException(name); 103 public static float getFloat(ContentResolver cr, String name) throws Settings.SettingNotFoundException [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
DatabaseHelper.java | 17 package com.android.providers.settings; 39 import android.provider.Settings; 40 import android.provider.Settings.Global; 41 import android.provider.Settings.Secure; 68 private static final String DATABASE_NAME = "settings.db"; 73 // settings. 189 // Load inital settings values 195 Log.w(TAG, "Upgrading settings database from version " + oldVersion + " to " 277 // This introduces the new secure settings table. 290 Settings.Secure.ADB_ENABLED [all...] |
/cts/tests/tests/permission2/src/android/permission2/cts/ |
NoWriteSecureSettingsPermissionTest.java | 22 * Verify secure settings cannot be written to without required permissions. 27 * Verify that write to secure settings requires permissions. 33 assertWritingContentUriRequiresPermission(android.provider.Settings.Secure.CONTENT_URI,
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
InputMethodDialogReceiver.java | 16 package com.android.settings.inputmethod; 21 import android.provider.Settings; 27 if (Settings.ACTION_SHOW_INPUT_METHOD_PICKER.equals(intent.getAction())) {
|