Home
last modified time | relevance | path

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

123

/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 …]
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()
DMockReceiverAbort.java37 map.putString(RESULT_EXTRAS_ABORT_KEY, RESULT_EXTRAS_ABORT_VALUE); in onReceive()
DMockReceiverFirst.java37 map.putString(RESULT_EXTRAS_FIRST_KEY, RESULT_EXTRAS_FIRST_VALUE); in onReceive()
DBroadcastReceiverTest.java179 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testOnReceiverOrdered()
181 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testOnReceiverOrdered()
207 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testAbortBroadcast()
209 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testAbortBroadcast()
DMockReceiver.java42 map.putString(RESULT_EXTRAS_ADD_KEY, RESULT_EXTRAS_ADD_VALUE); in onReceive()
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java75 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
76 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType); in addAccount()
97 result.putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); in addAccount()
126 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials()
127 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials()
151 result.putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); in confirmCredentials()
180 result.putString( in getAuthToken()
185 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
186 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
214 result.putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); in getAuthToken()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMockAccountAuthenticator.java40 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME); in createResultBundle()
41 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
42 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN); in createResultBundle()
DApplicationRestrictionsTest.java124 result.putString("empty", ""); in createBundle0()
125 result.putString("string", "text"); in createBundle0()
130 bundle.putString("bundle_string", "bundle_string"); in createBundle0()
137 bundleArray[0].putString("bundle_array_string", "bundle_array_string"); in createBundle0()
141 bundleArray[1].putString("bundle_array_string2", "bundle_array_string2"); in createBundle0()
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DStaticAccountAuthenticator.java44 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_NAME, NAME); in sAccountBundle.putString()
45 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, TYPE); in sAccountBundle.putString()
46 sAccountBundle.putString(AccountManager.KEY_AUTHTOKEN, TOKEN); in sAccountBundle.putString()
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_NameValueTableTest.java41 MyNameValueTable.putString(cr, uri, name, value); in testPutString()
78 protected static boolean putString(ContentResolver resolver, Uri uri, String name, in putString() method in Settings_NameValueTableTest.MyNameValueTable
80 return NameValueTable.putString(resolver, uri, name, value); in putString()
/cts/tests/tests/database/src/android/database/cts/
DCursorWindowTest.java93 assertTrue(window.putString("", 0, 0)); in testEmptyString()
117 cursorWindow.putString(TEST_STRING, TEST_NUMBER, 0); in testConstructors()
132 assertFalse(cursorWindow.putString(TEST_STRING, 0, 0)); in testDataStructureOperations()
140 assertFalse(cursorWindow.putString(TEST_STRING, 0, 0)); in testDataStructureOperations()
152 assertTrue(cursorWindow.putString(TEST_STRING, 0, 0)); in testDataStructureOperations()
198 assertTrue(cursorWindow.putString(Long.toString(NUMBER_LONG_INTEGER), 0, 0)); in testAccessDataValues()
212 assertTrue(cursorWindow.putString("", 0, 0)); in testAccessDataValues()
296 cursorWindow.putString(expectedString, 0, 0); in testCopyStringToBuffer()
307 cursorWindow.putString(expectedString, 0, 1); in testCopyStringToBuffer()
406 cursorWindow.putString(TEST_STRING + i, i, 1); in fillCursorTestContents()
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()
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java134 result.putString(AccountManager.KEY_ACCOUNT_NAME, AccountManagerTest.ACCOUNT_NAME); in createResultBundle()
135 result.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTest.ACCOUNT_TYPE); in createResultBundle()
136 result.putString( in createResultBundle()
222 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
223 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
234 result.putString( in getAuthToken()
/cts/tests/tests/text/src/android/text/style/cts/
DTtsSpanTest.java30 bundle.putString("argument.one", "value.one"); in setUp()
31 bundle.putString("argument.two", "value.two"); in setUp()
/cts/libs/wrappedgtest/src/
DWrappedGTestActivity.java37 outputBundle.putString("gtest", output); in sendStatus()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceInfoInstrument.java126 mBundle.putString(className, activity.getResultFilePath()); in runActivity()
128 mBundle.putString(className, errorMessage); in runActivity()
/cts/tests/tests/graphics/src/android/opengl/cts/
DCompressedTextureTest.java32 extras.putString("TextureFormat", format); in launchTest()
/cts/libs/deviceutil/src/android/cts/util/
DDeviceReportLog.java49 output.putString(CTS_RESULT_KEY, report); in deliverReportToHost()
/cts/tests/sample/src/android/sample/
DSampleDeviceActivity.java51 editor.putString(key, value); in savePreference()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionService.java54 args.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart()
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/
DMainInteractionService.java55 args.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart()
/cts/tests/tests/assist/service/src/android/voiceinteraction/service/
DMainInteractionService.java83 bundle.putString(Utils.TESTCASE_TYPE, in maybeStart()
125 extras.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in onReceive()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java95 Settings.System.putString(mContentResolver, Settings.System.TIME_12_24, "12"); in tearDown()
106 Settings.System.putString(mContentResolver, Settings.System.TIME_12_24, "24"); in test_is24HourFormat()
108 Settings.System.putString(mContentResolver, Settings.System.TIME_12_24, "12"); in test_is24HourFormat()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBluetoothChatService.java192 bundle.putString(DEVICE_NAME, device.getName()); in connected()
251 bundle.putString(TOAST, "Unable to connect device"); in connectionFailed()
263 bundle.putString(TOAST, "Device connection was lost"); in connectionLost()

123