/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | SettingsTest.java | 32 import com.android.rkpdapp.utils.Settings; 56 Settings.clearPreferences(sContext); in setUp() 61 Settings.clearPreferences(sContext); in tearDown() 67 assertThat(Settings.getDefaultUrl()).isEmpty(); in testDefaultUrlEmpty() 74 assertThat(Settings.getDefaultUrl()).isEqualTo("https://your.hostname/v1"); in testDefaultUrlNonEmpty() 80 assertEquals(Settings.EXTRA_SIGNED_KEYS_AVAILABLE_DEFAULT, in testCheckDefaults() 81 Settings.getExtraSignedKeysAvailable(sContext)); in testCheckDefaults() 82 assertEquals(Settings.EXPIRING_BY_MS_DEFAULT, in testCheckDefaults() 83 Settings.getExpiringBy(sContext).toMillis()); in testCheckDefaults() 84 assertEquals(Settings.getDefaultUrl(), in testCheckDefaults() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | CaptionCustomFragment.java | 21 import android.provider.Settings; 200 final String typeface = Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsFontFamily() 201 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE); in getCaptionsFontFamily() 207 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily() 208 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, null); in setCaptionsFontFamily() 210 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily() 211 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, fontFamily); in setCaptionsFontFamily() 216 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextColor() 217 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 0) & 0x00ffffff); in getCaptionsTextColor() 222 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextColor() [all …]
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | SettingsCompat.java | 18 import android.provider.Settings; 21 public static String ACTION_SYSTEM_UPDATE_SETTINGS = Settings.ACTION_SYSTEM_UPDATE_SETTINGS; 24 Settings.Secure.ENABLED_ACCESSIBILITY_AUDIO_DESCRIPTION_BY_DEFAULT; 27 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED; 30 return Settings.Secure.getStringForUser(resolver, name, userHandle); in getStringForUser() 35 return Settings.Secure.putStringForUser(resolver, name, value, userHandle); in putStringForUser() 38 public static String ATTENTIVE_TIMEOUT = Settings.Secure.ATTENTIVE_TIMEOUT; 39 public static String SLEEP_TIMEOUT = Settings.Secure.SLEEP_TIMEOUT; 41 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK; 43 Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP; [all …]
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | OneHandedSettingsUtils.java | 29 import android.provider.Settings; 46 Settings.Secure.getUriFor(Settings.Secure.ONE_HANDED_MODE_ENABLED); 48 Settings.Secure.getUriFor(Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED); 50 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS); 52 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE); 54 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_QS_TARGETS); 95 return Settings.Secure.getIntForUser(context.getContentResolver(), in isOneHandedModeEnabled() 96 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, sCurrentUserId) == ON; in isOneHandedModeEnabled() 106 Settings.Secure.putIntForUser(context.getContentResolver(), in setOneHandedModeEnabled() 107 Settings.Secure.ONE_HANDED_MODE_ENABLED, enable ? ON : OFF, sCurrentUserId); in setOneHandedModeEnabled() [all …]
|
D | PreventRingingSwitchPreferenceController.java | 20 import android.provider.Settings; 59 int preventRinging = Settings.Secure.getInt(mContext.getContentResolver(), in displayPreference() 60 Settings.Secure.VOLUME_HUSH_GESTURE, in displayPreference() 61 Settings.Secure.VOLUME_HUSH_VIBRATE); in displayPreference() 62 boolean isChecked = preventRinging != Settings.Secure.VOLUME_HUSH_OFF; in displayPreference() 63 Settings.Secure.putInt(mContext.getContentResolver(), in displayPreference() 64 Settings.Secure.VOLUME_HUSH_GESTURE, isChecked in displayPreference() 65 ? Settings.Secure.VOLUME_HUSH_OFF in displayPreference() 66 : Settings.Secure.VOLUME_HUSH_VIBRATE); in displayPreference() 85 int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in updateState() [all …]
|
D | PreventRingingParentPreferenceController.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_VIBRATE; 28 import android.provider.Settings; 71 final int preventRinging = Settings.Secure.getInt(mContext.getContentResolver(), in isChecked() 72 Settings.Secure.VOLUME_HUSH_GESTURE, in isChecked() 73 Settings.Secure.VOLUME_HUSH_VIBRATE); in isChecked() 74 return preventRinging != Settings.Secure.VOLUME_HUSH_OFF; in isChecked() 79 final int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in setChecked() 80 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE); in setChecked() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | FloatingMenuTransparencyPreferenceControllerTest.java | 19 import static android.provider.Settings.Secure.ACCESSIBILITY_BUTTON_MODE_FLOATING_MENU; 20 import static android.provider.Settings.Secure.ACCESSIBILITY_BUTTON_MODE_NAVIGATION_BAR; 36 import android.provider.Settings; 84 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in getAvailabilityStatus_a11yBtnModeFloatingMenu_returnAvailable() 92 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in getAvailabilityStatus_a11yBtnModeNavigationBar_returnDisabledDependentSetting() 100 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in displayPreference_floatingMenuMode_fadeEnabled_preferenceEnabled() 102 Settings.Secure.putInt(mContentResolver, in displayPreference_floatingMenuMode_fadeEnabled_preferenceEnabled() 103 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED, /* ON */ 1); in displayPreference_floatingMenuMode_fadeEnabled_preferenceEnabled() 112 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in displayPreference_floatingMenuMode_fadeDisabled_preferenceDisabled() 114 Settings.Secure.putInt(mContentResolver, in displayPreference_floatingMenuMode_fadeDisabled_preferenceDisabled() [all …]
|
D | CaptioningAppearancePreferenceControllerTest.java | 24 import android.provider.Settings; 73 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_smallestScale_shouldReturnExpectedSummary() 74 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 0.25f); in getSummary_smallestScale_shouldReturnExpectedSummary() 84 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_smallScale_shouldReturnExpectedSummary() 85 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 0.5f); in getSummary_smallScale_shouldReturnExpectedSummary() 95 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_mediumScale_shouldReturnExpectedSummary() 96 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 1.0f); in getSummary_mediumScale_shouldReturnExpectedSummary() 106 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_largeScale_shouldReturnExpectedSummary() 107 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 1.5f); in getSummary_largeScale_shouldReturnExpectedSummary() 117 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_largestScale_shouldReturnExpectedSummary() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverEnableForAllAppsPreferenceControllerTest.java | 35 import android.provider.Settings; 80 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in setUp() 81 Settings.Global.putInt( in setUp() 82 mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, UPDATABLE_DRIVER_DEFAULT); in setUp() 93 Settings.Global.putInt( in getAvailability_developmentSettingsEnabledAndUpdatableDriverSettingsOn_available() 94 mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, UPDATABLE_DRIVER_DEFAULT); in getAvailability_developmentSettingsEnabledAndUpdatableDriverSettingsOn_available() 101 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable() 108 Settings.Global.putInt(mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, in getAvailability_updatableDriverOff_conditionallyUnavailable() 116 Settings.Global.putInt( in displayPreference_shouldAddListPreference() 117 mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, UPDATABLE_DRIVER_DEFAULT); in displayPreference_shouldAddListPreference() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | SimulateColorSpacePreferenceControllerTest.java | 30 import android.provider.Settings; 75 throws Settings.SettingNotFoundException { in onPreferenceChange_disabledSelected_shouldTurnOffPreference() 78 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_disabledSelected_shouldTurnOffPreference() 79 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); in onPreferenceChange_disabledSelected_shouldTurnOffPreference() 86 throws Settings.SettingNotFoundException { in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 89 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 90 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 91 final int settingValue = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 92 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER); in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 100 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOff_shouldSetValueToDisabled() [all …]
|
D | AdbAuthorizationTimeoutPreferenceControllerTest.java | 27 import android.provider.Settings; 66 mInitialAuthTimeout = Settings.Global.getLong(mContext.getContentResolver(), in setUp() 67 Settings.Global.ADB_ALLOWED_CONNECTION_TIME, in setUp() 68 Settings.Global.DEFAULT_ADB_ALLOWED_CONNECTION_TIME); in setUp() 73 Settings.Global.putLong(mContext.getContentResolver(), in tearDown() 74 Settings.Global.ADB_ALLOWED_CONNECTION_TIME, mInitialAuthTimeout); in tearDown() 82 long authTimeout = Settings.Global.getLong(mContentResolver, in onPreferenceChange_enableSetting_timeoutSetToZero() 83 Settings.Global.ADB_ALLOWED_CONNECTION_TIME); in onPreferenceChange_enableSetting_timeoutSetToZero() 94 Settings.Global.putLong(mContentResolver, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, 1); in onPreferenceChange_enableAndDisableSetting_timeoutSetToDefault() 98 long authTimeout = Settings.Global.getLong(mContentResolver, in onPreferenceChange_enableAndDisableSetting_timeoutSetToDefault() [all …]
|
D | WaitForDebuggerPreferenceControllerTest.java | 38 import android.provider.Settings; 81 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in onPreferenceChange_settingEnabledFoobarApp_waitForDebuggerShouldBeOn() 93 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in onPreferenceChange_settingDisabledFoobarApp_waitForDebuggerShouldBeOff() 103 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled() 104 Settings.Global in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled() 105 .putInt(mContentResolver, Settings.Global.WAIT_FOR_DEBUGGER, SETTING_VALUE_ON); in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled() 115 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled() 116 Settings.Global in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled() 117 .putInt(mContentResolver, Settings.Global.WAIT_FOR_DEBUGGER, SETTING_VALUE_ON); in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled() 127 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingDisabledNullDebugApp_preferenceShouldNotBeCheckedAndDisabled() [all …]
|
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPluginServiceTest.java | 11 import android.provider.Settings; 47 assertThat(Settings.Secure.getInt( in onCreate_serviceAvailable_enablesFeatureInSettings() 48 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE, -1)).isEqualTo(1); in onCreate_serviceAvailable_enablesFeatureInSettings() 49 assertThat(Settings.Secure.getInt( in onCreate_serviceAvailable_enablesFeatureInSettings() 50 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(1); in onCreate_serviceAvailable_enablesFeatureInSettings() 60 assertThat(Settings.Secure.getInt( in onCreate_serviceUnavailable_disablesFeatureInSettings() 61 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE, -1)).isEqualTo(0); in onCreate_serviceUnavailable_disablesFeatureInSettings() 62 assertThat(Settings.Secure.getInt( in onCreate_serviceUnavailable_disablesFeatureInSettings() 63 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(1); in onCreate_serviceUnavailable_disablesFeatureInSettings() 69 Settings.Secure.putInt(cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, 0); in onCreate_doesNotOverridePanelEnabledSettingIfOff() [all …]
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | LocationSettingsTests.java | 21 import android.provider.Settings; 63 Settings.ACTION_SECURITY_SETTINGS); in testLoadingLocationSettings() 100 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationDeviceOnlyMode() 101 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_ON); in testLocationDeviceOnlyMode() 104 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationDeviceOnlyMode() 109 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationBatterySavingMode() 110 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationBatterySavingMode() 112 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_BATTERY_SAVING); in testLocationBatterySavingMode() 117 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationHighAccuracyMode() 118 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationHighAccuracyMode() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivitySettingsManager.java | 37 import android.provider.Settings; 409 final int timeout = Settings.Global.getInt( in getMobileDataActivityTimeout() 426 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_MOBILE, in setMobileDataActivityTimeout() 440 final int timeout = Settings.Global.getInt( in getWifiDataActivityTimeout() 457 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_WIFI, in setWifiDataActivityTimeout() 472 final int duration = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleValidityDuration() 490 Settings.Global.putInt( in setDnsResolverSampleValidityDuration() 502 return Settings.Global.getInt( in getDnsResolverSuccessThresholdPercent() 518 Settings.Global.putInt( in setDnsResolverSuccessThresholdPercent() 531 final int minSamples = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleRanges() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/development/ |
D | DevelopmentSettingsUtilTest.java | 26 import android.provider.Settings; 60 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_isAdmin_shouldReturnFalse() 61 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in isEnabled_settingsOff_isAdmin_shouldReturnFalse() 69 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_isAdmin_shouldReturnTrue() 70 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_isAdmin_shouldReturnTrue() 79 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_shouldReturnFalse() 80 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_notAdmin_shouldReturnFalse() 89 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse() 90 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse() 102 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_doesNotHaveDisallowDebuggingRestriction_shouldReturnTrue() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | PreventRingingSwitchPreferenceControllerTest.java | 19 import static android.provider.Settings.Secure.VOLUME_HUSH_MUTE; 20 import static android.provider.Settings.Secure.VOLUME_HUSH_OFF; 21 import static android.provider.Settings.Secure.VOLUME_HUSH_VIBRATE; 34 import android.provider.Settings; 86 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushOff_uncheck() 96 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushVibrate_setChecked() 106 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushMute_setChecked() 116 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushOff_checked_returnHushVibrate() 121 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in onSwitchChanged_wasHushOff_checked_returnHushVibrate() 122 Settings.Secure.VOLUME_HUSH_GESTURE, UNKNOWN)).isEqualTo(VOLUME_HUSH_VIBRATE); in onSwitchChanged_wasHushOff_checked_returnHushVibrate() [all …]
|
D | PreventRingingGesturePreferenceControllerTest.java | 27 import android.provider.Settings; 83 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_mute() 84 Settings.Secure.VOLUME_HUSH_MUTE); in testUpdateState_mute() 94 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_vibrate() 95 Settings.Secure.VOLUME_HUSH_VIBRATE); in testUpdateState_vibrate() 105 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_off() 106 Settings.Secure.VOLUME_HUSH_OFF); in testUpdateState_off() 116 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_other() 128 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testRadioButtonClicked_mute() 129 Settings.Secure.VOLUME_HUSH_OFF); in testRadioButtonClicked_mute() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SettingsValues.java | 134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); in SettingsValues() 135 mVibrateOn = Settings.readVibrationEnabled(prefs, res); in SettingsValues() 136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); in SettingsValues() 137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); in SettingsValues() 143 mIncludesOtherImesInLanguageSwitchList = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS in SettingsValues() 144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) in SettingsValues() 146 mShowsLanguageSwitchKey = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS in SettingsValues() 147 ? Settings.readShowsLanguageSwitchKey(prefs) : true /* forcibly */; in SettingsValues() 148 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); in SettingsValues() 149 mUsePersonalizedDicts = prefs.getBoolean(Settings.PREF_KEY_USE_PERSONALIZED_DICTS, true); in SettingsValues() [all …]
|
D | AdvancedSettingsFragment.java | 59 if (!Settings.isInternal(prefs)) { in onCreate() 60 removePreference(Settings.SCREEN_DEBUG); in onCreate() 64 removePreference(Settings.PREF_VIBRATION_DURATION_SETTINGS); in onCreate() 68 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { in onCreate() 69 removePreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onCreate() 73 (ListPreference) findPreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onCreate() 88 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate() 101 updateListPreferenceSummaryToCurrentValue(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onResume() 107 if (key.equals(Settings.PREF_POPUP_ON)) { in onSharedPreferenceChanged() 108 setPreferenceEnabled(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY, in onSharedPreferenceChanged() [all …]
|
/packages/apps/TvSettings/ |
D | Android.bp | 23 "Settings/src/**/*.java", 24 "Settings/src/**/I*.aidl", 25 "Settings/src/**/*.kt", 31 manifest: "Settings/AndroidManifest-lib.xml", 55 manifest: "Settings/AndroidManifest.xml", 60 local_include_dirs: ["Settings/src"], 63 "Settings/res", 64 "Settings/res-twopanel", 77 manifest: "Settings/AndroidManifest.xml", 82 local_include_dirs: ["Settings/src"], [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | ResetEsimPreferenceControllerTest.java | 31 import android.provider.Settings; 70 mDevelopmentSettingsEnabled = Settings.Global.getInt(mContext.getContentResolver(), in setUp() 71 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in setUp() 72 mEuiccProvisioned = Settings.Global.getInt(mContext.getContentResolver(), in setUp() 73 Settings.Global.EUICC_PROVISIONED, 0); in setUp() 76 Settings.Global.putInt(mContext.getContentResolver(), in setUp() 77 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in setUp() 78 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.EUICC_PROVISIONED, 0); in setUp() 91 Settings.Global.putInt(mContext.getContentResolver(), in tearDown() 92 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, mDevelopmentSettingsEnabled); in tearDown() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/customizationtool/ |
D | CustomizationToolController.java | 21 import android.provider.Settings; 35 String accessibilityServices = Settings.Secure.getString( in isCustomizationToolActive() 36 mContentResolver, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); in isCustomizationToolActive() 40 String serviceStatus = Settings.Secure.getString( in isCustomizationToolActive() 41 mContentResolver, Settings.Secure.ACCESSIBILITY_ENABLED); in isCustomizationToolActive() 47 Settings.Secure.putString( in toggleCustomizationTool() 48 mContentResolver, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, SERVICE); in toggleCustomizationTool() 49 Settings.Secure.putString(mContentResolver, in toggleCustomizationTool() 50 Settings.Secure.ACCESSIBILITY_ENABLED, /* value = */"1"); in toggleCustomizationTool() 53 Settings.Secure.putString(mContentResolver, in toggleCustomizationTool() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | MediaControlsParentPreferenceControllerTest.java | 27 import android.provider.Settings; 53 mOriginalQs = Settings.Global.getInt(mContentResolver, in setUp() 54 Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 1); in setUp() 55 mOriginalResume = Settings.Secure.getInt(mContentResolver, in setUp() 56 Settings.Secure.MEDIA_CONTROLS_RESUME, 1); in setUp() 62 Settings.Global.putInt(mContentResolver, Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, in tearDown() 64 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RESUME, in tearDown() 75 Settings.Global.putInt(mContentResolver, Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 1); in getSummary_isOn_showPlayer() 76 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RESUME, 1); in getSummary_isOn_showPlayer() 84 Settings.Global.putInt(mContentResolver, Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 1); in getSummary_isOff_hidePlayer() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/ |
D | VoiceInputUtilsTest.java | 23 import android.provider.Settings; 42 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_nullInteraction_nullRecognition_returnsNull() 43 Settings.Secure.VOICE_INTERACTION_SERVICE, null); in getCurrentService_nullInteraction_nullRecognition_returnsNull() 44 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_nullInteraction_nullRecognition_returnsNull() 45 Settings.Secure.VOICE_RECOGNITION_SERVICE, null); in getCurrentService_nullInteraction_nullRecognition_returnsNull() 51 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_emptyInteraction_emptyRecognition_returnsNull() 52 Settings.Secure.VOICE_INTERACTION_SERVICE, ""); in getCurrentService_emptyInteraction_emptyRecognition_returnsNull() 53 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_emptyInteraction_emptyRecognition_returnsNull() 54 Settings.Secure.VOICE_RECOGNITION_SERVICE, ""); in getCurrentService_emptyInteraction_emptyRecognition_returnsNull() 62 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_hasInteraction_returnsInteraction() [all …]
|