Home
last modified time | relevance | path

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

12345678910

/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/tests/content/src/android/content/cts/
DSharedPreferencesTest.java79 prefs.edit().putString("foo", "bar").commit(); in testCommitCreatesFiles()
99 prefs.edit().putString("test-key", "test-value").commit(); in testPutNullRemovesKey()
102 SharedPreferences.Editor editor = prefs.edit().putString("test-key", null); in testPutNullRemovesKey()
166 editor.putString("foo", "bar"); in testRedundantString()
169 editor.putString("foo", "bar"); in testRedundantString()
177 editor.putString("foo", "bar"); in testNonRedundantString()
180 editor.putString("foo", "baz"); in testNonRedundantString()
202 editor.putString("foo", "bar"); in testNonRedundantClear()
216 editor.putString("foo", "bar"); in testRedundantRemove()
227 prefs.edit().putString("foo", "bar").commit(); in testRedundantCommitWritesFileIfNotAlreadyExisting()
[all …]
DBroadcastReceiverTest.java194 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPackage()
196 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverPackage()
222 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverComponent()
224 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverComponent()
251 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPermission()
253 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverPermission()
278 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testNoManifestReceiver()
280 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testNoManifestReceiver()
309 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testAbortBroadcast()
311 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testAbortBroadcast()
DMockAccountAuthenticator.java42 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME); in createResultBundle()
43 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
44 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN); in createResultBundle()
/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/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()
236 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
237 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
248 result.putString( in getAuthToken()
355 result.putString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN, in startAddAccountSession()
357 result.putString(AccountManager.KEY_PASSWORD, AccountManagerTest.ACCOUNT_PASSWORD); in startAddAccountSession()
358 result.putString(AccountManager.KEY_AUTHTOKEN, in startAddAccountSession()
409 result.putString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN, in startUpdateCredentialsSession()
[all …]
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DPersistableBundleKeyQueryHelperTest.java51 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_meetsRestriction_returnsTrue()
62 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse()
74 mPersistableBundle2.putString(KEY2, STRING_VALUE); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue()
97 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_existsRestriction_meetsRestriction_returnsTrue()
130 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_doesNotExistRestriction_doesNotMeetRestriction_returnsFalse()
DBundleQueryHelperTest.java49 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue()
60 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse()
71 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
DPersistableBundleQueryHelperTest.java48 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue()
59 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse()
70 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
/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/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/
DGlobalSettingsTest.java207 TestApis.settings().global().putString(KEY, STRING_VALUE); in putString_putsStringIntoGlobalSettingsOnInstrumentedUser()
216 TestApis.settings().global().putString(sContext.getContentResolver(), KEY, STRING_VALUE); in putStringWithContentResolver_putsStringIntoGlobalSettings()
226 TestApis.settings().global().putString( in putStringWithContentResolver_preS_throwsException()
232 TestApis.settings().global().putString( in putStringWithUser_instrumentedUser_putsStringIntoGlobalSettings()
243 TestApis.settings().global().putString(sDeviceState.secondaryUser(), KEY, STRING_VALUE); in putStringWithUser_differentUser_putsStringIntoGlobalSettings()
258 () -> TestApis.settings().global().putString(sDeviceState.secondaryUser(), KEY, in putStringWithUser_differentUser_preS_throwsException()
264 TestApis.settings().global().putString(KEY, STRING_VALUE); in getString_getsStringFromGlobalSettingsOnInstrumentedUser()
272 TestApis.settings().global().putString( in getIntWithContentResolver_getsStringFromGlobalSettings()
282 TestApis.settings().global().putString(KEY, STRING_VALUE); in getStringWithUser_instrumentedUser_getsStringFromGlobalSettings()
292 TestApis.settings().global().putString(sDeviceState.secondaryUser(), KEY, STRING_VALUE); in getStringWithUser_differentUser_getsStringFromGlobalSettings()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/activities/
DActivityCreatedEventTest.java59 mSavedInstanceState.putString(STRING_KEY, STRING_VALUE); in whereSavedInstanceState_works()
75 differentInstanceState.putString(STRING_KEY, DIFFERENT_STRING_VALUE); in whereSavedInstanceState_skipsNonMatching()
76 mSavedInstanceState.putString(STRING_KEY, STRING_VALUE); in whereSavedInstanceState_skipsNonMatching()
95 mPersistentState.putString(STRING_KEY, STRING_VALUE); in wherePersistentState_works()
112 differentPersistentState.putString(STRING_KEY, DIFFERENT_STRING_VALUE); in wherePersistentState_skipsNonMatching()
113 mPersistentState.putString(STRING_KEY, STRING_VALUE); in wherePersistentState_skipsNonMatching()
/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/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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/
DGlobalSettings.java91 public void putString(ContentResolver contentResolver, String key, String value) { in putString() method in GlobalSettings
95 Settings.Global.putString(contentResolver, key, value); in putString()
108 public void putString(UserReference user, String key, String value) { in putString() method in GlobalSettings
110 putString(key, value); in putString()
114 putString(sTestApis.context().androidContextAsUser(user).getContentResolver(), key, value); in putString()
122 public void putString(String key, String value) { in putString() method in GlobalSettings
124 Settings.Global.putString( in putString()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapDumper.java129 report.putString(KEY_PREFIX + TYPE_IDEAL_RENDERING, bypassContentProvider(idealFile)); in dumpBitmaps()
130 report.putString(KEY_PREFIX + TYPE_TESTED_RENDERING, bypassContentProvider(testedFile)); in dumpBitmaps()
131 report.putString(KEY_PREFIX + TYPE_VISUALIZER_RENDERING, in dumpBitmaps()
145 report.putString(KEY_PREFIX + TYPE_TESTED_RENDERING, bypassContentProvider(testedFile)); in dumpBitmaps()
146 report.putString(KEY_PREFIX + TYPE_VISUALIZER_RENDERING, in dumpBitmaps()
159 report.putString(KEY_PREFIX + TYPE_SINGULAR, bypassContentProvider(capture)); in dumpBitmap()
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DMockAccountAuthenticator.java42 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME); in createResultBundle()
43 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
44 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN); in createResultBundle()
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DTestAppAccountAuthenticator.java54 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME); in createResultBundle()
55 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
56 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN); in createResultBundle()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DAccountAuthenticator.java48 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME); in createAuthTokenBundle()
49 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createAuthTokenBundle()
50 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN); in createAuthTokenBundle()
58 result.putString(KEY_ACCOUNT_SECRET, ACCOUNT_SECRET); in createAccountSecretBundle()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerRequestPinTest.java78 extras.putString(Constants.EXTRA_REPLY_ACTION, replyAction); in testRequestPinShortcut()
79 extras.putString(Constants.LABEL, "label1"); in testRequestPinShortcut()
146 extras.putString(Constants.EXTRA_REPLY_ACTION, replyAction); in testRequestPinShortcut_multiLaunchers()
147 extras.putString(Constants.LABEL, "label1"); in testRequestPinShortcut_multiLaunchers()
206 extras.putString(Constants.EXTRA_REPLY_ACTION, replyAction); in testRequestPinShortcut_multiLaunchers_withDynamic()
207 extras.putString(Constants.LABEL, "label1"); in testRequestPinShortcut_multiLaunchers_withDynamic()
256 extras.putString(Constants.EXTRA_REPLY_ACTION, replyAction); in testRequestPinShortcut_multiLaunchers_withDynamic()
257 extras.putString(Constants.LABEL, "label1"); in testRequestPinShortcut_multiLaunchers_withDynamic()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBundleUtils.java39 ret.putString(key, null); in makeBundle()
48 ret.putString(key, (String) value); in makeBundle()
/cts/tests/tests/telephony/TestSmsApp22/src/android/telephony/cts/sms23/
DMainActivity.java40 result.putString("class", getClass().getName()); in onCreate()
42 result.putString("exceptionMessage", in onCreate()

12345678910