Searched refs:columnSchemaList (Results 1 – 2 of 2) sorted by relevance
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/events/ |
D | JoinedTableDaoTest.java | 70 List<ColumnSchema> columnSchemaList = new ArrayList<>(); in invalidProvidedColumns() local 71 columnSchemaList.add(new ColumnSchema.Builder().setName( in invalidProvidedColumns() 75 () -> new JoinedTableDao(columnSchemaList, 0, 0, mContext)); in invalidProvidedColumns() 80 List<ColumnSchema> columnSchemaList = new ArrayList<>(); in emptyColumns() local 82 () -> new JoinedTableDao(columnSchemaList, 0, 0, mContext)); in emptyColumns() 87 List<ColumnSchema> columnSchemaList = new ArrayList<>(); in duplicateProvidedColumnNames() local 88 columnSchemaList.add(new ColumnSchema.Builder().setName("ColumnName").setType( in duplicateProvidedColumnNames() 90 columnSchemaList.add(new ColumnSchema.Builder().setName("ColumnName").setType( in duplicateProvidedColumnNames() 93 () -> new JoinedTableDao(columnSchemaList, 0, 0, mContext)); in duplicateProvidedColumnNames() 100 List<ColumnSchema> columnSchemaList = new ArrayList<>( in testRawQuery() local [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/ |
D | JoinedTableDao.java | 65 public JoinedTableDao(List<ColumnSchema> columnSchemaList, long fromEventId, long fromQueryId, in JoinedTableDao() argument 67 if (!validateColumns(columnSchemaList)) { in JoinedTableDao() 71 mColumns = columnSchemaList.stream().collect(Collectors.toMap( in JoinedTableDao() 79 mDbHelper = createInMemoryTable(columnSchemaList, context); in JoinedTableDao() 83 private static SQLiteOpenHelper createInMemoryTable(List<ColumnSchema> columnSchemaList, in createInMemoryTable() argument 85 List<String> columns = columnSchemaList.stream().map(ColumnSchema::toString).collect( in createInMemoryTable() 110 private static boolean validateColumns(List<ColumnSchema> columnSchemaList) { in validateColumns() argument 111 if (columnSchemaList.size() == 0) { in validateColumns() 115 for (ColumnSchema columnSchema : columnSchemaList) { in validateColumns()
|