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

1 2 3 4 5 6 7 8 91011>>

  /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)
  /packages/services/Telecomm/src/com/android/server/telecom/
SystemSettingsUtil.java 20 import android.provider.Settings;
25 * Accesses the Global System settings for more control during testing.
31 return Settings.Global.getInt(context.getContentResolver(), Settings.Global.THEATER_MODE_ON,
36 return Settings.System.getInt(context.getContentResolver(),
37 Settings.System.VIBRATE_WHEN_RINGING, 0) != 0;
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
SettingsTest.java 20 import static com.squareup.okhttp.internal.framed.Settings.DEFAULT_INITIAL_WINDOW_SIZE;
21 import static com.squareup.okhttp.internal.framed.Settings.DOWNLOAD_BANDWIDTH;
22 import static com.squareup.okhttp.internal.framed.Settings.DOWNLOAD_RETRANS_RATE;
23 import static com.squareup.okhttp.internal.framed.Settings.MAX_CONCURRENT_STREAMS;
24 import static com.squareup.okhttp.internal.framed.Settings.PERSISTED;
25 import static com.squareup.okhttp.internal.framed.Settings.PERSIST_VALUE;
26 import static com.squareup.okhttp.internal.framed.Settings.UPLOAD_BANDWIDTH;
33 Settings settings = new Settings(); local
38 Settings settings = new Settings(); local
94 Settings settings = new Settings(); local
125 Settings settings = new Settings(); local
    [all...]
  /frameworks/opt/net/wifi/service/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 */
37 /* Persisted state that tracks the wifi & airplane interaction from settings */
139 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state);
144 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(),
145 Settings.Global.AIRPLANE_MODE_RADIOS);
147 || airplaneModeRadios.contains(Settings.Global.RADIO_WIFI);
152 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));
SettingsTest.java 34 import android.provider.Settings;
43 Settings.System._ID, Settings.System.NAME, Settings.System.VALUE
55 cr.acquireContentProviderClient(Settings.System.CONTENT_URI);
61 value.put(Settings.System.NAME, name);
62 value.put(Settings.System.VALUE, insertValue);
64 provider.insert(Settings.System.CONTENT_URI, value);
65 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION,
66 Settings.System.NAME + "=\"" + name + "\"", null, null, null)
    [all...]
  /system/bt/service/
settings.h 26 // The Settings class stores global runtime configurations, such as IPC domain
29 class Settings {
34 Settings();
35 ~Settings();
39 // Initializes the Settings object. This reads the command-line options for
41 // base::CommandLine) and sets up the initial global settings. Returns false
68 DISALLOW_COPY_AND_ASSIGN(Settings);
  /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...]
  /packages/apps/ContactsCommon/src-N/com/android/contacts/common/compat/
MetadataSyncEnabledCompat.java 20 import android.provider.Settings;
24 return android.provider.Settings.Global.getInt(
26 Settings.Global.CONTACT_METADATA_SYNC_ENABLED, 0) == 1;
  /cts/tests/tests/permission2/src/android/permission2/cts/
NoWriteSecureSettingsPermissionTest.java 21 import android.provider.Settings;
25 * Verify secure settings cannot be written to without required permissions.
30 * Verify that write to secure settings requires permissions.
38 values.put(Settings.Secure.NAME, Settings.Secure.ACCESSIBILITY_ENABLED);
39 values.put(Settings.Secure.VALUE, Boolean.TRUE);
40 getContext().getContentResolver().insert(Settings.Secure.CONTENT_URI, values);
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/
WirelessUtils.java 19 import android.provider.Settings;
27 String toggleable = Settings.Global.getString(context.getContentResolver(),
28 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
33 return Settings.Global.getInt(context.getContentResolver(),
34 Settings.Global.AIRPLANE_MODE_ON, 0) != 0;
  /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/accessibility/
SettingsContentObserver.java 17 package com.android.settings.accessibility;
23 import android.provider.Settings;
31 contentResolver.registerContentObserver(Settings.Secure.getUriFor(
32 Settings.Secure.ACCESSIBILITY_ENABLED), false, this);
33 contentResolver.registerContentObserver(Settings.Secure.getUriFor(
34 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES), false, this);
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
SettingsIntentsTest.java 21 import android.provider.Settings;
27 * Note that OEMs can replace the Settings apps, so we we can at most check if the intent resolves.
45 new Intent(Settings.ACTION_SETTINGS), 0 /* flags */));
50 new Intent(Settings.ACTION_SYNC_SETTINGS), 0 /* flags */));
55 new Intent(Settings.ACTION_APPLICATION_SETTINGS), 0 /* flags */));
61 new Intent(Settings.ACTION_SECURITY_SETTINGS), 0 /* flags */));
67 new Intent(Settings.ACTION_NFC_SETTINGS), 0 /* flags */));
73 new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS), 0 /* flags */));
  /frameworks/base/core/tests/coretests/src/android/provider/
