Home
last modified time | relevance | path

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

123

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseDatabaseHelperUpgradeTest.java129 public void assertHasColumns(TableColumn[] columns) { in assertHasColumns() argument
130 for (final TableColumn column : columns) { in assertHasColumns()
138 public void assertSame(TableColumn[] columns) { in assertSame() argument
139 assertHasColumns(columns); in assertSame()
140 if (columns.length != mColumns.size()) { in assertSame()
153 public final TableColumn[] columns; field in BaseDatabaseHelperUpgradeTest.TableListEntry
156 public TableListEntry(String name, TableColumn[] columns) { in TableListEntry() argument
157 this(name, columns, /* shouldBeInNewDb = */ true); in TableListEntry()
160 public TableListEntry(String name, TableColumn[] columns, boolean shouldBeInNewDb) { in TableListEntry() argument
162 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/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/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/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java203 private static String buildInsertSql(String tableName, ColumnInfo[] columns) { in buildInsertSql() argument
207 for (ColumnInfo columnInfo : columns) { in buildInsertSql()
215 for (int i = 1; i < columns.length; ++i) { in buildInsertSql()
222 private static String buildUpdateSql(String tableName, ColumnInfo[] columns) { in buildUpdateSql() argument
226 for (ColumnInfo columnInfo : columns) { in buildUpdateSql()
391 SQLiteStatement statement, ColumnInfo[] columns, ContentValues values) { in bindColumns() argument
392 for (int i = 0; i < columns.length; ++i) { in bindColumns()
393 ColumnInfo columnInfo = columns[i]; in bindColumns()
/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.java105 SortModel(Collection<SortDimension> columns) { in SortModel() argument
106 mDimensions = new SparseArray<>(columns.size()); in SortModel()
108 for (SortDimension column : columns) { in SortModel()
430 Collection<SortDimension> columns = new ArrayList<>(size);
432 columns.add(in.readParcelable(getClass().getClassLoader()));
434 SortModel model = new SortModel(columns);
/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/apps/TV/src/com/android/tv/util/
DTvProviderUtils.java173 String[] columns = result.getStringArray(TvContract.EXTRA_EXISTING_COLUMN_NAMES); in getExistingColumns() local
174 if (columns != null) { in getExistingColumns()
175 return new HashSet<>(Arrays.asList(columns)); in getExistingColumns()
/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/Dialer/java/com/android/contacts/common/database/
DEmptyCursor.java32 public EmptyCursor(String[] columns) { in EmptyCursor() argument
33 this.mColumns = columns; in EmptyCursor()
/packages/apps/TV/partner_support/g3doc/
DSeriesIdColumnForPartners.md16 * [Filter out non-existing customized columns in
19columns](https://partner-android.googlesource.com/platform/packages/providers/TvProvider/+/cda6788…
/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));
DMockSuggestionProviderCursor.java30 public MockSuggestionProviderCursor(String[] columns) { in MockSuggestionProviderCursor() argument
31 mColumns = columns; in MockSuggestionProviderCursor()
/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/Launcher3/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java77 public Cursor query(String[] columns, String selection, String[] selectionArgs) { in query() argument
79 mTableName, columns, selection, selectionArgs, null, null, null); in query()
/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/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/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java362 private Cursor queryResult(String[] columns, Object... values) {
367 for (int i = 0; i < values.length; i += columns.length) {
369 for (int j = 0; j < columns.length; j++) {
/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()

123