Home
last modified time | relevance | path

Searched refs:PacketType (Results 1 – 25 of 89) sorted by relevance

1234

/external/pigweed/pw_rpc/
Dserver_test.cc34 using internal::PacketType;
78 PacketType type, in EncodeRequest()
101 EncodeRequest(PacketType::REQUEST, 1, 42, 100), output_)); in TEST_F()
115 EncodeRequest(PacketType::REQUEST, 0, 42, 101), output_)); in TEST_F()
117 server_.ProcessPacket(EncodeRequest(PacketType::REQUEST, 1, 0, 101), in TEST_F()
120 server_.ProcessPacket(EncodeRequest(PacketType::REQUEST, 1, 42, 0), in TEST_F()
130 EncodeRequest(PacketType::REQUEST, 0, 42, 101), output_)); in TEST_F()
137 server_.ProcessPacket(EncodeRequest(PacketType::REQUEST, 1, 0, 101), in TEST_F()
140 EXPECT_EQ(output_.sent_packet().type(), PacketType::SERVER_ERROR); in TEST_F()
146 server_.ProcessPacket(EncodeRequest(PacketType::REQUEST, 1, 42, 0), in TEST_F()
[all …]
Dbase_client_call.cc23 channel_->Send(NewPacket(PacketType::CANCEL_SERVER_STREAM)); in Cancel()
33 return request_.payload(NewPacket(PacketType::REQUEST)); in AcquirePayloadBuffer()
42 return channel_->Send(request_, NewPacket(PacketType::REQUEST, payload)); in ReleasePayloadBuffer()
45 Packet BaseClientCall::NewPacket(PacketType type, in NewPacket()
Dpacket_test.cc66 static_assert(Packet().type() == PacketType{});
76 Packet packet(PacketType::RESPONSE, 1, 42, 100, kPayload); in TEST()
87 Packet packet(PacketType::RESPONSE, 1, 42, 100, kPayload); in TEST()
98 EXPECT_EQ(PacketType::RESPONSE, packet.type()); in TEST()
150 Packet(PacketType::RESPONSE, 1, 42, 100).MinEncodedSizeBytes()); in TEST()
156 Packet(PacketType::RESPONSE, 17000, 200, 200).MinEncodedSizeBytes()); in TEST()
Dclient_test.cc26 using internal::PacketType;
64 EXPECT_EQ(packet.type(), PacketType::CLIENT_ERROR); in TEST()
82 EXPECT_EQ(context.SendPacket(PacketType::REQUEST), Status::InvalidArgument()); in TEST()
83 EXPECT_EQ(context.SendPacket(PacketType::CANCEL_SERVER_STREAM), in TEST()
Dclient.cc25 using internal::PacketType;
70 case PacketType::RESPONSE: in ProcessPacket()
71 case PacketType::SERVER_ERROR: in ProcessPacket()
74 case PacketType::SERVER_STREAM_END: in ProcessPacket()
Dserver.cc30 using internal::PacketType;
101 case PacketType::REQUEST: { in ProcessPacket()
107 case PacketType::CLIENT_STREAM_END: in ProcessPacket()
110 case PacketType::CLIENT_ERROR: in ProcessPacket()
113 case PacketType::CANCEL_SERVER_STREAM: in ProcessPacket()
Ddocs.rst462 leftnote = "PacketType.REQUEST\nchannel ID\nservice ID\nmethod ID\npayload"
467 rightnote = "PacketType.RESPONSE\nchannel ID\nservice ID\nmethod ID\npayload\nstatus"
484 leftnote = "PacketType.REQUEST\nchannel ID\nservice ID\nmethod ID\npayload"
490 rightnote = "PacketType.RESPONSE\nchannel ID\nservice ID\nmethod ID\npayload"
495 rightnote = "PacketType.SERVER_STREAM_END\nchannel ID\nservice ID\nmethod ID\nstatus"
510 leftnote = "PacketType.REQUEST\nchannel ID\nservice ID\nmethod ID\npayload"
516 rightnote = "PacketType.RESPONSE\nchannel ID\nservice ID\nmethod ID\npayload"
522 leftnote = "PacketType.CANCEL_SERVER_STREAM\nchannel ID\nservice ID\nmethod ID"
527 rightnote = "PacketType.SERVER_STREAM_END\nchannel ID\nservice ID\nmethod ID\nstatus"
550 leftnote = "PacketType.REQUEST\nchannel ID\nservice ID\nmethod ID"
[all …]
/external/eigen/Eigen/src/Core/
DCoreEvaluators.h190 template<int LoadMode, typename PacketType>
192 PacketType packet(Index row, Index col) const
195 return ploadt<PacketType, LoadMode>(m_data + row * m_outerStride.value() + col);
197 return ploadt<PacketType, LoadMode>(m_data + row + col * m_outerStride.value());
200 template<int LoadMode, typename PacketType>
202 PacketType packet(Index index) const
204 return ploadt<PacketType, LoadMode>(m_data + index);
207 template<int StoreMode,typename PacketType>
209 void writePacket(Index row, Index col, const PacketType& x)
212 return pstoret<Scalar, PacketType, StoreMode>
[all …]
DSwap.h37 template<int StoreMode, int LoadMode, typename PacketType>
40 PacketType tmp = m_src.template packet<LoadMode,PacketType>(row,col); in assignPacket()
41 …src).template writePacket<LoadMode>(row,col, m_dst.template packet<StoreMode,PacketType>(row,col)); in assignPacket()
45 template<int StoreMode, int LoadMode, typename PacketType>
48 PacketType tmp = m_src.template packet<LoadMode,PacketType>(index); in assignPacket()
49 …>(m_src).template writePacket<LoadMode>(index, m_dst.template packet<StoreMode,PacketType>(index)); in assignPacket()
54 template<int StoreMode, int LoadMode, typename PacketType>
59 assignPacket<StoreMode,LoadMode,PacketType>(row, col); in assignPacketByOuterInner()
DRedux.h30 …ef typename find_best_packet<typename Derived::Scalar,Derived::SizeAtCompileTime>::type PacketType; typedef
32 PacketSize = unpacket_traits<PacketType>::size,
146 typedef typename redux_traits<Func, Derived>::PacketType PacketScalar;
167 typedef typename redux_traits<Func, Derived>::PacketType PacketScalar;
213 typedef typename redux_traits<Func, Derived>::PacketType PacketScalar;
272 typedef typename redux_traits<Func, Derived>::PacketType PacketType;
286 PacketType packet_res = mat.template packet<Unaligned,PacketType>(0,0);
289 …packet_res = func.packetOp(packet_res, mat.template packetByOuterInner<Unaligned,PacketType>(j,i));
311 typedef typename redux_traits<Func, Derived>::PacketType PacketScalar;
371 template<int LoadMode, typename PacketType>
[all …]
DAssignEvaluator.h111 …nal<int(Traversal)==LinearVectorizedTraversal, LinearPacketType, InnerPacketType>::type PacketType; typedef
263 typedef typename Kernel::PacketType PacketType;
274 kernel.template assignPacketByOuterInner<DstAlignment, SrcAlignment, PacketType>(outer, inner);
275 enum { NextIndex = Index + unpacket_traits<PacketType>::size };
289 typedef typename Kernel::PacketType PacketType;
292 kernel.template assignPacketByOuterInner<DstAlignment, SrcAlignment, PacketType>(outer, Index_);
293 enum { NextIndex = Index_ + unpacket_traits<PacketType>::size };
401 typedef typename Kernel::PacketType PacketType;
404 packetSize = unpacket_traits<PacketType>::size,
416 kernel.template assignPacket<dstAlignment, srcAlignment, PacketType>(index);
[all …]
DReverse.h37 template<typename PacketType, bool ReversePacket> struct reverse_packet_cond
39 static inline PacketType run(const PacketType& x) { return preverse(x); }
42 template<typename PacketType> struct reverse_packet_cond<PacketType,false>
44 static inline PacketType run(const PacketType& x) { return x; }
DProductEvaluators.h566 template<int LoadMode, typename PacketType>
567 const PacketType packet(Index row, Index col) const
569 PacketType res;
572 LhsEtorType, RhsEtorType, PacketType, LoadMode> PacketImpl;
577 template<int LoadMode, typename PacketType>
578 const PacketType packet(Index index) const
582 return packet<LoadMode,PacketType>(row,col);
804 template<int LoadMode,typename PacketType>
805 …EIGEN_STRONG_INLINE PacketType packet_impl(Index row, Index col, Index id, internal::true_type) co…
807 return internal::pmul(m_matImpl.template packet<LoadMode,PacketType>(row, col),
[all …]
/external/pigweed/pw_rpc/public/pw_rpc/internal/
Dpacket.h38 return Packet(PacketType::RESPONSE,
49 return Packet(PacketType::SERVER_ERROR, in ServerError()
60 return Packet(PacketType::CLIENT_ERROR, in ClientError()
70 : Packet(PacketType{}, kUnassignedId, kUnassignedId, kUnassignedId) {} in Packet()
72 constexpr Packet(PacketType type,
99 constexpr PacketType type() const { return type_; } in type()
106 constexpr void set_type(PacketType type) { type_ = type; } in set_type()
118 PacketType type_;
/external/eigen/Eigen/src/Core/functors/
DNullaryFunctors.h22 template<typename PacketType>
23 …EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const PacketType packetOp() const { return internal::pset1<P… in packetOp()
118 template <typename Scalar, typename PacketType> struct linspaced_op;
119 template <typename Scalar, typename PacketType> struct functor_traits< linspaced_op<Scalar,PacketTy…
129 template <typename Scalar, typename PacketType> struct linspaced_op
143 const linspaced_op_impl<Scalar,PacketType,NumTraits<Scalar>::IsInteger> impl;
169 template<typename Scalar, typename PacketType,typename IndexType>
170 struct has_nullary_operator<linspaced_op<Scalar,PacketType>,IndexType> { enum { value = 0}; };
171 template<typename Scalar, typename PacketType,typename IndexType>
172 struct has_unary_operator<linspaced_op<Scalar,PacketType>,IndexType> { enum { value = 1}; };
[all …]
/external/pigweed/pw_rpc/py/tests/
Dpackets_test.py21 from pw_rpc.internal.packet_pb2 import PacketType, RpcPacket
24 _TEST_REQUEST = RpcPacket(type=PacketType.REQUEST,
41 response = RpcPacket(type=PacketType.RESPONSE,
61 RpcPacket(type=PacketType.CANCEL_SERVER_STREAM,
74 RpcPacket(type=PacketType.CLIENT_ERROR,
89 RpcPacket(type=PacketType.RESPONSE,
Dclient_test.py25 from pw_rpc.internal.packet_pb2 import PacketType, RpcPacket
227 RpcPacket(type=PacketType.REQUEST).SerializeToString()),
247 RpcPacket(type=PacketType.CLIENT_ERROR,
264 RpcPacket(type=PacketType.CLIENT_ERROR,
282 RpcPacket(type=PacketType.CLIENT_ERROR,
/external/pigweed/pw_rpc/py/pw_rpc/
Dpackets.py42 type=packet_pb2.PacketType.REQUEST,
53 type=packet_pb2.PacketType.RESPONSE,
61 return packet_pb2.RpcPacket(type=packet_pb2.PacketType.CLIENT_ERROR,
71 type=packet_pb2.PacketType.CANCEL_SERVER_STREAM,
Dclient.py27 from pw_rpc.internal.packet_pb2 import PacketType, RpcPacket
251 if packet.type == PacketType.RESPONSE and rpc.method.server_streaming:
263 if packet.type == PacketType.RESPONSE:
429 if packet.type not in (PacketType.RESPONSE,
430 PacketType.SERVER_STREAM_END,
431 PacketType.SERVER_ERROR):
447 if packet.type == PacketType.SERVER_ERROR:
/external/webrtc/rtc_base/network/
Dsent_packet.h22 enum class PacketType { enum
46 PacketType packet_type = PacketType::kUnknown;
/external/tensorflow/tensorflow/core/kernels/
Dconstant_op_gpu.cu.cc45 template <typename PacketType = Packet>
46 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const PacketType packetOp() const { in packetOp()
47 return internal::pset1<PacketType>(*val); in packetOp()
Dfill_functor.cu.cc45 template <typename PacketType = Packet>
46 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const PacketType packetOp() const { in packetOp()
47 return internal::pset1<PacketType>(*val); in packetOp()
Deigen_convolution_helpers.h44 template <typename TensorEvaluatorType, typename PacketType, typename IndexType>
63 functionExistsSfinae<TensorEvaluatorType, PacketType, IndexType>(
/external/pigweed/pw_rpc/nanopb/public/pw_rpc/
Dnanopb_client_call.h143 if (packet.type() == internal::PacketType::SERVER_ERROR) {
162 if (packet.type() == internal::PacketType::SERVER_ERROR) {
167 if (packet.type() == internal::PacketType::SERVER_STREAM_END) {
/external/pigweed/pw_rpc/pw_rpc_private/
Dinternal_test_utils.h106 return internal::Packet(internal::PacketType::RESPONSE, in packet()
148 Status SendPacket(internal::PacketType type,
160 return SendPacket(internal::PacketType::RESPONSE, status, payload); in SendResponse()

1234