Home
last modified time | relevance | path

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

/cts/tests/tests/contactsprovider/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/media/
DMediaStoreMatchTest.java88 private void verifyMatch(String columnName, String queryArg) throws Exception { in verifyMatch() argument
93 values.put(columnName, 1); in verifyMatch()
95 values.put(columnName, 0); in verifyMatch()
DMediaStore_FilesTest.java407 private long queryLong(Uri uri, String columnName) { in queryLong() argument
408 try (Cursor c = mResolver.query(uri, new String[] { columnName }, null, null, null)) { in queryLong() argument
414 private String queryString(Uri uri, String columnName) { in queryString() argument
415 try (Cursor c = mResolver.query(uri, new String[] { columnName }, null, null, null)) { in queryString() argument
421 private void assertStringColumn(Uri fileUri, String columnName, String expectedValue) { in assertStringColumn() argument
422 assertEquals(expectedValue, queryString(fileUri, columnName)); in assertStringColumn()
/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()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java159 protected String getMediaStoreColumnValue(Uri mediaStoreUri, String columnName) in getMediaStoreColumnValue() argument
161 if (!MediaStore.Files.FileColumns.MEDIA_TYPE.equals(columnName)) { in getMediaStoreColumnValue()
183 mediaStoreUri, columnName, userId); in getMediaStoreColumnValue()
185 final String str = columnName + "="; in getMediaStoreColumnValue()
191 + columnName + " for " in getMediaStoreColumnValue()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java276 String columnName) { in verifyStringColumn() argument
277 if (expectedValues.containsKey(columnName)) { in verifyStringColumn()
278 assertEquals(expectedValues.getAsString(columnName), in verifyStringColumn()
279 cursor.getString(cursor.getColumnIndex(columnName))); in verifyStringColumn()
284 String columnName) { in verifyIntegerColumn() argument
285 if (expectedValues.containsKey(columnName)) { in verifyIntegerColumn()
286 assertEquals(expectedValues.getAsInteger(columnName).intValue(), in verifyIntegerColumn()
287 cursor.getInt(cursor.getColumnIndex(columnName))); in verifyIntegerColumn()
292 String columnName) { in verifyLongColumn() argument
293 if (expectedValues.containsKey(columnName)) { in verifyLongColumn()
[all …]
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
DCalendarTest.java900 String columnName) { in getIntFromDatabase() argument
901 String[] projection = { columnName }; in getIntFromDatabase()