/system/bt/service/ |
daemon.h | 29 class Settings; 33 // handlers, global Settings, and the core Bluetooth stack. 52 // The global Settings object. All classes have direct access to this through 54 virtual Settings* GetSettings() const = 0;
|
settings.cpp | 17 #include "service/settings.h" 27 Settings::Settings() 31 Settings::~Settings() { 34 bool Settings::Init() {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/ |
DeviceManager.java | 17 package com.android.tv.settings.name; 22 import android.provider.Settings; 28 "com.android.tv.settings.name.DeviceManager.DEVICE_NAME_UPDATE"; 30 * Retrieves the name from Settings.Global.DEVICE_NAME 32 * @param context A context that can access Settings.Global 36 return Settings.Global.getString(context.getContentResolver(), Settings.Global.DEVICE_NAME); 43 * to use the Settings.Global.DEVICE_NAME entry. 45 * @param context A context that can access Settings.Global 49 Settings.Global.putString(context.getContentResolver(), Settings.Global.DEVICE_NAME, name) [all...] |
/platform_testing/tests/functional/settingstests/src/com/android/settings/functional/ |
DisplaySettingsTest.java | 17 package android.settings.functional; 20 import android.provider.Settings; 34 private static final String PAGE = Settings.ACTION_DISPLAY_SETTINGS; 56 // reset settings we touched that may impact others 57 Settings.System.putFloat(mResolver, Settings.System.FONT_SCALE, 1.00f); 68 Settings.System.SCREEN_BRIGHTNESS_MODE)); 70 Settings.System.SCREEN_BRIGHTNESS_MODE)); 77 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED)); 80 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED)) [all...] |
AccessibilitySettingsTests.java | 17 package android.settings.functional; 23 import android.provider.Settings; 35 private static final String SETTINGS_PACKAGE = "com.android.settings"; 52 // Need to finish settings activity 62 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 0, 1); 68 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 1, 0); 74 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, 1, 2); 80 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, 2, 1); 83 /* Suppressing these four tests. The settings don't play 84 * nice with Settings.System.putInt or Settings.Secure.putInt [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 17 package com.android.providers.settings; 36 import android.provider.Settings; 50 * A few settings elements are special in that a restore of those values needs to 51 * be post-processed by relevant parts of the OS. A restore of any settings element 66 sBroadcastOnRestore.add(Settings.Secure.ENABLED_NOTIFICATION_LISTENERS); 67 sBroadcastOnRestore.add(Settings.Secure.ENABLED_VR_LISTENERS); 68 sBroadcastOnRestore.add(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); 69 sBroadcastOnRestore.add(Settings.Secure.ENABLED_INPUT_METHODS); 78 return Settings.System.getStringForUser(resolver, name, userHandle); 84 return Settings.Secure.getStringForUser(resolver, name, userHandle) [all...] |
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; 64 * Legacy settings database helper class for {@link SettingsProvider}. 67 * secure, and system settings are no longer stored in a database 77 private static final String DATABASE_NAME = "settings.db"; 82 // settings. 246 // Load inital settings values 252 Log.w(TAG, "Upgrading settings database from version " + oldVersion + " to [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
CoreSettingsObserver.java | 23 import android.provider.Settings; 28 * Helper class for watching a set of core settings which the framework 30 * disk I/O operations. Note: This class assumes that all core settings reside 31 * in {@link Settings.Secure}. 44 sSecureSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 45 // add other secure settings here... 47 sSystemSettingToTypeMap.put(Settings.System.TIME_12_24, String.class); 48 // add other system settings here... 50 sGlobalSettingToTypeMap.put(Settings.Global.DEBUG_VIEW_ATTRIBUTES, int.class); 51 // add other global settings here.. [all...] |
/external/robolectric/v1/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...] |
/packages/apps/Settings/src/com/android/settings/ |
ApplicationSettings.java | 17 package com.android.settings; 21 import android.provider.Settings; 69 boolean userSetInstLocation = (Settings.Global.getInt(getContentResolver(), 70 Settings.Global.SET_INSTALL_LOCATION, 0) != 0); 87 Settings.Global.putInt(getContentResolver(), 88 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_DEVICE); 90 Settings.Global.putInt(getContentResolver(), 91 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_SDCARD); 93 Settings.Global.putInt(getContentResolver(), 94 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO) [all...] |
AirplaneModeVoiceActivity.java | 17 package com.android.settings; 22 import android.provider.Settings; 25 import com.android.settings.utils.VoiceSettingsActivity; 28 * Activity for modifying the {@link Settings.Global#AIRPLANE_MODE_ON AIRPLANE_MODE_ON} 35 if (intent.hasExtra(Settings.EXTRA_AIRPLANE_MODE_ENABLED)) { 39 Settings.EXTRA_AIRPLANE_MODE_ENABLED, false));
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
SettingsActivity.java | 27 * Settings activity for Launcher. Currently implements the following setting: Allow rotation 55 extras.putBoolean(LauncherSettings.Settings.EXTRA_DEFAULT_VALUE, false); 57 LauncherSettings.Settings.CONTENT_URI, 58 LauncherSettings.Settings.METHOD_GET_BOOLEAN, 60 pref.setChecked(value.getBoolean(LauncherSettings.Settings.EXTRA_VALUE)); 68 extras.putBoolean(LauncherSettings.Settings.EXTRA_VALUE, (Boolean) newValue); 70 LauncherSettings.Settings.CONTENT_URI, 71 LauncherSettings.Settings.METHOD_SET_BOOLEAN,
|
/frameworks/base/core/tests/coretests/src/android/content/ |
ContentQueryMapTest.java | 25 import android.provider.Settings; 59 Settings.System.putString(r, "test", "Value"); 61 Settings.System.CONTENT_URI, 63 Settings.System.NAME, 64 Settings.System.VALUE, 68 cursor, Settings.System.NAME, true, null); 74 Settings.System.putString(r, "test", "New Value"); 76 String value = v.getAsString(Settings.System.VALUE); 84 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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
AdvancedSettingsFragment.java | 17 package com.android.inputmethod.latin.settings; 33 * "Advanced" settings sub screen. 35 * This settings sub screen handles the following advanced preferences. 41 * - Debug settings 52 // When we are called from the Settings application but we are not already running, some 59 if (!Settings.isInternal(prefs)) { 60 removePreference(Settings.SCREEN_DEBUG); 64 removePreference(Settings.PREF_VIBRATION_DURATION_SETTINGS); 68 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { 69 removePreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY) [all...] |
AppearanceSettingsFragment.java | 17 package com.android.inputmethod.latin.settings; 26 * "Appearance" settings sub screen. 34 Constants.isPhone(Settings.readScreenMetrics(getResources()))) { 35 removePreference(Settings.PREF_ENABLE_SPLIT_KEYBOARD); 43 findPreference(Settings.PREF_CUSTOM_INPUT_STYLES)); 44 ThemeSettingsFragment.updateKeyboardThemeSummary(findPreference(Settings.SCREEN_THEME));
|
/cts/tests/tests/provider/src/android/provider/cts/ |
Settings_SettingNotFoundExceptionTest.java | 20 import android.provider.Settings.SettingNotFoundException;
|
/external/skia/platform_tools/android/apps/visualbench/src/main/java/com/skia/ |
VisualBenchActivity.java | 11 import android.provider.Settings; 39 Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE, 40 Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL);
|
/packages/apps/ContactsCommon/src-pre-N/com/android/contacts/common/compat/ |
MetadataSyncEnabledCompat.java | 20 import android.provider.Settings;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/ |
SoundFragment.java | 17 package com.android.tv.settings.device.sound; 23 import android.provider.Settings; 32 import com.android.tv.settings.R; 84 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_AUTO); 87 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_ALWAYS); 90 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_NEVER); 105 return Settings.System.getInt(contentResolver, Settings.System.SOUND_EFFECTS_ENABLED, 1) 115 Settings.System.putInt(getActivity().getContentResolver(), 116 Settings.System.SOUND_EFFECTS_ENABLED, enabled ? 1 : 0) [all...] |
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/ |
ZenModeTest.java | 19 import static android.provider.Settings.ACTION_VOICE_CONTROL_DO_NOT_DISTURB_MODE; 20 import static android.provider.Settings.EXTRA_DO_NOT_DISTURB_MODE_ENABLED; 21 import static android.provider.Settings.EXTRA_DO_NOT_DISTURB_MODE_MINUTES; 25 import android.provider.Settings; 26 import android.provider.Settings.Global; 43 // The following are hidden in frameworks/base/core/java/android/provider/Settings.java 66 } catch (Settings.SettingNotFoundException e) { 68 Log.i(TAG, "zen_mode is not found in Settings. Skipping ZenModeTest"); 115 private int getMode() throws Settings.SettingNotFoundException { 116 return Settings.Global.getInt(mContext.getContentResolver(), ZEN_MODE) [all...] |
/packages/apps/Dialer/src/com/android/dialer/compat/ |
SettingsCompat.java | 21 import android.provider.Settings; 26 * Compatibility class for {@link android.provider.Settings} 33 * Compatibility version of {@link android.provider.Settings.System#canWrite(Context)} 41 return Settings.System.canWrite(context);
|
/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())) {
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationMode.java | 17 package com.android.settings.location; 19 import android.provider.Settings; 23 import com.android.settings.R; 102 int mode = Settings.Secure.LOCATION_MODE_OFF; 104 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; 106 mode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING; 108 mode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY; 116 case Settings.Secure.LOCATION_MODE_OFF: 119 case Settings.Secure.LOCATION_MODE_SENSORS_ONLY: 122 case Settings.Secure.LOCATION_MODE_BATTERY_SAVING [all...] |
/packages/services/Telephony/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...] |