Home
last modified time | relevance | path

Searched refs:columns (Results 1 – 25 of 75) 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/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastListActivityTest.java268 List<String> columns = mColumnCaptor.getAllValues(); in testOnContextItemSelectedViewDetails() local
269 assertTrue(contains(columns, PLMN)); in testOnContextItemSelectedViewDetails()
270 assertTrue(contains(columns, LAC)); in testOnContextItemSelectedViewDetails()
271 assertTrue(contains(columns, CID)); in testOnContextItemSelectedViewDetails()
272 assertTrue(contains(columns, ETWS_WARNING_TYPE)); in testOnContextItemSelectedViewDetails()
273 assertTrue(contains(columns, CMAS_MESSAGE_CLASS)); in testOnContextItemSelectedViewDetails()
274 assertTrue(contains(columns, CMAS_CATEGORY)); in testOnContextItemSelectedViewDetails()
275 assertTrue(contains(columns, CMAS_RESPONSE_TYPE)); in testOnContextItemSelectedViewDetails()
276 assertTrue(contains(columns, CMAS_SEVERITY)); in testOnContextItemSelectedViewDetails()
277 assertTrue(contains(columns, CMAS_URGENCY)); in testOnContextItemSelectedViewDetails()
[all …]
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dembedding_lookup_v1_3.mod.py19 columns = 2 variable
22 actual_values = [x for x in range(rows * columns * features)]
24 for j in range(columns):
26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100.
31 "{%d, %d, %d}" % (rows, columns, features))
33 "{%d, %d, %d}" % (lookups, columns, features))
Dembedding_lookup_quant8_signed.mod.py19 columns = 2 variable
22 actual_values = [x for x in range(rows * columns * features)]
24 for j in range(columns):
26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100.
31 "{%d, %d, %d}" % (rows, columns, features))
33 "{%d, %d, %d}" % (lookups, columns, features))
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
Dembedding_lookup.mod.py19 columns = 2 variable
22 actual_values = [x for x in range(rows * columns * features)]
24 for j in range(columns):
26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100.
30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features))
31 output = Output("output", "TENSOR_FLOAT32", "{%d, %d, %d}" % (lookups, columns, features))
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/
Dembedding_lookup_relaxed.mod.py19 columns = 2 variable
22 actual_values = [x for x in range(rows * columns * features)]
24 for j in range(columns):
26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100.
30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features))
31 output = Output("output", "TENSOR_FLOAT32", "{%d, %d, %d}" % (lookups, columns, features))
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dembedding_lookup_v1_2.mod.py19 columns = 2 variable
22 actual_values = [x for x in range(rows * columns * features)]
24 for j in range(columns):
26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100.
31 "{%d, %d, %d}" % (rows, columns, features))
33 "{%d, %d, %d}" % (lookups, columns, features))
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java195 private static String buildCreateSchedulesSql(String tableName, ColumnInfo[] columns) { in buildCreateSchedulesSql() argument
198 columns, in buildCreateSchedulesSql()
207 ColumnInfo[] columns, in buildCreateSql() argument
212 for (ColumnInfo columnInfo : columns) { in buildCreateSql()
236 private static String buildSelectSql(ColumnInfo[] columns) { in buildSelectSql() argument
240 for (ColumnInfo columnInfo : columns) { in buildSelectSql()
250 private static String buildInsertSql(String tableName, ColumnInfo[] columns) { in buildInsertSql() argument
254 for (ColumnInfo columnInfo : columns) { in buildInsertSql()
262 for (int i = 1; i < columns.length; ++i) { in buildInsertSql()
269 private static String buildUpdateSql(String tableName, ColumnInfo[] columns) { in buildUpdateSql() argument
[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/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastDatabaseHelperTest.java65 String[] columns = cursor.getColumnNames(); in dataBaseHelper_create() local
66 Log.d(TAG, "cellbroadcastservice columns before upgrade: " + Arrays.toString(columns)); in dataBaseHelper_create()
67 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.SLOT_INDEX)); in dataBaseHelper_create()
68 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.LOCATION_CHECK_TIME)); in dataBaseHelper_create()
69 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.MESSAGE_DISPLAYED)); in dataBaseHelper_create()
70 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.DATA_CODING_SCHEME)); in dataBaseHelper_create()
71 assertFalse(Arrays.asList(columns).contains("etws_is_primary")); in dataBaseHelper_create()
/packages/apps/Launcher3/tools/
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/services/Mtp/tests/src/com/android/mtp/
DMtpDatabaseTest.java322 final String[] columns = new String[] { in testRestoreIdForRootDocuments() local
337 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments()
355 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments()
370 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments()
385 final String[] columns = new String[] { in testRestoreIdForChildDocuments() local
407 final Cursor cursor = mDatabase.queryChildDocuments(columns, "2"); in testRestoreIdForChildDocuments()
420 final Cursor cursor = mDatabase.queryChildDocuments(columns, "2"); in testRestoreIdForChildDocuments()
438 final String[] columns = new String[] { in testRestoreIdForDifferentDevices() local
464 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForDifferentDevices()
510 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForDifferentDevices()
[all …]
/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/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/TV/tests/robotests/src/com/android/tv/util/
DTvProviderUtilsTest.java99 Set<String> columns = in testGetExistingColumns_noException() local
102 assertThat(columns).containsExactly("column 1", "column 2"); in testGetExistingColumns_noException()
110 Set<String> columns = in testGetExistingColumns_throwsException() local
113 assertThat(columns).isEmpty(); in testGetExistingColumns_throwsException()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DDatabaseUtils.java260 final String[] columns = queryArgs.getStringArray(QUERY_ARG_GROUP_COLUMNS); in resolveGroupBy() local
261 if (columns != null && columns.length != 0) { in resolveGroupBy()
262 String groupBy = TextUtils.join(", ", columns); in resolveGroupBy()
274 final String[] columns = queryArgs.getStringArray(QUERY_ARG_SORT_COLUMNS); in resolveSortOrder() local
275 if (columns != null && columns.length != 0) { in resolveSortOrder()
276 String sortOrder = TextUtils.join(", ", columns); in resolveSortOrder()
DSQLiteQueryBuilder.java402 boolean distinct, String tables, String[] columns, String where, in buildQueryString() argument
415 if (columns != null && columns.length != 0) { in buildQueryString()
416 appendColumns(query, columns); in buildQueryString()
442 public static void appendColumns(StringBuilder s, String[] columns) { in appendColumns() argument
443 int n = columns.length; in appendColumns()
446 String column = columns[i]; in appendColumns()
/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.java111 final int columns = getCellsForSize(minWidth); in getWidgetSize() local
115 + " columns: " + columns); in getWidgetSize()
122 } else if (columns > 3) { in getWidgetSize()
/packages/apps/TV/src/com/android/tv/util/
DTvProviderUtils.java179 String[] columns = result.getStringArray(TvContract.EXTRA_EXISTING_COLUMN_NAMES); in getExistingColumns() local
180 if (columns != null) { in getExistingColumns()
181 return new HashSet<>(Arrays.asList(columns)); in getExistingColumns()

123