Home
last modified time | relevance | path

Searched refs:columns (Results 1 – 25 of 54) sorted by relevance

123

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseDatabaseHelperUpgradeTest.java130 public void assertHasColumns(TableColumn[] columns) { in assertHasColumns() argument
131 for (final TableColumn column : columns) { in assertHasColumns()
139 public void assertSame(TableColumn[] columns) { in assertSame() argument
140 assertHasColumns(columns); in assertSame()
141 if (columns.length != mColumns.size()) { in assertSame()
154 public final TableColumn[] columns; field in BaseDatabaseHelperUpgradeTest.TableListEntry
157 public TableListEntry(String name, TableColumn[] columns) { in TableListEntry() argument
158 this(name, columns, /* shouldBeInNewDb = */ true); in TableListEntry()
161 public TableListEntry(String name, TableColumn[] columns, boolean shouldBeInNewDb) { in TableListEntry() argument
163 this.columns = columns; in TableListEntry()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java52 ColumnInfo[] columns = parseColumnInfo(clazz); in EntrySchema() local
54 mColumnInfo = columns; in EntrySchema()
59 if (columns != null) { in EntrySchema()
60 projection = new String[columns.length]; in EntrySchema()
61 for (int i = 0; i != columns.length; ++i) { in EntrySchema()
62 ColumnInfo column = columns[i]; in EntrySchema()
460 ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); in parseColumnInfo() local
462 parseColumnInfo(clazz, columns); in parseColumnInfo()
467 ColumnInfo[] columnList = new ColumnInfo[columns.size()]; in parseColumnInfo()
468 columns.toArray(columnList); in parseColumnInfo()
[all …]
/packages/apps/Launcher3/
Dprint_db.py55 columns = [d[0] for d in c.description]
59 return columns,rows
64 columns = [d[0] for d in c.description]
68 return columns,rows
155 columns,rows = get_favorites(conn)
158 data = [dict(zip(columns,row)) for row in rows]
199 for col in columns:
201 for i in range(0,len(columns)):
202 col = columns[i]
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeContentProvider.java42 private final String[] columns; field in FakeContentProvider.ContentOverride
46 final String[] columns, final Object[][] data) { in ContentOverride() argument
50 this.columns = columns; in ContentOverride()
89 final String[] columns, final Object[][] data) { in addOverrideData() argument
90 mOverrides.add(new ContentOverride(uri.toString(), where, args, columns, data)); in addOverrideData()
119 return new FakeCursor(projection, content.columns, content.data); in query()
/packages/apps/Launcher2/
Dprint_db.py44 columns = [d[0] for d in c.description]
48 return columns,rows
123 columns,rows = get_favorites(conn)
124 data = [dict(zip(columns,row)) for row in rows]
145 for col in columns:
147 for i in range(0,len(columns)):
148 col = columns[i]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/
DSharedImageProvider.java106 Object[] columns = new Object[projection.length]; in query() local
109 columns[i] = 0; in query()
111 columns[i] = uri; in query()
113 columns[i] = path.getName(); in query()
115 columns[i] = path.length(); in query()
118 cursor.addRow(columns); in query()
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java152 private static String buildInsertSql(String tableName, ColumnInfo[] columns) { in buildInsertSql() argument
156 for (ColumnInfo columnInfo : columns) { in buildInsertSql()
164 for (int i = 1; i < columns.length; ++i) { in buildInsertSql()
171 private static String buildUpdateSql(String tableName, ColumnInfo[] columns) { in buildUpdateSql() argument
175 for (ColumnInfo columnInfo : columns) { in buildUpdateSql()
345 private void bindColumns(SQLiteStatement statement, ColumnInfo[] columns, in bindColumns() argument
347 for (int i = 0; i < columns.length; ++i) { in bindColumns()
348 ColumnInfo columnInfo = columns[i]; in bindColumns()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCursorBackedSuggestionExtras.java61 String[] columns = getCursorColumns(cursor); in cursorContainsExtras() local
62 for (String cursorColumn : columns) { in cursorContainsExtras()
71 String[] columns = getCursorColumns(cursor); in getExtraColumns() local
72 if (columns == null) return null; in getExtraColumns()
74 for (String cursorColumn : columns) { in getExtraColumns()
DAbstractSuggestionExtras.java35 HashSet<String> columns = new HashSet<String>(); in getExtraColumnNames() local
36 columns.addAll(doGetExtraColumnNames()); in getExtraColumnNames()
38 columns.addAll(mMore.getExtraColumnNames()); in getExtraColumnNames()
40 return columns; in getExtraColumnNames()
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoDatabase.java136 protected static void createTable(SQLiteDatabase db, String table, List<String[]> columns) { in createTable() argument
140 for (String[] column : columns) { in createTable()
173 …protected static void addToTable(List<String[]> createTable, String[][] columns, String[][] constr… in addToTable() argument
174 if (columns != null) { in addToTable()
175 for (String[] column: columns) { in addToTable()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java104 SortModel(Collection<SortDimension> columns) { in SortModel() argument
105 mDimensions = new SparseArray<>(columns.size()); in SortModel()
107 for (SortDimension column : columns) { in SortModel()
426 Collection<SortDimension> columns = new ArrayList<>(size);
428 columns.add(in.readParcelable(getClass().getClassLoader()));
430 SortModel model = new SortModel(columns);
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DCoalescer.java114 String[] columns = cursor.getColumnNames(); in cursorRowToContentValues() local
115 int length = columns.length; in cursorRowToContentValues()
118 values.put(columns[i], cursor.getBlob(i)); in cursorRowToContentValues()
120 values.put(columns[i], cursor.getString(i)); in cursorRowToContentValues()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
DDatabaseAnalyzer.java91 final List<String> columns = findColumns(db, name); in findTableViewsAllowingColumns() local
93 Log.d(TAG, " Columns: " + columns); in findTableViewsAllowingColumns()
95 for (String c : columns) { in findTableViewsAllowingColumns()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DQueryService.java113 final String[] columns = projectionString.split(","); in parseProjection() local
114 if (columns.length == 0) { in parseProjection()
117 return columns; in parseProjection()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetProvider.java105 final int columns = getCellsForSize(minWidth); in getWidgetSize() local
109 " columns: " + columns); in getWidgetSize()
116 } else if (columns > 3) { in getWidgetSize()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java854 String[] columns = handleNullMessageProjection(projection); in getConversations() local
881 columns, null, "tid", in getConversations()
1037 String[] columns = handleNullMessageProjection(projection); in getMessagesByPhoneNumber() local
1039 MmsSms.TYPE_DISCRIMINATOR_COLUMN, columns, MMS_COLUMNS, in getMessagesByPhoneNumber()
1042 MmsSms.TYPE_DISCRIMINATOR_COLUMN, columns, SMS_COLUMNS, in getMessagesByPhoneNumber()
1070 String[] columns = handleNullThreadsProjection(projection); in getConversationById() local
1075 mOpenHelper.getReadableDatabase(), columns, finalSelection, in getConversationById()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DProgramDataManagerTest.java405 public FakeCursor(String[] columns, long channelId, long startTimeMs, long endTimeMs) {
406 mColumns = (columns == null) ? ALL_COLUMNS : columns;
421 Log.d(TAG, "FakeCursor(columns=" + Arrays.toString(columns)
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSuggestionCursorUtil.java223 Collection<String> columns = extras.getExtraColumnNames();
224 assertNotNull(message + ", extras columns is null at position " + i, columns);
226 "' not reported by extras at position " + i, columns.contains(extraColumn));
/packages/apps/Dialer/java/com/android/contacts/common/database/
DEmptyCursor.java32 public EmptyCursor(String[] columns) { in EmptyCursor() argument
33 this.mColumns = columns; in EmptyCursor()
/packages/apps/Contacts/src/com/android/contacts/database/
DEmptyCursor.java32 public EmptyCursor(String[] columns) { in EmptyCursor() argument
33 this.mColumns = columns; in EmptyCursor()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java748 int columns, int blockWidth, Bitmap outline) { in ImageBlockManager() argument
755 mColumns = columns; in ImageBlockManager()
1015 int columns = numColumns(mRow); in loadImages() local
1018 int needMask = ((1 << columns) - 1) in loadImages()
1028 for (int col = 0; col < columns; col++) { in loadImages()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackDBHelper.java69 protected static void createTable(SQLiteDatabase db, String table, String[][] columns) { in createTable() argument
73 for (String[] column : columns) { in createTable()
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java361 private Cursor queryResult(String[] columns, Object... values) {
366 for (int i = 0; i < values.length; i += columns.length) {
368 for (int j = 0; j < columns.length; j++) {
/packages/apps/QuickSearchBox/tests/partial/src/com/android/quicksearchbox/tests/partial/
DPartialSuggestionProvider.java65 MutableMatrixCursor(String[] columns) { in MutableMatrixCursor() argument
66 super(columns); in MutableMatrixCursor()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLossyScreenMigrationTask.java58 protected Cursor queryWorkspace(String[] columns, String where) { in queryWorkspace() argument
59 return mDb.query(Favorites.TABLE_NAME, columns, where, null, null, null, null); in queryWorkspace()

123