Home
last modified time | relevance | path

Searched refs:putString (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/cts/hostsidetests/backup/PreservedSettingsApp/src/android/cts/backup/preservedsettingsapp/
DPreservedSettingsRestoreTest.java97 Settings.Secure.putString(mContentResolver, OVERRIDEABLE_SETTING, in modifySettings()
99 Settings.Secure.putString(mContentResolver, NON_OVERRIDEABLE_SETTING, in modifySettings()
114 Settings.Global.putString(mContentResolver, in setupDevice()
117 Settings.Secure.putString(mContentResolver, OVERRIDEABLE_SETTING, in setupDevice()
119 Settings.Secure.putString(mContentResolver, NON_OVERRIDEABLE_SETTING, in setupDevice()
130 Settings.Secure.putString(mContentResolver, OVERRIDEABLE_SETTING, in cleanupDevice()
133 Settings.Secure.putString(mContentResolver, NON_OVERRIDEABLE_SETTING, in cleanupDevice()
137 Settings.Global.putString(mContentResolver, in cleanupDevice()
149 mSharedPreferences.edit().putString(name, value).commit(); in setOriginalSettingValue()
/cts/tests/credentials/src/android/credentials/cts/unittests/
DCredentialOptionTest.java68 retrievalData.putString("foo", "bar"); in testBuilder()
71 queryData.putString("bar", "baz"); in testBuilder()
90 retrievalData.putString("foo", "bar"); in testBuilder_setIsSystemProvider()
93 queryData.putString("bar", "baz"); in testBuilder_setIsSystemProvider()
111 retrievalData.putString("foo", "bar"); in testBuilder_setCandidateProviders()
114 queryData.putString("bar", "baz"); in testBuilder_setCandidateProviders()
141 retrievalData.putString("foo", "bar"); in testBuilder_addAllowedProviders()
144 queryData.putString("bar", "baz"); in testBuilder_addAllowedProviders()
170 retrievalData.putString("foo", "bar"); in testWriteToParcel()
173 queryData.putString("baz", "foo"); in testWriteToParcel()
[all …]
DCreateCredentialRequestTest.java76 data.putString("foo", "bar"); in testConstructor_setOrigin()
79 query.putString("bar", "baz"); in testConstructor_setOrigin()
104 data.putString("foo", "bar"); in testConstructor()
107 query.putString("bar", "baz"); in testConstructor()
127 credData.putString("foo", "bar"); in testWriteToParcel()
130 queryData.putString("baz", "foo"); in testWriteToParcel()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java73 prefs.edit().putString("foo", "bar").commit(); in testCommitCreatesFiles()
93 prefs.edit().putString("test-key", "test-value").commit(); in testPutNullRemovesKey()
96 SharedPreferences.Editor editor = prefs.edit().putString("test-key", null); in testPutNullRemovesKey()
160 editor.putString("foo", "bar"); in testRedundantString()
163 editor.putString("foo", "bar"); in testRedundantString()
171 editor.putString("foo", "bar"); in testNonRedundantString()
174 editor.putString("foo", "baz"); in testNonRedundantString()
196 editor.putString("foo", "bar"); in testNonRedundantClear()
210 editor.putString("foo", "bar"); in testRedundantRemove()
221 prefs.edit().putString("foo", "bar").commit(); in testRedundantCommitWritesFileIfNotAlreadyExisting()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_SystemTest.java112 assertTrue(System.putString(mContentResolver, STRING_FIELD, stringValue)); in testSystemSettings()
139 assertTrue(System.putString(mContentResolver, INT_FIELD, originalIntValue)); in testSystemSettings()
140 assertTrue(System.putString(mContentResolver, LONG_FIELD, originalLongValue)); in testSystemSettings()
141 assertTrue(System.putString(mContentResolver, STRING_FIELD, originalStringValue)); in testSystemSettings()
187 assertTrue(System.putString(mContentResolver, FLOAT_FIELD, originalFloatValue)); in testSystemSettingsRejectInvalidFontSizeScale()
197 System.putString(mContentResolver, System.RINGTONE, invalidUri); in testInvalidRingtoneUriIsRejected()
212 System.putString(mContentResolver, System.NOTIFICATION_SOUND, invalidUri); in testInvalidAlarmAlertUriIsRejected()
226 System.putString(mContentResolver, System.ALARM_ALERT, invalidUri); in testInvalidNotificationSoundUriIsRejected()
253 () -> System.putString( in testLargeSettingExceedsLimit()
257 () -> System.putString( in testLargeSettingExceedsLimit()
[all …]
DSettings_MemoryUsageTest.java63 Settings.System.putString(mContentResolver, STRING_SETTING, mOldSettingValue); in cleanUp()
70 () -> Settings.System.putString( in testMemoryUsageExceeded()
74 () -> Settings.System.putString( in testMemoryUsageExceeded()
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java79 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
80 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType); in addAccount()
123 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials()
124 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials()
169 result.putString( in getAuthToken()
174 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
175 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
233 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in updateCredentials()
234 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in updateCredentials()
334 result.putString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN, in startAddAccountSession()
[all …]
DTestDefaultAuthenticator.java70 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
71 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType); in addAccount()
112 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in updateCredentials()
113 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in updateCredentials()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DPackageNameVisibilityTest.java137 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in testOwnerPackageNameInSelection_filtered()
151 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in testOwnerPackageNameInSelection_selfOwned()
165 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_GROUP_BY, in testOwnerPackageNameInGroupBy()
178 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, in testOwnerPackageNameInSort()
190 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_GROUP_BY, in testOwnerPackageNameInHaving()
192 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_HAVING, in testOwnerPackageNameInHaving()
205 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, "owner_package_name = ?"); in testQueryArgsInLowerCase()
218 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, "OWNER_PACKAGE_NAME = ?"); in testQueryArgsInUpperCase()
231 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in testQueryArgsWithQueryAllPackages()
256 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in testQueryArgsWithAccessMediaOwnerPackageName()
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java148 result.putString(AccountManager.KEY_ACCOUNT_NAME, AccountManagerTest.ACCOUNT_NAME); in createResultBundle()
149 result.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTest.ACCOUNT_TYPE); in createResultBundle()
150 result.putString( in createResultBundle()
237 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
238 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
249 result.putString( in getAuthToken()
357 result.putString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN, in startAddAccountSession()
359 result.putString(AccountManager.KEY_PASSWORD, AccountManagerTest.ACCOUNT_PASSWORD); in startAddAccountSession()
360 result.putString(AccountManager.KEY_AUTHTOKEN, in startAddAccountSession()
412 result.putString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN, in startUpdateCredentialsSession()
[all …]
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/
DGlobalSettingsTest.kt189 TestApis.settings().global().putString(KEY, STRING_VALUE) in <lambda>()
198 TestApis.settings().global().putString(context.contentResolver, KEY, STRING_VALUE) in <lambda>()
208 TestApis.settings().global().putString( in <lambda>()
216 TestApis.settings().global().putString( in <lambda>()
227 TestApis.settings().global().putString(deviceState.secondaryUser(), KEY, STRING_VALUE) in <lambda>()
241 TestApis.settings().global().putString(deviceState.secondaryUser(), KEY, in <lambda>()
248 TestApis.settings().global().putString(KEY, STRING_VALUE) in <lambda>()
256 TestApis.settings().global().putString( in <lambda>()
266 TestApis.settings().global().putString(KEY, STRING_VALUE) in <lambda>()
276 TestApis.settings().global().putString(deviceState.secondaryUser(), KEY, STRING_VALUE) in <lambda>()
[all …]
DSystemSettingsTest.kt186 TestApis.settings().system().putString(KEY, STRING_VALUE) in <lambda>()
195 TestApis.settings().system().putString(sContext.contentResolver, KEY, STRING_VALUE) in <lambda>()
205 TestApis.settings().system().putString( in <lambda>()
213 TestApis.settings().system().putString( in <lambda>()
224 TestApis.settings().system().putString(deviceState.secondaryUser(), KEY, STRING_VALUE) in <lambda>()
239 TestApis.settings().system().putString(deviceState.secondaryUser(), KEY, in <lambda>()
246 TestApis.settings().system().putString(KEY, STRING_VALUE) in <lambda>()
253 TestApis.settings().system().putString( in <lambda>()
262 TestApis.settings().system().putString(KEY, STRING_VALUE) in <lambda>()
272 TestApis.settings().system().putString(deviceState.secondaryUser(), KEY, STRING_VALUE) in <lambda>()
[all …]
/cts/hostsidetests/multiuser/app/src/com/android/cts/multiuser/
DMockAuthenticator.java64 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in addTestAccount()
65 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in addTestAccount()
88 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME); in createResultBundle()
89 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
90 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN); in createResultBundle()
/cts/hostsidetests/accounts/test-apps/AccountManagerCrossUserApp/src/com/android/cts/accountmanager/
DMockAuthenticator.java63 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in addTestAccount()
64 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in addTestAccount()
87 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME); in createResultBundle()
88 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
89 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN); in createResultBundle()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35676/src/android/security/cts/CVE_2023_35676/
DContentSuggestionsService.java77 actionBundle.putString(getString(R.string.id), getString(R.string.actionId)); in onClassifyContentSelections()
78 actionBundle.putString(getString(R.string.displayName), getString(R.string.cve_button)); in onClassifyContentSelections()
79 actionBundle.putString(getString(R.string.fullDisplayName), "actionFullDisplayName"); in onClassifyContentSelections()
82 actionGroupBundle.putString(getString(R.string.id), "groupID"); in onClassifyContentSelections()
83 actionGroupBundle.putString(getString(R.string.displayName), "groupDisplayName"); in onClassifyContentSelections()
90 entityBundle.putString(getString(R.string.searchQueryHint), ""); in onClassifyContentSelections()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/
DSystemSettings.kt80 fun putString(contentResolver: ContentResolver?, key: String?, value: String?) { in putString() method
84 Settings.System.putString(contentResolver, key, value) in putString()
99 fun putString(user: UserReference, key: String, value: String) { in putString() method
101 putString(key, value) in putString()
104 putString(TestApis.context().androidContextAsUser(user).contentResolver, key, value) in putString()
113 fun putString(key: String, value: String) { in putString() method
115 Settings.System.putString( in putString()
DGlobalSettings.kt80 fun putString(contentResolver: ContentResolver, key: String, value: String) { in <lambda>() method
84 Settings.Global.putString(contentResolver, key, value) in <lambda>()
99 fun putString(user: UserReference, key: String, value: String) { in <lambda>() method
101 putString(key, value) in <lambda>()
104 putString(TestApis.context().androidContextAsUser(user).contentResolver, key, value) in <lambda>()
113 fun putString(key: String, value: String) { in <lambda>() method
115 Settings.Global.putString( in <lambda>()
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
DBaseReceiver.java33 b.putString("loaderClassName", loader.getClass().getName()); in onReceive()
34 b.putString("parentClassName", parent.getClass().getName()); in onReceive()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaMetadataTest.java73 .putString(MediaMetadata.METADATA_KEY_TITLE, testTitle) in builder_putString()
118 () -> builder.putString(MediaMetadata.METADATA_KEY_YEAR, "test")); in builder_putString_throwsIAE_withNonTextKey()
164 .putString(MediaMetadata.METADATA_KEY_TITLE, testTitle) in equalsAndHashCode()
168 .putString(MediaMetadata.METADATA_KEY_TITLE, testTitle) in equalsAndHashCode()
222 .putString(MediaMetadata.METADATA_KEY_TITLE, testTitle) in writeToParcel()
245 .putString(MediaMetadata.METADATA_KEY_MEDIA_ID, testMediaId) in getDescription()
246 .putString(MediaMetadata.METADATA_KEY_DISPLAY_TITLE, testTitle) in getDescription()
247 .putString(MediaMetadata.METADATA_KEY_DISPLAY_SUBTITLE, testSubtitle) in getDescription()
248 .putString(MediaMetadata.METADATA_KEY_DISPLAY_DESCRIPTION, testDescription) in getDescription()
250 .putString(MediaMetadata.METADATA_KEY_MEDIA_URI, testMediaUri) in getDescription()
/cts/hostsidetests/classloaders/splits/apps/feature_a/src/com/android/cts/classloadersplitapp/feature_a/
DFeatureAReceiver.java34 b.putString("featureA_loaderClassName", loader.getClass().getName()); in onReceive()
35 b.putString("featureA_parentClassName", parent.getClass().getName()); in onReceive()
/cts/hostsidetests/classloaders/splits/apps/feature_b/src/com/android/cts/classloadersplitapp/feature_b/
DFeatureBReceiver.java34 b.putString("featureB_loaderClassName", loader.getClass().getName()); in onReceive()
35 b.putString("featureB_parentClassName", parent.getClass().getName()); in onReceive()
/cts/hostsidetests/appsecurity/test-apps/SettingsProviderInvalidKeyTestApp/src/com/android/cts/settingsproviderinvalidkeytestapp/
DSettingsProviderInvalidKeyTest.java31 () -> Settings.System.putString(resolver, Strings.repeat("A", 30001), "")); in testLongKeysAreRejected()
35 () -> Settings.System.putString(resolver, Strings.repeat("A", 30001), "")); in testLongKeysAreRejected()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/activities/
DActivityCreatedEventTest.java61 mSavedInstanceState.putString(STRING_KEY, STRING_VALUE); in whereSavedInstanceState_works()
77 differentInstanceState.putString(STRING_KEY, DIFFERENT_STRING_VALUE); in whereSavedInstanceState_skipsNonMatching()
78 mSavedInstanceState.putString(STRING_KEY, STRING_VALUE); in whereSavedInstanceState_skipsNonMatching()
97 mPersistentState.putString(STRING_KEY, STRING_VALUE); in wherePersistentState_works()
114 differentPersistentState.putString(STRING_KEY, DIFFERENT_STRING_VALUE); in wherePersistentState_skipsNonMatching()
115 mPersistentState.putString(STRING_KEY, STRING_VALUE); in wherePersistentState_skipsNonMatching()
/cts/tests/tests/uidmigration/DataTestApp/src/android/uidmigration/cts/
DDataProvider.kt43 mPrefs.edit().putString(prefsKey, it).commit() in checkData()
45 data.putString(RESULT_KEY, uuid) in checkData()
/cts/hostsidetests/appcloning/test-apps/AppCloningContactsSharingApps/CloneProfileAppWithLaunchableActivity/src/com/android/cts/launchable/cloneprofile/contacts/app/
DTestAccountAuthenticator.java38 mAccountBundle.putString(AccountManager.KEY_ACCOUNT_NAME, TEST_ACCOUNT_NAME); in TestAccountAuthenticator()
39 mAccountBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, TEST_ACCOUNT_TYPE); in TestAccountAuthenticator()
40 mAccountBundle.putString(AccountManager.KEY_AUTHTOKEN, TOKEN); in TestAccountAuthenticator()

12345678910>>...16