/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/ |
H A D | PrimaryKeyTest.java | 54 IntegerAutoIncPKeyEntity entity = new IntegerAutoIncPKeyEntity(); 55 entity.data = "foo"; 56 mDatabase.integerPKeyDao().insertMe(entity); 59 assertThat(loaded.data, is(entity.data)); 64 IntegerAutoIncPKeyEntity entity = new IntegerAutoIncPKeyEntity(); 65 entity.pKey = 0; 66 entity.data = "foo"; 67 mDatabase.integerPKeyDao().insertMe(entity); 70 assertThat(loaded.data, is(entity.data)); 75 IntAutoIncPKeyEntity entity [all...] |
/frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/ |
H A D | EntityInsertionAdapter.java | 27 * Implementations of this class knows how to insert a particular entity. 31 * @param <T> The type parameter of the entity to be inserted 38 * Creates an InsertionAdapter that can insert the entity type T into the given database. 47 * Binds the entity into the given statement. 51 * @param entity The entity of type T. 53 protected abstract void bind(SupportSQLiteStatement statement, T entity); argument 56 * Inserts the entity into the database. 58 * @param entity The entity t 60 insert(T entity) argument 110 insertAndReturnId(T entity) argument [all...] |
H A D | EntityDeletionOrUpdateAdapter.java | 23 * Implementations of this class knows how to delete or update a particular entity. 27 * @param <T> The type parameter of the entity to be deleted 34 * Creates a DeletionOrUpdateAdapter that can delete or update the entity type T on the given 51 * Binds the entity into the given statement. 55 * @param entity The entity of type T. 57 protected abstract void bind(SupportSQLiteStatement statement, T entity); argument 62 * @param entity The entity to delete or update 65 public final int handle(T entity) { argument [all...] |
/frameworks/support/room/compiler/src/test/kotlin/android/arch/persistence/room/processor/ |
H A D | EntityProcessorTest.kt | 46 """) { entity, invocation -> 47 assertThat(entity.type.toString(), `is`("foo.bar.MyEntity")) 48 assertThat(entity.fields.size, `is`(1)) 49 val field = entity.fields.first() 59 assertThat(entity.primaryKey.fields, `is`(listOf(field))) 152 """) { entity, _ -> 153 assertThat(entity.fields.first().getter.name, `is`("getId")) 165 """) { entity, _ -> 166 assertThat(entity.fields.first().getter.name, `is`("getId")) 177 """) { entity, [all...] |
H A D | EntityNameMatchingVariationsTest.kt | 61 """) { entity, invocation -> 62 assertThat(entity.type.toString(), `is`("foo.bar.MyEntity")) 63 assertThat(entity.fields.size, `is`(1)) 64 val field = entity.fields.first()
|
/frameworks/rs/rsov/compiler/spirit/ |
H A D | entity.h | 50 std::unique_ptr<T> entity(new T()); 51 if (!entity->DeserializeInternal(IS)) { 54 return entity.release(); 64 while (auto entity = Deserialize<T>(IS)) { 65 all.push_back(entity);
|
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/solver/query/result/ |
H A D | EntityRowAdapter.kt | 26 class EntityRowAdapter(val entity: Entity) : RowAdapter(entity.type) { 29 methodSpec = scope.writer.getOrCreateMethod(EntityCursorConverterWriter(entity))
|
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/ |
H A D | TableInfoValidationWriter.kt | 36 class TableInfoValidationWriter(val entity : Entity) { 38 val suffix = entity.tableName.stripNonJava().capitalize() 46 columnListType, entity.fields.size) 47 entity.fields.forEach { field -> 53 /*pkeyPos*/ entity.primaryKey.fields.indexOf(field) + 1) 60 foreignKeySetType, entity.foreignKeys.size) 61 entity.foreignKeys.forEach { 80 entity.tableName, columnListVar, foreignKeySetVar) 85 dbParam, entity.tableName) 90 "Migration didn't properly handle ${entity [all...] |
H A D | EntityInsertionAdapterWriter.kt | 34 class EntityInsertionAdapterWriter(val entity: Entity, val onConflict: String) { 39 ParameterizedTypeName.get(RoomTypeNames.INSERTION_ADAPTER, entity.typeName) 44 val primitiveAutoGenerateField = if (entity.primaryKey.autoGenerateId) { 45 entity.primaryKey.fields.firstOrNull()?.let { field -> 62 "INSERT OR $onConflict INTO `${entity.tableName}`(" + 63 entity.fields.joinToString(",") { 66 entity.fields.joinToString(",") { 82 addParameter(ParameterSpec.builder(entity.typeName, valueParam).build()) 85 val mapped = FieldWithIndex.byOrder(entity.fields)
|
H A D | EntityUpdateAdapterWriter.kt | 34 class EntityUpdateAdapterWriter(val entity: Entity, val onConflict : String) { 39 entity.typeName) 45 val query = "UPDATE OR $onConflict `${entity.tableName}` SET " + 46 entity.fields.joinToString(",") { field -> 48 } + " WHERE " + entity.primaryKey.fields.joinToString(" AND ") { 60 addParameter(ParameterSpec.builder(entity.typeName, valueParam).build()) 63 val mappedField = FieldWithIndex.byOrder(entity.fields) 70 val pkeyStart = entity.fields.size 71 val mappedPrimaryKeys = entity.primaryKey.fields.mapIndexed { index, field ->
|
H A D | EntityCursorConverterWriter.kt | 36 class EntityCursorConverterWriter(val entity: Entity) : ClassWriter.SharedMethodSpec( 37 "entityCursorConverter_${entity.typeName.toString().stripNonJava()}") { 39 return "generic_entity_converter_of_${entity.element.qualifiedName}" 48 returns(entity.typeName) 66 scope.builder().addStatement("final $T $L", entity.typeName, entityVar) 67 val fieldsWithIndices = entity.fields.map { 78 outPojo = entity,
|
H A D | EntityDeletionAdapterWriter.kt | 34 class EntityDeletionAdapterWriter(val entity: Entity) { 39 entity.typeName) 45 val query = "DELETE FROM `${entity.tableName}` WHERE " + 46 entity.primaryKey.fields.joinToString(" AND ") { 58 addParameter(ParameterSpec.builder(entity.typeName, valueParam).build()) 61 val mapped = FieldWithIndex.byOrder(entity.primaryKey.fields)
|
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/android/arch/persistence/room/integration/kotlintestapp/vo/ |
H A D | BookAuthor.kt | 24 ForeignKey(entity = Book::class, 30 ForeignKey(entity = Author::class,
|
H A D | PublisherWithBooks.kt | 26 entity = Book::class)
|
H A D | Book.kt | 24 ForeignKey(entity = Publisher::class,
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/ |
H A D | UserWithPetsAndToys.java | 27 @Relation(entity = Pet.class, parentColumn = "mId", entityColumn = "mUserId")
|
H A D | UserIdAndPetNames.java | 30 @Relation(entity = Pet.class, parentColumn = "mId", entityColumn = "mUserId",
|
/frameworks/support/room/common/src/main/java/android/arch/persistence/room/ |
H A D | ForeignKey.java | 29 * index in the parent entity that covers the referenced columns (Room will verify this at compile 53 Class entity(); method in interface:ForeignKey 79 * @return The action to take when the referenced entity is deleted from the database. 88 * @return The action to take when the referenced entity is updated in the database. 153 * entity that was associated with the deleted parent row is also deleted. For an
|
H A D | Relation.java | 51 * If you would like to return a different object, you can specify the {@link #entity()} property 65 * {@literal @}Relation(parentColumn = "id", entityColumn = "userId", entity = Pet.class) 76 * from the {@code entity} defined in the {@code @Relation} annotation (<i>Pet</i>). 86 * {@literal @}Relation(parentColumn = "id", entityColumn = "userId", entity = Pet.class, 104 * The entity to fetch the item from. You don't need to set this if the entity matches the 107 * @return The entity to fetch from. By default, inherited from the return type. 109 Class entity() default Object.class; 127 * The field path to match in the {@link #entity()}. This value will be matched against the 133 * If sub fields should be fetched from the entity, yo [all...] |
/frameworks/base/core/java/android/view/textclassifier/ |
H A D | EntityConfidence.java | 32 * Helper object for setting and getting entity scores for classified text. 34 * @param <T> the entity type. 61 * Sets an entity type for the classified text and assigns a confidence score. 64 * 0 implies the entity does not exist for the classified text. 90 * Returns the confidence score for the specified entity. The value ranges from 91 * 0 (low confidence) to 1 (high confidence). 0 indicates that the entity was not found for the 95 public float getConfidenceScore(T entity) { argument 96 if (mEntityConfidence.containsKey(entity)) { 97 return mEntityConfidence.get(entity);
|
/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 122 if (kIsDebug) ALOGI("writing entity header, %zu bytes", sizeof(entity_header_v1)); 130 if (kIsDebug) ALOGI("writing entity header key, %zd bytes", keyLen+1); 257 m_header.entity.keyLen = fromlel(m_header.entity.keyLen); 258 if (m_header.entity.keyLen <= 0) { 260 (int)m_header.entity.keyLen); 263 m_header.entity.dataSize = fromlel(m_header.entity.dataSize); 267 size_t size = m_header.entity.keyLen; 278 m_dataEndPos = m_pos + m_header.entity [all...] |
/frameworks/support/room/compiler/src/test/kotlin/android/arch/persistence/room/solver/ |
H A D | CustomTypeConverterResolutionTest.kt | 90 val entity = createEntity(hasCustomField = true) 93 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() 98 val entity = createEntity() 101 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() 106 val entity = createEntity(hasCustomField = true) 109 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() 114 val entity = createEntity() 118 run(entity.toJFO(), dao.toJFO(), database.toJFO()).compilesWithoutError() 123 val entity = createEntity(hasCustomField = true, hasConverters = true) 126 run(entity [all...] |
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/vo/ |
H A D | Database.kt | 63 .flatMap { entity -> 64 entity.indices.map { index -> 65 index.createQuery(entity.tableName)
|
H A D | Relation.kt | 23 val entity: Entity, 50 " FROM `${entity.tableName}`" +
|
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/processor/ |
H A D | ShortcutParameterProcessor.kt | 90 val entity = extractEntityTypeFromIterator(declared) 91 return verifyAndPair(entity, true) 94 val entity = typeMirror.componentType 95 return verifyAndPair(entity, true)
|