Home
last modified time | relevance | path

Searched refs:classBuilder (Results 1 – 4 of 4) sorted by relevance

/cts/common/device-side/bedstead/testapp/src/processor/main/java/com/android/bedstead/testapp/processor/
DProcessor.java297 TypeSpec.Builder classBuilder = in generateRemoteFrameworkClassWrapper() local
298 TypeSpec.classBuilder( in generateRemoteFrameworkClassWrapper()
303 classBuilder.addField( in generateRemoteFrameworkClassWrapper()
308 classBuilder.addField( in generateRemoteFrameworkClassWrapper()
312 classBuilder.addField( in generateRemoteFrameworkClassWrapper()
316 classBuilder.addField( in generateRemoteFrameworkClassWrapper()
321 classBuilder.addMethod(MethodSpec.constructorBuilder() in generateRemoteFrameworkClassWrapper()
444 classBuilder.addMethod(methodBuilder.build()); in generateRemoteFrameworkClassWrapper()
447 writeClassToFile(originalClassName.packageName(), classBuilder.build()); in generateRemoteFrameworkClassWrapper()
457 TypeSpec.Builder classBuilder = in generateDpmParentWrapper() local
[all …]
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/main/java/com/android/bedstead/remoteframeworkclasses/processor/
DProcessor.java316 TypeSpec.Builder classBuilder = in generateFrameworkInterface() local
320 classBuilder.addJavadoc("Public, test, and system interface for {@link $T}.\n\n", in generateFrameworkInterface()
322 classBuilder.addJavadoc("<p>All methods are annotated {@link $T} for compatibility with the" in generateFrameworkInterface()
324 classBuilder.addJavadoc("<p>For implementation see {@link $T}.\n", implClassName); in generateFrameworkInterface()
327 classBuilder.addAnnotation(AnnotationSpec.builder(CrossUser.class) in generateFrameworkInterface()
380 classBuilder.addMethod(methodBuilder.build()); in generateFrameworkInterface()
383 writeClassToFile(packageName, classBuilder.build()); in generateFrameworkInterface()
393 TypeSpec.Builder classBuilder = in generateDpmParent() local
394 TypeSpec.classBuilder(className).addModifiers(Modifier.FINAL, Modifier.PUBLIC); in generateDpmParent()
396 classBuilder.addAnnotation(AnnotationSpec.builder(CrossUser.class) in generateDpmParent()
[all …]
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DDexParser.java123 ApiClass.Builder classBuilder = in parse() local
127 classBuilder.setAccessFlags(classDef.getAccessFlags()); in parse()
128 classBuilder.setSuperClass( in parse()
130 classBuilder.addAllInterfaces( in parse()
138 classBuilder.addAllAnnotations(annLst); in parse()
150 classBuilder.addFields(fieldBuilder.build()); in parse()
166 classBuilder.addMethods(methodBuilder.build()); in parse()
267 ApiClass.Builder classBuilder = in processField() local
269 classBuilder.addFields(fieldBuilder.build()); in processField()
279 ApiClass.Builder classBuilder = in processMethod() local
[all …]
/cts/common/device-side/bedstead/testapisreflection/src/processor/main/java/com/android/bedstead/testapisreflection/processor/
DProcessor.java180 private void generateMethods(FileSpec.Builder classBuilder, Set<MethodSignature> testMethods) { in generateMethods() argument
188 generateGetterProperty(classBuilder, method, receiverClass, returnTypeName); in generateMethods()
215 classBuilder.addFunction(reflectMethodBuilder.build()); in generateMethods()
229 TypeSpec.Builder proxyClassBuilder = TypeSpec.classBuilder(proxyClassName) in generatedMethodsForTestApiClasses()
330 private void generateGetterProperty(FileSpec.Builder classBuilder, MethodSignature method, in generateGetterProperty() argument
347 classBuilder.addProperty( in generateGetterProperty()
501 TypeSpec parcelableCreator = TypeSpec.classBuilder("ParcelableCreator") in implementParcelable()