/cts/tests/tests/provider/src/android/provider/cts/ |
D | SettingsTest.java | 35 import android.provider.Settings; 44 Settings.System._ID, Settings.System.NAME, Settings.System.VALUE in testSystemTable() 56 cr.acquireContentProviderClient(Settings.System.CONTENT_URI); in testSystemTable() 62 value.put(Settings.System.NAME, name); in testSystemTable() 63 value.put(Settings.System.VALUE, insertValue); in testSystemTable() 65 provider.insert(Settings.System.CONTENT_URI, value); in testSystemTable() 66 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 67 Settings.System.NAME + "=\"" + name + "\"", null, null, null); in testSystemTable() 78 value.put(Settings.System.NAME, name); in testSystemTable() 79 value.put(Settings.System.VALUE, updateValue); in testSystemTable() [all …]
|
D | Settings_SecureTest.java | 23 import android.provider.Settings; 24 import android.provider.Settings.Secure; 25 import android.provider.Settings.SettingNotFoundException; 158 1, Settings.Secure.getInt(cr, Settings.Global.INSTALL_NON_MARKET_APPS)); in testUnknownSourcesOnByDefault() 169 assertNull(Settings.Secure.getString(cr, BLUETOOTH_MAC_ADDRESS_SETTING_NAME)); in testBluetoothAddressNotAvailable() 172 try (Cursor c = cr.query(Settings.Secure.CONTENT_URI, null, null, null, null)) { in testBluetoothAddressNotAvailable() 183 Settings.Secure.CONTENT_URI.buildUpon().appendPath("bluetooth_address").build(); in testBluetoothAddressNotAvailable()
|
/cts/suite/audio_quality/lib/src/ |
D | Settings.cpp | 20 Settings* Settings::mInstance = NULL; 22 Settings* Settings::Instance() in Instance() 25 mInstance = new Settings(); in Instance() 30 void Settings::Finalize() in Finalize() 37 void Settings::addSetting(SettingType type, const android::String8& setting) in addSetting() 41 const android::String8& Settings::getSetting(SettingType type) in getSetting()
|
D | Report.cpp | 62 Settings::Instance()->addSetting(Settings::EREPORT_FILE, report); in init() 110 Settings::Instance()->getSetting(Settings::EREPORT_TIME).string()); in writeReport() 113 printf(" %s", Settings::Instance()->getSetting(Settings::EDEVICE_INFO).string()); in writeReport() 116 Settings::Instance()->getSetting(Settings::ETEST_XML).string()); in writeReport()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | SensorFeaturesDeactivator.java | 25 import android.provider.Settings; 95 super(Settings.ACTION_AIRPLANE_MODE_SETTINGS, R.string.snsr_setting_airplane_mode); in AirplaneModeSettingContainer() 103 return Settings.System in getSettingMode() 104 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode() 106 return Settings.Global in getSettingMode() 107 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode() 121 super(Settings.ACTION_DISPLAY_SETTINGS, R.string.snsr_setting_screen_brightness_mode); in ScreenBrightnessModeSettingContainer() 126 return Settings.System.getInt( in getSettingMode() 128 Settings.System.SCREEN_BRIGHTNESS_MODE, in getSettingMode() 135 super(Settings.ACTION_DISPLAY_SETTINGS, R.string.snsr_setting_ambient_display); in AmbientDisplaySettingContainer() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | RingtoneSyncTest.java | 19 import static android.provider.Settings.Secure.SYNC_PARENT_SOUNDS; 25 import android.provider.Settings; 55 assertEquals(1, Settings.Secure.getInt(mContentResolver, SYNC_PARENT_SOUNDS)); in testRingtoneSync() 57 String defaultRingtone = Settings.System.getString(mContentResolver, in testRingtoneSync() 58 Settings.System.RINGTONE); in testRingtoneSync() 59 String defaultNotification = Settings.System.getString(mContentResolver, in testRingtoneSync() 60 Settings.System.NOTIFICATION_SOUND); in testRingtoneSync() 61 String defaultAlarm = Settings.System.getString(mContentResolver, in testRingtoneSync() 62 Settings.System.ALARM_ALERT); in testRingtoneSync() 85 assertTrue(Settings.System.canWrite(mContext)); in testSoundDisableSync() [all …]
|
D | SettingsIntentsTest.java | 21 import android.provider.Settings; 45 new Intent(Settings.ACTION_SETTINGS), 0 /* flags */)); in testSettings() 50 new Intent(Settings.ACTION_SYNC_SETTINGS), 0 /* flags */)); in testAccounts() 55 new Intent(Settings.ACTION_APPLICATION_SETTINGS), 0 /* flags */)); in testApps() 61 new Intent(Settings.ACTION_SECURITY_SETTINGS), 0 /* flags */)); in testSecurity() 67 new Intent(Settings.ACTION_NFC_SETTINGS), 0 /* flags */)); in testNfc() 73 new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS), 0 /* flags */)); in testLocation()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | Contacts_SettingsTest.java | 20 import android.provider.Contacts.Settings; 37 Settings.setSetting(mContentResolver, "account", key1, value1); in testAccessSetting() 38 Settings.setSetting(mContentResolver, "account", key2, value2); in testAccessSetting() 39 assertEquals(value1, Settings.getSetting(mContentResolver, "account", key1)); in testAccessSetting() 40 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key2)); in testAccessSetting() 41 assertNull(Settings.getSetting(mContentResolver, "account", "key not exist")); in testAccessSetting() 43 Settings.setSetting(mContentResolver, "account", key1, value2); in testAccessSetting() 44 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key1)); in testAccessSetting()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | IntentFiltersTestHelper.java | 40 import android.provider.Settings; 70 new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS), 71 new Intent(Settings.ACTION_CAPTIONING_SETTINGS), 72 new Intent(Settings.ACTION_DATE_SETTINGS), 73 new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS), 74 new Intent(Settings.ACTION_DISPLAY_SETTINGS), 75 new Intent(Settings.ACTION_LOCALE_SETTINGS), 76 new Intent(Settings.ACTION_PRIVACY_SETTINGS), 77 new Intent(Settings.ACTION_SETTINGS), 78 new Intent(Settings.ACTION_WIRELESS_SETTINGS), [all …]
|
D | UserRestrictions.java | 23 import android.provider.Settings; 123 Settings.ACTION_SETTINGS, 124 Settings.ACTION_SOUND_SETTINGS, 125 Settings.ACTION_APPLICATION_SETTINGS, 126 Settings.ACTION_SETTINGS, 127 Settings.ACTION_SECURITY_SETTINGS, 128 Settings.ACTION_WIRELESS_SETTINGS, 129 Settings.ACTION_WIRELESS_SETTINGS, 130 Settings.ACTION_WIFI_SETTINGS, 131 Settings.ACTION_DEVICE_INFO_SETTINGS, [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | TestUtils.java | 21 import android.provider.Settings; 62 return Settings.Secure.getInt(context.getContentResolver(), in getLocationMode() 63 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); in getLocationMode() 70 Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE, in setLocationMode() 78 return getLocationMode(context) != Settings.Secure.LOCATION_MODE_OFF; in isLocationOn() 85 setLocationMode(context, Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in enableLocation() 92 setLocationMode(context, Settings.Secure.LOCATION_MODE_OFF); in disableLocation()
|
/cts/suite/audio_quality/executable/src/ |
D | main.cpp | 42 Settings::Instance()->getSetting(Settings::EREPORT_FILE).getPathDir(); in ~CleanupStatics() 50 Settings::Finalize(); in ~CleanupStatics() 94 if (Settings::Instance() == NULL) { in main() 100 Settings::Instance()->addSetting(Settings::EADB, strSerial); in main() 120 if (!client->init(Settings::Instance()->getSetting(Settings::EADB))) { in main() 130 Settings::Instance()->addSetting(Settings::EDEVICE_INFO, deviceInfo); in main() 138 Settings::Instance()->addSetting(Settings::ETEST_XML, xmlFile); in main()
|
/cts/tests/tests/systemintents/src/android/systemintents/cts/ |
D | TestSystemIntents.java | 26 import android.provider.Settings; 67 new IntentEntry(0, new Intent(Settings.ACTION_SETTINGS)), 68 new IntentEntry(0, new Intent(Settings.ACTION_WEBVIEW_SETTINGS)), 69 new IntentEntry(0, new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS)), 70 new IntentEntry(0, new Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS)), 71 new IntentEntry(0, new Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS) 73 … new IntentEntry(0, new Intent(Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS) 75 new IntentEntry(0, new Intent(Settings.ACTION_HOME_SETTINGS)), 77 new Intent(Settings.ACTION_APN_SETTINGS)), 79 new Intent(Settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS)), [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AirplaneModeRestrictionTest.java | 19 import static android.provider.Settings.Global.AIRPLANE_MODE_ON; 26 import android.provider.Settings; 27 import android.provider.Settings.SettingNotFoundException; 65 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeTurnedOffWhenRestrictionSet() 69 assertEquals(0, Settings.Global.getInt( in testAirplaneModeTurnedOffWhenRestrictionSet() 70 mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON)); in testAirplaneModeTurnedOffWhenRestrictionSet() 79 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeCannotBeTurnedOnWithRestrictionOn() 80 assertEquals(0, Settings.Global.getInt( in testAirplaneModeCannotBeTurnedOnWithRestrictionOn() 86 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeCanBeTurnedOnWithRestrictionOff() 87 assertEquals(1, Settings.Global.getInt( in testAirplaneModeCanBeTurnedOnWithRestrictionOff()
|
D | SetTimeTest.java | 23 import android.provider.Settings; 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()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | BrightnessTest.java | 36 import android.provider.Settings; 94 int previousBrightness = getSystemSetting(Settings.System.SCREEN_BRIGHTNESS); in testBrightnessSliderTracking() 96 getSystemSetting(Settings.System.SCREEN_BRIGHTNESS_MODE); in testBrightnessSliderTracking() 98 setSystemSetting(Settings.System.SCREEN_BRIGHTNESS_MODE, in testBrightnessSliderTracking() 99 Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC); in testBrightnessSliderTracking() 100 int mode = getSystemSetting(Settings.System.SCREEN_BRIGHTNESS_MODE); in testBrightnessSliderTracking() 101 assertEquals(Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC, mode); in testBrightnessSliderTracking() 107 setSystemSetting(Settings.System.SCREEN_BRIGHTNESS, 20); in testBrightnessSliderTracking() 111 setSystemSetting(Settings.System.SCREEN_BRIGHTNESS, 60); in testBrightnessSliderTracking() 120 setSystemSetting(Settings.System.SCREEN_BRIGHTNESS, 200); in testBrightnessSliderTracking() [all …]
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoWriteSecureSettingsPermissionTest.java | 21 import android.provider.Settings; 38 values.put(Settings.Secure.NAME, Settings.Secure.ACCESSIBILITY_ENABLED); in testWriteSecureSettings() 39 values.put(Settings.Secure.VALUE, Boolean.TRUE); in testWriteSecureSettings() 40 getContext().getContentResolver().insert(Settings.Secure.CONTENT_URI, values); in testWriteSecureSettings()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextClockTest.java | 28 import android.provider.Settings; 74 Settings.System.putInt(mActivity.getContentResolver(), Settings.System.TIME_12_24, base); in teardown() 104 final CountDownLatch change12 = registerForChanges(Settings.System.TIME_12_24); in testUpdate12_24() 106 Settings.System.putInt(resolver, Settings.System.TIME_12_24, 12); in testUpdate12_24() 124 final CountDownLatch change24 = registerForChanges(Settings.System.TIME_12_24); in testUpdate12_24() 126 Settings.System.putInt(resolver, Settings.System.TIME_12_24, 24); in testUpdate12_24() 162 final CountDownLatch otherChange = registerForChanges(Settings.System.TEXT_AUTO_CAPS); 164 int oldAutoCaps = Settings.System.getInt(resolver, Settings.System.TEXT_AUTO_CAPS, in mActivityRule.runOnUiThread() 168 Settings.System.putInt(resolver, Settings.System.TEXT_AUTO_CAPS, newAutoCaps); in mActivityRule.runOnUiThread() 170 Settings.System.putInt(resolver, Settings.System.TEXT_AUTO_CAPS, oldAutoCaps); in mActivityRule.runOnUiThread() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SetSystemSettingTest.java | 20 import android.provider.Settings; 32 Settings.System.SCREEN_BRIGHTNESS, testBrightness); in testSetBrightnessWithValue() 33 assertEquals(testBrightness, Settings.System.getStringForUser( in testSetBrightnessWithValue() 34 mContext.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, in testSetBrightnessWithValue() 46 Settings.System.TEXT_AUTO_REPLACE, "0"); in testSetSystemSettingsFailsForNonWhitelistedSettings()
|
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/ |
D | AirplaneModeTest.java | 19 import static android.provider.Settings.ACTION_VOICE_CONTROL_AIRPLANE_MODE; 24 import android.provider.Settings; 25 import android.provider.Settings.Global; 62 } catch (Settings.SettingNotFoundException e) { in testAll() 102 private int getMode() throws Settings.SettingNotFoundException { in getMode() 103 return Settings.Global.getInt(mContext.getContentResolver(), in getMode() 104 Settings.Global.AIRPLANE_MODE_ON); in getMode()
|
D | ZenModeTest.java | 19 import static android.provider.Settings.ACTION_VOICE_CONTROL_DO_NOT_DISTURB_MODE; 20 import static android.provider.Settings.EXTRA_DO_NOT_DISTURB_MODE_ENABLED; 21 import static android.provider.Settings.EXTRA_DO_NOT_DISTURB_MODE_MINUTES; 26 import android.provider.Settings; 27 import android.provider.Settings.Global; 67 } catch (Settings.SettingNotFoundException e) { in testAll() 116 private int getMode() throws Settings.SettingNotFoundException { in getMode() 117 return Settings.Global.getInt(mContext.getContentResolver(), ZEN_MODE); in getMode()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | AirplaneModeTest.java | 22 import android.provider.Settings; 77 Settings.Global.putInt(resolver, Settings.Global.AIRPLANE_MODE_ON, enabling ? 1 : 0); in setAirplaneModeOn() 82 return Settings.Global.getInt(mContext.getContentResolver(), in isAirplaneModeOn() 83 Settings.Global.AIRPLANE_MODE_ON, 0) != 0; in isAirplaneModeOn()
|
D | TheaterModeTest.java | 21 import android.provider.Settings; 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()
|
/cts/suite/audio_quality/lib/include/ |
D | Settings.h | 23 class Settings { 25 static Settings* Instance(); 38 static Settings* mInstance;
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ReadDefaultUris.java | 24 import android.provider.Settings; 41 Settings.System.DEFAULT_NOTIFICATION_URI, in testPlayDefaultUris() 46 Settings.System.DEFAULT_RINGTONE_URI, in testPlayDefaultUris() 51 Settings.System.DEFAULT_ALARM_ALERT_URI, in testPlayDefaultUris()
|