/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/ |
D | WirelessDebuggingEnablerTest.java | 26 import android.provider.Settings.Global; 91 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked() 92 Global.ADB_WIFI_ENABLED, 0 /* setting disabled */); in adbWifiEnabled_switchBarShouldBeChecked() 98 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked() 99 Global.ADB_WIFI_ENABLED, 1 /* setting enabled */); in adbWifiEnabled_switchBarShouldBeChecked() 102 observer.onChange(true, Global.getUriFor(Global.ADB_WIFI_ENABLED)); in adbWifiEnabled_switchBarShouldBeChecked() 111 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked() 112 Global.ADB_WIFI_ENABLED, 1 /* setting enabled */); in adbWifiEnabled_switchBarShouldNotBeChecked() 118 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked() 119 Global.ADB_WIFI_ENABLED, 0 /* setting disabled */); in adbWifiEnabled_switchBarShouldNotBeChecked() [all …]
|
D | AdbAuthorizationTimeoutPreferenceControllerTest.java | 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() 99 Settings.Global.ADB_ALLOWED_CONNECTION_TIME); in onPreferenceChange_enableAndDisableSetting_timeoutSetToDefault() [all …]
|
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 | 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_noBroadcastReceivers_preferenceShouldNotBeChecked() 137 .set(Global.PACKAGE_VERIFIER_INCLUDE_ADB, 1 /* setting enabled */); in updateState_noBroadcastReceivers_preferenceShouldNotBeChecked() [all …]
|
D | WirelessDebuggingPreferenceControllerTest.java | 29 import android.provider.Settings.Global; 79 Global.putInt(mContentResolver, Global.ADB_WIFI_ENABLED, 0); in setUp() 101 Global.putInt(mContentResolver, in updateState_adbWifiEnabled_preferenceShouldBeChecked() 102 Global.ADB_WIFI_ENABLED, 1 /* setting enabled */); in updateState_adbWifiEnabled_preferenceShouldBeChecked() 110 Global.putInt(mContentResolver, in updateState_adbWifiDisabled_preferenceShouldNotBeChecked() 111 Global.ADB_WIFI_ENABLED, 0 /* setting disabled */); in updateState_adbWifiDisabled_preferenceShouldNotBeChecked() 122 assertThat(Global.getInt(mContentResolver, Global.ADB_WIFI_ENABLED, -1)).isEqualTo(1); in onPreferenceChange_turnOn_wifiConnected_adbWifiEnabledTrue() 130 assertThat(Global.getInt(mContentResolver, Global.ADB_WIFI_ENABLED, -1)).isEqualTo(0); in onPreferenceChange_turnOff_wifiConnected_adbWifiEnabledFalse() 139 assertThat(Global.getInt(mContentResolver, Global.ADB_WIFI_ENABLED, -1)).isEqualTo(0); in onPreferenceChange_turnOn_wifiNotConnected_adbWifiEnabledFalse() 147 assertThat(Global.getInt(mContentResolver, Global.ADB_WIFI_ENABLED, -1)).isEqualTo(0); in onPreferenceChange_turnOff_wifiNotConnected_adbWifiEnabledFalse()
|
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/development/graphicsdriver/ |
D | GraphicsDriverEnableForAllAppsPreferenceControllerTest.java | 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() 142 Settings.Global.putInt( in updateState_availableAndDefault_visibleAndDefault() [all …]
|
D | GraphicsDriverAppPreferenceControllerTest.java | 104 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in getAvailability_developmentSettingsEnabledAndProductionDriverOn_available() 105 Settings.Global.putInt( in getAvailability_developmentSettingsEnabledAndProductionDriverOn_available() 106 mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, UPDATABLE_DRIVER_DEFAULT); in getAvailability_developmentSettingsEnabledAndProductionDriverOn_available() 114 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable() 122 Settings.Global.putInt(mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, in getAvailability_graphicsDriverOff_conditionallyUnavailable() 159 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in updateState_available_visible() 160 Settings.Global.putInt( in updateState_available_visible() 161 mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, UPDATABLE_DRIVER_DEFAULT); in updateState_available_visible() 169 Settings.Global.putInt(mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, in updateState_graphicsDriverOff_notVisible() 250 assertThat(Settings.Global.getString(mResolver, in onPreferenceChange_selectDefault_shouldUpdateAttributesAndSettingsGlobal() [all …]
|
D | GraphicsDriverGlobalSwitchBarControllerTest.java | 65 Settings.Global.putInt( in constructor_updatableDriverOn_shouldCheckSwitchBar() 66 mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, UPDATABLE_DRIVER_DEFAULT); in constructor_updatableDriverOn_shouldCheckSwitchBar() 75 Settings.Global.putInt(mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, in constructor_updatableDriverOff_shouldUncheckSwitchBar() 85 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in constructor_developmentSettingsEnabled_shouldEnableSwitchBar() 94 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in constructor_developmentSettingsDisabled_shouldDisableSwitchBar() 127 Settings.Global.putInt(mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, in onSwitchToggled_checked_shouldTurnOnUpdatableDriver() 133 assertThat(Settings.Global.getInt( in onSwitchToggled_checked_shouldTurnOnUpdatableDriver() 134 mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, in onSwitchToggled_checked_shouldTurnOnUpdatableDriver() 141 Settings.Global.putInt( in onSwitchToggled_unchecked_shouldTurnOffUpdatableDriver() 142 mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, UPDATABLE_DRIVER_DEFAULT); in onSwitchToggled_unchecked_shouldTurnOffUpdatableDriver() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivitySettingsManager.java | 396 final int timeout = Settings.Global.getInt( in getMobileDataActivityTimeout() 413 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_MOBILE, in setMobileDataActivityTimeout() 427 final int timeout = Settings.Global.getInt( in getWifiDataActivityTimeout() 444 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_WIFI, in setWifiDataActivityTimeout() 459 final int duration = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleValidityDuration() 477 Settings.Global.putInt( in setDnsResolverSampleValidityDuration() 489 return Settings.Global.getInt( in getDnsResolverSuccessThresholdPercent() 505 Settings.Global.putInt( in setDnsResolverSuccessThresholdPercent() 518 final int minSamples = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleRanges() 520 final int maxSamples = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleRanges() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/development/ |
D | DevelopmentSettingsUtilTest.java | 55 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_isAdmin_shouldReturnFalse() 56 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in isEnabled_settingsOff_isAdmin_shouldReturnFalse() 65 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_isAdmin_shouldReturnTrue() 66 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_isAdmin_shouldReturnTrue() 76 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_shouldReturnFalse() 77 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_notAdmin_shouldReturnFalse() 87 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse() 88 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse() 101 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_doesNotHaveDisallowDebuggingRestriction_shouldReturnTrue() 102 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_doesNotHaveDisallowDebuggingRestriction_shouldReturnTrue() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/ |
D | BatterySaverScheduleSeekBarControllerTest.java | 14 import android.provider.Settings.Global; 47 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in onPreferenceChange_updatesSettingsGlobal() 49 assertThat(Settings.Global.getInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in onPreferenceChange_updatesSettingsGlobal() 58 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_routineMode_hasCorrectProperties() 68 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_percentageMode_hasCorrectProperties() 70 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in updateSeekBar_percentageMode_hasCorrectProperties() 80 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_noneMode_hasCorrectProperties() 82 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in updateSeekBar_noneMode_hasCorrectProperties() 90 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in addToScreen_addsToEnd() 92 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 …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceControllerTest.java | 120 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 126 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 127 Settings.Global.WIFI_WAKEUP_ENABLED, 1)) in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 135 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiScanningDisabled_showsDialog() 149 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() 155 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() 156 Settings.Global.WIFI_WAKEUP_ENABLED, 0)) in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() 164 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in onCreate_wifiWakeupEnabled_wifiScanningEnabled_locationEnabled_isChecked() 176 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in onCreate_wifiWakeupDisabled_wifiScanningEnabled_locationEnabled_isNotChecked() 188 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in onCreate_wifiWakeupEnabled_wifiScanningDisabled_locationEnabled_isNotChecked() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/ |
D | WirelessDebuggingTest.java | 31 import android.provider.Settings.Global; 76 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_shouldReturnEnabled() 77 Global.ADB_WIFI_ENABLED, 1 /* setting enabled */); in adbWifiEnabled_shouldReturnEnabled() 84 Global.putInt(mContext.getContentResolver(), in adbWifiDisabled_shouldReturnDisabled() 85 Global.ADB_WIFI_ENABLED, 0 /* setting disabled */); in adbWifiDisabled_shouldReturnDisabled() 93 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi() 94 Global.ADB_WIFI_ENABLED, 1 /* setting enabled */); in setIsEnabled_false_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi() 108 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi() 109 Global.ADB_WIFI_ENABLED, 1 /* setting enabled */); in setIsEnabled_false_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi() 123 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/wm/ |
D | BarControlPolicyTest.java | 52 Settings.Global.clearProviderForTest(); in tearDown() 65 Settings.Global.putString( in reloadFromSetting_invalidPolicyControlString_doesNotSetFilters() 67 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in reloadFromSetting_invalidPolicyControlString_doesNotSetFilters() 79 Settings.Global.putString( in reloadFromSetting_validPolicyControlString_setsFilters() 81 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in reloadFromSetting_validPolicyControlString_setsFilters() 93 Settings.Global.putString( in reloadFromSetting_filtersSet_doesNotSetFiltersAgain() 95 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in reloadFromSetting_filtersSet_doesNotSetFiltersAgain() 114 Settings.Global.putString( in getBarVisibilities_immersiveStatusForAppAndMatchingApp_hidesStatusBar() 116 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in getBarVisibilities_immersiveStatusForAppAndMatchingApp_hidesStatusBar() 128 Settings.Global.putString( in getBarVisibilities_immersiveStatusForAppAndNonMatchingApp_showsSystemBars() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenModeBypassingAppsPreferenceControllerTest.java | 69 Settings.Global.getInt(mContext.getContentResolver(), in setup() 70 Settings.Global.ZEN_MODE, in setup() 71 Settings.Global.ZEN_MODE_OFF); in setup() 77 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.ZEN_MODE, in tearDown() 89 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.ZEN_MODE, in testUpdateBypassingApps() 90 Settings.Global.ZEN_MODE_OFF); in testUpdateBypassingApps() 119 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.ZEN_MODE, in testUpdateBypassingApps_multipleApps() 120 Settings.Global.ZEN_MODE_OFF); in testUpdateBypassingApps_multipleApps() 160 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.ZEN_MODE, in testUpdateBypassingApps_conversation() 161 Settings.Global.ZEN_MODE_OFF); in testUpdateBypassingApps_conversation() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batterysaver/ |
D | BatterySaverScheduleRadioButtonsControllerTest.java | 24 import android.provider.Settings.Global; 52 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_routine_returnsCorrectValue() 60 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_automatic_returnsCorrectValue() 62 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in getDefaultKey_automatic_returnsCorrectValue() 69 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_none_returnsCorrectValue() 71 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in getDefaultKey_none_returnsCorrectValue() 89 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in setDefaultKey_percentage_shouldSuppressNotification() 91 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in setDefaultKey_percentage_shouldSuppressNotification() 103 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in setDefaultKey_routine_shouldSuppressNotification()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | ResetEsimPreferenceControllerTest.java | 68 mDevelopmentSettingsEnabled = Settings.Global.getInt(mContext.getContentResolver(), in setUp() 69 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in setUp() 70 mEuiccProvisioned = Settings.Global.getInt(mContext.getContentResolver(), in setUp() 71 Settings.Global.EUICC_PROVISIONED, 0); in setUp() 74 Settings.Global.putInt(mContext.getContentResolver(), in setUp() 75 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in setUp() 76 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.EUICC_PROVISIONED, 0); in setUp() 89 Settings.Global.putInt(mContext.getContentResolver(), in tearDown() 90 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, mDevelopmentSettingsEnabled); in tearDown() 91 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.EUICC_PROVISIONED, in tearDown() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatterySaverControllerTest.java | 68 Settings.Global.putInt(mContext.getContentResolver(), in setUp() 69 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in setUp() 87 Settings.Global.putInt(mContext.getContentResolver(), in onPreferenceChange_onPowerSaveModeChanged_manualTrigger_logsType() 88 Settings.Global.AUTOMATIC_POWER_SAVE_MODE, -1); in onPreferenceChange_onPowerSaveModeChanged_manualTrigger_logsType() 99 Settings.Global.putInt(mContext.getContentResolver(), in onPreferenceChange_onPowerSaveModeChanged_triggerPercent_logsTypeAndPercentage() 100 Settings.Global.AUTOMATIC_POWER_SAVE_MODE, in onPreferenceChange_onPowerSaveModeChanged_triggerPercent_logsTypeAndPercentage() 103 Settings.Global.putInt(mContext.getContentResolver(), in onPreferenceChange_onPowerSaveModeChanged_triggerPercent_logsTypeAndPercentage() 104 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, percentageVal); in onPreferenceChange_onPowerSaveModeChanged_triggerPercent_logsTypeAndPercentage() 117 Settings.Global.putInt(mContext.getContentResolver(), in onPreferenceChange_onPowerSaveModeChanged_triggerDynamic_logsType() 118 Settings.Global.AUTOMATIC_POWER_SAVE_MODE, in onPreferenceChange_onPowerSaveModeChanged_triggerDynamic_logsType() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiSettingsStore.java | 143 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state); in persistWifiState() 158 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneSensitive() 159 Settings.Global.AIRPLANE_MODE_RADIOS); in isAirplaneSensitive() 161 || airplaneModeRadios.contains(Settings.Global.RADIO_WIFI); in isAirplaneSensitive() 166 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneToggleable() 167 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS); in isAirplaneToggleable() 169 && toggleableRadios.contains(Settings.Global.RADIO_WIFI); in isAirplaneToggleable() 175 return Settings.Global.getInt(cr, Settings.Global.WIFI_ON); in getPersistedWifiState() 177 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, WIFI_DISABLED); in getPersistedWifiState() 183 return Settings.Global.getInt(mContext.getContentResolver(), in getPersistedAirplaneModeOn() [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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | LongPressPowerButtonPreferenceControllerTest.java | 149 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in preferenceChecked_longPressPowerSettingSetToAssistant() 150 Settings.Global.POWER_BUTTON_LONG_PRESS, -1)).isEqualTo( in preferenceChecked_longPressPowerSettingSetToAssistant() 152 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in preferenceChecked_longPressPowerSettingSetToAssistant() 153 Settings.Global.KEY_CHORD_POWER_VOLUME_UP, -1)).isEqualTo( in preferenceChecked_longPressPowerSettingSetToAssistant() 169 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in preferenceUnchecked_longPressPowerSettingSetToDefaultValue() 170 Settings.Global.POWER_BUTTON_LONG_PRESS, -1)).isEqualTo( in preferenceUnchecked_longPressPowerSettingSetToDefaultValue() 172 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in preferenceUnchecked_longPressPowerSettingSetToDefaultValue() 173 Settings.Global.KEY_CHORD_POWER_VOLUME_UP, -1)).isEqualTo( in preferenceUnchecked_longPressPowerSettingSetToDefaultValue() 193 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in preferenceUnchecked_muteChordDefault_longPressPowerSettingSetToDefaultValue() 194 Settings.Global.POWER_BUTTON_LONG_PRESS, -1)).isEqualTo(8); in preferenceUnchecked_muteChordDefault_longPressPowerSettingSetToDefaultValue() [all …]
|