/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceControllerTest.java | 93 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 98 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 99 Settings.Global.WIFI_WAKEUP_ENABLED, 1)) in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 106 Settings.Global.putInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningDisabled_showsDialog() 107 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); in handlePreferenceClicked_wifiScanningDisabled_showsDialog() 108 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiScanningDisabled_showsDialog() 121 Settings.Global.putInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() 122 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 1); in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() 123 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() 128 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() [all …]
|
D | CellularFallbackTogglePreferenceControllerTest.java | 57 Settings.Global.putString(mContext.getContentResolver(), in refreshUi_unchecked() 58 Settings.Global.NETWORK_AVOID_BAD_WIFI, null); in refreshUi_unchecked() 67 Settings.Global.putString(mContext.getContentResolver(), in refreshUi_checked() 68 Settings.Global.NETWORK_AVOID_BAD_WIFI, "1"); in refreshUi_checked() 77 Settings.Global.putString(mContext.getContentResolver(), in handlePreferenceChanged_toggleFalse_setsNull() 78 Settings.Global.NETWORK_AVOID_BAD_WIFI, "1"); in handlePreferenceChanged_toggleFalse_setsNull() 81 assertThat(Settings.Global.getString(mContext.getContentResolver(), in handlePreferenceChanged_toggleFalse_setsNull() 82 Settings.Global.NETWORK_AVOID_BAD_WIFI)).isNull(); in handlePreferenceChanged_toggleFalse_setsNull() 87 Settings.Global.putString(mContext.getContentResolver(), in handlePreferenceChanged_toggleTrue_setsEnabled() 88 Settings.Global.NETWORK_AVOID_BAD_WIFI, null); in handlePreferenceChanged_toggleTrue_setsEnabled() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcEnablerTest.java | 58 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 0); in isToggleable_AirplaneModeOff_shouldReturnTrue() 59 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOff_shouldReturnTrue() 60 Settings.Global.AIRPLANE_MODE_RADIOS, Settings.Global.RADIO_NFC); in isToggleable_AirplaneModeOff_shouldReturnTrue() 61 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOff_shouldReturnTrue() 62 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS, Settings.Global.RADIO_NFC); in isToggleable_AirplaneModeOff_shouldReturnTrue() 70 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 1); in isToggleable_AirplaneModeOnNfcNotInAirplaneModeRadio_shouldReturnTrue() 71 Settings.Global.putString(contentResolver, Settings.Global.AIRPLANE_MODE_RADIOS, ""); in isToggleable_AirplaneModeOnNfcNotInAirplaneModeRadio_shouldReturnTrue() 79 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 1); in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue() 80 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue() 81 Settings.Global.AIRPLANE_MODE_RADIOS, Settings.Global.RADIO_NFC); in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/gamedriver/ |
D | GameDriverEnableForAllAppsPreferenceControllerTest.java | 80 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in setUp() 81 Settings.Global.putInt( in setUp() 82 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in setUp() 91 Settings.Global.putInt( in getAvailability_developmentSettingsEnabledAndGameDriverSettingsOn_available() 92 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in getAvailability_developmentSettingsEnabledAndGameDriverSettingsOn_available() 99 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable() 106 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in getAvailability_gameDriverOff_conditionallyUnavailable() 113 Settings.Global.putInt( in displayPreference_shouldAddListPreference() 114 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in displayPreference_shouldAddListPreference() 139 Settings.Global.putInt( in updateState_availableAndDefault_visibleAndDefault() [all …]
|
D | GameDriverAppPreferenceControllerTest.java | 99 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in getAvailability_developmentSettingsEnabledAndGameDriverOn_available() 100 Settings.Global.putInt( in getAvailability_developmentSettingsEnabledAndGameDriverOn_available() 101 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in getAvailability_developmentSettingsEnabledAndGameDriverOn_available() 109 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable() 117 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in getAvailability_gameDriverOff_conditionallyUnavailable() 153 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in updateState_available_visible() 154 Settings.Global.putInt( in updateState_available_visible() 155 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in updateState_available_visible() 163 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in updateState_gameDriverOff_notVisible() 241 assertThat(Settings.Global.getString(mResolver, Settings.Global.GAME_DRIVER_OPT_IN_APPS)) in onPreferenceChange_selectDefault_shouldUpdateAttributesAndSettingsGlobal() [all …]
|
D | GameDriverGlobalSwitchBarControllerTest.java | 64 Settings.Global.putInt( in constructor_gameDriverOn_shouldCheckSwitchBar() 65 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in constructor_gameDriverOn_shouldCheckSwitchBar() 74 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in constructor_gameDriverOff_shouldUncheckSwitchBar() 83 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in constructor_developmentSettingsEnabled_shouldEnableSwitchBar() 92 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in constructor_developmentSettingsDisabled_shouldDisableSwitchBar() 125 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in onSwitchToggled_checked_shouldTurnOnGameDriver() 130 assertThat(Settings.Global.getInt( in onSwitchToggled_checked_shouldTurnOnGameDriver() 131 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT)) in onSwitchToggled_checked_shouldTurnOnGameDriver() 137 Settings.Global.putInt( in onSwitchToggled_unchecked_shouldTurnOffGameDriver() 138 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in onSwitchToggled_unchecked_shouldTurnOffGameDriver() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/development/ |
D | DevelopmentSettingsUtilTest.java | 65 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_isAdmin_notDemo_shouldReturnFalse() 66 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in isEnabled_settingsOff_isAdmin_notDemo_shouldReturnFalse() 74 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_isAdmin_notDemo_shouldReturnTrue() 75 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_isAdmin_notDemo_shouldReturnTrue() 83 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_notDemo_shouldReturnFalse() 84 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_notAdmin_notDemo_shouldReturnFalse() 94 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_isDemo_shouldReturnTrue() 95 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_notAdmin_isDemo_shouldReturnTrue() 105 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_notAdmin_isDemo_shouldReturnFalse() 106 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in isEnabled_settingsOff_notAdmin_isDemo_shouldReturnFalse() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | WaitForDebuggerPreferenceControllerTest.java | 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() 128 Settings.Global in updateState_settingDisabledNullDebugApp_preferenceShouldNotBeCheckedAndDisabled() [all …]
|
D | WirelessDebuggingEnablerTest.java | 26 import android.provider.Settings.Global; 87 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked() 88 Global.ADB_WIFI_ENABLED, 0 /* setting disabled */); in adbWifiEnabled_switchBarShouldBeChecked() 94 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked() 95 Global.ADB_WIFI_ENABLED, 1 /* setting enabled */); in adbWifiEnabled_switchBarShouldBeChecked() 98 observer.onChange(true, Global.getUriFor(Global.ADB_WIFI_ENABLED)); in adbWifiEnabled_switchBarShouldBeChecked() 107 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked() 108 Global.ADB_WIFI_ENABLED, 1 /* setting enabled */); in adbWifiEnabled_switchBarShouldNotBeChecked() 114 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked() 115 Global.ADB_WIFI_ENABLED, 0 /* setting disabled */); in adbWifiEnabled_switchBarShouldNotBeChecked() [all …]
|
D | VerifyAppsOverUsbPreferenceControllerTest.java | 31 import android.provider.Settings.Global; 70 Global.putInt(mContext.getContentResolver(), setting, value); in set() 106 mGlobals.set(Global.ADB_ENABLED, 1 /* setting enabled */) in updateState_settingEnabled_preferenceShouldBeChecked() 107 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 1 /* setting enabled */); in updateState_settingEnabled_preferenceShouldBeChecked() 116 mGlobals.set(Global.ADB_ENABLED, 1 /* setting enabled */) in updateState_settingDisabled_preferenceShouldNotBeChecked() 117 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 0 /* setting disabled */); in updateState_settingDisabled_preferenceShouldNotBeChecked() 126 mGlobals.set(Global.ADB_ENABLED, 0 /* setting disabled */) in updateState_adbDisabled_preferenceShouldNotBeChecked() 127 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 1 /* setting enabled */); in updateState_adbDisabled_preferenceShouldNotBeChecked() 136 mGlobals.set(Global.ADB_ENABLED, 1 /* setting enabled */) in updateState_verifierOff_preferenceShouldNotBeChecked() 137 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 1 /* setting enabled */) in updateState_verifierOff_preferenceShouldNotBeChecked() [all …]
|
D | NotificationChannelWarningsPreferenceControllerTest.java | 64 final int mode = Settings.Global.getInt(mContext.getContentResolver(), in onPreferenceChange_settingEnabled_shouldEnableNotificationChannelWarnings() 65 Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, -1 /* default */); in onPreferenceChange_settingEnabled_shouldEnableNotificationChannelWarnings() 75 final int mode = Settings.Global.getInt(mContext.getContentResolver(), in onPreferenceChange_settingDisabled_shouldDisableNotificationChannelWarnings() 76 Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, -1 /* default */); in onPreferenceChange_settingDisabled_shouldDisableNotificationChannelWarnings() 84 Settings.Global.putInt(mContext.getContentResolver(), in updateState_settingEnabled_preferenceShouldBeChecked() 85 Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, in updateState_settingEnabled_preferenceShouldBeChecked() 95 Settings.Global.putInt(mContext.getContentResolver(), in updateState_settingDisabled_preferenceShouldNotBeChecked() 96 Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, in updateState_settingDisabled_preferenceShouldNotBeChecked() 108 Settings.Global.putString(mContext.getContentResolver(), in updateState_settingUndefinedDebuggingEnabled_preferenceShouldBeChecked() 109 Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, "NotAnInteger"); in updateState_settingUndefinedDebuggingEnabled_preferenceShouldBeChecked() [all …]
|
D | StayAwakePreferenceControllerTest.java | 75 final int mode = Settings.Global.getInt(mContentResolver, in onPreferenceChanged_turnOnStayAwake() 76 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, -1); in onPreferenceChanged_turnOnStayAwake() 85 final int mode = Settings.Global.getInt(mContentResolver, in onPreferenceChanged_turnOffStayAwake() 86 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, -1); in onPreferenceChanged_turnOffStayAwake() 93 Settings.Global.putInt(mContentResolver, Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in updateState_preferenceShouldBeChecked() 102 Settings.Global.putInt(mContentResolver, Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in updateState_preferenceShouldNotBeChecked() 122 Settings.Global.putInt(mContentResolver, Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in observerOnChangeCalledWithSameUri_preferenceShouldBeUpdated() 126 Settings.Global.getUriFor(Settings.Global.STAY_ON_WHILE_PLUGGED_IN)); in observerOnChangeCalledWithSameUri_preferenceShouldBeUpdated() 133 Settings.Global.putInt(mContentResolver, Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in observerOnChangeCalledWithDifferentUri_preferenceShouldNotBeUpdated()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/ |
D | BatterySaverScheduleSeekBarControllerTest.java | 9 import android.provider.Settings.Global; 40 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in onPreferenceChange_updatesSettingsGlobal() 42 assertThat(Settings.Global.getInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in onPreferenceChange_updatesSettingsGlobal() 50 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_routineMode_hasCorrectProperties() 58 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_percentageMode_hasCorrectProperties() 60 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in updateSeekBar_percentageMode_hasCorrectProperties() 67 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_noneMode_hasCorrectProperties() 69 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in updateSeekBar_noneMode_hasCorrectProperties() 76 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in addToScreen_addsToEnd() 78 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 15); in addToScreen_addsToEnd()
|
D | BatterySaverSchedulePreferenceControllerTest.java | 23 import android.provider.Settings.Global; 62 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_lowPowerLevelZero_percentageMode_summaryNoSchedule() 63 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in testPreference_lowPowerLevelZero_percentageMode_summaryNoSchedule() 64 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_lowPowerLevelZero_percentageMode_summaryNoSchedule() 65 Global.AUTOMATIC_POWER_SAVE_MODE, PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE); in testPreference_lowPowerLevelZero_percentageMode_summaryNoSchedule() 74 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_lowPowerLevelNonZero_percentageMode_summaryPercentage() 75 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, TRIGGER_LEVEL); in testPreference_lowPowerLevelNonZero_percentageMode_summaryPercentage() 76 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_lowPowerLevelNonZero_percentageMode_summaryPercentage() 77 Global.AUTOMATIC_POWER_SAVE_MODE, PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE); in testPreference_lowPowerLevelNonZero_percentageMode_summaryPercentage() 87 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_percentageRoutine_summaryRoutine() [all …]
|
D | BatterySaverScheduleRadioButtonsControllerTest.java | 9 import android.provider.Settings.Global; 35 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_routine_returnsCorrectValue() 43 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_automatic_returnsCorrectValue() 45 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in getDefaultKey_automatic_returnsCorrectValue() 52 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_none_returnsCorrectValue() 54 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in getDefaultKey_none_returnsCorrectValue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | LocationScanningPreferenceControllerTest.java | 51 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOn() 52 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 1); in testLocationScanning_WifiOnBleOn() 53 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOn() 54 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE, 1); in testLocationScanning_WifiOnBleOn() 61 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOff() 62 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 1); in testLocationScanning_WifiOnBleOff() 63 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOff() 64 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE, 0); in testLocationScanning_WifiOnBleOff() 71 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOffBleOn() 72 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); in testLocationScanning_WifiOffBleOn() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiWakeupPreferenceControllerTest.java | 19 import static android.provider.Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE; 20 import static android.provider.Settings.Global.WIFI_WAKEUP_ENABLED; 69 Settings.Global.putInt(mContext.getContentResolver(), WIFI_SCAN_ALWAYS_AVAILABLE, 1); in setUp() 95 assertThat(Settings.Global.getInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 0)) in handlePreferenceTreeClick_matchingKeyAndType_shouldUpdateSetting() 101 Settings.Global.putInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 1); in handlePreferenceTreeClick_wifiWakeupEnableScanningDisable_wifiWakeupEnable() 102 Settings.Global.putInt(mContext.getContentResolver(), WIFI_SCAN_ALWAYS_AVAILABLE, 0); in handlePreferenceTreeClick_wifiWakeupEnableScanningDisable_wifiWakeupEnable() 106 final boolean isWifiWakeupEnabled = Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceTreeClick_wifiWakeupEnableScanningDisable_wifiWakeupEnable() 107 Settings.Global.WIFI_WAKEUP_ENABLED, 0) == 1; in handlePreferenceTreeClick_wifiWakeupEnableScanningDisable_wifiWakeupEnable() 115 Settings.Global.putInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 1); in updateState_preferenceSetCheckedWhenWakeupSettingEnabled() 116 Settings.Global.putInt(mContext.getContentResolver(), WIFI_SCAN_ALWAYS_AVAILABLE, 1); in updateState_preferenceSetCheckedWhenWakeupSettingEnabled() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | DevelopmentFragment.java | 279 || Settings.Global.getInt(mContentResolver, in onCreatePreferences() 280 Settings.Global.DEVICE_PROVISIONED, 0) == 0) { in onCreatePreferences() 588 updateSwitchPreference(mEnableAdb, Settings.Global.getInt(cr, in updateAllOptions() 589 Settings.Global.ADB_ENABLED, 0) != 0); in updateAllOptions() 595 updateSwitchPreference(mKeepScreenOn, Settings.Global.getInt(cr, in updateAllOptions() 596 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0) != 0); in updateAllOptions() 601 updateSwitchPreference(mDebugViewAttributes, Settings.Global.getInt(cr, in updateAllOptions() 602 Settings.Global.DEBUG_VIEW_ATTRIBUTES, 0) != 0); in updateAllOptions() 603 updateSwitchPreference(mForceAllowOnExternal, Settings.Global.getInt(cr, in updateAllOptions() 604 Settings.Global.FORCE_ALLOW_ON_EXTERNAL, 0) != 0); in updateAllOptions() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | WifiTetherAutoOffPreferenceControllerTest.java | 54 Settings.Global.putInt(mContext.getContentResolver(), in onStart_tetherAutoOff_on_shouldReturnSwitchStateOn() 55 Settings.Global.SOFT_AP_TIMEOUT_ENABLED, 1); in onStart_tetherAutoOff_on_shouldReturnSwitchStateOn() 63 Settings.Global.putInt(mContext.getContentResolver(), in onStart_tetherAutoOff_off_shouldReturnSwitchStateOff() 64 Settings.Global.SOFT_AP_TIMEOUT_ENABLED, 0); in onStart_tetherAutoOff_off_shouldReturnSwitchStateOff() 72 Settings.Global.putInt(mContext.getContentResolver(), in onSwitchOn_shouldReturnAutoOff_on() 73 Settings.Global.SOFT_AP_TIMEOUT_ENABLED, 0); in onSwitchOn_shouldReturnAutoOff_on() 77 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in onSwitchOn_shouldReturnAutoOff_on() 78 Settings.Global.SOFT_AP_TIMEOUT_ENABLED, 0)) in onSwitchOn_shouldReturnAutoOff_on() 84 Settings.Global.putInt(mContext.getContentResolver(), in onSwitchOff_shouldReturnAutoOff_off() 85 Settings.Global.SOFT_AP_TIMEOUT_ENABLED, 1); in onSwitchOff_shouldReturnAutoOff_off() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetNewPasswordActivityTest.java | 80 mProvisioned = Settings.Global.getInt(RuntimeEnvironment.application.getContentResolver(), in setUp() 81 Settings.Global.DEVICE_PROVISIONED, 0); in setUp() 86 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in tearDown() 87 Settings.Global.DEVICE_PROVISIONED, mProvisioned); in tearDown() 93 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testChooseLockGeneric() 94 Settings.Global.DEVICE_PROVISIONED, 1); in testChooseLockGeneric() 107 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testSetupChooseLockGeneric() 108 Settings.Global.DEVICE_PROVISIONED, 0); in testSetupChooseLockGeneric() 124 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testLaunchChooseLock_setNewPasswordExtraWithoutPermission() 125 Settings.Global.DEVICE_PROVISIONED, 1); in testLaunchChooseLock_setNewPasswordExtraWithoutPermission() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | EmergencyTonePreferenceControllerTest.java | 26 import android.provider.Settings.Global; 90 Global.putInt(mContentResolver, Global.EMERGENCY_TONE, 0); in displayPreference_emergencyToneOff_shouldSelectFirstItem() 99 Global.putInt(mContentResolver, Global.EMERGENCY_TONE, 1); in displayPreference_emergencyToneAlert_shouldSelectSecondItem() 108 Global.putInt(mContentResolver, Global.EMERGENCY_TONE, 2); in displayPreference_emergencyToneVibrate_shouldSelectThirdItem() 121 assertThat(Global.getInt(mContentResolver, Global.EMERGENCY_TONE, 0)).isEqualTo(0); in onPreferenceChanged_firstItemSelected_shouldSetEmergencyToneToOff() 130 assertThat(Global.getInt(mContentResolver, Global.EMERGENCY_TONE, 0)).isEqualTo(1); in onPreferenceChanged_secondItemSelected_shouldSetEmergencyToneToAlert() 139 assertThat(Global.getInt(mContentResolver, Global.EMERGENCY_TONE, 0)).isEqualTo(2); in onPreferenceChanged_thirdItemSelected_shouldSetEmergencyToneToVibrate()
|
D | ZenModeBehaviorFooterPreferenceControllerTest.java | 19 import static android.provider.Settings.Global.ZEN_MODE; 20 import static android.provider.Settings.Global.ZEN_MODE_ALARMS; 21 import static android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; 22 import static android.provider.Settings.Global.ZEN_MODE_NO_INTERRUPTIONS; 23 import static android.provider.Settings.Global.ZEN_MODE_OFF; 102 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in totalSilence_footerIsAvailable() 108 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in alarmsOnly_footerIsAvailable() 114 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in priorityOnly_footerIsAvailable() 120 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in zenModeOff_footerIsAvailable() 126 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in zenModeOff_updateState_noFooterTitle() [all …]
|
D | ZenModeSettingsFooterPreferenceControllerTest.java | 19 import static android.provider.Settings.Global.ZEN_MODE; 20 import static android.provider.Settings.Global.ZEN_MODE_ALARMS; 21 import static android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; 22 import static android.provider.Settings.Global.ZEN_MODE_NO_INTERRUPTIONS; 23 import static android.provider.Settings.Global.ZEN_MODE_OFF; 106 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in totalSilence_footerIsAvailable() 112 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in alarmsOnly_footerIsAvailable() 118 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in priorityOnly_footerIsAvailable() 124 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in zenModeOff_footerIsNotAvailable() 130 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testDefaultNotifPolicy_app_manualRule_setFooterTitle() [all …]
|
D | ZenModeButtonPreferenceControllerTest.java | 19 import static android.provider.Settings.Global.ZEN_MODE; 20 import static android.provider.Settings.Global.ZEN_MODE_ALARMS; 21 import static android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; 22 import static android.provider.Settings.Global.ZEN_MODE_NO_INTERRUPTIONS; 23 import static android.provider.Settings.Global.ZEN_MODE_OFF; 95 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in updateState_TotalSilence() 105 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in updateState_AlarmsOnly() 115 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in updateState_Priority() 125 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in updateState_ZenOff() 136 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in updateState_otherUserChangedZen() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/ |
D | SoundFragment.java | 178 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_AUTO); in onPreferenceChange() 181 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_NEVER); in onPreferenceChange() 184 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_ALWAYS); in onPreferenceChange() 187 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_MANUAL); in onPreferenceChange() 219 Settings.Global.putInt(getContext().getContentResolver(), in setSurroundPassthroughSetting() 220 Settings.Global.ENCODED_SURROUND_OUTPUT, newVal); in setSurroundPassthroughSetting() 224 final int value = Settings.Global.getInt(context.getContentResolver(), in getSurroundPassthroughSetting() 225 Settings.Global.ENCODED_SURROUND_OUTPUT, in getSurroundPassthroughSetting() 226 Settings.Global.ENCODED_SURROUND_OUTPUT_AUTO); in getSurroundPassthroughSetting() 229 case Settings.Global.ENCODED_SURROUND_OUTPUT_AUTO: in getSurroundPassthroughSetting() [all …]
|