Home
last modified time | relevance | path

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

12

/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DFakeOtherGenerator.java192 methodBuilder.nextControlFlow("catch ($T e)", RuntimeException.class); in generateBlockingMethodOnFakeOther()
194 methodBuilder.nextControlFlow("catch ($T e)", Error.class); in generateBlockingMethodOnFakeOther()
246 methodBuilder.nextControlFlow("catch ($T e)", RuntimeException.class); in generateCrossProfileCallbackMethodOnFakeOther()
248 methodBuilder.nextControlFlow("catch ($T e)", Error.class); in generateCrossProfileCallbackMethodOnFakeOther()
313 methodBuilder.nextControlFlow("catch ($T e)", RuntimeException.class); in generateFutureMethodOnFakeOther()
315 methodBuilder.nextControlFlow("catch ($T e)", Error.class); in generateFutureMethodOnFakeOther()
DBundlerGenerator.java147 codeBuilder.nextControlFlow( in addWriteToParcelTypes()
204 codeBuilder.nextControlFlow( in addReadFromParcelTypes()
259 codeBuilder.nextControlFlow( in addCreateArrayTypes()
304 codeBuilder.nextControlFlow( in addWriteToBundleTypes()
366 codeBuilder.nextControlFlow( in addReadFromBundleTypes()
DOtherProfileGenerator.java177 methodBuilder.nextControlFlow("catch ($T e)", UNAVAILABLE_PROFILE_EXCEPTION_CLASSNAME); in generateBlockingMethodOnOtherProfileClass()
181 methodBuilder.nextControlFlow("catch ($T e)", exception); in generateBlockingMethodOnOtherProfileClass()
185 methodBuilder.nextControlFlow("catch ($T e)", PROFILE_RUNTIME_EXCEPTION_CLASSNAME); in generateBlockingMethodOnOtherProfileClass()
188 methodBuilder.nextControlFlow("catch ($T e)", Throwable.class); in generateBlockingMethodOnOtherProfileClass()
DFakeCrossProfileTypeGenerator.java122 .nextControlFlow("else") in generateFakeCrossProfileType()
137 .nextControlFlow("else") in generateFakeCrossProfileType()
155 .nextControlFlow("else") in generateFakeCrossProfileType()
265 .nextControlFlow("else") in addPersonalMethod()
294 .nextControlFlow("else") in addWorkMethod()
DIfAvailableGenerator.java128 .nextControlFlow("catch ($T e)", UNAVAILABLE_PROFILE_EXCEPTION_CLASSNAME) in generateMethodOnIfAvailableClass()
144 .nextControlFlow("catch ($T e)", UNAVAILABLE_PROFILE_EXCEPTION_CLASSNAME) in generateMethodOnIfAvailableClass()
DCrossUserTypeCodeGenerator.java198 .nextControlFlow("else if (userHandle == $T.myUserHandle())", PROCESS_CLASSNAME) in addUserMethod()
200 .nextControlFlow("else") in addUserMethod()
DDispatcherGenerator.java228 methodCode.nextControlFlow("catch ($T e)", RuntimeException.class); in addCallMethod()
249 methodCode.nextControlFlow("catch ($T e)", Error.class); in addCallMethod()
DMultipleProfilesGenerator.java174 methodBuilder.nextControlFlow("catch ($T e)", UNAVAILABLE_PROFILE_EXCEPTION_CLASSNAME); in generateBlockingMethodOnMultipleProfilesClass()
189 methodBuilder.nextControlFlow("catch ($T e)", UNAVAILABLE_PROFILE_EXCEPTION_CLASSNAME); in generateBlockingMethodOnMultipleProfilesClass()
DProtoParcelableWrapperGenerator.java140 .nextControlFlow("catch ($T e)", INVALID_PROTOCOL_BUFFER_EXCEPTION_CLASSNAME) in generateProtoParcelableWrapper()
DCrossProfileCallbackCodeGenerator.java324 .nextControlFlow("catch ($T e)", Exception.class) in addReceiverMethod()
339 .nextControlFlow("catch ($T r)", UNAVAILABLE_PROFILE_EXCEPTION_CLASSNAME) in addReceiverMethod()
DFakeCrossUserTypeGenerator.java137 .nextControlFlow("else if (!targetTypeForUserHandle.containsKey(userHandle))") in generateTargetTypeGetter()
DDefaultProfileClassGenerator.java175 .nextControlFlow("else") in generateDefaultProfileClass()
DInternalCrossProfileClassGenerator.java224 methodCode.nextControlFlow("catch ($L e)", exceptionType); in addBlockingCrossProfileTypeMethod()
/external/javapoet/src/main/java/com/squareup/javapoet/
DMethodSpec.java489 public Builder nextControlFlow(String controlFlow, Object... args) { in nextControlFlow() method in MethodSpec.Builder
490 code.nextControlFlow(controlFlow, args); in nextControlFlow()
498 public Builder nextControlFlow(CodeBlock codeBlock) { in nextControlFlow() method in MethodSpec.Builder
499 return nextControlFlow("$L", codeBlock); in nextControlFlow()
DCodeBlock.java377 public Builder nextControlFlow(String controlFlow, Object... args) {
/external/kotlinpoet/kotlinpoet/src/main/java/com/squareup/kotlinpoet/
DFileSpec.kt476 public fun nextControlFlow(controlFlow: String, vararg args: Any): Builder = apply { in <lambda>() method in com.squareup.kotlinpoet.<lambda>.Builder
480 body.nextControlFlow(controlFlow, *args) in <lambda>()
DFunSpec.kt545 public fun nextControlFlow(controlFlow: String, vararg args: Any): Builder = apply { in <lambda>() method in com.squareup.kotlinpoet.<lambda>.Builder
546 body.nextControlFlow(controlFlow, *args) in <lambda>()
DCodeBlock.kt434 public fun nextControlFlow(controlFlow: String, vararg args: Any?): Builder = apply { in <lambda>() method in com.squareup.kotlinpoet.CodeBlock.Builder
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DFragmentGenerator.java198 builder.nextControlFlow("else") in initializeComponentContextMethod()
/external/kotlinpoet/kotlinpoet/src/test/java/com/squareup/kotlinpoet/
DCodeBlockTest.kt490 nextControlFlow("else") in buildCodeBlock()
511 .nextControlFlow("else if (%1S == %1S)", "Long string that would wrap the line 2 ") in nonWrappingControlFlow()
DTypeSpecTest.kt2185 .nextControlFlow("else if (%1L.%3L && %2L.%3L)", "taco", "otherTaco", "isSupreme()") in indexedElseIf()
2218 .nextControlFlow("else if (5 < 6)") in elseIf()
2823 .nextControlFlow( in tryCatch()
2858 .nextControlFlow("else") in ifElse()
/external/javapoet/
DREADME.md132 You can handle those options using `nextControlFlow()`:
139 .nextControlFlow("else if ($T.currentTimeMillis() == now)", System.class)
141 .nextControlFlow("else")
162 Catching exceptions using `try/catch` is also a use case for `nextControlFlow()`:
168 .nextControlFlow("catch ($T e)", Exception.class)
DCHANGELOG.md203 * Fix: `nextControlFlow()` accepts arguments.
/external/javapoet/src/test/java/com/squareup/javapoet/
DTypeSpecTest.java1273 .nextControlFlow("else if ($1L.$3L && $2L.$3L)", "taco", "otherTaco", "isSupreme()") in indexedElseIf()
1299 .nextControlFlow("else if (5 < 6)") in elseIf()
1979 .nextControlFlow("catch ($T e)", in tryCatch()
2005 .nextControlFlow("else") in ifElse()
DMethodSpecTest.java453 .nextControlFlow(named("else if ($field:N == $threshold:L)", m)) in controlFlowWithNamedCodeBlocks()

12