SettingsProviderTest.java 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"));
54 // Apps should not be able to use System settings.
56 Settings.System.putString(r, "test_setting", "Value");
70 testRowNameContentUri(Settings.Secure.CONTENT_URI, Settings.Secure.NAME
    [all...]
  /packages/services/Telephony/sip/src/com/android/services/telephony/sip/
SipPreferences.java 22 import android.provider.Settings;
23 import android.provider.Settings.SettingNotFoundException;
43 Settings.System.putString(mContext.getContentResolver(),
44 Settings.System.SIP_CALL_OPTIONS, option);
54 String option = Settings.System.getString(mContext.getContentResolver(),
55 Settings.System.SIP_CALL_OPTIONS);
61 Settings.System.putInt(mContext.getContentResolver(),
62 Settings.System.SIP_RECEIVE_CALLS, (enabled ? 1 : 0));
67 return (Settings.System.getInt(mContext.getContentResolver(),
68 Settings.System.SIP_RECEIVE_CALLS) != 0)
    [all...]
  /cts/suite/audio_quality/lib/include/
Settings.h 23 class Settings {
25 static Settings* Instance();
38 static Settings* mInstance;
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
ManagedProfileSettingsTask.java 21 import android.provider.Settings;
23 import static android.provider.Settings.Secure.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH;
37 Settings.Secure.putIntForUser(mContentResolver, MANAGED_PROFILE_CONTACT_REMOTE_SEARCH,
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
PreferencesSettingsFragment.java 17 package com.android.inputmethod.latin.settings;
31 * "Preferences" settings sub screen.
33 * This settings sub screen handles the following input preferences.
54 // When we are called from the Settings application but we are not already running, some
62 removePreference(Settings.PREF_VOICE_INPUT_KEY);
65 removePreference(Settings.PREF_VIBRATE_ON);
67 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) {
68 removePreference(Settings.PREF_POPUP_ON);
77 final Preference voiceInputKeyOption = findPreference(Settings.PREF_VOICE_INPUT_KEY);
89 if (key.equals(Settings.PREF_POPUP_ON))
    [all...]
  /cts/tests/tests/bluetooth/src/android/bluetooth/cts/
TestUtils.java 21 import android.provider.Settings;
59 * Get current location mode settings.
62 return Settings.Secure.getInt(context.getContentResolver(),
63 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
67 * Set location settings mode.
70 Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE,
78 return getLocationMode(context) != Settings.Secure.LOCATION_MODE_OFF;
85 setLocationMode(context, Settings.Secure.LOCATION_MODE_SENSORS_ONLY)
    [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);
43 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
46 // Not needed since this SDK will contain the Settings app.
47 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
51 Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 1)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
CaptionCustomFragment.java 17 package com.android.tv.settings.system.development;
21 import android.provider.Settings;
29 import com.android.tv.settings.R;
199 final String typeface = Settings.Secure.getString(getContext().getContentResolver(),
200 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE);
206 Settings.Secure.putString(getContext().getContentResolver(),
207 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, null);
209 Settings.Secure.putString(getContext().getContentResolver(),
210 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, fontFamily);
215 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver()
    [all...]
  /frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/
Android.mk 74 ######### Policy PFW Settings #########
79 LOCAL_MODULE_RELATIVE_PATH := parameter-framework/Settings/Policy
89 $(LOCAL_PATH)/Settings/device_for_strategy_media.pfw \
90 $(LOCAL_PATH)/Settings/device_for_strategy_phone.pfw \
91 $(LOCAL_PATH)/Settings/device_for_strategy_sonification.pfw \
92 $(LOCAL_PATH)/Settings/device_for_strategy_sonification_respectful.pfw \
93 $(LOCAL_PATH)/Settings/device_for_strategy_dtmf.pfw \
94 $(LOCAL_PATH)/Settings/device_for_strategy_enforced_audible.pfw \
95 $(LOCAL_PATH)/Settings/device_for_strategy_transmitted_through_speaker.pfw \
96 $(LOCAL_PATH)/Settings/device_for_strategy_accessibility.pfw
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
SensorFeaturesDeactivator.java 24 import android.provider.Settings;
94 super(Settings.ACTION_WIRELESS_SETTINGS, R.string.snsr_setting_airplane_mode);
100 // Settings.System.AIRPLANE_MODE_ON is deprecated in API 17
102 return Settings.System
103 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue);
105 return Settings.Global
106 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue);
113 super(Settings.ACTION_DISPLAY_SETTINGS, R.string.snsr_setting_screen_brightness_mode);
118 return Settings.System.getInt(
120 Settings.System.SCREEN_BRIGHTNESS_MODE
    [all...]
  /platform_testing/tests/functional/settingstests/src/com/android/settings/functional/
LocationSettingsTests.java 17 package android.settings.functional;
24 import android.provider.Settings;
37 private static final String SETTINGS_PACKAGE = "com.android.settings";
61 // Load settings
63 Settings.ACTION_SETTINGS);
76 // Verify location settings loads.
96 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(),
97 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_BATTERY_SAVING);
99 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_SENSORS_ONLY)
    [all...]

Completed in 2374 milliseconds

1 2 3 4 5 6 7 8 91011>>