Home
last modified time | relevance | path

Searched refs:columnName (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_TestDataBuilder.java198 public boolean isNull(String columnName) { in isNull() argument
199 return mCursor.isNull(mCursor.getColumnIndex(columnName)); in isNull()
202 public long getLong(String columnName) { in getLong() argument
203 return mCursor.getLong(mCursor.getColumnIndex(columnName)); in getLong()
206 public String getString(String columnName) { in getString() argument
207 return mCursor.getString(mCursor.getColumnIndex(columnName)); in getString()
210 public void assertColumn(String columnName, long value) { in assertColumn() argument
211 assertEquals(value, mCursor.getLong(getColumnIndex(columnName))); in assertColumn()
214 public void assertColumn(String columnName, String value) { in assertColumn() argument
215 assertEquals(value, mCursor.getString(getColumnIndex(columnName))); in assertColumn()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_FilesTest.java324 private long queryLong(Uri uri, String columnName) { in queryLong() argument
325 try (Cursor c = mResolver.query(uri, new String[] { columnName }, null, null, null)) { in queryLong() argument
331 private String queryString(Uri uri, String columnName) { in queryString() argument
332 try (Cursor c = mResolver.query(uri, new String[] { columnName }, null, null, null)) { in queryString() argument
338 private void assertStringColumn(Uri fileUri, String columnName, String expectedValue) { in assertStringColumn() argument
339 assertEquals(expectedValue, queryString(fileUri, columnName)); in assertStringColumn()
DCalendarTest.java900 String columnName) { in getIntFromDatabase() argument
901 String[] projection = { columnName }; in getIntFromDatabase()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java140 protected String getMediaStoreColumnValue(Uri mediaStoreUri, String columnName) in getMediaStoreColumnValue() argument
142 if (!MediaStore.Files.FileColumns.MEDIA_TYPE.equals(columnName)) { in getMediaStoreColumnValue()
164 mediaStoreUri, columnName, userId); in getMediaStoreColumnValue()
166 final String str = columnName + "="; in getMediaStoreColumnValue()
172 + columnName + " for " in getMediaStoreColumnValue()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java271 String columnName) { in verifyStringColumn() argument
272 if (expectedValues.containsKey(columnName)) { in verifyStringColumn()
273 assertEquals(expectedValues.getAsString(columnName), in verifyStringColumn()
274 cursor.getString(cursor.getColumnIndex(columnName))); in verifyStringColumn()
279 String columnName) { in verifyIntegerColumn() argument
280 if (expectedValues.containsKey(columnName)) { in verifyIntegerColumn()
281 assertEquals(expectedValues.getAsInteger(columnName).intValue(), in verifyIntegerColumn()
282 cursor.getInt(cursor.getColumnIndex(columnName))); in verifyIntegerColumn()
287 String columnName) { in verifyLongColumn() argument
288 if (expectedValues.containsKey(columnName)) { in verifyLongColumn()
[all …]
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DSmsTestHelper.java62 public void assertSmsColumnEquals(String columnName, Uri uri, String expectedValue) { in assertSmsColumnEquals() argument
68 assertThat(cursor.getString(cursor.getColumnIndex(columnName))).isEqualTo(expectedValue); in assertSmsColumnEquals()