/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
AutoAddTrackerTest.java | 24 import android.provider.Settings.Secure; 46 Secure.putString(mContext.getContentResolver(), Secure.QS_AUTO_ADDED_TILES, ""); 74 Secure.putString(mContext.getContentResolver(), Secure.QS_AUTO_ADDED_TILES, SAVER);
|
/packages/services/Car/service/src/com/android/car/ |
CarBluetoothService.java | 18 import static android.car.settings.CarSettings.Secure 20 import static android.car.settings.CarSettings.Secure 22 import static android.car.settings.CarSettings.Secure 24 import static android.car.settings.CarSettings.Secure 26 import static android.car.settings.CarSettings.Secure 28 import static android.car.settings.CarSettings.Secure 30 import static android.car.settings.CarSettings.Secure 32 import static android.car.settings.CarSettings.Secure 106 // Write the priority preference to Secure settings. The Bluetooth device connection policy 108 Settings.Secure.putStringForUser(mContext.getContentResolver() [all...] |
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
BatterySaverLocationTest.java | 18 import static android.provider.Settings.Secure.LOCATION_MODE_OFF; 19 import static android.provider.Settings.Secure.LOCATION_PROVIDERS_ALLOWED; 38 import android.provider.Settings.Secure; 147 return Secure.getInt(getContext().getContentResolver(), Secure.LOCATION_MODE, 0); 154 Settings.Secure.getUriFor(Settings.Secure.LOCATION_PROVIDERS_ALLOWED));
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
InstallNonMarketAppsDeprecationTest.java | 58 String newValue = getSetting(SETTING_TYPE_SECURE, Settings.Secure.INSTALL_NON_MARKET_APPS); 66 newValue = getSetting(SETTING_TYPE_SECURE, Settings.Secure.INSTALL_NON_MARKET_APPS); 77 sb.append(userId + " secure "); 78 sb.append(Settings.Secure.INSTALL_NON_MARKET_APPS); 103 String value = getSetting(SETTING_TYPE_SECURE, Settings.Secure.INSTALL_NON_MARKET_APPS); 106 setSettingViaShell(SETTING_TYPE_SECURE, Settings.Secure.INSTALL_NON_MARKET_APPS, "0", 110 value = getSetting(SETTING_TYPE_SECURE, Settings.Secure.INSTALL_NON_MARKET_APPS); 124 String value = getSetting(SETTING_TYPE_SECURE, Settings.Secure.INSTALL_NON_MARKET_APPS);
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
PreventRingingPreferenceController.java | 19 import static android.provider.Settings.Secure.VOLUME_HUSH_GESTURE; 20 import static android.provider.Settings.Secure.VOLUME_HUSH_MUTE; 21 import static android.provider.Settings.Secure.VOLUME_HUSH_OFF; 22 import static android.provider.Settings.Secure.VOLUME_HUSH_VIBRATE; 81 int value = Settings.Secure.getInt( 99 int value = Settings.Secure.getInt( 149 Settings.Secure.putInt(mContext.getContentResolver(), SECURE_KEY, value);
|
AssistGestureSettingsPreferenceController.java | 19 import static android.provider.Settings.Secure.ASSIST_GESTURE_ENABLED; 20 import static android.provider.Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED; 106 return Settings.Secure.getInt(mContext.getContentResolver(), 111 return Settings.Secure.getInt(mContext.getContentResolver(), 117 return Settings.Secure.putInt(mContext.getContentResolver(), SECURE_KEY_ASSIST, 138 return Settings.Secure.getInt(mContext.getContentResolver(), SECURE_KEY_ASSIST, OFF) == ON; 148 return new InlineSwitchPayload(SECURE_KEY_ASSIST, ResultPayload.SettingsSource.SECURE,
|
DoubleTapPowerPreferenceController.java | 19 import static android.provider.Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED; 77 final int cameraDisabled = Settings.Secure.getInt(mContext.getContentResolver(), 84 return Settings.Secure.putInt(mContext.getContentResolver(), SECURE_KEY, 95 return new InlineSwitchPayload(SECURE_KEY, ResultPayload.SettingsSource.SECURE,
|
GesturesSettingPreferenceController.java | 88 final boolean assistGestureEnabled = Settings.Secure.getInt( 89 contentResolver, Settings.Secure.ASSIST_GESTURE_ENABLED, 1) != 0; 90 final boolean assistGestureSilenceEnabled = Settings.Secure.getInt( 91 contentResolver, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 1) != 0;
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
WizardManagerHelperTest.java | 31 import android.provider.Settings.Secure; 291 Settings.Secure.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 1); 292 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 1); 295 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 0); 302 Settings.Secure.putInt(application.getContentResolver(), Secure.DEVICE_PROVISIONED, 1); 305 Settings.Secure.putInt(application.getContentResolver(), Secure.DEVICE_PROVISIONED, 0); 312 Settings.Secure.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 1); 314 Settings.Secure.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 0) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
AmbientDisplayNotificationsPreferenceControllerTest.java | 100 assertThat(Settings.Secure.getInt(mContentResolver, Settings.Secure.DOZE_ENABLED, -1)) 108 assertThat(Settings.Secure.getInt(mContentResolver, Settings.Secure.DOZE_ENABLED, -1)) 167 Settings.Secure.putInt(mContentResolver, Settings.Secure.DOZE_ENABLED, 0); 171 Settings.Secure.getInt(mContentResolver, Settings.Secure.DOZE_ENABLED, 1); 179 Settings.Secure.putInt(mContentResolver, Settings.Secure.DOZE_ENABLED, currentValue) [all...] |
SystemUiThemePreferenceControllerTest.java | 19 import static android.provider.Settings.Secure.THEME_MODE; 67 Settings.Secure.putInt(mContext.getContentResolver(), THEME_MODE, 2); 74 Settings.Secure.putInt(mContext.getContentResolver(), THEME_MODE, 2); 77 int value = Settings.Secure.getInt(mContext.getContentResolver(), THEME_MODE, 2);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
AccessibilityShortcutControllerTest.java | 56 import static android.provider.Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN; 57 import static android.provider.Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED; 58 import static android.provider.Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN; 59 import static android.provider.Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE; 222 Settings.Secure.putString( 224 Settings.Secure.putInt(mContentResolver, ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN, 0); 226 Settings.Secure.putInt(mContentResolver, ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN, 1); 235 Settings.Secure.putString(mContentResolver, ACCESSIBILITY_SHORTCUT_TARGET_SERVICE, ""); 304 Settings.Secure.putInt(mContentResolver, ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN, 0); 307 assertEquals(1, Settings.Secure.getInt [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
DatabaseHelper.java | 42 import android.provider.Settings.Secure; 67 * secure, and system settings are no longer stored in a database 93 private static final String TABLE_SECURE = "secure"; 173 db.execSQL("CREATE TABLE secure (" + 178 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); 328 // This introduces the new secure settings table. 341 Settings.Secure.ADB_ENABLED, 342 Settings.Secure.ANDROID_ID, 343 Settings.Secure.BLUETOOTH_ON, 344 Settings.Secure.DATA_ROAMING [all...] |
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
ServiceControlUtils.java | 64 String alreadyEnabledServices = Settings.Secure.getString( 65 cr, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); 66 ParcelFileDescriptor fd = uiAutomation.executeShellCommand("settings --user cur put secure " 67 + Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES + " " 129 String alreadyEnabledServices = Settings.Secure.getString( 130 cr, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); 131 ParcelFileDescriptor fd = uiAutomation.executeShellCommand("settings --user cur put secure " 132 + Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES + " "
|
/frameworks/base/telecomm/java/android/telecom/ |
DefaultDialerManager.java | 43 * The caller of this method needs to have permission to write to secure settings and 57 * The caller of this method needs to have permission to write to secure settings and 68 String oldPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), 69 Settings.Secure.DIALER_DEFAULT_APPLICATION, user); 80 // Update the secure setting. 81 Settings.Secure.putStringForUser(context.getContentResolver(), 82 Settings.Secure.DIALER_DEFAULT_APPLICATION, packageName, user); 119 String defaultPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), 120 Settings.Secure.DIALER_DEFAULT_APPLICATION, user);
|
/packages/apps/Settings/src/com/android/settings/applications/assist/ |
AssistFlashScreenPreferenceController.java | 96 Settings.Secure.putInt(mContext.getContentResolver(), 97 Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 144 Settings.Secure.getUriFor(Settings.Secure.ASSIST_DISCLOSURE_ENABLED); 146 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED);
|
/packages/apps/Settings/src/com/android/settings/security/screenlock/ |
LockAfterTimeoutPreferenceController.java | 92 Settings.Secure.putInt(mContext.getContentResolver(), 93 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, timeout); 103 long currentTimeout = Settings.Secure.getLong(mContext.getContentResolver(), 104 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, 5000); 127 long currentTimeout = Settings.Secure.getLong(mContext.getContentResolver(), 128 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, 5000);
|
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/ |
AccessibilityShortcutPreferenceFragmentTest.java | 112 Settings.Secure.putInt(mActivity.getContentResolver(), 113 Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN, shown ? 1 : 0); 118 Settings.Secure.putString(mActivity.getContentResolver(), 119 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, null); 121 Settings.Secure.putInt(mActivity.getContentResolver(), 122 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, onLockscreen ? 1 : 0);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/ |
AccessibilityFragment.java | 72 highContrastPreference.setChecked(Settings.Secure.getInt(getContext().getContentResolver(), 73 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 0) == 1); 82 Settings.Secure.putInt(getActivity().getContentResolver(), 83 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 97 final boolean accessibilityEnabled = Settings.Secure.getInt( 99 Settings.Secure.ACCESSIBILITY_ENABLED, 0) == 1;
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
MagnificationGesturesPreferenceController.java | 36 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED); 42 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, isChecked); 86 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED);
|
MagnificationNavbarPreferenceController.java | 36 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED); 42 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, isChecked); 54 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED);
|
/packages/apps/Settings/src/com/android/settings/display/ |
AmbientDisplayAlwaysOnPreferenceController.java | 70 Settings.Secure.putInt( 71 mContext.getContentResolver(), Settings.Secure.DOZE_ALWAYS_ON, enabled); 108 return new InlineSwitchPayload(Settings.Secure.DOZE_ALWAYS_ON, 109 ResultPayload.SettingsSource.SECURE, ON /* onValue */, intent, isAvailable(),
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
ShellUiAutomatorBridge.java | 61 String providerName = Settings.Secure.CONTENT_URI.getAuthority(); 70 cursor = provider.query(null, Settings.Secure.CONTENT_URI, 72 Settings.Secure.VALUE 76 new String[] { Settings.Secure.LONG_PRESS_TIMEOUT },
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
InputMethodAndSubtypeUtil.java | 93 return Settings.Secure.getInt(resolver, 94 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE); 105 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); 111 final String enabledInputMethodsStr = Settings.Secure.getString( 112 resolver, Settings.Secure.ENABLED_INPUT_METHODS); 144 String disabledIMEsStr = Settings.Secure.getString( 145 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); 159 String currentInputMethodId = Settings.Secure.getString(resolver, 160 Settings.Secure.DEFAULT_INPUT_METHOD) [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
AutomaticStorageManagementSwitchPreferenceController.java | 92 Settings.Secure.putInt(mContext.getContentResolver(), 93 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 99 Settings.Secure.getInt( 101 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY,
|