Home
last modified time | relevance | path

Searched refs:colCount (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DResourceCursorTreeAdapterTest.java162 private Cursor createTestCursor(int colCount, int rowCount) { in createTestCursor() argument
163 String[] columns = new String[colCount + 1]; in createTestCursor()
164 for (int i = 0; i < colCount; i++) { in createTestCursor()
167 columns[colCount] = "_id"; in createTestCursor()
170 Object[] row = new Object[colCount + 1]; in createTestCursor()
172 for (int j = 0; j < colCount; j++) { in createTestCursor()
173 row[j] = "" + rowCount + "" + colCount; in createTestCursor()
175 row[colCount] = i; in createTestCursor()
DResourceCursorAdapterTest.java170 private Cursor createTestCursor(int colCount, int rowCount) { in createTestCursor() argument
171 String[] columns = new String[colCount + 1]; in createTestCursor()
172 for (int i = 0; i < colCount; i++) { in createTestCursor()
175 columns[colCount] = "_id"; in createTestCursor()
178 Object[] row = new Object[colCount + 1]; in createTestCursor()
180 for (int j = 0; j < colCount; j++) { in createTestCursor()
183 row[colCount] = i; in createTestCursor()
DSimpleCursorTreeAdapterTest.java200 private Cursor createTestCursor(int colCount, int rowCount, String prefix) { in createTestCursor() argument
201 String[] columns = new String[colCount + 1]; in createTestCursor()
202 for (int i = 0; i < colCount; i++) { in createTestCursor()
205 columns[colCount] = "_id"; in createTestCursor()
208 Object[] row = new Object[colCount + 1]; in createTestCursor()
210 for (int j = 0; j < colCount; j++) { in createTestCursor()
213 row[colCount] = i; in createTestCursor()
DSimpleCursorAdapterTest.java423 private Cursor createTestCursor(int colCount, int rowCount) { in createTestCursor() argument
424 String[] columns = new String[colCount + 1]; in createTestCursor()
425 for (int i = 0; i < colCount; i++) { in createTestCursor()
428 columns[colCount] = "_id"; in createTestCursor()
431 Object[] row = new Object[colCount + 1]; in createTestCursor()
433 for (int j = 0; j < colCount; j++) { in createTestCursor()
436 row[colCount] = i; in createTestCursor()
DSimpleExpandableListAdapterTest.java440 private ArrayList<HashMap<String, String>> createTestList(int colCount, int rowCount, in createTestList() argument
443 String[] columns = new String[colCount]; in createTestList()
444 for (int i = 0; i < colCount; i++) { in createTestList()
450 for (int j = 0; j < colCount; j++) { in createTestList()
DSimpleAdapterTest.java406 private ArrayList<HashMap<String, String>> createTestList(int colCount, int rowCount) { in createTestList() argument
408 String[] columns = new String[colCount]; in createTestList()
409 for (int i = 0; i < colCount; i++) { in createTestList()
415 for (int j = 0; j < colCount; j++) { in createTestList()
/cts/tests/tests/database/src/android/database/cts/
DAbstractCursorTest.java574 int colCount = columnNames.length; in TestAbstractCursor() local
578 for (int i = 0; i < colCount; ++i) { in TestAbstractCursor()
587 mColumnNames = new String[colCount + 1]; in TestAbstractCursor()
589 mColumnNames[colCount] = "_id"; in TestAbstractCursor()