/prebuilts/go/darwin-x86/src/cmd/go/internal/web/ |
security.go | 10 // The zero value is "secure". 14 Secure SecurityMode = iota
|
/prebuilts/go/linux-x86/src/cmd/go/internal/web/ |
security.go | 10 // The zero value is "secure". 14 Secure SecurityMode = iota
|
/cts/tests/tests/provider/src/android/provider/cts/ |
Settings_SecureTest.java | 24 import android.provider.Settings.Secure; 36 private static final String STRING_VALUE_SETTING = Secure.ANDROID_ID; 51 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); 53 String value = Secure.getString(cr, STRING_VALUE_SETTING); 63 assertEquals(10, Secure.getInt(cr, "int", 10)); 64 assertEquals(20, Secure.getLong(cr, "long", 20)); 65 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001); 69 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); 72 Secure.putInt(cr, NO_SUCH_SETTING, -1); 78 Secure.getInt(cr, NO_SUCH_SETTING) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/deletionhelper/ |
AutomaticStorageManagerDescriptionPreferenceControllerTest.java | 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, 74 Settings.Secure.putLong( 76 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN,
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
NightDisplayIntensityPreferenceControllerTest.java | 20 import android.provider.Settings.Secure; 47 Secure.putInt(mContext.getContentResolver(), Secure.NIGHT_DISPLAY_ACTIVATED, 1); 55 Secure.putInt(mContext.getContentResolver(), Secure.NIGHT_DISPLAY_ACTIVATED, 0); 75 assertThat(Secure.getInt(mContext.getContentResolver(), 76 Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE, -1))
|
NightDisplayAutoModePreferenceControllerTest.java | 20 import android.provider.Settings.Secure; 62 assertThat(Secure.getInt(mContext.getContentResolver(), Secure.NIGHT_DISPLAY_AUTO_MODE, -1))
|
NightDisplayActivationPreferenceControllerTest.java | 23 import android.provider.Settings.Secure; 91 Secure.putInt(mContext.getContentResolver(), Secure.NIGHT_DISPLAY_ACTIVATED, 0); 97 assertThat(Secure.getInt(mContext.getContentResolver(), Secure.NIGHT_DISPLAY_ACTIVATED, -1)) 103 Secure.putInt(mContext.getContentResolver(), Secure.NIGHT_DISPLAY_ACTIVATED, 1); 109 assertThat(Secure.getInt(mContext.getContentResolver(), Secure.NIGHT_DISPLAY_ACTIVATED, -1))
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
TestableSettingsProviderTest.java | 20 import android.provider.Settings.Secure; 45 Settings.Secure.putString(mContentResolver, NONEXISTENT_SETTING, null); 52 String value = Secure.getString(mContentResolver, NONEXISTENT_SETTING); 64 Secure.putString(mContentResolver, NONEXISTENT_SETTING, "something"); 66 assertEquals("something", Secure.getString(mContentResolver, NONEXISTENT_SETTING)); 72 Secure.putStringForUser(mContentResolver, NONEXISTENT_SETTING, "something", 0); 73 Secure.putStringForUser(mContentResolver, NONEXISTENT_SETTING, "else", 1); 75 Secure.getStringForUser(mContentResolver, NONEXISTENT_SETTING, 0)); 77 Secure.getStringForUser(mContentResolver, NONEXISTENT_SETTING, 1)); 83 assertTrue(Secure.getInt(mContentResolver, Secure.USER_SETUP_COMPLETE, 0) != 0) [all...] |
/development/apps/SdkSetup/src/com/android/sdksetup/ |
DefaultActivity.java | 46 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1); 53 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, 59 Settings.Secure.putInt(getContentResolver(),Settings.Secure.ADB_ENABLED, 1);
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
SettingsObserver.java | 35 abstract class Secure extends ContentObserver implements SettingsObserver { 39 public Secure(ContentResolver resolver) { 48 Settings.Secure.getUriFor(mKeySetting), false, this); 51 Settings.Secure.getUriFor(setting), false, this); 64 onSettingChanged(Settings.Secure.getInt(mResolver, mKeySetting, 1) == 1);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/ |
AssistFlashScreenPreferenceControllerTest.java | 84 Settings.Secure.putString(cr, Settings.Secure.ASSISTANT, "com.android.settings/assist"); 95 Settings.Secure.putString(cr, Settings.Secure.ASSISTANT, "com.android.settings/assist"); 103 Settings.Secure.putString(mContext.getContentResolver(), Settings.Secure.ASSISTANT, ""); 111 Settings.Secure.putString(mContext.getContentResolver(), 112 Settings.Secure.ASSISTANT, "com.android.settings/assist"); 118 Settings.Secure.putInt(mContext.getContentResolver(), 119 Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 1) [all...] |
AssistContextPreferenceControllerTest.java | 72 Settings.Secure.putString(mContext.getContentResolver(), 73 Settings.Secure.ASSISTANT, "com.android.settings/assist"); 79 Settings.Secure.putString(mContext.getContentResolver(), 80 Settings.Secure.ASSISTANT, ""); 86 Settings.Secure.putString(mContext.getContentResolver(), 87 Settings.Secure.ASSISTANT, "com.android.settings/assist"); 89 Settings.Secure.putInt(mContext.getContentResolver(), 90 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1);
|
/device/google/atv/TvProvision/src/com/android/tv/provision/ |
DefaultActivity.java | 42 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1); 43 Settings.Secure.putInt(getContentResolver(), Settings.Secure.TV_USER_SETUP_COMPLETE, 1);
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
SettingsHelperRestoreTest.java | 51 /** Tests for {@link Settings.Secure#ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED}. */ 57 Settings.Secure.putInt( 59 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, 66 Settings.Secure.getUriFor( 67 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED), 68 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, 73 Settings.Secure.getInt( 75 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED)) 84 Settings.Secure.putInt( 86 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
DozeConfigurationTest.java | 50 Settings.Secure.putString(mContext.getContentResolver(), Settings.Secure.DOZE_ALWAYS_ON,
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
SettingsContentObserver.java | 33 mKeysToObserve.add(Settings.Secure.ACCESSIBILITY_ENABLED); 34 mKeysToObserve.add(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); 45 Settings.Secure.getUriFor(mKeysToObserve.get(i)), false, this);
|
/packages/apps/Settings/src/com/android/settings/display/ |
TapToWakePreferenceController.java | 46 int value = Settings.Secure.getInt( 47 mContext.getContentResolver(), Settings.Secure.DOUBLE_TAP_TO_WAKE, 0); 54 Settings.Secure.putInt( 55 mContext.getContentResolver(), Settings.Secure.DOUBLE_TAP_TO_WAKE, value ? 1 : 0);
|
/packages/apps/Settings/src/com/android/settings/security/ |
LockdownButtonPreferenceController.java | 51 return Settings.Secure.getInt(mContext.getContentResolver(), 52 Settings.Secure.LOCKDOWN_IN_POWER_MENU, 0) != 0; 57 Settings.Secure.putInt(mContext.getContentResolver(), 58 Settings.Secure.LOCKDOWN_IN_POWER_MENU, isChecked ? 1 : 0);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
LocationEnablerTest.java | 121 assertThat(mEnabler.isEnabled(Settings.Secure.LOCATION_MODE_OFF)).isFalse(); 128 assertThat(mEnabler.isEnabled(Settings.Secure.LOCATION_MODE_OFF)).isFalse(); 135 assertThat(mEnabler.isEnabled(Settings.Secure.LOCATION_MODE_BATTERY_SAVING)).isTrue(); 148 Settings.Secure.putInt(mContext.getContentResolver(), 149 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_BATTERY_SAVING); 151 mEnabler.setLocationMode(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); 153 verify(mListener).onLocationModeChanged(Settings.Secure.LOCATION_MODE_BATTERY_SAVING, true); 159 Settings.Secure.putInt(mContext.getContentResolver(), 160 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_BATTERY_SAVING) [all...] |
/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...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
BatterySaverUtilsTest.java | 34 import android.provider.Settings.Secure; 70 Secure.putString(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, "null"); 71 Secure.putString(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, "null"); 80 Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); 82 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); 87 Secure.putInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1); // Already acked [all...] |
/packages/apps/Settings/src/com/android/settings/applications/assist/ |
DefaultVoiceInputPicker.java | 95 Settings.Secure.putString(getContext().getContentResolver(), 96 Settings.Secure.VOICE_INTERACTION_SERVICE, value); 97 Settings.Secure.putString(getContext().getContentResolver(), 98 Settings.Secure.VOICE_RECOGNITION_SERVICE, 108 Settings.Secure.putString(getContext().getContentResolver(), 109 Settings.Secure.VOICE_INTERACTION_SERVICE, ""); 110 Settings.Secure.putString(getContext().getContentResolver(), 111 Settings.Secure.VOICE_RECOGNITION_SERVICE, value);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
AccessibilitySlicePreferenceControllerTest.java | 65 Settings.Secure.putInt(contentResolver, Settings.Secure.ACCESSIBILITY_ENABLED, 1 /* on */); 66 Settings.Secure.putString(contentResolver, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
|
MagnificationGesturesPreferenceControllerTest.java | 63 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, ON); 69 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, OFF); 87 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, ON); 95 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, OFF); 104 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), 105 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, -1)) 113 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), 114 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, -1))
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
SimulateColorSpacePreferenceControllerTest.java | 76 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), 77 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); 87 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), 88 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); 89 final int settingValue = Settings.Secure.getInt(mContext.getContentResolver(), 90 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER); 98 Settings.Secure.putInt(mContext.getContentResolver(), 99 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF); 108 Settings.Secure.putInt(mContext.getContentResolver(), 109 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_ON) [all...] |