/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManagerTest.java | 24 import android.provider.Settings.Global; 69 mInitialPowerSaverMode = Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, 0); in setUp() 71 Global.getInt(resolver, Global.DYNAMIC_POWER_SAVINGS_ENABLED, 0); in setUp() 73 Global.getInt(resolver, Global.DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD, 0); in setUp() 83 Global.putInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, mInitialPowerSaverMode); in tearDown() 84 Global.putInt(resolver, in tearDown() 85 Global.DYNAMIC_POWER_SAVINGS_ENABLED, mInitialDynamicPowerSavingsEnabled); in tearDown() 86 Global.putInt(resolver, in tearDown() 87 Global.DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD, mInitialThreshold); in tearDown() 97 Global.putInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, 0); in testPowerManager_getPowerSaveMode() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AirplaneModeRestrictionTest.java | 19 import static android.provider.Settings.Global.AIRPLANE_MODE_ON; 68 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeTurnedOffWhenRestrictionSet() 72 assertEquals(0, Settings.Global.getInt( in testAirplaneModeTurnedOffWhenRestrictionSet() 73 mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON)); in testAirplaneModeTurnedOffWhenRestrictionSet() 83 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeCannotBeTurnedOnWithRestrictionOn() 84 assertEquals(0, Settings.Global.getInt( in testAirplaneModeCannotBeTurnedOnWithRestrictionOn() 89 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeCanBeTurnedOnWithRestrictionOff() 90 assertEquals(1, Settings.Global.getInt( in testAirplaneModeCanBeTurnedOnWithRestrictionOff()
|
D | SetTimeTest.java | 80 mDevicePolicyManager.setGlobalSetting(getWho(), Settings.Global.AUTO_TIME, "0"); in testSetTime() 86 mDevicePolicyManager.setGlobalSetting(getWho(), Settings.Global.AUTO_TIME, "1"); in testSetTimeFailWithAutoTimeOn() 122 mDevicePolicyManager.setGlobalSetting(getWho(), Settings.Global.AUTO_TIME_ZONE, "0"); in testSetTimeZone() 134 mDevicePolicyManager.setGlobalSetting(getWho(), Settings.Global.AUTO_TIME_ZONE, "1"); in testSetTimeZone() 139 mDevicePolicyManager.setGlobalSetting(getWho(), Settings.Global.AUTO_TIME_ZONE, "1"); in testSetTimeZoneFailWithAutoTimezoneOn() 149 mDevicePolicyManager.setGlobalSetting(getWho(), Settings.Global.AUTO_TIME, "0"); in restoreTime() 155 mDevicePolicyManager.setGlobalSetting(getWho(), Settings.Global.AUTO_TIME, "1"); in restoreTime()
|
D | SystemUpdatePolicyTest.java | 18 import static android.provider.Settings.Global.AIRPLANE_MODE_ON; 33 import android.provider.Settings.Global; 37 import android.provider.Settings.Global; 87 mSavedAutoTimeConfig = Settings.Global.getInt(mContext.getContentResolver(), in setUp() 88 Global.AUTO_TIME, 0); in setUp() 475 airplaneMode = Settings.Global.getInt(mContext.getContentResolver(), in getAirplaneMode() 476 Settings.Global.AIRPLANE_MODE_ON); in getAirplaneMode() 499 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, state); in setAirplaneModeAndWaitBroadcast()
|
D | WifiConfigLockdownTest.java | 58 Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN, "1"); in setUp() 68 Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN, "0"); in tearDown()
|
/cts/tests/tests/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 405 mOldPrivateDnsMode = Settings.Global.getString(mCR, Settings.Global.PRIVATE_DNS_MODE); in storePrivateDnsSetting() 406 mOldPrivateDnsSpecifier = Settings.Global.getString(mCR, in storePrivateDnsSetting() 407 Settings.Global.PRIVATE_DNS_SPECIFIER); in storePrivateDnsSetting() 413 Settings.Global.putString(mCR, in storePrivateDnsSetting() 414 Settings.Global.PRIVATE_DNS_SPECIFIER, mOldPrivateDnsSpecifier); in storePrivateDnsSetting() 415 Settings.Global.putString(mCR, Settings.Global.PRIVATE_DNS_MODE, mOldPrivateDnsMode); in storePrivateDnsSetting() 430 Settings.Global.putString(mCR, Settings.Global.PRIVATE_DNS_MODE, mOldPrivateDnsMode); in restorePrivateDnsSetting() 438 Settings.Global.putString(mCR, Settings.Global.PRIVATE_DNS_SPECIFIER, server); in setPrivateDnsStrictMode() 439 final String mode = Settings.Global.getString(mCR, Settings.Global.PRIVATE_DNS_MODE); in setPrivateDnsStrictMode() 442 Settings.Global.putString(mCR, Settings.Global.PRIVATE_DNS_MODE, "hostname"); in setPrivateDnsStrictMode()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | TheaterModeTest.java | 76 Settings.Global.putInt(resolver, Settings.Global.THEATER_MODE_ON, enabling ? 1 : 0); in setTheaterModeOn() 81 return Settings.Global.getInt(mContext.getContentResolver(), in isTheaterModeOn() 82 Settings.Global.THEATER_MODE_ON, 0) != 0; in isTheaterModeOn()
|
D | AirplaneModeTest.java | 78 Settings.Global.putInt(resolver, Settings.Global.AIRPLANE_MODE_ON, enabling ? 1 : 0); in setAirplaneModeOn() 83 return Settings.Global.getInt(mContext.getContentResolver(), in isAirplaneModeOn() 84 Settings.Global.AIRPLANE_MODE_ON, 0) != 0; in isAirplaneModeOn()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BatteryConstraintTest.java | 67 mPreviousLowPowerTriggerLevel = Settings.Global.getInt(getContext().getContentResolver(), in setUp() 68 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1); in setUp() 69 Settings.Global.putInt(getContext().getContentResolver(), in setUp() 70 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in setUp() 85 Settings.Global.putString(getContext().getContentResolver(), in tearDown() 86 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, null); in tearDown() 88 Settings.Global.putInt(getContext().getContentResolver(), in tearDown() 89 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, mPreviousLowPowerTriggerLevel); in tearDown()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | ScanningSettingsTest.java | 84 toggleSettingAndVerify(WIFI_SCANNING_TITLE_RES, Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE); in testWifiScanningSettings() 94 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE); in testBleScanningSettings() 129 resolver.registerContentObserver(Settings.Global.getUriFor(settingKey), false, observer); in clickAndWaitForSettingChange() 147 final boolean checked = Settings.Global.getInt(resolver, settingKey, 0) == 1; in toggleSettingAndVerify() 151 assertEquals(!checked, Settings.Global.getInt(resolver, settingKey, 0) == 1); in toggleSettingAndVerify() 155 assertEquals(checked, Settings.Global.getInt(resolver, settingKey, 0) == 1); in toggleSettingAndVerify()
|
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/ |
D | AirplaneModeTest.java | 90 Settings.Global.getUriFor(Settings.Global.AIRPLANE_MODE_ON), in runTest() 105 return Settings.Global.getInt(mContext.getContentResolver(), in getMode() 106 Settings.Global.AIRPLANE_MODE_ON); in getMode()
|
D | ZenModeTest.java | 93 Settings.Global.getUriFor(ZEN_MODE), VOICE_SETTINGS_PACKAGE, in runTest() 116 return Settings.Global.getInt(mContext.getContentResolver(), ZEN_MODE); in getMode()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BatteryUtils.java | 24 import android.provider.Settings.Global; 83 putGlobalSetting(Global.LOW_POWER_MODE, "1"); in enableBatterySaver() 96 putGlobalSetting(Global.LOW_POWER_MODE, "0"); in enableBatterySaver() 97 putGlobalSetting(Global.LOW_POWER_MODE_STICKY, "0"); in enableBatterySaver()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BatteryUtils.java | 26 import android.provider.Settings.Global; 86 putGlobalSetting(Global.LOW_POWER_MODE, "1"); in enableBatterySaver() 99 putGlobalSetting(Global.LOW_POWER_MODE, "0"); in enableBatterySaver() 100 putGlobalSetting(Global.LOW_POWER_MODE_STICKY, "0"); in enableBatterySaver()
|
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySaverLocationTest.java | 18 import static android.provider.Settings.Global.BATTERY_SAVER_CONSTANTS; 46 import android.provider.Settings.Global; 122 Settings.Global.LOCATION_IGNORE_SETTINGS_PACKAGE_WHITELIST, in setUp() 130 Settings.Global.LOCATION_IGNORE_SETTINGS_PACKAGE_WHITELIST, in tearDown() 216 return Global.getInt(getContext().getContentResolver(), in getLocationGlobalKillSwitch() 217 Global.LOCATION_GLOBAL_KILL_SWITCH, 0); in getLocationGlobalKillSwitch()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | SensorFeaturesDeactivator.java | 106 return Settings.Global in getSettingMode() 107 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode() 170 return Settings.Global.getInt( in getSettingMode() 172 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, in getSettingMode()
|
/cts/tests/app/src/android/app/cts/ |
D | TestContextTest.java | 20 import android.provider.Settings.Global; 32 Global.CONTENT_URI, null, null, null, null); in testTestOpPackageName()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | LayoutTests.java | 19 import static android.provider.Settings.Global.WINDOW_ANIMATION_SCALE; 75 mWindowAnimationScale = Settings.Global.getFloat(resolver, WINDOW_ANIMATION_SCALE, 1f); in setup() 76 Settings.Global.putFloat(resolver, WINDOW_ANIMATION_SCALE, 0); in setup() 84 Settings.Global.putFloat(getInstrumentation().getContext().getContentResolver(), in tearDown()
|
D | ToastTest.java | 80 mPreviousHiddenApiPolicy = Settings.Global.getString(resolver, in setUp() 82 Settings.Global.putString(resolver, SETTING_HIDDEN_API_POLICY, "1"); in setUp() 99 Settings.Global.putString(mContext.getContentResolver(), SETTING_HIDDEN_API_POLICY, in tearDown()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | BaseBootReceiver.java | 45 return Settings.Global.getInt(context.getContentResolver(), Settings.Global.BOOT_COUNT); in getBootCount()
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | BaseKillswitchTest.java | 41 return Settings.Global.getString( in getGlobalExemptions() 43 Settings.Global.HIDDEN_API_BLACKLIST_EXEMPTIONS); in getGlobalExemptions()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | AbstractCursorTest.java | 156 final Uri testUri2 = Settings.Global.getUriFor( in testSetNotificationUris_selfNotify() 157 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED); in testSetNotificationUris_selfNotify() 187 Settings.Global.getUriFor(Settings.Global.MODE_RINGER), in testGetNotificationUris() 188 Settings.Global.getUriFor(Settings.Global.BOOT_COUNT) in testGetNotificationUris()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 593 Settings.Global.getString(getContentResolver(), PRIVATE_DNS_MODE_SETTING)); in isPrivateDnsInStrictMode() 597 mOldPrivateDnsMode = Settings.Global.getString(getContentResolver(), in storePrivateDnsSetting() 599 mOldPrivateDnsSpecifier = Settings.Global.getString(getContentResolver(), in storePrivateDnsSetting() 604 Settings.Global.putString(getContentResolver(), PRIVATE_DNS_MODE_SETTING, in restorePrivateDnsSetting() 606 Settings.Global.putString(getContentResolver(), PRIVATE_DNS_SPECIFIER_SETTING, in restorePrivateDnsSetting() 642 Settings.Global.putString(cr, PRIVATE_DNS_SPECIFIER_SETTING, privateDnsHostname); in setAndVerifyPrivateDns() 643 Settings.Global.putString(cr, PRIVATE_DNS_MODE_SETTING, in setAndVerifyPrivateDns() 646 Settings.Global.putString(cr, PRIVATE_DNS_MODE_SETTING, PRIVATE_DNS_MODE_OPPORTUNISTIC); in setAndVerifyPrivateDns()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | WifiLockdownTestActivity.java | 79 Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN) in onCreate() 88 Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN) in onCreate()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | SettingsTest.java | 149 cursor = provider.query(Settings.Global.CONTENT_URI, SECURE_PROJECTION, in testSecureTable() 150 Settings.Global.NAME + "=\"" + Settings.Global.ADB_ENABLED + "\"", in testSecureTable()
|