Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java81 prefs.edit().putString("foo", "bar").commit(); in testCommitCreatesFiles()
101 prefs.edit().putString("test-key", "test-value").commit(); in testPutNullRemovesKey()
104 SharedPreferences.Editor editor = prefs.edit().putString("test-key", null); in testPutNullRemovesKey()
168 editor.putString("foo", "bar"); in testRedundantString()
171 editor.putString("foo", "bar"); in testRedundantString()
179 editor.putString("foo", "bar"); in testNonRedundantString()
182 editor.putString("foo", "baz"); in testNonRedundantString()
204 editor.putString("foo", "bar"); in testNonRedundantClear()
218 editor.putString("foo", "bar"); in testRedundantRemove()
229 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 …]
DAccountManagerUnaffiliatedAuthenticatorTests.java62 SESSION_BUNDLE.putString(SESSION_DATA_NAME_1, SESSION_DATA_VALUE_1); in setUp()
356 sessionBundle.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessiontWithStartAddAccountSessionImpl()
357 sessionBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, in testDefaultFinishSessiontWithStartAddAccountSessionImpl()
360 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessiontWithStartAddAccountSessionImpl()
406 sessionBundle.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessionWithCustomStartUpdateCredentialsSessionImpl()
407 sessionBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, in testDefaultFinishSessionWithCustomStartUpdateCredentialsSessionImpl()
410 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessionWithCustomStartUpdateCredentialsSessionImpl()
489 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in createOptionsWithAccountName()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiScreenLoginTest.java83 clientState1.putString("first", "one");
84 clientState1.putString("last", "one");
115 clientState2.putString("second", "two");
116 clientState2.putString("last", "two");
155 clientState1.putString("first", "one");
156 clientState1.putString("last", "one");
241 clientState1.putString("first", "one");
242 clientState1.putString("last", "one");
269 clientState2.putString("second", "two");
270 clientState2.putString("last", "two");
/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/tests/tests/database/src/android/database/cts/
DAbstractWindowedCursorTest.java61 assertTrue(mWindow.putString(str, ROW_INDEX0, COLUMN_INDEX0)); in testIsNull()
74 assertTrue(mWindow.putString(str, ROW_INDEX0, COLUMN_INDEX0)); in testIsBlob()
99 assertTrue(mWindow.putString(str, ROW_INDEX0, COLUMN_INDEX0)); in testGetString()
168 assertTrue(mWindow.putString("", ROW_INDEX0, COLUMN_INDEX0)); in testGetBlob()
185 assertTrue(mWindow.putString(TEST_STRING, ROW_INDEX0, COLUMN_INDEX0)); in testCopyStringToBuffer()
186 assertTrue(mWindow.putString("", ROW_INDEX0, COLUMN_INDEX1)); in testCopyStringToBuffer()
DCursorWindowTest.java112 assertTrue(window.putString("", 0, 0)); in testEmptyString()
137 cursorWindow.putString(TEST_STRING, TEST_NUMBER, 0); in testConstructors()
155 assertFalse(cursorWindow.putString(TEST_STRING, 0, 0)); in testDataStructureOperations()
163 assertFalse(cursorWindow.putString(TEST_STRING, 0, 0)); in testDataStructureOperations()
175 assertTrue(cursorWindow.putString(TEST_STRING, 0, 0)); in testDataStructureOperations()
222 assertTrue(cursorWindow.putString(Long.toString(NUMBER_LONG_INTEGER), 0, 0)); in testAccessDataValues()
236 assertTrue(cursorWindow.putString("", 0, 0)); in testAccessDataValues()
321 cursorWindow.putString(expectedString, 0, 0); in testCopyStringToBuffer()
332 cursorWindow.putString(expectedString, 0, 1); in testCopyStringToBuffer()
497 cursorWindow.putString(TEST_STRING + i, i, 1); in fillCursorTestContents()
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/
DCtsDownloadService.java153 b.putString(METHOD_NAME, METHOD_INITIALIZE);
187 b.putString(METHOD_NAME, METHOD_REQUEST_UPDATE_FILE_SERVICES);
220 b.putString(METHOD_NAME, METHOD_SET_TEMP_FILE_ROOT);
222 b.putString(ARGUMENT_ROOT_DIRECTORY_PATH, rootDirectoryPath);
245 b.putString(METHOD_NAME, METHOD_CLOSE);
253 b.putString(METHOD_NAME, METHOD_GET_DOWNLOAD_STATUS);
263 b.putString(METHOD_NAME, METHOD_ADD_SERVICE_ANNOUNCEMENT);
273 b.putString(METHOD_NAME, METHOD_CANCEL_DOWNLOAD);
295 b.putString(METHOD_NAME, METHOD_RESET_DOWNLOAD_KNOWLEDGE);
394 b.putString(METHOD_NAME,
/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/telecom/src/android/telecom/cts/
DCallDetailsTest.java477 exampleExtras.putString(Connection.EXTRA_CALL_SUBJECT, TEST_SUBJECT); in testExtrasPropagation()
478 exampleExtras.putString(Connection.EXTRA_CHILD_ADDRESS, TEST_CHILD_NUMBER); in testExtrasPropagation()
479 exampleExtras.putString(Connection.EXTRA_LAST_FORWARDED_NUMBER, TEST_FORWARDED_NUMBER); in testExtrasPropagation()
507 exampleExtras.putString(Connection.EXTRA_CALL_SUBJECT, TEST_SUBJECT); in testExtrasBlocking()
508 exampleExtras.putString(TEST_INVALID_EXTRA_KEY, "Secrets!"); in testExtrasBlocking()
509 exampleExtras.putString(Connection.EXTRA_SIP_INVITE, "Sip headers!!"); in testExtrasBlocking()
513 exampleExtras.putString("oi", "5551212"); in testExtrasBlocking()
514 exampleExtras.putString("cna", "Joe"); in testExtrasBlocking()
545 testBundle.putString(TEST_EXTRA_KEY, TEST_SUBJECT); in testConnectionPutExtras()
624 testBundle.putString(TEST_EXTRA_KEY, TEST_SUBJECT); in testCallPutExtras()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DStaticAccountAuthenticator.java42 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_NAME, NAME); in sAccountBundle.putString()
43 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, TYPE); in sAccountBundle.putString()
44 sAccountBundle.putString(AccountManager.KEY_AUTHTOKEN, TOKEN); in sAccountBundle.putString()
/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/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_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/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/tests/tests/media/src/android/media/cts/
DMediaController2Test.java79 resultData.putString(SESSION_RESULT_KEY, SESSION_RESULT_VALUE); in resultData.putString()
133 mExtras.putString(TEST_KEY, TEST_VALUE); in setUp()
311 commandExtra.putString(commandExtraKey, commandExtraValue); in testCallback_onSessionCommand()
317 commandArg.putString(commandArgKey, commandArgValue); in testCallback_onSessionCommand()
344 commandExtra.putString(commandExtraKey, commandExtraValue); in testCallback_onCommandResult()
350 commandArg.putString(commandArgKey, commandArgValue); in testCallback_onCommandResult()
377 commandExtra.putString(commandExtraKey, commandExtraValue); in testCancelSessionCommand()
383 commandArg.putString(commandArgKey, commandArgValue); in testCancelSessionCommand()
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_NameValueTableTest.java70 MyNameValueTable.putString(cr, uri, name, value); in testPutString()
101 protected static boolean putString(ContentResolver resolver, Uri uri, String name, in putString() method in Settings_NameValueTableTest.MyNameValueTable
103 return NameValueTable.putString(resolver, uri, name, value); in putString()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DApplicationRestrictionsTest.java236 result.putString("empty", ""); in createBundle0()
237 result.putString("string", "text"); in createBundle0()
242 bundle.putString("bundle_string", "bundle_string"); in createBundle0()
249 bundleArray[0].putString("bundle_array_string", "bundle_array_string"); in createBundle0()
253 bundleArray[1].putString("bundle_array_string2", "bundle_array_string2"); in createBundle0()
/cts/tests/vr/src/android/vr/cts/
DVrSetFIFOThreadTest.java60 Settings.Secure.putString(mContext.getContentResolver(), in tearDown()
78 Settings.Secure.putString(mContext.getContentResolver(), in testSetVrThreadAPISuccess()
102 Settings.Secure.putString(mContext.getContentResolver(), in testSetVrThreadAPIFailure()
/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()
/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()

1234567