Home
last modified time | relevance | path

Searched refs:primaryKey (Results 1 – 11 of 11) sorted by relevance

/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
DEntity.kt28 val primaryKey: PrimaryKey, val indices: List<Index>, in <lambda>() constant
41 identityKey.append(primaryKey) in <lambda>()
50 val autoIncrement = primaryKey.autoGenerateId && primaryKey.fields.contains(it) in <lambda>()
61 return if (primaryKey.fields.isEmpty() || primaryKey.autoGenerateId) { in <lambda>()
64 val keys = primaryKey.fields.joinToString(", ") { "`${it.columnName}`" } in <lambda>()
81 primaryKey.toBundle(), in <lambda>()
86 return if (primaryKey.columnNames.size == columns.size in <lambda>()
87 && primaryKey.columnNames.containsAll(columns)) { in <lambda>()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
DEntityProcessorTest.kt58 assertThat(entity.primaryKey.fields, `is`(listOf(field))) in <lambda>()
298 assertThat(entity.primaryKey.fields.map { it.name }, `is`(listOf("id"))) in <lambda>()
321 assertThat(entity.primaryKey.fields.map { it.name }, `is`(listOf("id"))) in <lambda>()
854 assertThat(entity.primaryKey.fields.isEmpty(), `is`(true)) in <lambda>()
879 assertThat(entity.primaryKey.fields.firstOrNull()?.name, `is`("baseId")) in <lambda>()
901 assertThat(entity.primaryKey.fields.firstOrNull()?.name, `is`("baseId")) in <lambda>()
924 assertThat(entity.primaryKey.fields.size, `is`(1)) in <lambda>()
925 assertThat(entity.primaryKey.fields.firstOrNull()?.name, `is`("id")) in <lambda>()
926 assertThat(entity.primaryKey.autoGenerateId, `is`(false)) in <lambda>()
951 assertThat(entity.primaryKey.fields.size, `is`(1)) in <lambda>()
[all …]
/frameworks/base/cmds/statsd/src/condition/
DStateTracker.cpp142 HashableDimensionKey primaryKey; in evaluateCondition() local
144 if ((mPrimaryKeys.size() > 0 && !filterValues(mPrimaryKeys, event.getValues(), &primaryKey)) || in evaluateCondition()
152 hitGuardRail(primaryKey); in evaluateCondition()
154 VLOG("StateTracker: key %s state %s", primaryKey.toString().c_str(), state.toString().c_str()); in evaluateCondition()
156 auto it = mSlicedState.find(primaryKey); in evaluateCondition()
158 mSlicedState[primaryKey] = state; in evaluateCondition()
165 mSlicedState[primaryKey] = state; in evaluateCondition()
206 const auto& primaryKey = pair->second; in isConditionMet() local
208 auto it = mSlicedState.find(primaryKey); in isConditionMet()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
DEntityProcessor.kt119 val primaryKey = findAndValidatePrimaryKey(pojo.fields, pojo.embeddedFields) in <lambda>() constant
120 val affinity = primaryKey.fields.firstOrNull()?.affinity ?: SQLTypeAffinity.TEXT in <lambda>()
122 !primaryKey.autoGenerateId || affinity == SQLTypeAffinity.INTEGER, in <lambda>()
123 primaryKey.fields.firstOrNull()?.element ?: element, in <lambda>()
128 checkIndicesForForeignKeys(entityForeignKeys, primaryKey, indices) in <lambda>()
143 primaryKey = primaryKey, in <lambda>()
151 primaryKey: PrimaryKey, in <lambda>()
160 val exists = covers(columnNames, primaryKey.fields) || indices.any { index -> in <lambda>()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
DEntityDeletionAdapterWriter.kt46 entity.primaryKey.fields.joinToString(" AND ") { in createAnonymous()
61 val mapped = FieldWithIndex.byOrder(entity.primaryKey.fields) in createAnonymous()
DEntityInsertionAdapterWriter.kt44 val primitiveAutoGenerateField = if (entity.primaryKey.autoGenerateId) { in <lambda>()
45 entity.primaryKey.fields.firstOrNull()?.let { field -> in <lambda>()
DEntityUpdateAdapterWriter.kt48 } + " WHERE " + entity.primaryKey.fields.joinToString(" AND ") { in <lambda>()
71 val mappedPrimaryKeys = entity.primaryKey.fields.mapIndexed { index, field -> in <lambda>()
DTableInfoValidationWriter.kt53 /*pkeyPos*/ entity.primaryKey.fields.indexOf(field) + 1) in <lambda>()
/frameworks/support/room/migration/src/main/java/androidx/room/migration/bundle/
DEntityBundle.java72 PrimaryKeyBundle primaryKey, in EntityBundle() argument
78 mPrimaryKey = primaryKey; in EntityBundle()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/vo/
DEntityTest.kt79 primaryKey = PrimaryKey(mock(Element::class.java), emptyList(), false), in createEntity()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/verifier/
DDatabaseVerifierTest.kt223 primaryKey = PrimaryKey(null, fields.take(1), false), in <lambda>()