HomeSort by relevance Sort by last modified time
    Searched defs:Settings (Results 1 - 25 of 697) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /system/bt/service/
settings.cc 17 #include "service/settings.h"
27 Settings::Settings() : initialized_(false), enable_on_start_(false) {}
29 Settings::~Settings() {}
31 bool Settings::Init() {
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowSettingsTest.java 7 import android.provider.Settings;
27 assertThat(Settings.System.getInt(contentResolver, "property", 0)).isEqualTo(0);
28 assertThat(Settings.System.getInt(contentResolver, "property", 2)).isEqualTo(2);
30 Settings.System.putInt(contentResolver, "property", 1);
31 assertThat(Settings.System.getInt(contentResolver, "property", 0)).isEqualTo(1);
33 Settings.System.putString(contentResolver, "property", "11");
34 assertThat(Settings.System.getInt(contentResolver, "property", 0)).isEqualTo(11);
39 assertThat(Settings.Secure.getInt(contentResolver, "property", 0)).isEqualTo(0);
40 assertThat(Settings.Secure.getInt(contentResolver, "property", 2)).isEqualTo(2);
42 Settings.Secure.putInt(contentResolver, "property", 1)
    [all...]
  /external/robolectric/v1/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...]
  /development/apps/SdkSetup/src/com/android/sdksetup/
DefaultActivity.java 29 import android.provider.Settings;
41 // Edit Settings only for Emulator
44 Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1);
46 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
49 Settings.Global.putInt(getContentResolver(), Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB, 0);
52 // Not needed since this SDK will contain the Settings app.
53 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED
    [all...]
  /prebuilts/go/darwin-x86/test/fixedbugs/issue4932.dir/
