Home
last modified time | relevance | path

Searched refs:affinity (Results 1 – 25 of 25) sorted by relevance

/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
DFieldProcessor.kt45 val affinity: SQLTypeAffinity? in process() constant
59 affinity = try { in process()
76 affinity = null in process()
89 affinity = affinity, in process()
97 field.affinity) in process()
100 field.affinity = adapter?.typeAffinity ?: field.affinity in process()
106 .findStatementValueBinder(field.type, field.affinity) in process()
112 .findCursorValueReader(field.type, field.affinity) in process()
DEntityProcessor.kt120 val affinity = primaryKey.fields.firstOrNull()?.affinity ?: SQLTypeAffinity.TEXT in <lambda>() constant
122 !primaryKey.autoGenerateId || affinity == SQLTypeAffinity.INTEGER, in <lambda>()
258 && field.affinity != SQLTypeAffinity.INTEGER)) { in <lambda>()
DPojoProcessor.kt382 affinity = null, in <lambda>()
476 affinity = null, in <lambda>()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
DRelationCollector.kt52 val affinity: SQLTypeAffinity, in <lambda>() constant in androidx.room.vo.RelationCollector
105 val cursorGetter = when (affinity) { in <lambda>()
133 val parentAffinity = relation.parentField.cursorValueReader?.affinity() in <lambda>()
134 val childAffinity = relation.entityField.cursorValueReader?.affinity() in <lambda>()
135 val affinity = if (parentAffinity != null && parentAffinity == childAffinity) { in <lambda>() constant
146 val keyType = keyTypeFor(context, affinity) in <lambda>()
172 val keyTypeMirror = keyTypeMirrorFor(context, affinity) in <lambda>()
229 affinity = affinity, in <lambda>()
241 private fun keyTypeMirrorFor(context: Context, affinity: SQLTypeAffinity): TypeMirror { in <lambda>()
244 return when (affinity) { in <lambda>()
[all …]
DField.kt31 var affinity: SQLTypeAffinity?, variable in androidx.room.vo.Field
134 affinity?.name ?: SQLTypeAffinity.TEXT.name, nonNull
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
DFieldProcessorTest.kt98 private fun TypeKind.affinity(): SQLTypeAffinity { in <lambda>() method
118 affinity = primitive.affinity() in <lambda>()
132 affinity = primitive.affinity()))) in <lambda>()
149 affinity = SQLTypeAffinity.INTEGER))) in <lambda>()
164 affinity = SQLTypeAffinity.INTEGER, in <lambda>()
186 affinity = SQLTypeAffinity.TEXT))) in <lambda>()
202 affinity = if (primitive == TypeKind.BYTE) { in <lambda>()
221 affinity = SQLTypeAffinity.TEXT))) in <lambda>()
239 affinity = SQLTypeAffinity.INTEGER))) in <lambda>()
348 affinity = SQLTypeAffinity.TEXT))) in <lambda>()
DEntityNameMatchingVariationsTest.kt71 affinity = SQLTypeAffinity.INTEGER))) in <lambda>()
DPojoProcessorTest.kt608 affinity = SQLTypeAffinity.TEXT, in <lambda>()
DQueryMethodProcessorTest.kt97 affinity = null in <lambda>()
DEntityProcessorTest.kt55 affinity = SQLTypeAffinity.INTEGER))) in <lambda>()
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java170 float affinity = affinityOut[0]; in getContactAffinity() local
192 + "Returning affinity=" + affinity, e); in getContactAffinity()
193 return affinity; in getContactAffinity()
196 affinity = Math.max(prr.getContactAffinity(), affinity); in getContactAffinity()
198 return affinity; in getContactAffinity()
221 final float affinity = affinityOut[0]; in validatePeople() local
222 record.setContactAffinity(affinity); in validatePeople()
224 mUsageStats.registerPeopleAffinity(record, affinity > NONE, affinity == STARRED_CONTACT, in validatePeople()
234 float affinity = NONE; in validatePeople() local
259 affinity = Math.max(affinity, lookupResult.getAffinity()); in validatePeople()
[all …]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/
DTypeAdapterStore.kt159 affinity: SQLTypeAffinity? in <lambda>()
164 val adapter = findDirectAdapterFor(input, affinity) in <lambda>()
168 val targetTypes = targetTypeMirrorsFor(affinity) in <lambda>()
180 private fun targetTypeMirrorsFor(affinity: SQLTypeAffinity?): List<TypeMirror> { in <lambda>()
181 val specifiedTargets = affinity?.getTypeMirrors(context.processingEnv) in <lambda>()
192 fun findCursorValueReader(output: TypeMirror, affinity: SQLTypeAffinity?): CursorValueReader? { in <lambda>()
196 val adapter = findColumnTypeAdapter(output, affinity) in <lambda>()
202 val targetTypes = targetTypeMirrorsFor(affinity) in <lambda>()
234 fun findColumnTypeAdapter(out: TypeMirror, affinity: SQLTypeAffinity?): ColumnTypeAdapter? { in <lambda>()
238 val adapter = findDirectAdapterFor(out, affinity) in <lambda>()
[all …]
/frameworks/support/room/migration/src/main/java/androidx/room/migration/bundle/
DFieldBundle.java40 public FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull) { in FieldBundle() argument
43 mAffinity = affinity; in FieldBundle()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/verifier/
DDatabaseVerifierTest.kt229 private fun field(name: String, type: TypeMirror, affinity: SQLTypeAffinity): Field { in <lambda>()
237 affinity = affinity, in <lambda>()
238 collate = if (useLocalizedCollation && affinity == SQLTypeAffinity.TEXT) { in <lambda>()
/frameworks/support/room/runtime/src/main/java/androidx/room/util/
DTableInfo.java326 public final int affinity; field in TableInfo.Column
352 this.affinity = findAffinity(type); in Column()
403 return affinity == column.affinity; in equals()
418 result = 31 * result + affinity; in hashCode()
429 + ", affinity='" + affinity + '\'' in toString()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/types/
DCursorValueReader.kt28 fun affinity(): SQLTypeAffinity method
DColumnTypeAdapter.kt30 override fun affinity(): SQLTypeAffinity = typeAffinity method in androidx.room.solver.types.ColumnTypeAdapter
/frameworks/base/services/core/java/com/android/server/am/
DTaskRecord.java202 String affinity; // The affinity name for this task, or null; may change identity. field in TaskRecord
391 affinity = _affinity; in TaskRecord()
806 affinity = info.taskAffinity; in setIntent()
811 rootAffinity = affinity; in setIntent()
1938 if (affinity != null || rootAffinity != null) { in dump()
1939 pw.print(prefix); pw.print("affinity="); pw.print(affinity); in dump()
1940 if (affinity == null || !affinity.equals(rootAffinity)) { in dump()
2046 if (affinity != null) { in toString()
2048 sb.append(affinity); in toString()
2127 if (affinity != null) { in saveToXml()
[all …]
DRecentTasks.java1266 task.affinity != null && task.affinity.equals(tr.affinity); in findRemoveIndexForAddTask()
DActivityStack.java3076 && !target.taskAffinity.equals(task.affinity)) { in resetTargetTaskIfNeededLocked()
3088 && target.taskAffinity.equals(bottom.getTask().affinity)) { in resetTargetTaskIfNeededLocked()
3191 final String taskAffinity = task.affinity; in resetAffinityTaskIfNeededLocked()
3905 if (srec == null || srec.getTask().affinity == null || in shouldUpRecreateTaskLocked()
3906 !srec.getTask().affinity.equals(destAffinity)) { in shouldUpRecreateTaskLocked()
3927 if (!task.affinity.equals(prevTask.affinity)) { in shouldUpRecreateTaskLocked()
DActivityManagerService.java17736 pw.print("TASK "); pw.print(lastTask.affinity); in dumpActivity()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/vo/
DIndexTest.kt50 affinity = SQLTypeAffinity.TEXT, in mockField()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
DTableInfoValidationWriter.kt51 /*type*/ field.affinity?.name ?: SQLTypeAffinity.TEXT.name, in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DTaskRecordTests.java184 Intent affinityIntent, String affinity, String rootAffinity, in create() argument
DRecentTasksTest.java796 task.affinity = null; in createDocumentTask()