Home
last modified time | relevance | path

Searched refs:kMethod (Results 1 – 25 of 50) sorted by relevance

12

/external/pigweed/pw_rpc/pwpb/public/pw_rpc/pwpb/
Dclient_server_testing.h34 template <auto kMethod>
35 using MethodInfo = internal::MethodInfo<kMethod>;
36 template <auto kMethod>
37 using Response = typename MethodInfo<kMethod>::Response;
38 template <auto kMethod>
39 using Request = typename MethodInfo<kMethod>::Request;
50 template <auto kMethod>
51 Response<kMethod> response(uint32_t channel_id, uint32_t index) { in response()
53 return Base::output_.template responses<kMethod>(channel_id)[index]; in response()
56 template <auto kMethod>
[all …]
Dclient_server_testing_threaded.h34 template <auto kMethod>
35 using MethodInfo = internal::MethodInfo<kMethod>;
36 template <auto kMethod>
37 using Response = typename MethodInfo<kMethod>::Response;
38 template <auto kMethod>
39 using Request = typename MethodInfo<kMethod>::Request;
50 template <auto kMethod>
51 Response<kMethod> response(uint32_t channel_id, uint32_t index) in response()
55 return Base::output_.template responses<kMethod>(channel_id)[index]; in response()
58 template <auto kMethod>
[all …]
Dtest_method_context.h98 auto kMethod,
108 auto kMethod,
124 using Request = internal::Request<kMethod>;
125 using Response = internal::Response<kMethod>;
150 MethodTraits<decltype(kMethod)>::kType, in responses()
160 MethodTraits<decltype(kMethod)>::kType, in PwpbInvocationContext()
180 auto kMethod,
184 kMethod,
190 kMethod,
204 if constexpr (MethodTraits<decltype(kMethod)>::kSynchronous) { in call()
[all …]
Dclient_testing.h33 template <auto kMethod>
34 using Response = typename internal::MethodInfo<kMethod>::Response;
41 template <auto kMethod>
43 FakeServer::SendResponse<kMethod>(status); in SendResponse()
48 template <auto kMethod,
49 size_t kEncodeBufferSizeBytes = 2 * sizeof(Response<kMethod>)>
50 void SendResponse(const Response<kMethod>& payload, Status status) const { in SendResponse()
52 FakeServer::SendResponse<kMethod>(EncodeResponse<kMethod>(payload, buffer), in SendResponse()
58 template <auto kMethod,
59 size_t kEncodeBufferSizeBytes = 2 * sizeof(Response<kMethod>)>
[all …]
Dfake_channel_output.h110 template <auto kMethod>
111 using Request = typename internal::MethodInfo<kMethod>::Request;
112 template <auto kMethod>
113 using Response = typename internal::MethodInfo<kMethod>::Response;
125 template <auto kMethod>
126 PwpbPayloadsView<Request<kMethod>> requests(
130 HasClientStream(internal::MethodInfo<kMethod>::kType)
133 return PwpbPayloadsView<Request<kMethod>>(
134 internal::MethodInfo<kMethod>::serde().request(),
141 internal::MethodInfo<kMethod>::kServiceId,
[all …]
/external/pigweed/pw_rpc/nanopb/public/pw_rpc/nanopb/
Dclient_server_testing.h34 template <auto kMethod>
35 using MethodInfo = internal::MethodInfo<kMethod>;
36 template <auto kMethod>
37 using Response = typename MethodInfo<kMethod>::Response;
38 template <auto kMethod>
39 using Request = typename MethodInfo<kMethod>::Request;
50 template <auto kMethod>
51 Response<kMethod> response(uint32_t channel_id, uint32_t index) { in response()
53 return Base::output_.template responses<kMethod>(channel_id)[index]; in response()
56 template <auto kMethod>
[all …]
Dclient_server_testing_threaded.h34 template <auto kMethod>
35 using MethodInfo = internal::MethodInfo<kMethod>;
36 template <auto kMethod>
37 using Response = typename MethodInfo<kMethod>::Response;
38 template <auto kMethod>
39 using Request = typename MethodInfo<kMethod>::Request;
50 template <auto kMethod>
51 Response<kMethod> response(uint32_t channel_id, uint32_t index) in response()
55 return Base::output_.template responses<kMethod>(channel_id)[index]; in response()
58 template <auto kMethod>
[all …]
Dtest_method_context.h98 auto kMethod,
109 auto kMethod,
119 using Request = internal::Request<kMethod>;
120 using Response = internal::Response<kMethod>;
141 MethodTraits<decltype(kMethod)>::kType, in responses()
151 MethodTraits<decltype(kMethod)>::kType, in NanopbInvocationContext()
174 auto kMethod,
178 kMethod,
184 kMethod,
198 if constexpr (MethodTraits<decltype(kMethod)>::kSynchronous) { in call()
[all …]
Dclient_testing.h33 template <auto kMethod>
34 using Response = typename internal::MethodInfo<kMethod>::Response;
41 template <auto kMethod>
43 FakeServer::SendResponse<kMethod>(status); in SendResponse()
48 template <auto kMethod,
49 size_t kEncodeBufferSizeBytes = 2 * sizeof(Response<kMethod>)>
50 void SendResponse(const Response<kMethod>& payload, Status status) const { in SendResponse()
52 FakeServer::SendResponse<kMethod>(EncodeResponse<kMethod>(&payload, buffer), in SendResponse()
58 template <auto kMethod,
59 size_t kEncodeBufferSizeBytes = 2 * sizeof(Response<kMethod>)>
[all …]
Dfake_channel_output.h110 template <auto kMethod>
111 using Request = typename internal::MethodInfo<kMethod>::Request;
112 template <auto kMethod>
113 using Response = typename internal::MethodInfo<kMethod>::Response;
125 template <auto kMethod>
126 NanopbPayloadsView<Request<kMethod>> requests(
130 HasClientStream(internal::MethodInfo<kMethod>::kType)
133 return NanopbPayloadsView<Request<kMethod>>(
134 internal::MethodInfo<kMethod>::serde().request(),
139 internal::MethodInfo<kMethod>::kServiceId,
[all …]
/external/pigweed/pw_rpc/raw/public/pw_rpc/raw/
Dtest_method_context.h82 auto kMethod,
94 auto kMethod,
110 MethodTraits<decltype(kMethod)>::kType, in RawInvocationContext()
122 template <typename Service, auto kMethod, uint32_t kMethodId>
124 : public RawInvocationContext<Service, kMethod, kMethodId, 1> {
125 using Base = RawInvocationContext<Service, kMethod, kMethodId, 1>;
134 if constexpr (MethodTraits<decltype(kMethod)>::kSynchronous) { in call()
139 auto sws = CallMethodImplFunction<kMethod>( in call()
145 Base::template call<kMethod, RawUnaryResponder>(request); in call()
152 auto kMethod,
[all …]
Dclient_testing.h45 template <auto kMethod,
47 HasServerStream(internal::MethodInfo<kMethod>::kType)>>
50 SendPacket<kMethod>(
56 template <auto kMethod,
58 !HasServerStream(internal::MethodInfo<kMethod>::kType)>>
62 SendPacket<kMethod>(
68 template <auto kMethod>
71 static_assert(HasServerStream(internal::MethodInfo<kMethod>::kType),
74 SendPacket<kMethod>(internal::pwpb::PacketType::SERVER_STREAM,
81 template <auto kMethod>
[all …]
/external/pigweed/pw_rpc/public/pw_rpc/internal/
Dmethod_union.h75 template <auto kMethod,
77 typename InvalidImpl = MethodImplementation<kMethod>>
81 kCheckMethodSignature<decltype(kMethod)>, in InvalidMethod()
85 kCheckMethodSignature<decltype(kMethod)>, in InvalidMethod()
90 kCheckMethodSignature<decltype(kMethod)>, in InvalidMethod()
95 kCheckMethodSignature<decltype(kMethod)>, in InvalidMethod()
100 static_assert(kCheckMethodSignature<decltype(kMethod)>, in InvalidMethod()
111 template <auto kMethod, typename MethodImpl, MethodType kType, typename... Args>
113 if constexpr (MethodTraits<decltype(kMethod)>::kType != kType) { in GetMethodFor()
114 return InvalidMethod<kMethod, kType>(id); in GetMethodFor()
[all …]
Dmethod.h111 template <auto kMethod>
113 typename MethodTraits<decltype(kMethod)>::Implementation;
115 template <auto kMethod>
116 using Request = typename MethodTraits<decltype(kMethod)>::Request;
118 template <auto kMethod>
119 using Response = typename MethodTraits<decltype(kMethod)>::Response;
122 template <auto kMethod, typename... Args>
126 if constexpr (std::is_member_function_pointer_v<decltype(kMethod)>) { in CallMethodImplFunction()
127 return (static_cast<typename MethodTraits<decltype(kMethod)>::Service&>( in CallMethodImplFunction()
129 kMethod)(std::forward<Args>(args)...); in CallMethodImplFunction()
[all …]
Dfake_channel_output.h70 template <auto kMethod>
75 MethodInfo<kMethod>::kType, in PW_LOCKS_EXCLUDED()
77 MethodInfo<kMethod>::kServiceId, in PW_LOCKS_EXCLUDED()
78 MethodInfo<kMethod>::kMethodId); in PW_LOCKS_EXCLUDED()
90 template <auto kMethod>
95 MethodInfo<kMethod>::kType, in PW_LOCKS_EXCLUDED()
97 MethodInfo<kMethod>::kServiceId, in PW_LOCKS_EXCLUDED()
98 MethodInfo<kMethod>::kMethodId) in PW_LOCKS_EXCLUDED()
120 template <auto kMethod>
128 MethodInfo<kMethod>::kServiceId, in PW_LOCKS_EXCLUDED()
[all …]
/external/pigweed/pw_rpc/public/pw_rpc/
Dmethod_info.h46 template <auto kMethod>
47 using MethodRequestType = typename internal::MethodInfo<kMethod>::Request;
50 template <auto kMethod>
51 using MethodResponseType = typename internal::MethodInfo<kMethod>::Response;
55 template <auto kMethod>
57 return internal::MethodInfo<kMethod>::serde(); in MethodSerde()
65 template <auto kMethod>
67 return internal::WrapMethodId(internal::MethodInfo<kMethod>::kMethodId); in GetMethodId()
71 template <auto kMethod>
73 return internal::WrapServiceId(internal::MethodInfo<kMethod>::kServiceId); in GetServiceIdForMethod()
/external/pigweed/pw_rpc/nanopb/public/pw_rpc/nanopb/internal/
Dmethod.h160 template <auto kMethod, typename RequestType, typename ResponseType>
162 return std::is_same_v<MethodImplementation<kMethod>, NanopbMethod> &&
163 std::is_same_v<RequestType, Request<kMethod>> &&
164 std::is_same_v<ResponseType, Response<kMethod>>;
168 template <auto kMethod>
179 return CallMethodImplFunction<kMethod>(
181 *static_cast<const Request<kMethod>*>(req),
182 *static_cast<Response<kMethod>*>(resp));
186 SynchronousUnaryInvoker<AllocateSpaceFor<Request<kMethod>>(),
187 AllocateSpaceFor<Response<kMethod>>()>,
[all …]
/external/pigweed/pw_rpc/pwpb/public/pw_rpc/pwpb/internal/
Dmethod.h64 template <auto kMethod, typename RequestType, typename ResponseType>
67 std::is_same<MethodImplementation<kMethod>, PwpbMethod>, in matches()
68 std::is_same<RequestType, Request<kMethod>>, in matches()
69 std::is_same<ResponseType, Response<kMethod>>>; in matches()
75 template <auto kMethod>
87 return CallMethodImplFunction<kMethod>( in SynchronousUnary()
89 *reinterpret_cast<const Request<kMethod>*>(request), in SynchronousUnary()
90 *reinterpret_cast<Response<kMethod>*>(response)); in SynchronousUnary()
94 SynchronousUnaryInvoker<Request<kMethod>, Response<kMethod>>, in SynchronousUnary()
102 template <auto kMethod>
[all …]
/external/pigweed/pw_rpc/raw/public/pw_rpc/raw/internal/
Dmethod.h33 template <auto kMethod>
35 return std::is_same_v<MethodImplementation<kMethod>, RawMethod>; in matches()
38 template <auto kMethod>
40 static_assert(sizeof(kMethod) != sizeof(kMethod), in SynchronousUnary()
48 template <auto kMethod>
52 return CallMethodImplFunction<kMethod>(service, req, responder); in AsynchronousUnary()
58 template <auto kMethod>
62 return CallMethodImplFunction<kMethod>(service, request, writer); in ServerStreaming()
68 template <auto kMethod>
72 return CallMethodImplFunction<kMethod>( in ClientStreaming()
[all …]
/external/cronet/third_party/boringssl/src/ssl/
Ddtls_method.cc138 static const SSL_METHOD kMethod = { in DTLS_method() local
143 return &kMethod; in DTLS_method()
147 static const SSL_METHOD kMethod = { in DTLS_with_buffers_method() local
152 return &kMethod; in DTLS_with_buffers_method()
158 static const SSL_METHOD kMethod = { in DTLSv1_2_method() local
163 return &kMethod; in DTLSv1_2_method()
167 static const SSL_METHOD kMethod = { in DTLSv1_method() local
172 return &kMethod; in DTLSv1_method()
Dtls_method.cc229 static const SSL_METHOD kMethod = { in TLS_method() local
234 return &kMethod; in TLS_method()
242 static const SSL_METHOD kMethod = { in TLS_with_buffers_method() local
247 return &kMethod; in TLS_with_buffers_method()
253 static const SSL_METHOD kMethod = { in TLSv1_2_method() local
258 return &kMethod; in TLSv1_2_method()
262 static const SSL_METHOD kMethod = { in TLSv1_1_method() local
267 return &kMethod; in TLSv1_1_method()
271 static const SSL_METHOD kMethod = { in TLSv1_method() local
276 return &kMethod; in TLSv1_method()
/external/boringssl/src/ssl/
Ddtls_method.cc138 static const SSL_METHOD kMethod = { in DTLS_method() local
143 return &kMethod; in DTLS_method()
147 static const SSL_METHOD kMethod = { in DTLS_with_buffers_method() local
152 return &kMethod; in DTLS_with_buffers_method()
158 static const SSL_METHOD kMethod = { in DTLSv1_2_method() local
163 return &kMethod; in DTLSv1_2_method()
167 static const SSL_METHOD kMethod = { in DTLSv1_method() local
172 return &kMethod; in DTLSv1_method()
Dtls_method.cc229 static const SSL_METHOD kMethod = { in TLS_method() local
234 return &kMethod; in TLS_method()
242 static const SSL_METHOD kMethod = { in TLS_with_buffers_method() local
247 return &kMethod; in TLS_with_buffers_method()
253 static const SSL_METHOD kMethod = { in TLSv1_2_method() local
258 return &kMethod; in TLSv1_2_method()
262 static const SSL_METHOD kMethod = { in TLSv1_1_method() local
267 return &kMethod; in TLSv1_1_method()
271 static const SSL_METHOD kMethod = { in TLSv1_method() local
276 return &kMethod; in TLSv1_method()
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Ddtls_method.cc139 static const SSL_METHOD kMethod = { in DTLS_method() local
144 return &kMethod; in DTLS_method()
148 static const SSL_METHOD kMethod = { in DTLS_with_buffers_method() local
153 return &kMethod; in DTLS_with_buffers_method()
159 static const SSL_METHOD kMethod = { in DTLSv1_2_method() local
164 return &kMethod; in DTLSv1_2_method()
168 static const SSL_METHOD kMethod = { in DTLSv1_method() local
173 return &kMethod; in DTLSv1_method()
Dtls_method.cc229 static const SSL_METHOD kMethod = { in TLS_method() local
234 return &kMethod; in TLS_method()
242 static const SSL_METHOD kMethod = { in TLS_with_buffers_method() local
247 return &kMethod; in TLS_with_buffers_method()
253 static const SSL_METHOD kMethod = { in TLSv1_2_method() local
258 return &kMethod; in TLSv1_2_method()
262 static const SSL_METHOD kMethod = { in TLSv1_1_method() local
267 return &kMethod; in TLSv1_1_method()
271 static const SSL_METHOD kMethod = { in TLSv1_method() local
276 return &kMethod; in TLSv1_method()

12