/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/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()
|
D | DnsResolverTest.java | 115 mOldMode = Settings.Global.getString(mCR, Settings.Global.PRIVATE_DNS_MODE); in storePrivateDnsSetting() 116 mOldDnsSpecifier = Settings.Global.getString(mCR, Settings.Global.PRIVATE_DNS_SPECIFIER); in storePrivateDnsSetting() 121 Settings.Global.putString(mCR, Settings.Global.PRIVATE_DNS_MODE, mOldMode); in restorePrivateDnsSetting() 122 Settings.Global.putString(mCR, Settings.Global.PRIVATE_DNS_SPECIFIER, mOldDnsSpecifier); in restorePrivateDnsSetting() 639 Settings.Global.putString(mCR, Settings.Global.PRIVATE_DNS_MODE, "hostname"); in testPrivateDnsBypass() 640 Settings.Global.putString(mCR, in testPrivateDnsBypass() 641 Settings.Global.PRIVATE_DNS_SPECIFIER, INVALID_PRIVATE_DNS_SERVER); in testPrivateDnsBypass()
|
/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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BatteryUtils.java | 24 import android.provider.Settings.Global; 84 putGlobalSetting(Global.LOW_POWER_MODE, "1"); in enableBatterySaver() 97 putGlobalSetting(Global.LOW_POWER_MODE, "0"); in enableBatterySaver() 98 putGlobalSetting(Global.LOW_POWER_MODE_STICKY, "0"); in enableBatterySaver()
|
D | OneTimeSettingsListener.java | 59 uri = Settings.Global.getUriFor(key); in OneTimeSettingsListener()
|
/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()
|
D | OneTimeSettingsListener.java | 59 uri = Settings.Global.getUriFor(key); in OneTimeSettingsListener()
|
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/ |
D | AirplaneModeTest.java | 25 import android.provider.Settings.Global; 105 return Settings.Global.getInt(mContext.getContentResolver(), in getMode() 106 Settings.Global.AIRPLANE_MODE_ON); in getMode()
|
D | ZenModeTest.java | 27 import android.provider.Settings.Global; 117 return Settings.Global.getInt(mContext.getContentResolver(), ZEN_MODE); in getMode()
|
/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/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/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/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/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 | MultiDisplayTestBase.java | 546 super(Settings.Global.getUriFor(Settings.Global.OVERLAY_DISPLAY_DEVICES), in OverlayDisplayDevicesSession() 547 Settings.Global::getString, in OverlayDisplayDevicesSession() 548 Settings.Global::putString); in OverlayDisplayDevicesSession()
|
/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/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 | 148 cursor = provider.query(Settings.Global.CONTENT_URI, SECURE_PROJECTION, in testSecureTable() 149 Settings.Global.NAME + "=\"" + Settings.Global.ADB_ENABLED + "\"", in testSecureTable()
|