/external/pigweed/pw_rpc/pw_rpc_private/ |
D | test_method.h | 36 constexpr TestMethod(uint32_t id, MethodType type = MethodType::kUnary) 54 template <MethodType kType> 72 static constexpr Invoker GetInvoker(MethodType type) { in GetInvoker() 74 case MethodType::kUnary: in GetInvoker() 75 return InvokeForTest<MethodType::kUnary>; in GetInvoker() 76 case MethodType::kServerStreaming: in GetInvoker() 77 return InvokeForTest<MethodType::kServerStreaming>; in GetInvoker() 78 case MethodType::kClientStreaming: in GetInvoker() 79 return InvokeForTest<MethodType::kClientStreaming>; in GetInvoker() 80 case MethodType::kBidirectionalStreaming: in GetInvoker() [all …]
|
/external/pigweed/pw_rpc/raw/public/pw_rpc/raw/internal/ |
D | method.h | 45 return {id, InvalidInvoker, MethodType::kUnary, {}}; in SynchronousUnary() 56 MethodType::kUnary, in AsynchronousUnary() 68 MethodType::kServerStreaming, in ServerStreaming() 81 MethodType::kClientStreaming, in ClientStreaming() 93 MethodType::kBidirectionalStreaming, in BidirectionalStreaming() 99 return {0, InvalidInvoker, MethodType::kUnary, {}}; in Invalid() 127 MethodType type, in RawMethod() 162 static constexpr MethodType kType = MethodType::kUnary; 194 static constexpr MethodType kType = MethodType::kServerStreaming; 210 static constexpr MethodType kType = MethodType::kClientStreaming; [all …]
|
/external/grpc-grpc-java/api/src/test/java/io/grpc/ |
D | MethodDescriptorTest.java | 27 import io.grpc.MethodDescriptor.MethodType; 47 .setType(MethodType.CLIENT_STREAMING) in createMethodDescriptor() 53 assertEquals(MethodType.CLIENT_STREAMING, descriptor.getType()); in createMethodDescriptor() 62 .setType(MethodType.SERVER_STREAMING) in idempotent() 75 assertEquals(MethodType.SERVER_STREAMING, newDescriptor.getType()); in idempotent() 82 .setType(MethodType.UNARY) in safe() 93 assertEquals(MethodType.UNARY, newDescriptor.getType()); in safe() 100 .setType(MethodType.UNARY) in safeImpliesIdempotent() 116 .setType(MethodType.SERVER_STREAMING) in safeAndNonUnary() 130 .setType(MethodType.SERVER_STREAMING) in sampledToLocalTracing() [all …]
|
D | ServiceDescriptorTest.java | 21 import io.grpc.MethodDescriptor.MethodType; 71 .setType(MethodType.UNARY) in failsOnNonMatchingNames() 87 .setType(MethodType.UNARY) in failsOnNonDuplicateNames() 93 .setType(MethodType.UNARY) in failsOnNonDuplicateNames() 110 .setType(MethodType.UNARY) in toStringTest() 117 .setType(MethodType.UNARY) in toStringTest()
|
/external/pigweed/pw_rpc/ |
D | method_test.cc | 29 static_assert(!HasServerStream(MethodType::kUnary)); 30 static_assert(HasServerStream(MethodType::kServerStreaming)); 31 static_assert(!HasServerStream(MethodType::kClientStreaming)); 32 static_assert(HasServerStream(MethodType::kBidirectionalStreaming)); 34 static_assert(!HasClientStream(MethodType::kUnary)); 35 static_assert(!HasClientStream(MethodType::kServerStreaming)); 36 static_assert(HasClientStream(MethodType::kClientStreaming)); 37 static_assert(HasClientStream(MethodType::kBidirectionalStreaming));
|
D | fake_channel_output_test.cc | 40 const ConstByteSpan& last_response(MethodType type) { in last_response() 44 size_t total_payloads(MethodType type) { in total_payloads() 50 constexpr MethodType type = MethodType::kServerStreaming; in TEST() 79 constexpr MethodType type = MethodType::kUnary; in TEST() 128 constexpr MethodType type = MethodType::kUnary; in TEST() 177 ASSERT_EQ(output.last_response(MethodType::kUnary).size(), kPayload.size()); in TEST() 178 EXPECT_EQ(std::memcmp(output.last_response(MethodType::kUnary).data(), in TEST() 182 EXPECT_EQ(output.total_payloads(MethodType::kUnary), 1u); in TEST() 194 EXPECT_EQ(output.last_response(MethodType::kUnary).size(), 0u); in TEST() 195 EXPECT_EQ(output.total_payloads(MethodType::kUnary), 1u); in TEST() [all …]
|
/external/rust/android-crates-io/crates/grpcio-compiler/src/ |
D | prost_codegen.rs | 12 use crate::util::{fq_grpc, to_snake_case, MethodType}; 144 let ty = fq_grpc(&MethodType::from_method(method).to_string()); in generate_method_body() 166 impl MethodType { impl 167 fn from_method(method: &Method) -> MethodType { in from_method() argument 169 (false, false) => MethodType::Unary, in from_method() 170 (true, false) => MethodType::ClientStreaming, in from_method() 171 (false, true) => MethodType::ServerStreaming, in from_method() 172 (true, true) => MethodType::Duplex, in from_method() 219 match MethodType::from_method(method) { in generate_client_method() 220 MethodType::Unary => { in generate_client_method() [all …]
|
D | codegen.rs | 173 use super::util::{self, fq_grpc, to_snake_case, MethodType}; 215 fn method_type(&self) -> (MethodType, String) { in method_type() argument 220 (false, false) => (MethodType::Unary, fq_grpc("MethodType::Unary")), in method_type() 222 MethodType::ClientStreaming, in method_type() 226 MethodType::ServerStreaming, in method_type() 229 (true, true) => (MethodType::Duplex, fq_grpc("MethodType::Duplex")), in method_type() 398 MethodType::Unary => { in write_client() 434 MethodType::ClientStreaming => { in write_client() 453 MethodType::ServerStreaming => { in write_client() 472 MethodType::Duplex => { in write_client() [all …]
|
D | util.rs | 88 pub enum MethodType { enum 95 impl fmt::Display for MethodType { implementation 101 MethodType::Unary => "MethodType::Unary", in fmt() 102 MethodType::ClientStreaming => "MethodType::ClientStreaming", in fmt() 103 MethodType::ServerStreaming => "MethodType::ServerStreaming", in fmt() 104 MethodType::Duplex => "MethodType::Duplex", in fmt()
|
/external/pigweed/pw_rpc/public/pw_rpc/internal/ |
D | method_union.h | 76 MethodType kExpected, 79 if constexpr (kExpected == MethodType::kUnary) { in InvalidMethod() 83 } else if constexpr (kExpected == MethodType::kServerStreaming) { in InvalidMethod() 88 } else if constexpr (kExpected == MethodType::kClientStreaming) { in InvalidMethod() 93 } else if constexpr (kExpected == MethodType::kBidirectionalStreaming) { in InvalidMethod() 111 template <auto kMethod, typename MethodImpl, MethodType kType, typename... Args> 115 } else if constexpr (kType == MethodType::kUnary) { in GetMethodFor() 123 } else if constexpr (kType == MethodType::kServerStreaming) { in GetMethodFor() 126 } else if constexpr (kType == MethodType::kClientStreaming) { in GetMethodFor() 129 } else if constexpr (kType == MethodType::kBidirectionalStreaming) { in GetMethodFor()
|
D | method_impl_tester.h | 129 MethodType::kUnary); 131 MethodType::kUnary); 133 MethodType::kUnary); 138 MethodType::kUnary); 144 MethodType::kServerStreaming); 147 MethodType::kServerStreaming); 151 MethodType::kClientStreaming); 154 MethodType::kClientStreaming); 158 MethodType::kBidirectionalStreaming); 162 MethodType::kBidirectionalStreaming);
|
/external/jazzer-api/src/main/java/com/code_intelligence/jazzer/api/ |
D | Jazzer.java | 19 import java.lang.invoke.MethodType; 45 MethodType onFuzzTargetReadyType = MethodType.methodType(void.class, Runnable.class); 52 MethodType traceStrcmpType = 53 MethodType.methodType(void.class, String.class, String.class, int.class, int.class); 56 MethodType traceStrstrType = 57 MethodType.methodType(void.class, String.class, String.class, int.class); 60 MethodType traceMemcmpType = 61 MethodType.methodType(void.class, byte[].class, byte[].class, int.class, int.class); 64 MethodType tracePcIndirType = MethodType.methodType(void.class, int.class, int.class);
|
D | Autofuzz.java | 19 import java.lang.invoke.MethodType; 51 MethodType consumeType = 52 MethodType.methodType(Object.class, FuzzedDataProvider.class, Class.class); 56 MethodType.methodType(Object.class, FuzzedDataProvider.class, Function1.class)); 58 MethodType.methodType(Object.class, FuzzedDataProvider.class, Function2.class)); 60 MethodType.methodType(Object.class, FuzzedDataProvider.class, Function3.class)); 62 MethodType.methodType(Object.class, FuzzedDataProvider.class, Function4.class)); 64 MethodType.methodType(Object.class, FuzzedDataProvider.class, Function5.class)); 66 MethodType.methodType(void.class, FuzzedDataProvider.class, Consumer1.class)); 68 MethodType.methodType(void.class, FuzzedDataProvider.class, Consumer2.class)); [all …]
|
/external/pigweed/pw_rpc/nanopb/public/pw_rpc/nanopb/internal/ |
D | method.h | 63 static constexpr MethodType kType = MethodType::kUnary; 98 static constexpr MethodType kType = MethodType::kServerStreaming; 117 static constexpr MethodType kType = MethodType::kClientStreaming; 136 static constexpr MethodType kType = MethodType::kBidirectionalStreaming; 188 MethodType::kUnary, 213 MethodType::kUnary, 236 MethodType::kServerStreaming, 254 MethodType::kClientStreaming, 273 MethodType::kBidirectionalStreaming, 282 MethodType::kUnary, [all …]
|
/external/pigweed/pw_rpc/pwpb/public/pw_rpc/pwpb/internal/ |
D | method.h | 95 MethodType::kUnary, in SynchronousUnary() 124 MethodType::kUnary, in AsynchronousUnary() 151 MethodType::kServerStreaming, in ServerStreaming() 177 MethodType::kClientStreaming, in ClientStreaming() 203 MethodType::kBidirectionalStreaming, in BidirectionalStreaming() 212 MethodType::kUnary, in Invalid() 248 MethodType type, in PwpbMethod() 265 MethodType::kUnary); in CallSynchronousUnary() 274 MethodType method_type, in CallUnaryRequest() 332 .CallUnaryRequest(context, MethodType::kUnary, request, request_struct); in AsynchronousUnaryInvoker() [all …]
|
/external/pigweed/pw_rpc/public/pw_rpc/ |
D | method_type.h | 18 enum class MethodType : unsigned char { enum 26 constexpr bool HasServerStream(MethodType type) { in HasServerStream() 28 static_cast<unsigned>(MethodType::kServerStreaming)) != 0; in HasServerStream() 32 constexpr bool HasClientStream(MethodType type) { in HasClientStream() 34 static_cast<unsigned>(MethodType::kClientStreaming)) != 0; in HasClientStream()
|
/external/javassist/src/test/test4/ |
D | InvokeDyn.java | 9 public static CallSite boot(MethodHandles.Lookup caller, String name, MethodType type) in boot() 14 …MethodHandle method = lookup.findStatic(thisClass, "test9", MethodType.methodType(int.class, int.c… in boot() 18 public CallSite boot2(MethodHandles.Lookup caller, String name, MethodType type) in boot2() 23 …MethodHandle method = lookup.findVirtual(thisClass, "test8", MethodType.methodType(int.class, int.… in boot2() 24 …return new ConstantCallSite(method.asType(MethodType.methodType(int.class, Object.class, int.class… in boot2()
|
/external/pigweed/pw_bluetooth_sapphire/host/att/ |
D | bearer.cc | 86 MethodType GetMethodType(OpCode opcode) { in GetMethodType() 91 return MethodType::kCommand; in GetMethodType() 95 return MethodType::kInvalid; in GetMethodType() 108 return MethodType::kRequest; in GetMethodType() 122 return MethodType::kResponse; in GetMethodType() 125 return MethodType::kNotification; in GetMethodType() 127 return MethodType::kIndication; in GetMethodType() 129 return MethodType::kConfirmation; in GetMethodType() 135 return MethodType::kCommand; in GetMethodType() 142 return MethodType::kRequest; in GetMethodType() [all …]
|
/external/zucchini/testdata/ |
D | invoke-custom-min.smali | 27 …g/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;… 31 …g/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;…
|
/external/google-smali/examples/InvokeCustom/ |
D | BootstrapLinker.smali | 5 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Objec… 17 …voke-virtual {p2, v0, v1}, Ljava/lang/invoke/MethodType;->dropParameterTypes(II)Ljava/lang/invoke/… 22 …kup;->findVirtual(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo… 32 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Strin… 42 …voke-virtual {p2, v0, v1}, Ljava/lang/invoke/MethodType;->dropParameterTypes(II)Ljava/lang/invoke/… 53 …kup;->findVirtual(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo…
|
/external/robolectric/sandbox/src/main/java/org/robolectric/interceptors/ |
D | AndroidInterceptors.java | 6 import static java.lang.invoke.MethodType.methodType; 14 import java.lang.invoke.MethodType; 153 public MethodHandle getMethodHandle(String methodName, MethodType type) 189 public MethodHandle getMethodHandle(String methodName, MethodType type) 219 public MethodHandle getMethodHandle(String methodName, MethodType type) 257 public MethodHandle getMethodHandle(String methodName, MethodType type) 297 public MethodHandle getMethodHandle(String methodName, MethodType type) 356 public MethodHandle getMethodHandle(String methodName, MethodType type) 401 public MethodHandle getMethodHandle(String methodName, MethodType type) 431 public MethodHandle getMethodHandle(String methodName, MethodType type) [all …]
|
/external/pigweed/pw_rpc/ts/ |
D | descriptors.ts | 100 export enum MethodType { enum 170 get type(): MethodType { 172 return MethodType.BIDIRECTIONAL_STREAMING; 174 return MethodType.CLIENT_STREAMING; 176 return MethodType.SERVER_STREAMING; 178 return MethodType.UNARY;
|
/external/robolectric/sandbox/src/main/java/org/robolectric/internal/bytecode/ |
D | InvokeDynamicSupport.java | 10 import static java.lang.invoke.MethodType.methodType; 18 import java.lang.invoke.MethodType; 72 public static CallSite bootstrapInit(MethodHandles.Lookup caller, String name, MethodType type) { in bootstrapInit() 89 MethodType type, in bootstrap() 116 MethodType type, 136 MethodHandles.Lookup caller, String name, MethodType type, String callee) 155 String className, String methodName, MethodType type) { 219 MethodType type = site.type(); 243 MethodType type = EXCEPTION_HANDLER.type().changeReturnType(mh.type().returnType());
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ |
D | MethodType.java | 20 public class MethodType { class 26 public static MethodType fromMethodUsage(MethodUsage methodUsage) { in fromMethodUsage() 27 …return new MethodType(methodUsage.getDeclaration().getTypeParameters(), methodUsage.getParamTypes(… in fromMethodUsage() 31 …public MethodType(List<ResolvedTypeParameterDeclaration> typeParameters, List<ResolvedType> formal… in MethodType() method in MethodType
|
/external/aws-sdk-java-v2/bundle-logging-bridge/src/main/java/software/amazon/awssdk/thirdparty/org/slf4j/impl/ |
D | StaticLoggerBinder.java | 20 import java.lang.invoke.MethodType; 51 MethodType mt = MethodType.methodType(binderClass); 80 MethodType mt = MethodType.methodType(org.slf4j.ILoggerFactory.class); in getLoggerFactory()
|