/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/ |
D | BaseDaoTest.kt | 28 """) { dao -> in <lambda>() method 29 assertThat(dao.insertionMethods.size, `is`(1)) in <lambda>() 38 """) { dao -> in <lambda>() method 39 assertThat(dao.insertionMethods.size, `is`(1)) in <lambda>() 48 """) { dao -> in <lambda>() method 49 assertThat(dao.insertionMethods.size, `is`(1)) in <lambda>() 58 """) { dao -> in <lambda>() method 59 assertThat(dao.insertionMethods.size, `is`(1)) in <lambda>() 68 """) { dao -> in <lambda>() method 69 assertThat(dao.deletionMethods.size, `is`(1)) in <lambda>() [all …]
|
D | DaoProcessorTest.kt | 88 """) { dao, _ -> in <lambda>() method 89 assertThat(dao.queryMethods.size, `is`(1)) in <lambda>() 90 val method = dao.queryMethods.first() in <lambda>() 102 """) { dao, _ -> in <lambda>() method 103 assertThat(dao.queryMethods.size, `is`(1)) in <lambda>() 104 val method = dao.queryMethods.first() in <lambda>() 118 """) { dao, _ -> in <lambda>() method 119 assertThat(dao.queryMethods.size, `is`(1)) in <lambda>() 120 val method = dao.queryMethods.first() in <lambda>() 122 assertThat(dao.insertionMethods.size, `is`(1)) in <lambda>() [all …]
|
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/test/ |
D | DependencyDaoTest.kt | 21 import androidx.room.integration.kotlintestapp.dao.DependencyDao 35 lateinit var dao: DependencyDao variable in androidx.room.integration.kotlintestapp.test.DependencyDaoTest 38 dao = database.dependencyDao() in init() 44 assertThat(dao.selectAll(), `is`(listOf(data))) in insertAndGet() 50 assertThat(dao.findById(3), `is`(data)) in insertAndGetByQuery() 51 assertThat(dao.findById(5), `is`(nullValue())) in insertAndGetByQuery() 57 assertThat(dao.findEmbedded(3), `is`(EmbeddedFromDependency(data))) in insertAndGetByQuery_embedded() 58 assertThat(dao.findEmbedded(5), `is`(nullValue())) in insertAndGetByQuery_embedded() 64 assertThat(dao.findPojo(3), `is`(PojoFromDependency( in insertAndGetByQuery_pojo() 67 assertThat(dao.findPojo(5), `is`(nullValue())) in insertAndGetByQuery_pojo() [all …]
|
D | ItemWithNullableConstructor.kt | 52 db.dao.insert(TestItem(null, null)) in insertWithNull() 53 assertThat(db.dao.get(), `is`(TestItem(1, null))) in insertWithNull() 79 abstract val dao: TestDao in insert() constant in androidx.room.integration.kotlintestapp.test.ItemWithNullableConstructor.Db
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/ |
D | TestDatabaseTest.java | 24 import androidx.room.integration.testapp.dao.FunnyNamedDao; 25 import androidx.room.integration.testapp.dao.PetCoupleDao; 26 import androidx.room.integration.testapp.dao.PetDao; 27 import androidx.room.integration.testapp.dao.RawDao; 28 import androidx.room.integration.testapp.dao.SchoolDao; 29 import androidx.room.integration.testapp.dao.SpecificDogDao; 30 import androidx.room.integration.testapp.dao.ToyDao; 31 import androidx.room.integration.testapp.dao.UserDao; 32 import androidx.room.integration.testapp.dao.UserPetDao; 33 import androidx.room.integration.testapp.dao.WithClauseDao;
|
D | WriteAheadLoggingTest.java | 45 import androidx.room.integration.testapp.dao.UserDao; 127 UserDao dao = mDatabase.getUserDao(); in observeLiveData() local 128 LiveData<User> user1 = dao.liveUserById(1); in observeLiveData() 130 dao.insert(TestUtil.createUser(1)); in observeLiveData() 138 UserDao dao = mDatabase.getUserDao(); in observeLiveDataWithTransaction() local 139 LiveData<User> user1 = dao.liveUserByIdInTransaction(1); in observeLiveDataWithTransaction() 141 dao.insert(TestUtil.createUser(1)); in observeLiveDataWithTransaction() 173 final UserDao dao = mDatabase.getUserDao(); in readInBackground() local 175 dao.insert(user1); in readInBackground() 178 dao.delete(user1); in readInBackground() [all …]
|
D | EmbeddedTest.java | 31 import androidx.room.integration.testapp.dao.PetCoupleDao; 32 import androidx.room.integration.testapp.dao.PetDao; 33 import androidx.room.integration.testapp.dao.SchoolDao; 34 import androidx.room.integration.testapp.dao.UserDao; 35 import androidx.room.integration.testapp.dao.UserPetDao;
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/ |
D | TestDatabase.java | 23 import androidx.room.integration.testapp.dao.BlobEntityDao; 24 import androidx.room.integration.testapp.dao.FunnyNamedDao; 25 import androidx.room.integration.testapp.dao.PetCoupleDao; 26 import androidx.room.integration.testapp.dao.PetDao; 27 import androidx.room.integration.testapp.dao.ProductDao; 28 import androidx.room.integration.testapp.dao.RawDao; 29 import androidx.room.integration.testapp.dao.SchoolDao; 30 import androidx.room.integration.testapp.dao.SpecificDogDao; 31 import androidx.room.integration.testapp.dao.ToyDao; 32 import androidx.room.integration.testapp.dao.UserDao; [all …]
|
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/ |
D | CustomTypeConverterResolutionTest.kt | 113 val dao = createDao(hasQueryReturningEntity = true, hasQueryWithCustomParam = true) in useFromDatabase_forEntity() constant 114 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() in useFromDatabase_forEntity() 126 val dao = createDao( in collection_forEntity() constant 129 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() in collection_forEntity() 141 val dao = createDao( in collection_forDao() constant 144 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() in collection_forDao() 151 val dao = createDao(hasQueryWithCustomParam = true) in useFromDatabase_forQueryParameter() constant 152 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() in useFromDatabase_forQueryParameter() 159 val dao = createDao(hasQueryReturningEntity = true) in useFromDatabase_forReturnValue() constant 160 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() in useFromDatabase_forReturnValue() [all …]
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/ |
D | MigrationTest.java | 82 final MigrationDb.Dao_V1 dao = new MigrationDb.Dao_V1(db); in startInCurrentVersion() local 83 dao.insertIntoEntity1(2, "x"); in startInCurrentVersion() 86 List<MigrationDb.Entity1> items = migrationDb.dao().loadAllEntity1s(); in startInCurrentVersion() 94 final MigrationDb.Dao_V1 dao = new MigrationDb.Dao_V1(db); in addTable() local 95 dao.insertIntoEntity1(2, "foo"); in addTable() 96 dao.insertIntoEntity1(3, "bar"); in addTable() 102 List<MigrationDb.Entity1> entity1s = migrationDb.dao().loadAllEntity1s(); in addTable() 109 migrationDb.dao().insert(entity2); in addTable() 110 List<MigrationDb.Entity2> entity2s = migrationDb.dao().loadAllEntity2s(); in addTable() 152 List<MigrationDb.Entity2> entity2s = migrationDb.dao().loadAllEntity2s(); in addColumn() [all …]
|
D | JournalDbPostMigrationTest.java | 205 UserDao dao = getDb().userDao(); 206 LiveData<User> liveData = dao.getUser(3); 217 dao.insert(user);
|
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/ |
D | MigrationKotlinTest.kt | 67 val dao = MigrationDbKotlin.Dao_V1(db) in startInCurrentVersion() constant 68 dao.insertIntoEntity1(2, "x") in startInCurrentVersion() 71 val items = migrationDb.dao().loadAllEntity1s() in startInCurrentVersion() 80 val dao = MigrationDbKotlin.Dao_V1(db) in addTable() constant 81 dao.insertIntoEntity1(2, "foo") in addTable() 82 dao.insertIntoEntity1(3, "bar") in addTable() 89 val entity1s = migrationDb.dao().loadAllEntity1s() in addTable() 94 migrationDb.dao().insert(entity2) in addTable() 95 val entity2s = migrationDb.dao().loadAllEntity2s() in addTable() 143 val entity2s = migrationDb.dao().loadAllEntity2s() in addColumn() [all …]
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/ |
D | DatabaseProcessor.kt | 93 val dao = DaoProcessor(context, daoType, declaredType, dbVerifier).process() in <lambda>() constant 94 DaoMethod(executable, executable.simpleName.toString(), dao) in <lambda>() 179 daoMethods.groupBy { it.dao.typeName } in <lambda>() 191 val check = fun(element: Element, dao: Dao, in <lambda>() 198 dao = dao.typeName.toString(), in <lambda>() 205 daoMethod.dao.shortcutMethods.forEach { method -> in <lambda>() 207 check(method.element, daoMethod.dao, it.value.typeName) in <lambda>() 210 daoMethod.dao.insertionMethods.forEach { method -> in <lambda>() 212 check(method.element, daoMethod.dao, it.value.typeName) in <lambda>()
|
D | ProcessorErrors.kt | 206 fun duplicateDao(dao: TypeName, methodNames: List<String>): String { in duplicateDao() 209 class [$dao]. in duplicateDao() 447 fun shortcutEntityIsNotInDatabase(database: String, dao: String, entity: String): String { in shortcutEntityIsNotInDatabase() 449 $dao is part of $database but this entity is not in the database. Maybe you forgot in shortcutEntityIsNotInDatabase()
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/ |
D | DaoWriter.kt | 57 class DaoWriter(val dao: Dao, val processingEnv: ProcessingEnvironment) in <lambda>() constant in androidx.room.writer.DaoWriter 58 : ClassWriter(dao.typeName) { in <lambda>() 59 private val declaredDao = MoreTypes.asDeclared(dao.element.asType()) in <lambda>() 77 val builder = TypeSpec.classBuilder(dao.implTypeName) in <lambda>() 83 val groupedDeleteUpdate = dao.queryMethods in <lambda>() 96 if (dao.element.kind == ElementKind.INTERFACE) { in <lambda>() 97 addSuperinterface(dao.typeName) in <lambda>() 99 superclass(dao.typeName) in <lambda>() 103 .builder(dao.constructorParamType ?: dbField.type, dbField.name).build() in <lambda>() 105 addMethod(createConstructor(dbParam, shortcutMethods, dao.constructorParamType != null)) in <lambda>() [all …]
|
D | DatabaseWriter.kt | 127 val name = method.dao.typeName.simpleName().decapitalize().stripNonJava() in <lambda>() 129 val field = FieldSpec.builder(method.dao.typeName, fieldName, in <lambda>() 145 addStatement("$N = new $T(this)", field, method.dao.implTypeName) in <lambda>()
|
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/ |
D | TestDatabase.kt | 21 import androidx.room.integration.kotlintestapp.dao.BooksDao 22 import androidx.room.integration.kotlintestapp.dao.DependencyDao 23 import androidx.room.integration.kotlintestapp.dao.DerivedDao
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/ |
D | RoomProcessor.kt | 63 DaoWriter(it.dao, context.processingEnv).write(context.processingEnv) in <lambda>() 99 daoMethods.groupBy { it.dao.typeName } in <lambda>() 110 methods.first().dao.setSuffix(dbName) in <lambda>() 115 method.dao.setSuffix("${dbName}_$index") in <lambda>()
|
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/writer/ |
D | DaoWriterTest.kt | 82 val dao = invocation.roundEnv in <lambda>() constant 98 element = MoreElements.asType(dao), in <lambda>()
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/ |
D | DaoMethod.kt | 24 data class DaoMethod(val element: Element, val name: String, val dao: Dao) constant in androidx.room.vo.DaoMethod
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/dao/ |
D | ToyDao.java | 17 package androidx.room.integration.testapp.dao;
|
D | SpecificDogDao.java | 17 package androidx.room.integration.testapp.dao;
|
D | ProductDao.java | 17 package androidx.room.integration.testapp.dao;
|
D | PetCoupleDao.java | 17 package androidx.room.integration.testapp.dao;
|
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/dao/ |
D | DerivedDao.kt | 17 package androidx.room.integration.kotlintestapp.dao
|