HomeSort by relevance Sort by last modified time
    Searched refs:testCursor (Results 1 - 5 of 5) sorted by null

  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
ConversationMessageDataTest.java 36 final FakeCursor testCursor = TestDataFactory.getConversationMessageCursor();
38 testCursor.moveToFirst();
39 data.bind(testCursor);
41 assertEquals(testCursor.getAt(ConversationMessageViewColumns.STATUS, 0).equals(
43 assertEquals(testCursor.getAt(ConversationMessageViewColumns.SENDER_PROFILE_PHOTO_URI,
45 assertEquals(testCursor.getAt(ConversationMessageViewColumns.SENDER_FULL_NAME, 0),
50 final FakeCursor testCursor = TestDataFactory.getConversationMessageCursor();
52 testCursor.moveToPosition(1);
53 data.bind(testCursor);
54 assertEquals(TestDataFactory.getMessageText(testCursor, 1), data.getText())
    [all...]
ConversationParticipantsDataTest.java 29 final FakeCursor testCursor = TestDataFactory.getConversationParticipantsCursor();
31 data.bind(testCursor);
33 assertEquals(data.getParticipantListExcludingSelf().size(), testCursor.getCount());
36 assertEquals(participant2.getFirstName(), testCursor.getAt(
38 assertEquals(participant2.getSendDestination(), testCursor.getAt(
  /cts/tests/tests/database/src/android/database/cts/
DatabaseCursorTest.java 129 Cursor testCursor = mDatabase.query("test", null, null, null, null, null, null);
131 testCursor.moveToNext();
133 DatabaseUtils.cursorRowToContentValues(testCursor, cv);
135 int bCol = testCursor.getColumnIndexOrThrow("b");
136 int sCol = testCursor.getColumnIndexOrThrow("s");
137 int dCol = testCursor.getColumnIndexOrThrow("d");
138 int lCol = testCursor.getColumnIndexOrThrow("l");
139 byte[] cBlob = testCursor.getBlob(bCol);
141 assertEquals(s, testCursor.getString(sCol));
142 assertEquals((double) d, testCursor.getDouble(dCol))
    [all...]
  /packages/apps/Dialer/tests/src/com/android/dialer/list/
PhoneFavoritesTileAdapterTest.java 209 Cursor testCursor = getCursorForTest(1, 0);
210 mAdapter.setContactCursor(testCursor);
218 Cursor testCursor = getCursorForTest(1, 0);
219 mAdapter.setContactCursor(testCursor);
227 Cursor testCursor = getCursorForTest(1, 0);
228 mAdapter.setContactCursor(testCursor);
235 mAdapter.setContactCursor(testCursor);
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ContentResolverTest.java 32 import com.xtremelabs.robolectric.tester.android.database.TestCursor;
133 TestCursor cursor = new TestCursor();
135 assertThat((TestCursor) shadowContentResolver.query(null, null, null, null, null),
144 TestCursor cursor21 = new TestCursor();
145 TestCursor cursor22 = new TestCursor();
149 assertThat((TestCursor) shadowContentResolver.query(uri21, null, null, null, null),
151 assertThat((TestCursor) shadowContentResolver.query(uri22, null, null, null, null)
    [all...]

Completed in 472 milliseconds