Home
last modified time | relevance | path

Searched refs:methodBuilder (Results 1 – 7 of 7) sorted by relevance

/cts/common/device-side/bedstead/testapp/src/processor/main/java/com/android/bedstead/testapp/processor/
DProcessor.java336 MethodSpec.Builder methodBuilder = in generateRemoteFrameworkClassWrapper() local
337 MethodSpec.methodBuilder(method.getSimpleName().toString()) in generateRemoteFrameworkClassWrapper()
343 methodBuilder.addException(ClassName.get(m)); in generateRemoteFrameworkClassWrapper()
353 methodBuilder.addParameter(parameterSpec); in generateRemoteFrameworkClassWrapper()
421 methodBuilder.beginControlFlow("try"); in generateRemoteFrameworkClassWrapper()
424 methodBuilder.addStatement(runLogic); in generateRemoteFrameworkClassWrapper()
426 methodBuilder.addStatement("return $L", runLogic); in generateRemoteFrameworkClassWrapper()
429 methodBuilder.nextControlFlow( in generateRemoteFrameworkClassWrapper()
434 methodBuilder.nextControlFlow("catch ($T e)", m) in generateRemoteFrameworkClassWrapper()
438 methodBuilder in generateRemoteFrameworkClassWrapper()
[all …]
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/main/java/com/android/bedstead/remoteframeworkclasses/processor/
DProcessor.java343 MethodSpec.Builder methodBuilder = in generateFrameworkInterface() local
344 MethodSpec.methodBuilder(method.getSimpleName().toString()) in generateFrameworkInterface()
353 methodBuilder.returns(signatureReturnOverrides.get(signature)); in generateFrameworkInterface()
356 methodBuilder.addJavadoc("See {@link $T#$L}.", in generateFrameworkInterface()
360 methodBuilder.addException(ClassName.get(thrownType)); in generateFrameworkInterface()
377 methodBuilder.addParameter(parameterSpec); in generateFrameworkInterface()
380 classBuilder.addMethod(methodBuilder.build()); in generateFrameworkInterface()
421 MethodSpec.Builder methodBuilder = in generateDpmParent() local
422 MethodSpec.methodBuilder(method.getSimpleName().toString()) in generateDpmParent()
431 methodBuilder.addException(ClassName.get(thrownType)); in generateDpmParent()
[all …]
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DDexParser.java154 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in parse() local
155 methodBuilder.setName(dxMethod.getName()); in parse()
156 methodBuilder.setAccessFlags(dxMethod.getAccessFlags()); in parse()
158 methodBuilder.addParameters(ClassUtils.getCanonicalName(parameter)); in parse()
160 methodBuilder.setReturnType( in parse()
164 methodBuilder.addAllAnnotations(annLst); in parse()
166 classBuilder.addMethods(methodBuilder.build()); in parse()
273 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in processMethod() local
274 methodBuilder.setName(m.getName()); in processMethod()
276 methodBuilder.addParameters(ClassUtils.getCanonicalName(parameter)); in processMethod()
[all …]
DSoParser.java178 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in parseApi() local
179 methodBuilder.setName(symbol.name); in parseApi()
180 mInternalApiClassBuilder.addMethods(methodBuilder.build()); in parseApi()
193 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in parseApi() local
194 methodBuilder.setName(symbol.name); in parseApi()
195 apiClassBuilder.addMethods(methodBuilder.build()); in parseApi()
DTestSuiteParser.java331 ApiMethod.Builder methodBuilder = ApiMethod.newBuilder(); in parseJavaHostTest() local
332 methodBuilder.setName(m.getName()); in parseJavaHostTest()
338 methodBuilder.setKnownFailureFilter(nfFilter); in parseJavaHostTest()
340 tClassBuilder.addMethods(methodBuilder); in parseJavaHostTest()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTestCaseReport.java243 TestSuite.Package.Class.Method.Builder methodBuilder = in parseApkTestCase() local
245 methodBuilder.setName(mName); in parseApkTestCase()
246 tClassBuilder.addMethods(methodBuilder); in parseApkTestCase()
261 TestSuite.Package.Class.Method.Builder methodBuilder = in parseApkTestCase() local
263 methodBuilder.setName(mName); in parseApkTestCase()
264 tClassBuilder.addMethods(methodBuilder); in parseApkTestCase()
278 TestSuite.Package.Class.Method.Builder methodBuilder = in parseApkTestCase() local
280 methodBuilder.setName(mName); in parseApkTestCase()
281 tClassBuilder.addMethods(methodBuilder); in parseApkTestCase()
384 TestSuite.Package.Class.Method.Builder methodBuilder = in parseJarTestCase() local
[all …]
/cts/common/device-side/bedstead/testapisreflection/src/processor/main/java/com/android/bedstead/testapisreflection/processor/
DProcessor.java247 FunSpec.Builder methodBuilder = FunSpec.builder(method.getName()) in generatedMethodsForTestApiClasses() local
252 methodBuilder.returns(returnTypeName); in generatedMethodsForTestApiClasses()
255 String[] parametersInfo = buildParametersCode(method, methodBuilder); in generatedMethodsForTestApiClasses()
312 methodBuilder.addCode(codeBuilder.build()); in generatedMethodsForTestApiClasses()
314 proxyClassBuilder.addFunction(methodBuilder.build()); in generatedMethodsForTestApiClasses()
355 private CodeBlock.Builder buildReflectionMethodCode(FunSpec.Builder methodBuilder, in buildReflectionMethodCode() argument
364 if (methodBuilder.getParameters().isEmpty()) { in buildReflectionMethodCode()
536 FunSpec.Builder methodBuilder) { in buildParametersCode() argument
550 methodBuilder.addParameter(parameterSpec); in buildParametersCode()