Home
last modified time | relevance | path

Searched refs:columnName (Results 1 – 10 of 10) 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/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/contacts/
DContactsShellCommandHelper.java43 public final String columnName; field in ContactsShellCommandHelper.ColumnBindings
63 this.columnName = name; in ColumnBindings()
147 .append(binding.columnName) in buildContentOperationCommand()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreMatchTest.java86 private void verifyMatch(String columnName, String queryArg) throws Exception { in verifyMatch() argument
91 values.put(columnName, 1); in verifyMatch()
93 values.put(columnName, 0); in verifyMatch()
DMediaStore_FilesTest.java413 private long queryLong(Uri uri, String columnName) { in queryLong() argument
414 try (Cursor c = mResolver.query(uri, new String[] { columnName }, null, null, null)) { in queryLong() argument
420 private String queryString(Uri uri, String columnName) { in queryString() argument
421 try (Cursor c = mResolver.query(uri, new String[] { columnName }, null, null, null)) { in queryString() argument
427 private void assertStringColumn(Uri fileUri, String columnName, String expectedValue) { in assertStringColumn() argument
428 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.java160 protected String getMediaStoreColumnValue(Uri mediaStoreUri, String columnName) in getMediaStoreColumnValue() argument
162 if (!MediaStore.Files.FileColumns.MEDIA_TYPE.equals(columnName)) { in getMediaStoreColumnValue()
184 mediaStoreUri, columnName, userId); in getMediaStoreColumnValue()
186 final String str = columnName + "="; in getMediaStoreColumnValue()
192 + columnName + " for " in getMediaStoreColumnValue()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java298 String columnName) { in verifyStringColumn() argument
299 if (expectedValues.containsKey(columnName)) { in verifyStringColumn()
300 assertEquals(expectedValues.getAsString(columnName), in verifyStringColumn()
301 cursor.getString(cursor.getColumnIndex(columnName))); in verifyStringColumn()
306 String columnName) { in verifyIntegerColumn() argument
307 if (expectedValues.containsKey(columnName)) { in verifyIntegerColumn()
308 assertEquals(expectedValues.getAsInteger(columnName).intValue(), in verifyIntegerColumn()
309 cursor.getInt(cursor.getColumnIndex(columnName))); in verifyIntegerColumn()
314 String columnName) { in verifyLongColumn() argument
315 if (expectedValues.containsKey(columnName)) { in verifyLongColumn()
[all …]
/cts/hostsidetests/appcloning/test-apps/AppCloningContactsSharingApps/CloneProfileAppWithLaunchableActivity/src/com/android/cts/launchable/cloneprofile/contacts/app/
DCloneContactsSharingTest.java104 private String getCursorValue(Cursor c, String columnName) { in getCursorValue() argument
105 return c.getString(c.getColumnIndex(columnName)); in getCursorValue()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java406 for (String columnName : projection) { in queryMediaByUriAs()
407 bundle.putString(columnName, ""); in queryMediaByUriAs()
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
DCalendarTest.java899 String columnName) { in getIntFromDatabase() argument
900 String[] projection = { columnName }; in getIntFromDatabase()