/frameworks/base/services/tests/servicestests/src/com/android/server/retaildemo/ |
H A D | PreloadAppsInstallerTest.java | 33 import android.provider.Settings; 73 mContentResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider()); 76 Settings.Secure.putStringForUser(mContentResolver, 77 Settings.Secure.DEMO_USER_SETUP_COMPLETE, "0", TEST_DEMO_USER); 116 Settings.Secure.getStringForUser(mContentResolver, 117 Settings.Secure.DEMO_USER_SETUP_COMPLETE, TEST_DEMO_USER)); 127 Settings.Secure.getStringForUser(mContentResolver, 128 Settings.Secure.DEMO_USER_SETUP_COMPLETE, TEST_DEMO_USER)); 153 Settings.Secure.getStringForUser(mContentResolver, 154 Settings [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | TunerServiceImpl.java | 35 import android.provider.Settings; 36 import android.provider.Settings.Secure; 114 Settings.Secure.putStringForUser(mContentResolver, 124 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser); 129 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser); 134 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser); 146 Settings.Secure.putIntForUser(mContentResolver, setting, value, mCurrentUser); 165 Uri uri = Settings.Secure.getUriFor(key); 171 String value = Settings.Secure.getStringForUser(mContentResolver, key, mCurrentUser); 201 String value = Settings [all...] |
H A D | BatteryPreference.java | 18 import android.provider.Settings; 28 import static android.provider.Settings.System.SHOW_BATTERY_PERCENT; 51 mHasPercentage = Settings.System.getInt(getContext().getContentResolver(), 87 Settings.System.putInt(getContext().getContentResolver(), SHOW_BATTERY_PERCENT, v ? 1 : 0);
|
H A D | TunerSwitch.java | 5 import android.provider.Settings; 55 Settings.Secure.putString(getContext().getContentResolver(), key, value ? "1" : "0");
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | FrameworkFacade.java | 34 import android.provider.Settings; 47 return Settings.Global.putInt(context.getContentResolver(), name, def); 51 return Settings.Global.getInt(context.getContentResolver(), name, def); 55 return Settings.Global.getLong(context.getContentResolver(), name, def); 59 return Settings.Global.putString(context.getContentResolver(), name, def); 63 return Settings.Global.getString(context.getContentResolver(), name);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | CarrierServiceStateTracker.java | 29 import android.provider.Settings; 95 android.provider.Settings.Global.getInt(context.getContentResolver(), 96 android.provider.Settings.Global.PREFERRED_NETWORK_MODE + subId, 98 airplaneMode = Settings.Global.getInt(context.getContentResolver(), 99 Settings.Global.AIRPLANE_MODE_ON, 0); 159 Intent notificationIntent = new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
H A D | WizardManagerHelperTest.java | 29 import android.provider.Settings; 30 import android.provider.Settings.Global; 31 import android.provider.Settings.Secure; 288 Settings.Secure.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 1); 289 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 1); 292 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 0); 299 Settings.Secure.putInt(application.getContentResolver(), Secure.DEVICE_PROVISIONED, 1); 302 Settings.Secure.putInt(application.getContentResolver(), Secure.DEVICE_PROVISIONED, 0); 309 Settings.Secure.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 1); 311 Settings [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | CertBlacklister.java | 24 import android.provider.Settings; 73 return Settings.Secure.getString(mContentResolver, mKey); 130 Settings.Secure.getUriFor(PUBKEY_BLACKLIST_KEY), 137 Settings.Secure.getUriFor(SERIAL_BLACKLIST_KEY),
|
H A D | GestureLauncherService.java | 37 import android.provider.Settings; 142 Settings.Secure.getUriFor(Settings.Secure.CAMERA_GESTURE_DISABLED), 145 Settings.Secure.getUriFor(Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED), 223 && (Settings.Secure.getIntForUser(context.getContentResolver(), 224 Settings.Secure.CAMERA_GESTURE_DISABLED, 0, userId) == 0); 229 && (Settings.Secure.getIntForUser(context.getContentResolver(), 230 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 0, userId) == 0); 288 boolean userSetupComplete = Settings [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | LocationControllerImpl.java | 33 import android.provider.Settings; 110 ? Settings.Secure.LOCATION_MODE_PREVIOUS : Settings.Secure.LOCATION_MODE_OFF; 113 return Settings.Secure 114 .putIntForUser(cr, Settings.Secure.LOCATION_MODE, mode, currentUserId); 124 int mode = Settings.Secure.getIntForUser(resolver, Settings.Secure.LOCATION_MODE, 125 Settings.Secure.LOCATION_MODE_OFF, ActivityManager.getCurrentUser()); 126 return mode != Settings.Secure.LOCATION_MODE_OFF;
|
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | BatterySaverPolicy.java | 23 import android.provider.Settings; 88 * @see Settings.Global#BATTERY_SAVER_CONSTANTS 96 * @see Settings.Global#BATTERY_SAVER_CONSTANTS 105 * @see Settings.Global#BATTERY_SAVER_CONSTANTS 113 * @see Settings.Global#BATTERY_SAVER_CONSTANTS 121 * @see Settings.Global#BATTERY_SAVER_CONSTANTS 129 * @see Settings.Global#BATTERY_SAVER_CONSTANTS 137 * @see Settings.Global#BATTERY_SAVER_CONSTANTS 145 * @see Settings.Global#BATTERY_SAVER_CONSTANTS 153 * @see Settings [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
H A D | WifiStressTest.java | 31 import android.provider.Settings; 198 Settings.Global.putInt(mRunner.getContext().getContentResolver(), 199 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); 201 Settings.Global.putInt(mRunner.getContext().getContentResolver(), 202 Settings.Global.WIFI_SLEEP_POLICY, Settings.Global.WIFI_SLEEP_POLICY_DEFAULT); 204 Settings.Global.putLong(mRunner.getContext().getContentResolver(), 205 Settings.Global.WIFI_IDLE_MS, WIFI_IDLE_MS);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListManagedCursor.java | 23 import android.provider.Settings; 39 Cursor c = getContentResolver().query(Settings.System.CONTENT_URI, null, null, null, null);
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
H A D | ActionBarSettingsActionProviderActivity.java | 23 import android.provider.Settings; 59 private static final Intent sSettingsIntent = new Intent(Settings.ACTION_SETTINGS);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
H A D | ActionBarSettingsActionProviderActivity.java | 23 import android.provider.Settings; 59 private static final Intent sSettingsIntent = new Intent(Settings.ACTION_SETTINGS);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | AssistUtils.java | 32 import android.provider.Settings; 149 final String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(), 150 Settings.Secure.ASSISTANT, userId); 187 return Settings.Secure.getInt(context.getContentResolver(), 188 Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 0) != 0;
|
H A D | AccessibilityButtonChooserActivity.java | 25 import android.provider.Settings; 65 String component = Settings.Secure.getString(getContentResolver(), 66 Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT); 77 if (Settings.Secure.getInt(getContentResolver(), 78 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, 0) == 1) { 115 Settings.Secure.putString(getContentResolver(), 116 Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT, target.getId());
|
/frameworks/base/services/core/java/com/android/server/lights/ |
H A D | LightsService.java | 25 import android.provider.Settings; 106 (getVrDisplayMode() == Settings.Secure.VR_DISPLAY_MODE_LOW_PERSISTENCE); 190 return Settings.Secure.getIntForUser(getContext().getContentResolver(), 191 Settings.Secure.VR_DISPLAY_MODE, 192 /*default*/Settings.Secure.VR_DISPLAY_MODE_LOW_PERSISTENCE,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | CoreSettingsObserverTest.java | 28 import android.provider.Settings; 94 mContentResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider()); 103 Settings.Secure.putInt(mContentResolver, TEST_SETTING_SECURE_INT, TEST_INT); 104 Settings.Global.putFloat(mContentResolver, TEST_SETTING_GLOBAL_FLOAT, TEST_FLOAT); 105 Settings.System.putString(mContentResolver, TEST_SETTING_SYSTEM_STRING, TEST_STRING);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | WizardManagerHelper.java | 24 import android.provider.Settings; 158 return Settings.Secure.getInt(context.getContentResolver(), 163 return Settings.Secure.getInt(context.getContentResolver(), 171 * for a secondary user profile triggered through Settings > Add account. 179 return Settings.Global.getInt(context.getContentResolver(), 182 return Settings.Secure.getInt(context.getContentResolver(),
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/ |
H A D | Settings.java | 37 public class Settings { class 38 static private final String TAG = "Settings"; 48 static private Settings sInstance; 53 * Returns the singleton Settings instance. 55 static public Settings getInstance(Context context) { 57 sInstance = new Settings(context); 62 private Settings(Context context) { method in class:Settings
|
/frameworks/base/media/java/android/media/audiofx/ |
H A D | Equalizer.java | 443 * The Settings class regroups all equalizer parameters. It is used in 447 public static class Settings { class in class:Equalizer 452 public Settings() { method in class:Equalizer.Settings 456 * Settings class constructor from a key=value; pairs formatted string. The string is 457 * typically returned by Settings.toString() method. 460 public Settings(String settings) { method in class:Equalizer.Settings 517 * @return an Equalizer.Settings object containing all current parameters values 522 public Equalizer.Settings getProperties() 526 Settings settings = new Settings(); [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 35 import android.provider.Settings; 58 * List of settings that are backed up are stored in the Settings.java file 124 Settings.NameValueTable.NAME, 125 Settings.NameValueTable.VALUE 200 Settings.System.getMovedToGlobalSettings(movedToGlobal); 201 Settings.Secure.getMovedToGlobalSettings(movedToGlobal); 210 restoreSettings(data, Settings.System.CONTENT_URI, movedToGlobal); 215 restoreSettings(data, Settings.Secure.CONTENT_URI, movedToGlobal); 219 restoreSettings(data, Settings.Global.CONTENT_URI, null); 352 Settings [all...] |
/frameworks/base/services/core/java/com/android/server/emergency/ |
H A D | EmergencyAffordanceService.java | 27 import android.provider.Settings; 93 if (Settings.Global.getInt(context.getContentResolver(), 94 Settings.Global.AIRPLANE_MODE_ON, 0) == 0) { 131 Settings.Global.putInt(mContext.getContentResolver(), 132 Settings.Global.EMERGENCY_AFFORDANCE_NEEDED, 255 Settings.Global.putInt(mContext.getContentResolver(), 266 return Settings.Global.getInt(mContext.getContentResolver(),
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/ |
H A D | DreamBackend.java | 31 import android.provider.Settings; 142 return getBoolean(Settings.Secure.SCREENSAVER_ENABLED, mDreamsEnabledByDefault); 147 setBoolean(Settings.Secure.SCREENSAVER_ENABLED, value); 151 return getBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, 157 setBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, value); 161 return getBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP, 167 setBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP, value); 171 return Settings.Secure.getInt(mContext.getContentResolver(), key, def ? 1 : 0) == 1; 175 Settings.Secure.putInt(mContext.getContentResolver(), key, value ? 1 : 0);
|