Home
last modified time | relevance | path

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

1234

/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DOtherProfileGenerator.java116 MethodSpec.methodBuilder("timeout") in generateOtherProfileClass()
133 MethodSpec.methodBuilder("ifAvailable") in generateOtherProfileClass()
161 MethodSpec.Builder methodBuilder = in generateBlockingMethodOnOtherProfileClass() local
162 MethodSpec.methodBuilder(method.simpleName()) in generateBlockingMethodOnOtherProfileClass()
174 methodBuilder.addStatement( in generateBlockingMethodOnOtherProfileClass()
180 methodBuilder.addStatement("$1T params = $1T.obtain()", PARCEL_CLASSNAME); in generateBlockingMethodOnOtherProfileClass()
185 methodBuilder.addStatement( in generateBlockingMethodOnOtherProfileClass()
192 methodBuilder.addStatement( in generateBlockingMethodOnOtherProfileClass()
198 methodBuilder.addStatement("$1T returnParcel", PARCEL_CLASSNAME); in generateBlockingMethodOnOtherProfileClass()
199 methodBuilder.beginControlFlow("try"); in generateBlockingMethodOnOtherProfileClass()
[all …]
DFakeOtherGenerator.java99 MethodSpec.methodBuilder("timeout") in generateFakeOther()
115 MethodSpec.methodBuilder("ifAvailable") in generateFakeOther()
175 MethodSpec.Builder methodBuilder = in generateBlockingMethodOnFakeOther() local
176 MethodSpec.methodBuilder(method.simpleName()) in generateBlockingMethodOnFakeOther()
200 methodBuilder.beginControlFlow("if (!connector.isConnected())"); in generateBlockingMethodOnFakeOther()
201 methodBuilder.addStatement( in generateBlockingMethodOnFakeOther()
205 methodBuilder.endControlFlow(); in generateBlockingMethodOnFakeOther()
207 methodBuilder.beginControlFlow("if (!connector.isManuallyManagingConnection())"); in generateBlockingMethodOnFakeOther()
208 methodBuilder.addStatement( in generateBlockingMethodOnFakeOther()
212 methodBuilder.endControlFlow(); in generateBlockingMethodOnFakeOther()
[all …]
DInterfaceGenerator.java96 MethodSpec.methodBuilder("create") in generateCrossProfileTypeInterface()
107 MethodSpec.methodBuilder("current") in generateCrossProfileTypeInterface()
114 MethodSpec.methodBuilder("other") in generateCrossProfileTypeInterface()
121 MethodSpec.methodBuilder("personal") in generateCrossProfileTypeInterface()
128 MethodSpec.methodBuilder("work") in generateCrossProfileTypeInterface()
135 MethodSpec.methodBuilder("profile") in generateCrossProfileTypeInterface()
143 MethodSpec.methodBuilder("profiles") in generateCrossProfileTypeInterface()
158 MethodSpec.methodBuilder("both") in generateCrossProfileTypeInterface()
179 MethodSpec.Builder methodBuilder = in generatePrimaryMethod() local
180 MethodSpec.methodBuilder("primary") in generatePrimaryMethod()
[all …]
DMultipleProfilesGenerator.java112 MethodSpec.methodBuilder("timeout") in generateMultipleProfilesClass()
172 MethodSpec.Builder methodBuilder = in generateBlockingMethodOnMultipleProfilesClass() local
173 MethodSpec.methodBuilder(methodName) in generateBlockingMethodOnMultipleProfilesClass()
184 methodBuilder.beginControlFlow( in generateBlockingMethodOnMultipleProfilesClass()
188 methodBuilder.beginControlFlow("try"); in generateBlockingMethodOnMultipleProfilesClass()
189 methodBuilder.addStatement("sender.$L", methodCall); in generateBlockingMethodOnMultipleProfilesClass()
190 methodBuilder.nextControlFlow("catch ($T e)", UNAVAILABLE_PROFILE_EXCEPTION_CLASSNAME); in generateBlockingMethodOnMultipleProfilesClass()
191 methodBuilder.addComment( in generateBlockingMethodOnMultipleProfilesClass()
193 methodBuilder.endControlFlow(); in generateBlockingMethodOnMultipleProfilesClass()
194 methodBuilder.endControlFlow(); in generateBlockingMethodOnMultipleProfilesClass()
[all …]
DCrossProfileCallbackCodeGenerator.java146 MethodSpec.methodBuilder("onResult") in generateMultiMergerResultClass()
200 MethodSpec.Builder methodBuilder = in generateMultiMergerInputClass() local
201 MethodSpec.methodBuilder(method.getSimpleName().toString()) in generateMultiMergerInputClass()
207 methodBuilder.addParameter(ClassName.get(paramType), paramName); in generateMultiMergerInputClass()
208 methodBuilder.addStatement("callback.onResult(profileId, $L)", paramName); in generateMultiMergerInputClass()
210 methodBuilder.addStatement("callback.onResult(profileId, null)"); in generateMultiMergerInputClass()
213 classBuilder.addMethod(methodBuilder.build()); in generateMultiMergerInputClass()
221 MethodSpec.methodBuilder(method.getSimpleName().toString()) in addMultiMethod()
233 MethodSpec.methodBuilder(method.getSimpleName().toString()) in addMultiMethod()
293 MethodSpec.Builder methodBuilder = in addReceiverMethod() local
[all …]
DFakeCrossProfileTypeGenerator.java100 MethodSpec.methodBuilder("builder") in generateFakeCrossProfileType()
107 MethodSpec.methodBuilder("current") in generateFakeCrossProfileType()
125 MethodSpec.methodBuilder("other") in generateFakeCrossProfileType()
140 MethodSpec.methodBuilder("profile") in generateFakeCrossProfileType()
163 MethodSpec.methodBuilder("profiles") in generateFakeCrossProfileType()
179 MethodSpec.methodBuilder("both") in generateFakeCrossProfileType()
255 MethodSpec.methodBuilder("personal") in addPersonalMethod()
284 MethodSpec.methodBuilder("work") in addWorkMethod()
326 MethodSpec.methodBuilder("connector") in generateFakeCrossProfileTypeBuilder()
343 MethodSpec.methodBuilder("build") in setupStaticBuilder()
[all …]
DDefaultProfileClassGenerator.java113 MethodSpec.methodBuilder("other") in generateDefaultProfileClass()
129 MethodSpec.methodBuilder("personal") in generateDefaultProfileClass()
143 MethodSpec.methodBuilder("work") in generateDefaultProfileClass()
157 MethodSpec.methodBuilder("profile") in generateDefaultProfileClass()
186 MethodSpec.methodBuilder("profiles") in generateDefaultProfileClass()
202 MethodSpec.methodBuilder("both") in generateDefaultProfileClass()
233 MethodSpec.methodBuilder("current") in addCurrentMethod()
261 MethodSpec.Builder methodBuilder = in generatePrimaryMethod() local
262 MethodSpec.methodBuilder("primary") in generatePrimaryMethod()
279 classBuilder.addMethod(methodBuilder.build()); in generatePrimaryMethod()
[all …]
DIfAvailableGenerator.java104 MethodSpec.Builder methodBuilder = in generateMethodOnIfAvailableClass() local
105 MethodSpec.methodBuilder(method.simpleName()) in generateMethodOnIfAvailableClass()
117 methodBuilder in generateMethodOnIfAvailableClass()
130 methodBuilder.addParameter(method.returnTypeTypeName(), "defaultValue"); in generateMethodOnIfAvailableClass()
131 methodBuilder in generateMethodOnIfAvailableClass()
162 methodBuilder in generateMethodOnIfAvailableClass()
174 methodBuilder.addParameter( in generateMethodOnIfAvailableClass()
176 methodBuilder in generateMethodOnIfAvailableClass()
196 methodBuilder in generateMethodOnIfAvailableClass()
199 methodBuilder in generateMethodOnIfAvailableClass()
[all …]
DAlwaysThrowsGenerator.java95 MethodSpec.methodBuilder("timeout") in generateAlwaysThrowsClass()
111 MethodSpec.methodBuilder("ifAvailable") in generateAlwaysThrowsClass()
139 MethodSpec.Builder methodBuilder = in generateBlockingMethodOnAlwaysThrowsClass() local
140 MethodSpec.methodBuilder(method.simpleName()) in generateBlockingMethodOnAlwaysThrowsClass()
152 classBuilder.addMethod(methodBuilder.build()); in generateBlockingMethodOnAlwaysThrowsClass()
159 MethodSpec.Builder methodBuilder = in generateCrossProfileCallbackMethodOnAlwaysThrowsClass() local
160 MethodSpec.methodBuilder(method.simpleName()) in generateCrossProfileCallbackMethodOnAlwaysThrowsClass()
174 classBuilder.addMethod(methodBuilder.build()); in generateCrossProfileCallbackMethodOnAlwaysThrowsClass()
192 MethodSpec.Builder methodBuilder = in generateFutureMethodOnAlwaysThrowsClass() local
193 MethodSpec.methodBuilder(method.simpleName()) in generateFutureMethodOnAlwaysThrowsClass()
[all …]
DServiceGenerator.java91 MethodSpec.methodBuilder("onBind") in generateServiceClass()
126 MethodSpec.methodBuilder("prepareCall") in addPrepareCallMethod()
142 MethodSpec.methodBuilder("call") in addCallMethod()
162 MethodSpec.methodBuilder("fetchResponse") in addFetchResponseMethod()
DUserConnectorCodeGenerator.java83 MethodSpec.methodBuilder("builder") in generateUserConnector()
134 MethodSpec.methodBuilder("setScheduledExecutorService") in generateUserConnectorBuilder()
144 MethodSpec.methodBuilder("setBinder") in generateUserConnectorBuilder()
153 MethodSpec.methodBuilder("build") in generateUserConnectorBuilder()
DProfileConnectorCodeGenerator.java84 MethodSpec.methodBuilder("builder") in generateProfileConnector()
145 MethodSpec.methodBuilder("setScheduledExecutorService") in generateProfileConnectorBuilder()
155 MethodSpec.methodBuilder("setBinder") in generateProfileConnectorBuilder()
164 MethodSpec.methodBuilder("build") in generateProfileConnectorBuilder()
/external/javapoet/src/test/java/com/squareup/javapoet/
DMethodSpecTest.java68 MethodSpec.methodBuilder("doSomething").addAnnotations(null); in nullAnnotationsAddition()
77 MethodSpec.methodBuilder("doSomething").addTypeVariables(null); in nullTypeVariablesAddition()
86 MethodSpec.methodBuilder("doSomething").addParameters(null); in nullParametersAddition()
95 MethodSpec.methodBuilder("doSomething").addExceptions(null); in nullExceptionsAddition()
280 a = MethodSpec.methodBuilder("taco").build(); in equalsAndHashCode()
281 b = MethodSpec.methodBuilder("taco").build(); in equalsAndHashCode()
293 MethodSpec methodSpec = MethodSpec.methodBuilder("getTaco") in withoutParameterJavaDoc()
307 MethodSpec methodSpec = MethodSpec.methodBuilder("getTaco") in withParameterJavaDoc()
328 MethodSpec methodSpec = MethodSpec.methodBuilder("getTaco") in withParameterJavaDocAndWithoutMethodJavadoc()
348 MethodSpec methodSpec = MethodSpec.methodBuilder("duplicateExceptions") in duplicateExceptionsIgnored()
[all …]
DTypeSpecTest.java62 .addMethod(MethodSpec.methodBuilder("toString") in basic()
128 .addMethod(MethodSpec.methodBuilder("doSomething") in anonymousInnerClass()
137 .addMethod(MethodSpec.methodBuilder("call") in anonymousInnerClass()
243 .addMethod(MethodSpec.methodBuilder("fooBar") in retrofitStyleInterface()
357 .addMethod(MethodSpec.methodBuilder("toString") in enumWithSubclassing()
413 .addMethod(MethodSpec.methodBuilder("fold") in enumsMayDefineAbstractMethods()
418 .addMethod(MethodSpec.methodBuilder("fold") in enumsMayDefineAbstractMethods()
460 .addMethod(MethodSpec.methodBuilder("toString") in enumWithMembersButNoConstructorCall()
512 .addMethod(MethodSpec.methodBuilder("throwOne") in methodThrows()
515 .addMethod(MethodSpec.methodBuilder("throwTwo") in methodThrows()
[all …]
/external/dagger2/java/dagger/internal/codegen/writing/
DMembersInjectionMethods.java20 import static com.squareup.javapoet.MethodSpec.methodBuilder;
97 MethodSpec.Builder methodBuilder = in membersInjectionMethod() local
98 methodBuilder(methodName) in membersInjectionMethod()
105 methodBuilder.addAnnotation(ClassName.get(canIgnoreReturnValue)); in membersInjectionMethod()
108 methodBuilder.addCode( in membersInjectionMethod()
120 methodBuilder.addStatement("return $L", instance); in membersInjectionMethod()
122 MethodSpec method = methodBuilder.build(); in membersInjectionMethod()
DInjectionMethods.java25 import static com.squareup.javapoet.MethodSpec.methodBuilder;
189 methodBuilder(methodName(constructor)) in constructorProxy()
441 methodBuilder(methodName).addModifiers(PUBLIC, STATIC).varargs(method.isVarArgs()); in methodProxy()
481 methodBuilder(methodName) in fieldProxy()
513 MethodSpec.Builder methodBuilder, Parameterizable element) { in copyTypeParameters() argument
516 .forEach(methodBuilder::addTypeVariable); in copyTypeParameters()
519 private static void copyThrows(MethodSpec.Builder methodBuilder, ExecutableElement method) { in copyThrows() argument
520 method.getThrownTypes().stream().map(TypeName::get).forEach(methodBuilder::addException); in copyThrows()
524 MethodSpec.Builder methodBuilder, in copyParameters() argument
534 return copyParameter(methodBuilder, type, name, useObject); in copyParameters()
[all …]
/external/smali/smali/src/main/antlr/
DsmaliTreeWalker.g358 MethodImplementationBuilder methodBuilder;
386 $method::methodBuilder = new MethodImplementationBuilder($method::totalMethodRegisters);
392 $method::methodBuilder = new MethodImplementationBuilder(0);
413 methodImplementation = $method::methodBuilder.getMethodImplementation();
582 $method::methodBuilder.addLabel($SIMPLE_NAME.text);
592 $method::methodBuilder.addCatch(dexBuilder.internTypeReference($nonvoid_type_descriptor.type),
599 $method::methodBuilder.addCatch($from.label, $to.label, $using.label);
651 $method::methodBuilder.addLineNumber($integral_literal.value);
658 $method::methodBuilder.addStartLocal(registerNumber,
668 $method::methodBuilder.addEndLocal(registerNumber);
[all …]
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DFragmentGenerator.java102 return MethodSpec.methodBuilder("onAttach") in onAttachContextMethod()
122 return MethodSpec.methodBuilder("onAttach") in onAttachActivityMethod()
152 return MethodSpec.methodBuilder("initializeComponentContext") in initializeComponentContextMethod()
174 return MethodSpec.methodBuilder("getContext") in getContextMethod()
188 return MethodSpec.methodBuilder("onGetLayoutInflater") in inflatorMethod()
208 return MethodSpec.methodBuilder("getDefaultViewModelProviderFactory") in getDefaultViewModelProviderFactory()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentImplementationBuilder.java23 import static com.squareup.javapoet.MethodSpec.methodBuilder;
209 MethodSpec.Builder methodBuilder = in addCancellationListenerImplementation() local
210 methodBuilder(CANCELLATION_LISTENER_METHOD_NAME) in addCancellationListenerImplementation()
218 methodBuilder.addCode(CodeBlocks.concat(cancellationStatements)).build(); in addCancellationListenerImplementation()
225 methodName -> methodBuilder(methodName).addModifiers(PRIVATE)); in addCancellationListenerImplementation()
227 methodBuilder.addStatement("$N($L)", cancelProducersMethod, MAY_INTERRUPT_IF_RUNNING); in addCancellationListenerImplementation()
232 cancelParentStatement().ifPresent(methodBuilder::addCode); in addCancellationListenerImplementation()
234 componentImplementation.addMethod(CANCELLATION_LISTENER_METHOD, methodBuilder.build()); in addCancellationListenerImplementation()
361 methodBuilder(methodName) in addInitializeMethods()
477 methodBuilder(creatorKind.methodName()) in createRootComponentFactoryMethod()
[all …]
/external/javapoet/src/main/java/com/squareup/javapoet/
DMethodSpec.java187 public static Builder methodBuilder(String name) { in methodBuilder() method in MethodSpec
220 MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(methodName); in overriding() local
222 methodBuilder.addAnnotation(Override.class); in overriding()
227 methodBuilder.addModifiers(modifiers); in overriding()
231 methodBuilder.addTypeVariable(TypeVariableName.get(var)); in overriding()
234 methodBuilder.returns(TypeName.get(method.getReturnType())); in overriding()
235 methodBuilder.addParameters(ParameterSpec.parametersOf(method)); in overriding()
236 methodBuilder.varargs(method.isVarArgs()); in overriding()
239 methodBuilder.addException(TypeName.get(thrownType)); in overriding()
242 return methodBuilder; in overriding()
/external/dagger2/java/dagger/grpc/server/processor/
DServiceDefinitionTypeGenerator.java19 import static com.squareup.javapoet.MethodSpec.methodBuilder;
52 methodBuilder("grpcService") in createType()
60 methodBuilder(grpcServiceModel.subcomponentServiceDefinitionMethodName()) in createType()
DProxyModuleGenerator.java21 import static com.squareup.javapoet.MethodSpec.methodBuilder;
80 methodBuilder("serviceDefinition") in provideServiceDefinitionContribution()
150 return methodBuilder("serviceDefinitionFactory") in provideServiceDefinitionFactory()
168 methodBuilder("getServiceDefinition") in anonymousServiceDefinitionFactory()
/external/tensorflow/tensorflow/java/src/gen/java/org/tensorflow/processor/
DOperatorProcessor.java254 MethodSpec.methodBuilder(methodName) in buildOpMethod()
381 MethodSpec.methodBuilder("withSubScope") in buildTopClass()
393 MethodSpec.methodBuilder("withName") in buildTopClass()
405 MethodSpec.methodBuilder("withControlDependencies") in buildTopClass()
421 MethodSpec.methodBuilder("scope") in buildTopClass()
435 MethodSpec.methodBuilder(entry.getKey()) in buildTopClass()
444 MethodSpec.methodBuilder("create") in buildTopClass()
454 MethodSpec.methodBuilder("create") in buildTopClass()
/external/dagger2/java/dagger/hilt/android/processor/internal/customtestapplication/
DCustomTestApplicationGenerator.java90 return MethodSpec.methodBuilder("attachBaseContext") in getAttachBaseContextMethod()
100 return MethodSpec.methodBuilder("generatedComponent") in getComponentMethod()
109 return MethodSpec.methodBuilder("componentManager") in getComponentManagerMethod()
/external/javapoet/
DREADME.md28 MethodSpec main = MethodSpec.methodBuilder("main")
66 MethodSpec main = MethodSpec.methodBuilder("main")
92 MethodSpec main = MethodSpec.methodBuilder("main")
105 return MethodSpec.methodBuilder(name)
135 MethodSpec main = MethodSpec.methodBuilder("main")
165 MethodSpec main = MethodSpec.methodBuilder("main")
195 return MethodSpec.methodBuilder(name)
231 return MethodSpec.methodBuilder(name)
263 MethodSpec today = MethodSpec.methodBuilder("today")
300 MethodSpec today = MethodSpec.methodBuilder("tomorrow")
[all …]

1234