Lines Matching refs:rewritten
58 Cursor rewritten = new EnterpriseContactsCursorWrapper(c, projection,
61 assertEquals(0, rewritten.getCount());
62 assertEquals(projection.length, rewritten.getColumnCount());
179 rewritten = new EnterpriseContactsCursorWrapper(c, projection, new int[] {0, 1}, null);
180 assertEquals(5, rewritten.getCount());
181 assertEquals(projection.length, rewritten.getColumnCount());
183 rewritten.moveToFirst();
187 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts.
188 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts.
189 assertEquals(null, rewritten.getString(column++));
190 assertEquals(null, rewritten.getString(column++));
191 assertEquals(null, rewritten.getString(column++));
192 assertEquals(null, rewritten.getString(column++));
193 assertEquals(null, rewritten.getString(column++));
194 assertEquals(null, rewritten.getString(column++));
195 assertEquals(null, rewritten.getString(column++));
196 assertEquals(null, rewritten.getString(column++));
197 assertEquals(null, rewritten.getString(column++));
198 assertEquals(null, rewritten.getString(column++));
199 assertEquals(null, rewritten.getString(column++));
200 assertEquals(null, rewritten.getString(column++));
201 assertEquals(null, rewritten.getString(column++));
202 assertEquals(null, rewritten.getString(column++));
203 assertEquals(null, rewritten.getString(column++));
204 assertEquals(null, rewritten.getString(column++));
205 assertEquals(null, rewritten.getString(column++));
206 assertEquals(null, rewritten.getString(column++));
210 rewritten.moveToNext();
212 assertEquals(1000000010L, rewritten.getLong(column++)); // With offset.
213 assertEquals(1000000010L, rewritten.getLong(column++)); // With offset.
214 assertEquals("c-key", rewritten.getString(column++));
215 assertEquals("name", rewritten.getString(column++));
216 assertEquals(123, rewritten.getInt(column++));
217 assertEquals(456, rewritten.getInt(column++));
218 assertEquals(1, rewritten.getInt(column++));
219 assertEquals(1, rewritten.getInt(column++));
220 assertEquals(1, rewritten.getInt(column++));
221 assertEquals(null, rewritten.getString(column++)); // photo file id
222 assertEquals(null, rewritten.getString(column++)); // photo id
224 rewritten.getString(column++));
226 rewritten.getString(column++));
227 assertEquals(null, rewritten.getString(column++)); // ringtone
228 assertEquals(1, rewritten.getInt(column++));
229 assertEquals(1, rewritten.getInt(column++));
230 assertEquals("1234", rewritten.getString(column++));
231 assertEquals(1, rewritten.getInt(column++));
232 assertEquals("label", rewritten.getString(column++));
233 assertEquals("+1234", rewritten.getString(column++));
236 rewritten.moveToNext();
238 rewritten.getString(11));
240 rewritten.getString(12));
243 rewritten.moveToNext();
245 rewritten.getString(11));
247 rewritten.getString(12));
251 rewritten.moveToNext();
253 rewritten.getString(11));
255 rewritten.getString(12));