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

1 2 3 4 5

  /cts/tests/tests/provider/src/android/provider/cts/
Settings_SecureTest.java 23 import android.provider.Settings.Secure;
35 private static final String STRING_VALUE_SETTING = Secure.ANDROID_ID;
50 assertNull(Secure.getString(cr, NO_SUCH_SETTING));
52 String value = Secure.getString(cr, STRING_VALUE_SETTING);
62 assertEquals(10, Secure.getInt(cr, "int", 10));
63 assertEquals(20, Secure.getLong(cr, "long", 20));
64 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001);
68 assertNull(Secure.getString(cr, NO_SUCH_SETTING));
71 Secure.putInt(cr, NO_SUCH_SETTING, -1);
77 Secure.getInt(cr, NO_SUCH_SETTING)
    [all...]
  /development/apps/SdkSetup/src/com/android/sdksetup/
DefaultActivity.java 43 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
47 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
ManagedProfileSettingsTask.java 23 import static android.provider.Settings.Secure.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH;
37 Settings.Secure.putIntForUser(mContentResolver, MANAGED_PROFILE_CONTACT_REMOTE_SEARCH,
  /packages/apps/Settings/src/com/android/settings/accessibility/
SettingsContentObserver.java 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);
AccessibilitySettings.java 258 Settings.Secure.putInt(getContentResolver(),
259 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue));
265 Settings.Secure.putInt(getContentResolver(),
266 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, (checked ? 1 : 0));
300 Settings.Secure.putInt(getContentResolver(),
301 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED,
306 Settings.Secure.putInt(getContentResolver(),
307 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
309 ? Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP
310 : Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF))
    [all...]
  /platform_testing/tests/functional/settingstests/src/com/android/settings/functional/
LocationSettingsTests.java 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);
104 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(),
105 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY);
107 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_BATTERY_SAVING);
112 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(),
113 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY)
    [all...]
SettingsHelper.java 32 SECURE,
101 case SECURE:
102 Settings.Secure.putString(mResolver, sName, value); break;
112 case SECURE:
113 return Settings.Secure.getString(mResolver, sName);
124 case SECURE:
125 Settings.Secure.putInt(mResolver, sName, value); break;
135 case SECURE:
136 return Settings.Secure.getInt(mResolver, sName);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
BackupAccessibilityTestActivity.java 75 ACCESSIBILITY_SETTINGS.add(Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD);
78 ACCESSIBILITY_SETTINGS.add(Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED);
94 TTS_SETTINGS.add(Settings.Secure.TTS_DEFAULT_RATE);
97 ACCESSIBILITY_SERVICE_SETTINGS.add(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES);
99 ACCESSIBILITY_SERVICE_SETTINGS.add(Settings.Secure.TOUCH_EXPLORATION_ENABLED);
180 String value = Settings.Secure.getString(getContentResolver(), setting);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
CaptionCustomFragment.java 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(),
216 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 0) & 0x00ffffff);
221 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(),
222 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 0xff000000) & 0xff000000
    [all...]
  /packages/apps/Settings/src/com/android/settings/notification/
RedactionInterstitial.java 142 final boolean enabled = Settings.Secure.getIntForUser(getContentResolver(),
143 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0, mUserId) != 0;
144 final boolean show = Settings.Secure.getIntForUser(getContentResolver(),
145 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1, mUserId) != 0;
164 Settings.Secure.putIntForUser(getContentResolver(),
165 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, show ? 1 : 0, mUserId);
166 Settings.Secure.putIntForUser(getContentResolver(),
167 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0, mUserId);
  /cts/tests/tests/bluetooth/src/android/bluetooth/cts/
TestUtils.java 62 return Settings.Secure.getInt(context.getContentResolver(),
63 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
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);
92 setLocationMode(context, Settings.Secure.LOCATION_MODE_OFF);
  /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"));
