Home
last modified time | relevance | path

Searched refs:Settings (Results 1 – 25 of 107) sorted by relevance

12345

/cts/tests/tests/provider/src/android/provider/cts/
DSettingsTest.java34 import android.provider.Settings;
43 Settings.System._ID, Settings.System.NAME, Settings.System.VALUE in testSystemTable()
55 cr.acquireContentProviderClient(Settings.System.CONTENT_URI); in testSystemTable()
61 value.put(Settings.System.NAME, name); in testSystemTable()
62 value.put(Settings.System.VALUE, insertValue); in testSystemTable()
64 provider.insert(Settings.System.CONTENT_URI, value); in testSystemTable()
65 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable()
66 Settings.System.NAME + "=\"" + name + "\"", null, null, null); in testSystemTable()
77 value.put(Settings.System.NAME, name); in testSystemTable()
78 value.put(Settings.System.VALUE, updateValue); in testSystemTable()
[all …]
DContacts_SettingsTest.java20 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()
DSettings_SecureTest.java22 import android.provider.Settings;
23 import android.provider.Settings.Secure;
24 import android.provider.Settings.SettingNotFoundException;
157 0, Settings.Global.getInt(cr, Settings.Global.INSTALL_NON_MARKET_APPS)); in testUnknownSourcesOffByDefault()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java24 import android.provider.Settings;
94 super(Settings.ACTION_WIRELESS_SETTINGS, R.string.snsr_setting_airplane_mode); in AirplaneModeSettingContainer()
102 return Settings.System in getSettingMode()
103 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
105 return Settings.Global in getSettingMode()
106 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
113 super(Settings.ACTION_DISPLAY_SETTINGS, R.string.snsr_setting_screen_brightness_mode); in ScreenBrightnessModeSettingContainer()
118 return Settings.System.getInt( in getSettingMode()
120 Settings.System.SCREEN_BRIGHTNESS_MODE, in getSettingMode()
127 super(Settings.ACTION_DISPLAY_SETTINGS, R.string.snsr_setting_ambient_display); in AmbientDisplaySettingContainer()
[all …]
/cts/suite/audio_quality/lib/src/
DSettings.cpp20 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()
DReport.cpp62 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/managedprovisioning/
DIntentFiltersTestHelper.java38 import android.provider.Settings;
68 new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS),
69 new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS),
70 new Intent(Settings.ACTION_CAPTIONING_SETTINGS),
71 new Intent(Settings.ACTION_DATE_SETTINGS),
72 new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS),
73 new Intent(Settings.ACTION_DISPLAY_SETTINGS),
74 new Intent(Settings.ACTION_LOCALE_SETTINGS),
75 new Intent(Settings.ACTION_PRIVACY_SETTINGS),
76 new Intent(Settings.ACTION_SETTINGS),
[all …]
DUserRestrictions.java22 import android.provider.Settings;
96 Settings.ACTION_SETTINGS,
97 Settings.ACTION_SOUND_SETTINGS,
98 Settings.ACTION_APPLICATION_SETTINGS,
99 Settings.ACTION_SOUND_SETTINGS,
100 Settings.ACTION_SECURITY_SETTINGS,
101 Settings.ACTION_WIRELESS_SETTINGS,
102 Settings.ACTION_WIRELESS_SETTINGS,
103 Settings.ACTION_WIFI_SETTINGS,
104 Settings.ACTION_DEVICE_INFO_SETTINGS,
[all …]
DPolicyTransparencyTestListActivity.java23 import android.provider.Settings;
56 Settings.ACTION_DATE_SETTINGS,
57 Settings.ACTION_SETTINGS,
58 Settings.ACTION_SECURITY_SETTINGS,
59 Settings.ACTION_DISPLAY_SETTINGS,
61 Settings.ACTION_ACCESSIBILITY_SETTINGS,
62 Settings.ACTION_INPUT_METHOD_SETTINGS
/cts/suite/audio_quality/executable/src/
Dmain.cpp42 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/bluetooth/src/android/bluetooth/cts/
DTestUtils.java21 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DSettingsIntentsTest.java21 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/permission2/src/android/permission2/cts/
DNoWriteSecureSettingsPermissionTest.java21 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/voicesettings/src/android/voicesettings/cts/
DZenModeTest.java19 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;
25 import android.provider.Settings;
26 import android.provider.Settings.Global;
66 } catch (Settings.SettingNotFoundException e) { in testAll()
115 private int getMode() throws Settings.SettingNotFoundException { in getMode()
116 return Settings.Global.getInt(mContext.getContentResolver(), ZEN_MODE); in getMode()
DAirplaneModeTest.java19 import static android.provider.Settings.ACTION_VOICE_CONTROL_AIRPLANE_MODE;
23 import android.provider.Settings;
24 import android.provider.Settings.Global;
61 } catch (Settings.SettingNotFoundException e) { in testAll()
101 private int getMode() throws Settings.SettingNotFoundException { in getMode()
102 return Settings.Global.getInt(mContext.getContentResolver(), in getMode()
103 Settings.Global.AIRPLANE_MODE_ON); in getMode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupAccessibilityTestActivity.java32 import android.provider.Settings;
75 ACCESSIBILITY_SETTINGS.add(Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD);
78 ACCESSIBILITY_SETTINGS.add(Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED);
94 TTS_SETTINGS.add(Settings.Secure.TTS_DEFAULT_RATE);
97 ACCESSIBILITY_SERVICE_SETTINGS.add(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES);
99 ACCESSIBILITY_SERVICE_SETTINGS.add(Settings.Secure.TOUCH_EXPLORATION_ENABLED);
101 SYSTEM_SETTINGS.add(Settings.System.FONT_SCALE);
102 SYSTEM_SETTINGS.add(Settings.System.STAY_ON_WHILE_PLUGGED_IN);
103 SYSTEM_SETTINGS.add(Settings.System.SCREEN_OFF_TIMEOUT);
104 SYSTEM_SETTINGS.add(Settings.System.SCREEN_BRIGHTNESS);
[all …]
/cts/tests/tests/net/src/android/net/cts/
DAirplaneModeTest.java22 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()
DTheaterModeTest.java21 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/
DSettings.h23 class Settings {
25 static Settings* Instance();
38 static Settings* mInstance;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DGyroscopeTestActivity.java68 Settings settings = getSettings(stageIndex); in onCreate()
92 private Settings getSettings(int stageIndex) { in getSettings()
95 return new Settings(stageIndex, NUM_STAGES, 0, 0, 1, 2, true); in getSettings()
97 return new Settings(stageIndex, NUM_STAGES, 0, 0, -1, 2, false); in getSettings()
99 return new Settings(stageIndex, NUM_STAGES, 0, 1, 0, 1, true); in getSettings()
101 return new Settings(stageIndex, NUM_STAGES, 0, -1, 0, 1, false); in getSettings()
103 return new Settings(stageIndex, NUM_STAGES, 1, 0, 0, 0, true); in getSettings()
105 return new Settings(stageIndex, NUM_STAGES, -1, 0, 0, 0, false); in getSettings()
112 class Settings { class in GyroscopeTestActivity
121 Settings(int stageIndex, int totalStages, float rotateX, float rotateY, float rotateZ, in Settings() method in GyroscopeTestActivity.Settings
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DInstrumentedAccessibilityService.java8 import android.provider.Settings;
101 final String enabledServices = Settings.Secure.getString( in enableService()
103 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); in enableService()
116 .putSecureSetting(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in enableService()
118 .putSecureSetting(Settings.Secure.ACCESSIBILITY_ENABLED, "1") in enableService()
124 .putSecureSetting(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in enableService()
172 .deleteSecureSetting(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES) in disableAllServices()
173 .deleteSecureSetting(Settings.Secure.ACCESSIBILITY_ENABLED) in disableAllServices()
/cts/tests/tests/permission/src/android/permission/cts/
DProviderPermissionTest.java22 import android.provider.Settings;
80 value.put(Settings.System.NAME, "name"); in testWriteSettings()
81 value.put(Settings.System.VALUE, "value_insert"); in testWriteSettings()
84 getContext().getContentResolver().insert(Settings.System.CONTENT_URI, value); in testWriteSettings()
/cts/tests/tests/media/src/android/media/cts/
DUtils.java24 import android.provider.Settings;
83 String alreadyEnabledServices = Settings.Secure.getString( in toggleNotificationPolicyAccess()
84 cr, Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES); in toggleNotificationPolicyAccess()
93 + Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES + " " in toggleNotificationPolicyAccess()
101 + Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES + " " in toggleNotificationPolicyAccess()
106 + Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES + " null"); in toggleNotificationPolicyAccess()
DRingtoneManagerTest.java30 import android.provider.Settings;
117 assertNotNull(RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI)); in testAccessMethods()
127 assertEquals(Settings.System.DEFAULT_RINGTONE_URI, in testAccessMethods()
129 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, in testAccessMethods()
132 RingtoneManager.getDefaultType(Settings.System.DEFAULT_RINGTONE_URI)); in testAccessMethods()
134 RingtoneManager.getDefaultType(Settings.System.DEFAULT_NOTIFICATION_URI)); in testAccessMethods()
135 assertTrue(RingtoneManager.isDefault(Settings.System.DEFAULT_RINGTONE_URI)); in testAccessMethods()
DAsyncPlayerTest.java24 import android.provider.Settings;
30 final Uri PLAY_URI = Settings.System.DEFAULT_NOTIFICATION_URI; in testAsyncPlayer()
39 final Uri PLAY_URI = Settings.System.DEFAULT_NOTIFICATION_URI; in testAsyncPlayerAudioAttributes()

12345