state.go 10 var s Settings
16 func (s *State) x(*Settings) {}
18 type Settings struct{}
20 func (c *Settings) x() {
26 func (s *Settings) op() foo.Op {
  /prebuilts/go/linux-x86/test/fixedbugs/issue4932.dir/
state.go 10 var s Settings
16 func (s *State) x(*Settings) {}
18 type Settings struct{}
20 func (c *Settings) x() {
26 func (s *Settings) op() foo.Op {
  /device/google/atv/TvProvision/src/com/android/tv/provision/
DefaultActivity.java 27 import android.provider.Settings;
40 Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1);
42 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
43 Settings.Secure.putInt(getContentResolver(), Settings.Secure.TV_USER_SETUP_COMPLETE, 1);
  /packages/apps/Settings/tests/robotests/src/com/android/settings/deletionhelper/
AutomaticStorageManagerDescriptionPreferenceControllerTest.java 1 package com.android.settings.deletionhelper;
8 import android.provider.Settings;
12 import com.android.settings.R;
13 import com.android.settings.testutils.SettingsRobolectricTestRunner;
52 Settings.Secure.putInt(
54 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED,
66 Settings.Secure.putInt(
68 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED,
70 Settings.Secure.putLong(
72 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED
    [all...]
  /external/toolchain-utils/crosperf/
settings.py 2 """Module to get the settings from experiment file."""
11 class Settings(object):
12 """Class representing settings (a set of fields) from an experiment file."""
20 def SetParentSettings(self, settings):
21 """Set the parent settings which these settings can inherit from."""
22 self.parent = settings
32 raise SyntaxError("'%s' is not a valid field in '%s' settings" %
42 raise SyntaxError("Field '%s' not a valid field in '%s' settings." %
46 raise SyntaxError("Required field '%s' not defined in '%s' settings."
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/util/
SettingsObserver.java 22 import android.provider.Settings;
28 * passed settings change. The value passed to onSettingChanged() is based on the key setting.
48 Settings.Secure.getUriFor(mKeySetting), false, this);
51 Settings.Secure.getUriFor(setting), false, this);
64 onSettingChanged(Settings.Secure.getInt(mResolver, mKeySetting, 1) == 1);
81 Settings.System.getUriFor(mKeySetting), false, this);
84 Settings.System.getUriFor(setting), false, this);
97 onSettingChanged(Settings.System.getInt(mResolver, mKeySetting, 1) == 1);
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
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));
  /frameworks/base/core/tests/utiltests/src/com/android/internal/util/test/
FakeSettingsProviderTest.java 22 import android.provider.Settings;
43 mCr.addProvider(Settings.AUTHORITY, new FakeSettingsProvider());
48 String settingName = Settings.System.SCREEN_BRIGHTNESS;
51 Settings.System.getInt(mCr, settingName);
53 } catch (Settings.SettingNotFoundException expected) {}
55 // Check that fake settings can be written and read back.
56 Settings.System.putInt(mCr, settingName, 123);
57 assertEquals(123, Settings.System.getInt(mCr, settingName));
  /frameworks/base/services/tests/servicestests/src/com/android/server/usage/
StorageStatsServiceTest.java 21 import android.provider.Settings;
37 mContentResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider());
42 Settings.Global.putInt(mContentResolver, Settings.Global.ENABLE_CACHE_QUOTA_CALCULATION, 0);
50 Settings.Global.putString(
51 mContentResolver, Settings.Global.ENABLE_CACHE_QUOTA_CALCULATION, null);
  /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/location/
BluetoothScanningPreferenceController.java 14 package com.android.settings.location;
17 import android.provider.Settings;
21 import com.android.settings.core.PreferenceControllerMixin;
46 Settings.Global.getInt(mContext.getContentResolver(),
47 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE, 0) == 1);
53 Settings.Global.putInt(mContext.getContentResolver(),
54 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE,
WifiScanningPreferenceController.java 14 package com.android.settings.location;
17 import android.provider.Settings;
21 import com.android.settings.core.PreferenceControllerMixin;
46 Settings.Global.getInt(mContext.getContentResolver(),
47 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0) == 1);
53 Settings.Global.putInt(mContext.getContentResolver(),
54 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE,
  /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...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowSettings.java 6 import android.provider.Settings;
15 @Implements(Settings.class)
17 @Implements(value = Settings.System.class)
53 @Implements(value = Settings.Secure.class, inheritImplementationMethods = true)
57 @Implements(value = Settings.Global.class, inheritImplementationMethods = true, minSdk = JELLY_BEAN_MR1)
62 * Sets the value of the {@link Settings.System#AIRPLANE_MODE_ON} setting.
67 Settings.System.putInt(RuntimeEnvironment.application.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, isAirplaneMode ? 1 : 0);
76 Settings.Secure.putInt(RuntimeEnvironment.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0)
    [all...]
  /frameworks/base/tests/testables/src/android/testing/
TestableSettingsProvider.java 22 import android.provider.Settings;
31 * Allows calls to android.provider.Settings to be tested easier.
33 * This provides a simple copy-on-write implementation of settings that gets cleared
47 private TestableSettingsProvider(ContentProviderClient settings) {
48 mSettings = settings;
57 Settings.Global.clearProviderForTest();
58 Settings.Secure.clearProviderForTest();
59 Settings.System.clearProviderForTest();
60 // Verify that if any test is using TestableContext, they all have the correct settings
62 assertEquals("Incorrect settings provider, test using incorrect Context?", MY_UNIQUE_KEY
    [all...]
  /frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
FakeSettingsProvider.java 21 import android.provider.Settings;
28 * Fake for system settings.
31 * provider for the Settings authority:
39 * mContentResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider());
48 * need to be modified, and can access Settings using the normal static methods:
50 * Settings.Global.getInt(cr, "my_setting", 0); // Returns 0.
51 * Settings.Global.putInt(cr, "my_setting", 5);
52 * Settings.Global.getInt(cr, "my_setting", 0); // Returns 5.
54 * Note that this class cannot be used in the same process as real settings. This is because it
55 * works by passing an alternate ContentResolver to Settings operations. Unfortunately, the Setting
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
AssistFlashScreenPreferenceControllerTest.java 17 package com.android.settings.applications.assist;
33 import android.provider.Settings;
37 import com.android.settings.testutils.SettingsRobolectricTestRunner;
38 import com.android.settings.testutils.shadow.ShadowSecureSettings;
84 Settings.Secure.putString(cr, Settings.Secure.ASSISTANT, "com.android.settings/assist");
95 Settings.Secure.putString(cr, Settings.Secure.ASSISTANT, "com.android.settings/assist")
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
AutoBatterySeekBarPreferenceControllerTest.java 16 package com.android.settings.fuelgauge.batterysaver;
22 import android.provider.Settings;
24 import com.android.settings.testutils.SettingsRobolectricTestRunner;
25 import com.android.settings.testutils.shadow.SettingsShadowResources;
26 import com.android.settings.widget.SeekBarPreference;
65 Settings.Global.putInt(mContext.getContentResolver(),
66 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0);
82 Settings.Global.putInt(mContext.getContentResolver(),
83 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, TRIGGER_LEVEL);
93 Settings.Global.putInt(mContext.getContentResolver()
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
AndroidBeamPreferenceControllerTest.java 17 package com.android.settings.nfc;
29 import android.provider.Settings;
32 import com.android.settings.testutils.SettingsRobolectricTestRunner;
81 Settings.Global.putString(mContext.getContentResolver(),
82 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS,
83 Settings.Global.RADIO_NFC);
84 Settings.Global.putInt(mContext.getContentResolver(),
85 Settings.Global.AIRPLANE_MODE_ON,
  /packages/apps/Settings/tests/robotests/src/com/android/settings/search/
InlinePayloadTest.java 1 package com.android.settings.search;
3 import static android.provider.Settings.System.SCREEN_BRIGHTNESS_MODE;
9 import android.provider.Settings;
11 import com.android.settings.search.ResultPayload.SettingsSource;
12 import com.android.settings.testutils.SettingsRobolectricTestRunner;
35 Settings.Secure.putInt(mContext.getContentResolver(), KEY, currentValue);
46 Settings.Global.putInt(mContext.getContentResolver(), KEY, currentValue);
57 Settings.System.putInt(mContext.getContentResolver(), KEY, currentValue);
69 Settings.Secure.putInt(resolver, KEY, 0);
72 int updatedValue = Settings.System.getInt(resolver, KEY, -1)
    [all...]
  /packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
LocationSettingsTests.java 17 package com.android.settings.ui;
21 import android.provider.Settings;
34 private static final String SETTINGS_PACKAGE = "com.android.settings";
60 Settings.ACTION_SECURITY_SETTINGS);
76 // Verify location settings loads.
97 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(),
98 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_HIGH_ACCURACY);
101 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_SENSORS_ONLY);
106 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver()
    [all...]

Completed in 2167 milliseconds

1 2 3 4 5 6 7 8 91011>>