Home
last modified time | relevance | path

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

12

/frameworks/support/webkit-codegen/src/main/java/androidx/webkit/internal/codegen/representations/
DClassRepr.java21 import com.squareup.javapoet.TypeSpec;
64 public TypeSpec createBoundaryInterface() { in createBoundaryInterface()
65 TypeSpec.Builder interfaceBuilder = in createBoundaryInterface()
66 TypeSpec.interfaceBuilder(this.psiClass.getName() + "BoundaryInterface") in createBoundaryInterface()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
DPreparedStatementWriter.kt25 import com.squareup.javapoet.TypeSpec
32 fun createAnonymous(classWriter: ClassWriter, dbParam: FieldSpec): TypeSpec { in createAnonymous()
35 return TypeSpec.anonymousClassBuilder("$N", dbParam).apply { in createAnonymous()
DClassWriter.kt29 import com.squareup.javapoet.TypeSpec
41 abstract fun createTypeSpecBuilder(): TypeSpec.Builder in createTypeSpecBuilder()
54 private fun addSuppressUnchecked(builder: TypeSpec.Builder) { in addSuppressUnchecked()
63 private fun addGeneratedAnnotationIfAvailable(adapterTypeSpecBuilder: TypeSpec.Builder, in addGeneratedAnnotationIfAvailable()
DEntityDeletionAdapterWriter.kt31 import com.squareup.javapoet.TypeSpec
35 fun createAnonymous(classWriter: ClassWriter, dbParam: String): TypeSpec { in createAnonymous()
37 return TypeSpec.anonymousClassBuilder("$L", dbParam).apply { in createAnonymous()
DEntityInsertionAdapterWriter.kt31 import com.squareup.javapoet.TypeSpec in <lambda>()
35 fun createAnonymous(classWriter: ClassWriter, dbParam: String): TypeSpec { in <lambda>()
37 return TypeSpec.anonymousClassBuilder("$L", dbParam).apply { in <lambda>()
DEntityUpdateAdapterWriter.kt31 import com.squareup.javapoet.TypeSpec in <lambda>()
35 fun createAnonymous(classWriter: ClassWriter, dbParam: String): TypeSpec { in <lambda>()
37 return TypeSpec.anonymousClassBuilder("$L", dbParam).apply { in <lambda>()
DDatabaseWriter.kt34 import com.squareup.javapoet.TypeSpec in <lambda>()
46 override fun createTypeSpecBuilder(): TypeSpec.Builder { in <lambda>()
47 val builder = TypeSpec.classBuilder(database.implTypeName) in <lambda>()
123 private fun addDaoImpls(builder: TypeSpec.Builder) { in <lambda>()
DSQLiteOpenHelperWriter.kt31 import com.squareup.javapoet.TypeSpec in <lambda>()
64 private fun createOpenCallback(scope: CodeGenScope): TypeSpec { in <lambda>()
65 return TypeSpec.anonymousClassBuilder(L, database.version).apply { in <lambda>()
DDaoWriter.kt42 import com.squareup.javapoet.TypeSpec in <lambda>()
76 override fun createTypeSpecBuilder(): TypeSpec.Builder { in <lambda>()
77 val builder = TypeSpec.classBuilder(dao.implTypeName) in <lambda>()
361 insertionAdapters: Map<String, Pair<FieldSpec, TypeSpec>> in <lambda>()
430 implCallback: (T, Entity) -> TypeSpec in <lambda>()
453 adapters: Map<String, Pair<FieldSpec, TypeSpec>> in <lambda>()
559 val fields: Map<String, Pair<FieldSpec, TypeSpec>>, in <lambda>()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/writer/
DEntityCursorConverterWriterTest.kt23 import com.squareup.javapoet.TypeSpec in <lambda>()
97 override fun createTypeSpecBuilder(): TypeSpec.Builder { in <lambda>()
99 return TypeSpec.classBuilder(className).apply { in <lambda>()
/frameworks/support/navigation/safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/
DNavWriter.kt31 import com.squareup.javapoet.TypeSpec in <lambda>()
97 destination: Destination): TypeSpec { in generateDestinationDirectionsTypeSpec()
115 return TypeSpec.classBuilder(className) in generateDestinationDirectionsTypeSpec()
122 fun generateDirectionsTypeSpec(action: Action): TypeSpec { in generateDirectionsTypeSpec()
132 return TypeSpec.classBuilder(className) in generateDirectionsTypeSpec()
190 val builderTypeSpec = TypeSpec.classBuilder("Builder") in generateArgsJavaFile()
200 val typeSpec = TypeSpec.classBuilder(className) in generateArgsJavaFile()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/query/result/
DLiveDataQueryResultBinder.kt32 import com.squareup.javapoet.TypeSpec
52 val liveDataImpl = TypeSpec.anonymousClassBuilder("").apply { in convertAndReturn()
103 private fun createAnonymousObserver(): TypeSpec { in createAnonymousObserver()
105 return TypeSpec.anonymousClassBuilder(tableNamesList).apply { in createAnonymousObserver()
DGuavaListenableFutureQueryResultBinder.kt30 import com.squareup.javapoet.TypeSpec
77 scope: CodeGenScope): TypeSpec { in createCallableOfT()
78 return TypeSpec.anonymousClassBuilder("").apply { in createCallableOfT()
DDataSourceFactoryQueryResultBinder.kt26 import com.squareup.javapoet.TypeSpec
42 val pagedListProvider = TypeSpec in convertAndReturn()
DFlowableQueryResultBinder.kt30 import com.squareup.javapoet.TypeSpec
45 val callableImpl = TypeSpec.anonymousClassBuilder("").apply { in convertAndReturn()
DPositionalDataSourceQueryResultBinder.kt31 import com.squareup.javapoet.TypeSpec
49 val spec = TypeSpec.anonymousClassBuilder("$N, $L, $L $L", in convertAndReturn()
DRxCallableQueryResultBinder.kt32 import com.squareup.javapoet.TypeSpec
49 val callable = TypeSpec.anonymousClassBuilder("").apply { in convertAndReturn()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/
DCustomTypeConverterResolutionTest.kt44 import com.squareup.javapoet.TypeSpec
53 fun TypeSpec.toJFO(): JavaFileObject { in toJFO() method
233 useCollection: Boolean = false): TypeSpec { in createEntity()
242 return TypeSpec.classBuilder(ENTITY).apply { in createEntity()
264 useCollection: Boolean = false): TypeSpec { in createDatabase()
265 return TypeSpec.classBuilder(DB).apply { in createDatabase()
295 useCollection: Boolean = false): TypeSpec { in createDao()
304 return TypeSpec.classBuilder(DAO).apply { in createDao()
DBasicColumnTypeAdaptersTest.kt26 import com.squareup.javapoet.TypeSpec in <lambda>()
123 val spec = TypeSpec.classBuilder("OutClass") in <lambda>()
/frameworks/support/navigation/safe-args-generator/src/tests/kotlin/androidx/navigation/safe/args/generator/
DNavWriterTest.kt33 import com.squareup.javapoet.TypeSpec
61 private fun wrappedInnerClass(spec: TypeSpec): JavaFileObject { in id()
62 val wrappedSpec = TypeSpec.classBuilder("BoringWrapper").addType(spec).build() in id()
75 private fun toJavaFileObject(spec: TypeSpec) = in toJavaFileObject()
/frameworks/base/libs/androidfw/include/androidfw/
DLoadedArsc.h46 struct TypeSpec { struct
77 using TypeSpecPtr = util::unique_cptr<TypeSpec>;
150 inline const TypeSpec* GetTypeSpecByTypeIndex(uint8_t type_index) const { in GetTypeSpecByTypeIndex()
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp60 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST()
84 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST()
168 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST()
211 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(0); in TEST()
260 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(0x03u - 1); in TEST()
/frameworks/support/lifecycle/compiler/src/main/kotlin/androidx/lifecycle/
Dwriter.kt29 import com.squareup.javapoet.TypeSpec in <lambda>()
116 val adapterTypeSpecBuilder = TypeSpec.classBuilder(adapterName) in writeAdapter()
132 private fun addGeneratedAnnotationIfAvailable(adapterTypeSpecBuilder: TypeSpec.Builder, in addGeneratedAnnotationIfAvailable()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
DCustomConverterProcessorTest.kt35 import com.squareup.javapoet.TypeSpec in <lambda>()
203 TypeSpec.classBuilder(ClassName.bestGuess(extendingQName)).apply { in <lambda>()
238 val code = TypeSpec.classBuilder(CONVERTER).apply { in <lambda>()
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp66 if ((std::numeric_limits<size_t>::max() - sizeof(TypeSpec)) / sizeof(ElementType) < in Build()
70 TypeSpec* type_spec = in Build()
71 (TypeSpec*)::malloc(sizeof(TypeSpec) + (types_.size() * sizeof(ElementType))); in Build()
333 const TypeSpec* type_spec = type_specs_[type_idx].get(); in FindEntryByName()

12