70 testRowNameContentUri(Settings.Secure.CONTENT_URI, Settings.Secure.NAME,
71 Settings.Secure.VALUE, testKey, testValue, secondTestValue);
74 Settings.Secure.putString(getContext().getContentResolver(), testKey, null)
    [all...]
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java 58 * @see Secure#SETTINGS_TO_BACKUP
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);
84 return Settings.Secure.getStringForUser(resolver, name, userHandle);
118 if (destination.equals(Settings.Secure.CONTENT_URI)) {
139 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) {
142 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) {
240 case Settings.Secure.ACCESSIBILITY_ENABLED
    [all...]
  /packages/apps/Provision/src/com/android/provision/
DefaultActivity.java 36 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
CaptionFragment.java 191 return Settings.Secure.getInt(getContext().getContentResolver(),
192 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 0) != 0;
196 Settings.Secure.putInt(getContext().getContentResolver(),
197 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, enabled ? 1 : 0);
201 return Settings.Secure.getInt(getContext().getContentResolver(),
202 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, 0);
206 Settings.Secure.putInt(getContext().getContentResolver(),
207 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, style);
213 return Settings.Secure.getString(getContext().getContentResolver(),
214 Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE)
    [all...]
KeyboardFragment.java 78 final String defaultId = Settings.Secure.getString(getActivity().getContentResolver(),
79 Settings.Secure.DEFAULT_INPUT_METHOD);
133 Settings.Secure.putStringForUser(getActivity().getContentResolver(),
134 Settings.Secure.DEFAULT_INPUT_METHOD, imid, userId);
184 Settings.Secure.putString(getActivity().getContentResolver(),
185 Settings.Secure.ENABLED_INPUT_METHODS, builder.toString());
  /packages/apps/Settings/src/com/android/settings/applications/
DefaultAssistPreference.java 71 Settings.Secure.putString(getContext().getContentResolver(),
72 Settings.Secure.ASSISTANT, ITEM_NONE_VALUE);
73 Settings.Secure.putString(getContext().getContentResolver(),
74 Settings.Secure.VOICE_INTERACTION_SERVICE, "");
75 Settings.Secure.putString(getContext().getContentResolver(),
76 Settings.Secure.VOICE_RECOGNITION_SERVICE, getDefaultRecognizer());
89 Settings.Secure.putString(getContext().getContentResolver(),
90 Settings.Secure.ASSISTANT, serviceComponentName);
91 Settings.Secure.putString(getContext().getContentResolver(),
92 Settings.Secure.VOICE_INTERACTION_SERVICE, serviceComponentName)
    [all...]
ManageAssist.java 58 mContextPref.setChecked(Settings.Secure.getInt(getContentResolver(),
59 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1) != 0);
77 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ASSIST_STRUCTURE_ENABLED,
83 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ASSIST_SCREENSHOT_ENABLED,
135 mScreenshotPref.setChecked(mContextPref.isChecked() && Settings.Secure.getInt(
136 getContentResolver(), Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 1) != 0);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
TunerService.java 105 Settings.Secure.putStringForUser(mContentResolver,
114 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser);
118 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser);
122 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser);
126 Settings.Secure.putIntForUser(mContentResolver, setting, value, mCurrentUser);
140 Uri uri = Settings.Secure.getUriFor(key);
146 String value = Settings.Secure.getStringForUser(mContentResolver, key, mCurrentUser);
172 String value = Settings.Secure.getStringForUser(mContentResolver, key, mCurrentUser);
180 String value = Settings.Secure.getStringForUser(mContentResolver, key,
197 Settings.Secure.putString(mContentResolver, key, null)
    [all...]
StatusBarSwitch.java 83 Settings.Secure.putStringForUser(contentResolver, StatusBarIconController.ICON_BLACKLIST,
  /packages/services/Telephony/src/com/android/phone/settings/
TtyModeListPreference.java 44 int settingsTtyMode = Settings.Secure.getInt(getContext().getContentResolver(),
45 Settings.Secure.PREFERRED_TTY_MODE,
55 int settingsTtyMode = android.provider.Settings.Secure.getInt(
57 Settings.Secure.PREFERRED_TTY_MODE,
68 Settings.Secure.putInt(
70 Settings.Secure.PREFERRED_TTY_MODE,
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
SettingsTest.java 60 assertThat(Settings.Secure.getInt(contentResolver, "property", 0), equalTo(0));
61 assertThat(Settings.Secure.getInt(contentResolver, "property", 2), equalTo(2));
63 Settings.Secure.putInt(contentResolver, "property", 1);
64 assertThat(Settings.Secure.getInt(contentResolver, "property", 0), equalTo(1));
  /packages/apps/Settings/src/com/android/settings/utils/
ServiceListing.java 79 mContentResolver.registerContentObserver(Settings.Secure.getUriFor(mConfig.setting),
88 final String flat = Settings.Secure.getString(context.getContentResolver(), config.setting);
139 Settings.Secure.putString(mContentResolver, mConfig.setting,
145 final String flat = Settings.Secure.getString(mContentResolver, mConfig.setting);
  /packages/apps/Settings/src/com/android/settings/voice/
VoiceInputListPreference.java 42 Settings.Secure.putString(getContext().getContentResolver(),
43 Settings.Secure.VOICE_INTERACTION_SERVICE, value);
44 Settings.Secure.putString(getContext().getContentResolver(),
45 Settings.Secure.VOICE_RECOGNITION_SERVICE,
58 Settings.Secure.putString(getContext().getContentResolver(),
59 Settings.Secure.VOICE_INTERACTION_SERVICE, "");
60 Settings.Secure.putString(getContext().getContentResolver(),
61 Settings.Secure.VOICE_RECOGNITION_SERVICE, value);
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowSettings.java 14 * Shadow of {@code Settings} that allows the status of various System and Secure settings to be simulated, changed and
126 @Implements(Settings.Secure.class)
149 Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0);

Completed in 417 milliseconds

1 2 3 4 5