/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...] |
/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")); 71 assertEquals("content://settings/secure/test_service", 72 Settings.Secure.getUriFor("test_service").toString()); 75 Uri tables[] = { Settings.System.CONTENT_URI, Settings.Secure.CONTENT_URI }; 131 assertEquals(null, Settings.Secure.getString(r, "test_key")) [all...] |
/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);
|
ToggleScreenMagnificationPreferenceFragment.java | 27 Settings.Secure.putInt(getContentResolver(), 28 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, enabled ? 1 : 0);
|
ToggleAccessibilityServicePreferenceFragment.java | 57 String settingValue = Settings.Secure.getString(getContentResolver(), 58 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); 125 Settings.Secure.putString(getContentResolver(), 126 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, 130 Settings.Secure.putInt(getContentResolver(), 131 Settings.Secure.ACCESSIBILITY_ENABLED, accessibilityEnabled ? 1 : 0);
|
AccessibilitySettings.java | 242 Settings.Secure.putInt(getContentResolver(), 243 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue)); 285 Settings.Secure.putInt(getContentResolver(), 286 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, 288 ? Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP 289 : Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF)); 298 Settings.Secure.putInt(getContentResolver(), 299 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD, 321 extras.putBoolean(EXTRA_CHECKED, Settings.Secure.getInt(getContentResolver(), 322 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, 0) == 1) [all...] |
CaptionPropertiesFragment.java | 194 Settings.Secure.putInt(getActivity().getContentResolver(), 195 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, checked ? 1 : 0); 331 Settings.Secure.putInt( 332 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, merged); 335 Settings.Secure.putInt( 336 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, merged); 338 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); 340 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, value) [all...] |
/packages/apps/Provision/src/com/android/provision/ |
DefaultActivity.java | 36 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
|
/development/apps/SdkSetup/src/com/android/sdksetup/ |
DefaultActivity.java | 45 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
PaymentBackend.java | 78 String componentString = Settings.Secure.getString(mContext.getContentResolver(), 79 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT); 88 Settings.Secure.putString(mContext.getContentResolver(), 89 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT,
|
/packages/apps/Settings/src/com/android/settings/print/ |
SettingsUtils.java | 40 String enabledServicesSetting = Settings.Secure.getString(context 41 .getContentResolver(), Settings.Secure.ENABLED_PRINT_SERVICES); 71 Settings.Secure.putString(context.getContentResolver(), 72 Settings.Secure.ENABLED_PRINT_SERVICES,
|
/external/robolectric/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));
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
EnableAccessibilityController.java | 252 Settings.Secure.putStringForUser(resolver, 253 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, 256 Settings.Secure.putStringForUser(resolver, 257 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES, 261 Settings.Secure.putIntForUser(resolver, Settings.Secure.TOUCH_EXPLORATION_ENABLED, 265 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION, 268 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_ENABLED [all...] |
/external/robolectric/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);
|
/frameworks/base/services/java/com/android/server/ |
RecognitionManagerService.java | 136 String curRecognizer = Settings.Secure.getStringForUser( 138 Settings.Secure.VOICE_RECOGNITION_SERVICE, userHandle); 148 Settings.Secure.putStringForUser(mContext.getContentResolver(), 149 Settings.Secure.VOICE_RECOGNITION_SERVICE,
|
CertBlacklister.java | 73 return Settings.Secure.getString(mContentResolver, mKey); 130 Settings.Secure.getUriFor(PUBKEY_BLACKLIST_KEY), 137 Settings.Secure.getUriFor(SERIAL_BLACKLIST_KEY),
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationSettingsBase.java | 86 mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, 87 Settings.Secure.LOCATION_MODE_OFF); 97 Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, mode); 103 int mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, 104 Settings.Secure.LOCATION_MODE_OFF); 114 return new CursorLoader(getActivity(), Settings.Secure.CONTENT_URI, null, 116 new String[] { Settings.Secure.LOCATION_MODE }, null) [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
RestrictionUtils.java | 25 import android.provider.Settings.Secure; 87 Secure.putStringForUser(context.getContentResolver(), 88 Secure.LOCATION_PROVIDERS_ALLOWED, "", user.getIdentifier());
|
/packages/services/Telephony/src/com/android/phone/ |
CdmaVoicePrivacyCheckBoxPreference.java | 89 android.provider.Settings.Secure.putInt(getContext().getContentResolver(), 90 android.provider.Settings.Secure.ENHANCED_VOICE_PRIVACY_ENABLED, enable);
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
InputMethodAndSubtypeUtil.java | 91 return Settings.Secure.getInt(resolver, 92 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE); 103 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); 109 final String enabledInputMethodsStr = Settings.Secure.getString( 110 resolver, Settings.Secure.ENABLED_INPUT_METHODS); 139 String disabledIMEsStr = Settings.Secure.getString( 140 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); 154 String currentInputMethodId = Settings.Secure.getString(resolver, 155 Settings.Secure.DEFAULT_INPUT_METHOD) [all...] |
/frameworks/base/core/java/android/provider/ |
Settings.java | 760 * @hide - Private call() method on SettingsProvider to read from 'secure' table. 777 /** @hide - Private call() method to write to 'secure' table */ [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
AccessibilityManagerServiceTest.java | 571 boolean isEnabled = (Settings.Secure.getInt(context.getContentResolver(), 572 Settings.Secure.ACCESSIBILITY_ENABLED, 0) == 1 ? true : false); 578 Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.ACCESSIBILITY_ENABLED, 600 String enabledServices = Settings.Secure.getString(context.getContentResolver(), 601 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); 615 Settings.Secure.putString(context.getContentResolver(), 616 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, servicesToEnable.toString());
|
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/ |
webrtcsessiondescriptionfactory.cc | 269 cricket::SecureMediaPolicy WebRtcSessionDescriptionFactory::Secure() const { 270 return session_desc_factory_.secure();
|
/frameworks/base/core/java/android/view/accessibility/ |
CaptioningManager.java | 26 import android.provider.Settings.Secure; 72 return Secure.getInt( 73 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_ENABLED, DEFAULT_ENABLED) == 1; 82 return Secure.getString(mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_LOCALE); 111 return Secure.getFloat( 112 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, DEFAULT_FONT_SCALE); 120 return Secure.getInt( 121 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_PRESET, DEFAULT_PRESET); 146 registerObserver(Secure.ACCESSIBILITY_CAPTIONING_ENABLED) [all...] |
/frameworks/base/services/java/com/android/server/search/ |
SearchManagerService.java | 177 Settings.Secure.getUriFor(Settings.Secure.SEARCH_GLOBAL_SEARCH_ACTIVITY),
|