Home
last modified time | relevance | path

Searched refs:contentValues (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DContentQueryMapTest.java139 ContentValues contentValues = mContentQueryMap.getValues(NAME0); in testRequery() local
140 assertNotNull(contentValues); in testRequery()
141 assertEquals(VALUE0, contentValues.getAsString(DummyProvider.VALUE)); in testRequery()
143 contentValues = mContentQueryMap.getValues(NAME1); in testRequery()
144 assertNotNull(contentValues); in testRequery()
145 assertEquals(VALUE1, contentValues.getAsString(DummyProvider.VALUE)); in testRequery()
147 contentValues = mContentQueryMap.getValues(NAME2); in testRequery()
148 assertNull(contentValues); in testRequery()
158 contentValues = mContentQueryMap.getValues(NAME0); in testRequery()
159 assertNull(contentValues); in testRequery()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java164 ContentValues contentValues = new ContentValues(); in testCursorDoubleToContentValues() local
167 DatabaseUtils.cursorDoubleToContentValues(cursor, "age", contentValues, key); in testCursorDoubleToContentValues()
168 assertEquals(20.0, contentValues.getAsDouble(key)); in testCursorDoubleToContentValues()
170 DatabaseUtils.cursorDoubleToContentValues(cursor, "Error Field Name", contentValues, key); in testCursorDoubleToContentValues()
171 assertNull(contentValues.getAsDouble(key)); in testCursorDoubleToContentValues()
173 DatabaseUtils.cursorDoubleToContentValues(cursor, "name", contentValues, key); in testCursorDoubleToContentValues()
174 assertEquals(0.0, contentValues.getAsDouble(key)); in testCursorDoubleToContentValues()
184 ContentValues contentValues = new ContentValues(); in testCursorDoubleToCursorValues() local
186 DatabaseUtils.cursorDoubleToCursorValues(cursor, "age", contentValues); in testCursorDoubleToCursorValues()
187 assertEquals(20.0, contentValues.getAsDouble("age")); in testCursorDoubleToCursorValues()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactUtil.java92 final ContentValues contentValues = new ContentValues(); in newContentValues() local
98 contentValues.putNull(name); in newContentValues()
100 contentValues.put(name, (String) value); in newContentValues()
102 contentValues.put(name, (Integer) value); in newContentValues()
104 contentValues.put(name, (Long) value); in newContentValues()
110 return contentValues; in newContentValues()
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_PinnedPositionsTest.java338 private void assertValuesForContact(long contactId, ContentValues contentValues) { in assertValuesForContact() argument
340 buildUpon().appendEncodedPath(String.valueOf(contactId)).build(), contentValues); in assertValuesForContact()
350 private void assertValuesForRawContact(long rawContactId, ContentValues contentValues) { in assertValuesForRawContact() argument
352 buildUpon().appendEncodedPath(String.valueOf(rawContactId)).build(), contentValues); in assertValuesForRawContact()