Lines Matching refs:cursor
88 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null);
89 assertNotNull(cursor);
90 cursor.moveToNext();
91 assertEquals(FAKE_INPUT_ID, cursor.getString(0));
92 assertNull(cursor.getString(1));
93 assertEquals(channelId, cursor.getLong(2));
98 Cursor cursor = mResolver.query(Channels.CONTENT_URI, null, null, null, null);
99 assertNotNull(cursor);
100 assertEquals(1, cursor.getCount());
108 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null);
109 assertNotNull(cursor);
110 cursor.moveToNext();
111 assertNull(cursor.getString(0));
112 assertEquals(0, cursor.getInt(0));
122 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null);
123 assertNotNull(cursor);
124 cursor.moveToNext();
125 assertEquals(FAKE_INPUT_ID, cursor.getString(0));
126 assertNull(cursor.getString(1));
127 assertEquals(channelId, cursor.getLong(2));
140 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null);
141 assertNotNull(cursor);
142 cursor.moveToNext();
143 assertEquals(FAKE_INPUT_ID, cursor.getString(0));
144 assertNull(cursor.getString(1));
145 assertEquals(channelId, cursor.getLong(2));