Home
last modified time | relevance | path

Searched refs:pojo (Results 1 – 14 of 14) sorted by relevance

/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
DPojoProcessorTest.kt95 val pojo = PojoProcessor(baseContext = invocation.context, in <lambda>() constant
99 assertThat(pojo.fields.find { it.name == "myField" }, notNullValue()) in <lambda>()
100 assertThat(pojo.fields.find { it.name == "baseField" }, notNullValue()) in <lambda>()
109 """) { pojo -> in <lambda>() method
110 assertThat(pojo.fields.size, `is`(1)) in <lambda>()
111 assertThat(pojo.fields[0].name, `is`("bar")) in <lambda>()
121 """) { pojo -> in <lambda>() method
122 assertThat(pojo.fields.map { it.name }.toSet(), `is`(setOf("bar", "foo"))) in <lambda>()
135 """) { pojo -> in <lambda>() method
136 assertThat(pojo.fields.map { it.name }.toSet(), `is`(setOf("x", "bar"))) in <lambda>()
[all …]
DRawQueryMethodProcessorTest.kt152 fun pojo() { in <lambda>() method
153 val pojo: TypeName = ClassName.get("foo.bar.MyClass", "MyPojo") in <lambda>() constant
171 assertThat(query.returnType.typeName(), `is`(pojo)) in <lambda>()
DDatabaseProcessorTest.kt601 val adapterPojo = (adapter as PojoRowAdapter).pojo in <lambda>()
607 val loadAllPojo = (loadAllAdapter as PojoRowAdapter).pojo in <lambda>()
615 val convAdapterPojo = (convAdapter as PojoRowAdapter).pojo in <lambda>()
DQueryMethodProcessorTest.kt666 assertThat(adapter?.mapping?.unusedFields, `is`(adapter?.pojo?.fields)) in <lambda>()
726 adapter?.pojo?.fields?.filter { it.name == "name" } in <lambda>()
747 adapter?.pojo?.fields?.filter { it.name == "name" } in <lambda>()
770 adapter?.pojo?.fields?.filter { it.name == "lastName" } in <lambda>()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
DEntityProcessor.kt63 val pojo = PojoProcessor( in <lambda>() constant
69 context.checker.check(pojo.relations.isEmpty(), element, RELATION_IN_ENTITY) in <lambda>()
91 val fieldIndices = pojo.fields in <lambda>()
117 val indices = validateAndCreateIndices(indexInputs, pojo) in <lambda>()
119 val primaryKey = findAndValidatePrimaryKey(pojo.fields, pojo.embeddedFields) in <lambda>()
127 val entityForeignKeys = validateAndCreateForeignKeyReferences(foreignKeyInputs, pojo) in <lambda>()
132 pojo.fields.forEach { in <lambda>()
139 type = pojo.type, in <lambda>()
140 fields = pojo.fields, in <lambda>()
141 embeddedFields = pojo.embeddedFields, in <lambda>()
[all …]
DRawQueryMethodProcessor.kt94 val pojo = PojoProcessor( in processObservedTables() constant
100 val tableNames = pojo.accessedTableNames() in processObservedTables()
DPojoProcessor.kt155 val subFields = embeddedFields.flatMap { it.pojo.fields } in <lambda>()
164 val subRelations = embeddedFields.flatMap { it.pojo.relations } in <lambda>()
312 pojo = element.qualifiedName.toString(), in <lambda>()
388 subParent.pojo = PojoProcessor( in <lambda>()
538 val pojo = PojoProcessor( in <lambda>() constant
544 pojo.fields.map { it.columnName } in <lambda>()
DProcessorErrors.kt461 pojo: String, paramName: String, matchingFields: List<String>): String { in ambigiousConstructor()
463 Ambiguous constructor. The parameter ($paramName) in $pojo matches multiple fields: in ambigiousConstructor()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/query/result/
DPojoRowAdapter.kt43 val pojo: Pojo, out: TypeMirror) : RowAdapter(out) { in <lambda>() constant
49 val remainingFields = pojo.fields.mapTo(mutableListOf(), { it }) in <lambda>()
57 pojo.fields.firstOrNull { it.columnName == column.name } in <lambda>()
68 pojoTypeName = pojo.typeName, in <lambda>()
72 allFields = pojo.fields in <lambda>()
79 pojoTypeName = pojo.typeName, in <lambda>()
90 relationCollectors = RelationCollector.createCollectors(context, pojo.relations) in <lambda>()
129 outPojo = pojo, in <lambda>()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/
DTypeAdapterStore.kt334 val pojo = PojoProcessor( in <lambda>() constant
343 pojo = pojo, in <lambda>()
379 val pojo = PojoProcessor( in <lambda>() constant
388 pojo = pojo, in <lambda>()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
DEmbeddedField.kt31 lateinit var pojo: Pojo variable in androidx.room.vo.EmbeddedField
DPojo.kt49 it.pojo.accessedTableNames() in accessedTableNames()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
DFieldReadWriteWriter.kt196 constructor = fieldParent.pojo.constructor, in <lambda>()
249 scope.builder().addStatement("final $T $L", fieldParent.pojo.typeName, in <lambda>()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DRawQueryTest.java146 public void pojo() { in pojo() method in RawQueryTest