/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) 39 // TODO key, string can be better if there are large number of settings 47 const android::String8& Settings::getSetting(SettingType type [all...] |
/frameworks/base/core/tests/coretests/src/android/provider/ |
SettingsProviderTest.java | 27 import android.provider.Settings; 39 Settings.Secure.putString(r, "test_service", "Value"); 40 assertEquals("Value", Settings.Secure.getString(r, "test_service")); 43 Settings.Secure.putString(r, "test_service", "New"); 44 assertEquals("New", Settings.Secure.getString(r, "test_service")); 47 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null)); 48 assertEquals(null, Settings.Secure.getString(r, "test_service")); 51 Settings.System.putString(r, "test_setting", "Value"); 52 assertEquals("Value", Settings.System.getString(r, "test_setting")); 54 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.System.getInt(getContentResolver(), 64 Settings.Secure.SET_INSTALL_LOCATION, 0) != 0); 81 Settings.System.putInt(getContentResolver(), 82 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_DEVICE); 84 Settings.System.putInt(getContentResolver(), 85 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_SDCARD); 87 Settings.System.putInt(getContentResolver(), 88 Settings.Secure.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO) [all...] |
OwnerInfoSettings.java | 17 package com.android.settings; 22 import android.provider.Settings; 46 String info = Settings.Secure.getString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO); 47 int enabled = Settings.Secure.getInt(res, 48 Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED, 1); 56 Settings.Secure.putInt(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED, 72 Settings.Secure.putString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO, info) [all...] |
LocationSettings.java | 17 package com.android.settings; 29 import android.provider.Settings; 35 * Gesture lock pattern settings. 40 // Location Settings 51 // These provide support for receiving notification when Location Manager settings change. 52 // This is necessary because the Network Location Provider can change settings 61 // listen for Location Manager settings changes 62 Cursor settingsCursor = getContentResolver().query(Settings.Secure.CONTENT_URI, null, 63 "(" + Settings.System.NAME + "=?)", 64 new String[]{Settings.Secure.LOCATION_PROVIDERS_ALLOWED} [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;
|
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...] |
/cts/suite/audio_quality/lib/include/ |
Settings.h | 23 class Settings { 25 static Settings* Instance(); 33 static Settings* mInstance;
|
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
CachedFramePlatformDataAndroid.h | 32 class Settings; 39 CachedFramePlatformDataAndroid(WebCore::Settings* settings); 42 void restoreMetadata(WebCore::Settings* settings);
|
/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) 214 void Settings::setStandardFontFamily(const AtomicString& standardFontFamily) 223 void Settings::setFixedFontFamily(const AtomicString& fixedFontFamily) 232 void Settings::setSerifFontFamily(const AtomicString& serifFontFamily) 241 void Settings::setSansSerifFontFamily(const AtomicString& sansSerifFontFamily [all...] |
/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 | 26 import android.provider.Settings; 45 * Display settings should be hidden, but it should remain available in Accessibility 46 * settings. 57 Settings.System.getInt(context.getContentResolver(), 58 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0) == 0; 65 return Settings.System.getInt(context.getContentResolver(), 66 Settings.System.ACCELEROMETER_ROTATION, 0) == 0; 75 Settings.System.putInt(context.getContentResolver(), 76 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0); 100 * Should be used by Display settings and Accessibility settings [all...] |
/development/apps/SdkSetup/src/com/android/sdksetup/ |
DefaultActivity.java | 28 import android.provider.Settings; 41 Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1); 44 // Not needed since this SDK will contain the Settings app. 45 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, LocationManager.GPS_PROVIDER); 48 Settings.Secure.putInt(getContentResolver(), Settings.Secure.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);
|
/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;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
BrightnessController.java | 25 import android.provider.Settings; 26 import android.provider.Settings.SettingNotFoundException; 52 automatic = Settings.System.getInt(mContext.getContentResolver(), 53 Settings.System.SCREEN_BRIGHTNESS_MODE); 65 value = Settings.System.getInt(mContext.getContentResolver(), 66 Settings.System.SCREEN_BRIGHTNESS); 78 setMode(automatic ? Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC 79 : Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL); 86 Settings.System.putInt(mContext.getContentResolver(), 87 Settings.System.SCREEN_BRIGHTNESS, val) [all...] |
/packages/apps/Provision/src/com/android/provision/ |
DefaultActivity.java | 23 import android.provider.Settings; 35 Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1);
|
/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())) {
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
DatabaseHelper.java | 17 package com.android.providers.settings; 34 import android.provider.Settings; 35 import android.provider.Settings.Secure; 60 private static final String DATABASE_NAME = "settings.db"; 65 // settings. 140 // Load inital settings values 146 Log.w(TAG, "Upgrading settings database from version " + oldVersion + " to " 228 // This introduces the new secure settings table. 241 Settings.Secure.ADB_ENABLED, 242 Settings.Secure.ANDROID_ID [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);
|