Home
last modified time | relevance | path

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

/cts/tests/tests/database/src/android/database/cts/
DDatabaseCursorTest.java129 Cursor testCursor = mDatabase.query("test", null, null, null, null, null, null); in testBlob() local
131 testCursor.moveToNext(); in testBlob()
133 DatabaseUtils.cursorRowToContentValues(testCursor, cv); in testBlob()
135 int bCol = testCursor.getColumnIndexOrThrow("b"); in testBlob()
136 int sCol = testCursor.getColumnIndexOrThrow("s"); in testBlob()
137 int dCol = testCursor.getColumnIndexOrThrow("d"); in testBlob()
138 int lCol = testCursor.getColumnIndexOrThrow("l"); in testBlob()
139 byte[] cBlob = testCursor.getBlob(bCol); in testBlob()
141 assertEquals(s, testCursor.getString(sCol)); in testBlob()
142 assertEquals((double) d, testCursor.getDouble(dCol)); in testBlob()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java365 final Cursor testCursor = InstrumentationRegistry in testStartNormal() local
372 assertThat(testCursor, is(notNullValue())); in testStartNormal()
373 assertThat(testCursor.getCount(), is(1)); in testStartNormal()
374 assertThat(testCursor.getColumnCount(), is(2)); in testStartNormal()
375 assertThat(testCursor.moveToFirst(), is(true)); in testStartNormal()
376 assertThat(testCursor.getInt(0), is(1)); in testStartNormal()
377 assertThat(testCursor.getString(1), is("NormalProvider")); in testStartNormal()
502 final Cursor testCursor = contentResolver.query( in testStartEphemeral() local
508 assertThat(testCursor, is(nullValue())); in testStartEphemeral()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java494 final Cursor testCursor = InstrumentationRegistry in testStartNormal() local
501 assertThat(testCursor, is(nullValue())); in testStartNormal()
703 final Cursor testCursor = InstrumentationRegistry in testStartExposed10() local
710 assertThat(testCursor, is(notNullValue())); in testStartExposed10()
711 assertThat(testCursor.getCount(), is(1)); in testStartExposed10()
712 assertThat(testCursor.getColumnCount(), is(2)); in testStartExposed10()
713 assertThat(testCursor.moveToFirst(), is(true)); in testStartExposed10()
714 assertThat(testCursor.getInt(0), is(1)); in testStartExposed10()
715 assertThat(testCursor.getString(1), is("ExposedProvider")); in testStartExposed10()
1032 final Cursor testCursor = InstrumentationRegistry in testStartEphemeral() local
[all …]
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreNotificationTest.java121 public void testCursor() throws Exception { in testCursor() method in MediaStoreNotificationTest