Home
last modified time | relevance | path

Searched refs:ConstByteSpan (Results 1 – 25 of 247) sorted by relevance

12345678910

/external/pigweed/pw_log/public/pw_log/
Dproto_utils.h55 Result<ConstByteSpan> EncodeLog(int level,
70 ConstByteSpan tokenized_data,
81 inline Result<ConstByteSpan> EncodeTokenizedLog( in EncodeTokenizedLog()
83 ConstByteSpan tokenized_data, in EncodeTokenizedLog()
89 return ConstByteSpan(encoder); in EncodeTokenizedLog()
92 inline Result<ConstByteSpan> EncodeTokenizedLog( in EncodeTokenizedLog()
111 inline Result<ConstByteSpan> EncodeTokenizedLog( in EncodeTokenizedLog()
116 ConstByteSpan thread_name, in EncodeTokenizedLog()
127 return ConstByteSpan(encoder); in EncodeTokenizedLog()
137 inline Result<ConstByteSpan> EncodeTokenizedLog( in EncodeTokenizedLog()
[all …]
/external/pigweed/pw_spi/public/pw_spi/
Dinitiator_mock.h32 ConstByteSpan write_buffer, in MockTransaction()
33 ConstByteSpan read_buffer) in MockTransaction()
39 ConstByteSpan read_buffer() const { return read_buffer_; } in read_buffer()
42 ConstByteSpan write_buffer() const { return write_buffer_; } in write_buffer()
49 const ConstByteSpan read_buffer_;
50 const ConstByteSpan write_buffer_;
55 ConstByteSpan read_buffer) { in MockReadTransaction()
56 return MockTransaction(expected_return_value, ConstByteSpan(), read_buffer); in MockReadTransaction()
61 ConstByteSpan write_buffer) { in MockWriteTransaction()
62 return MockTransaction(expected_return_value, write_buffer, ConstByteSpan()); in MockWriteTransaction()
[all …]
/external/pigweed/pw_bluetooth_hci/
Duart_transport_test.cc39 DecodeHciUartData(ConstByteSpan(), [](const Packet&) { FAIL(); }); in TEST_F()
68 CommandPacket packet(0u, ConstByteSpan()); in TEST_F()
69 const Result<ConstByteSpan> result = packet.Encode(packet_buffer); in TEST_F()
85 CommandPacket packet(0u, ConstByteSpan()); in TEST_F()
86 const Result<ConstByteSpan> result = packet.Encode(packet_buffer); in TEST_F()
117 AsyncDataPacket packet(0u, ConstByteSpan()); in TEST_F()
118 const Result<ConstByteSpan> result = packet.Encode(packet_buffer); in TEST_F()
134 AsyncDataPacket packet(0u, ConstByteSpan()); in TEST_F()
135 const Result<ConstByteSpan> result = packet.Encode(packet_buffer); in TEST_F()
166 SyncDataPacket packet(0u, ConstByteSpan()); in TEST_F()
[all …]
Dpacket.cc27 Result<ConstByteSpan> CommandPacket::Encode(ByteSpan buffer, in Encode()
34 return ConstByteSpan(builder.data(), builder.size()); in Encode()
37 std::optional<CommandPacket> CommandPacket::Decode(ConstByteSpan data, in Decode()
55 Result<ConstByteSpan> AsyncDataPacket::Encode(ByteSpan buffer, in Encode()
62 return ConstByteSpan(builder.data(), builder.size()); in Encode()
65 std::optional<AsyncDataPacket> AsyncDataPacket::Decode(ConstByteSpan data, in Decode()
83 Result<ConstByteSpan> SyncDataPacket::Encode(ByteSpan buffer, in Encode()
90 return ConstByteSpan(builder.data(), builder.size()); in Encode()
93 std::optional<SyncDataPacket> SyncDataPacket::Decode(ConstByteSpan data, in Decode()
111 Result<ConstByteSpan> EventPacket::Encode(ByteSpan buffer) const { in Encode()
[all …]
Dpacket_test.cc42 const CommandPacket packet(0u, ConstByteSpan()); in TEST_F()
44 const Result<ConstByteSpan> encode_result = packet.Encode( in TEST_F()
61 const CommandPacket packet(kOpcode, ConstByteSpan()); in TEST_F()
69 const Result<ConstByteSpan> encode_result = packet.Encode(packet_buffer_); in TEST_F()
75 const ConstByteSpan& encoded_packet = encode_result.value(); in TEST_F()
119 const Result<ConstByteSpan> encode_result = packet.Encode(packet_buffer_); in TEST_F()
127 const ConstByteSpan& encoded_packet = encode_result.value(); in TEST_F()
159 const AsyncDataPacket packet(0u, ConstByteSpan()); in TEST_F()
161 const Result<ConstByteSpan> encode_result = packet.Encode( in TEST_F()
180 const AsyncDataPacket packet(kHandleAndFragmentationBits, ConstByteSpan()); in TEST_F()
[all …]
/external/pigweed/pw_i2c/public/pw_i2c/
Dinitiator_mock.h34 ConstByteSpan write_buffer,
35 ConstByteSpan read_buffer,
50 ConstByteSpan(), in Transaction() argument
55 ConstByteSpan read_buffer() const { return read_buffer_; } in read_buffer()
58 ConstByteSpan write_buffer() const { return write_buffer_; } in write_buffer()
73 const ConstByteSpan read_buffer_;
74 const ConstByteSpan write_buffer_;
84 ConstByteSpan read_buffer,
88 ConstByteSpan(),
97 ConstByteSpan write_buffer,
[all …]
Dinitiator.h73 ConstByteSpan tx_buffer, in WriteReadFor()
111 ConstByteSpan tx_buffer, in WriteFor()
147 return WriteReadFor(device_address, ConstByteSpan(), rx_buffer, timeout); in ReadFor()
181 device_address, ConstByteSpan(), ignored_buffer, timeout); in ProbeDeviceFor()
186 ConstByteSpan tx_buffer,
/external/pigweed/pw_multisink/public/pw_multisink/
Dmultisink.h48 ConstByteSpan entry() const { return entry_; } in entry()
54 constexpr PeekedEntry(ConstByteSpan entry, uint32_t sequence_id) in PeekedEntry()
59 const ConstByteSpan entry_;
135 Result<ConstByteSpan> PopEntry(ByteSpan buffer,
142 ConstByteSpan>
146 Result<ConstByteSpan> result = in PopEntry()
253 ConstByteSpan& operator*() {
257 ConstByteSpan* operator->() { return &operator*(); }
284 ConstByteSpan entry_;
289 using element_type = ConstByteSpan;
[all …]
/external/pigweed/pw_bluetooth_hci/public/pw_bluetooth_hci/
Dpacket.h126 constexpr CommandPacket(uint16_t opcode, ConstByteSpan parameters) in CommandPacket()
134 static std::optional<CommandPacket> Decode(ConstByteSpan data,
142 Result<ConstByteSpan> Encode(ByteSpan buffer,
156 constexpr const ConstByteSpan& parameters() const { return parameters_; } in parameters()
160 ConstByteSpan parameters_;
191 ConstByteSpan data) in AsyncDataPacket()
199 static std::optional<AsyncDataPacket> Decode(ConstByteSpan data,
207 Result<ConstByteSpan> Encode(ByteSpan buffer,
228 constexpr const ConstByteSpan& data() const { return data_; } in data()
232 ConstByteSpan data_;
[all …]
/external/pigweed/pw_tls_client/public/pw_tls_client/test/
Dtest_server.h46 Status DoWrite(ConstByteSpan data) override;
73 Status Initialize(ConstByteSpan key,
74 ConstByteSpan cert,
75 span<const ConstByteSpan> chains);
107 Status LoadPrivateKey(ConstByteSpan key);
108 Status LoadCertificate(ConstByteSpan cert);
109 Status LoadCAChain(span<const ConstByteSpan> chains);
116 Status DoWrite(ConstByteSpan data) override;
120 pw::Result<X509*> ParseDerCertificate(pw::ConstByteSpan cert);
/external/pigweed/pw_thread/
Dthread_snapshot_service_test.cc31 bool EncodedThreadExists(ConstByteSpan serialized_thread_buffer, in EncodedThreadExists()
32 ConstByteSpan thread_name) { in EncodedThreadExists()
37 ConstByteSpan thread_buffer; in EncodedThreadExists()
39 ConstByteSpan encoded_name; in EncodedThreadExists()
54 ThreadInfo CreateThreadInfoObject(std::optional<ConstByteSpan> name, in CreateThreadInfoObject()
83 ConstByteSpan name = bytes::String("MyThread\0"); in TEST()
94 ConstByteSpan response_span(encoder); in TEST()
104 ConstByteSpan name = bytes::String("MyThread1\0"); in TEST()
130 ConstByteSpan response_span(encoder); in TEST()
144 ConstByteSpan name = bytes::String("MyThread\0"); in TEST()
[all …]
Dthread_snapshot_service.cc86 Status DecodeThreadName(ConstByteSpan serialized_path, in DecodeThreadName()
87 ConstByteSpan& thread_name) { in DecodeThreadName()
101 ConstByteSpan request, rpc::RawServerWriter& response_writer) { in GetPeakStackUsage()
107 ConstByteSpan name; in GetPeakStackUsage()
113 ConstByteSpan name_request; in GetPeakStackUsage()
173 ConstByteSpan thread = in GetPeakStackUsage()
174 ConstByteSpan(iteration_info.encoder.data() + in GetPeakStackUsage()
/external/pigweed/pw_snapshot/
Duuid_test.cc30 ConstByteSpan EncodeSnapshotWithUuid(ConstByteSpan uuid, ByteSpan dest) { in EncodeSnapshotWithUuid()
46 ConstByteSpan snapshot = in TEST()
50 Result<ConstByteSpan> result = ReadUuidFromSnapshot(snapshot, uuid_dest); in TEST()
68 ConstByteSpan snapshot(snapshot_encoder); in TEST()
70 Result<ConstByteSpan> result = ReadUuidFromSnapshot(snapshot, uuid_dest); in TEST()
93 ConstByteSpan snapshot = in TEST()
97 Result<ConstByteSpan> result = ReadUuidFromSnapshot(snapshot, uuid_dest); in TEST()
Duuid.cc30 Result<ConstByteSpan> ReadUuidFromSnapshot(ConstByteSpan snapshot, in ReadUuidFromSnapshot()
33 ConstByteSpan metadata; in ReadUuidFromSnapshot()
48 ConstByteSpan snapshot_uuid; in ReadUuidFromSnapshot()
65 return ConstByteSpan(output.first(snapshot_uuid.size_bytes())); in ReadUuidFromSnapshot()
/external/pigweed/pw_rpc/raw/
Dmethod_test.cc42 void Unary(ConstByteSpan, RawUnaryResponder&) {} in Unary() argument
44 static void StaticUnary(ConstByteSpan, RawUnaryResponder&) {} in StaticUnary() argument
46 void AsyncUnary(ConstByteSpan, RawUnaryResponder&) {} in AsyncUnary() argument
48 static void StaticAsyncUnary(ConstByteSpan, RawUnaryResponder&) {} in StaticAsyncUnary() argument
50 void UnaryWrongArg(ConstByteSpan, ConstByteSpan) {} in UnaryWrongArg() argument
54 void ServerStreaming(ConstByteSpan, RawServerWriter&) {} in ServerStreaming() argument
56 static void StaticServerStreaming(ConstByteSpan, RawServerWriter&) {} in StaticServerStreaming() argument
58 static void StaticUnaryVoidReturn(ConstByteSpan, ByteSpan) {} in StaticUnaryVoidReturn() argument
60 Status ServerStreamingBadReturn(ConstByteSpan, RawServerWriter&) { in ServerStreamingBadReturn() argument
107 void DoNothing(ConstByteSpan, RawUnaryResponder& responder) { in DoNothing() argument
[all …]
Dclient_reader_writer_test.cc30 void FailIfOnNextCalled(ConstByteSpan) { FAIL(); } in FailIfOnNextCalled() argument
31 void FailIfOnCompletedCalled(ConstByteSpan, Status) { FAIL(); } in FailIfOnCompletedCalled() argument
41 call.set_on_completed([](ConstByteSpan, Status) {}); in TEST() argument
55 call.set_on_completed([](ConstByteSpan, Status) {}); in TEST() argument
68 call.set_on_next([](ConstByteSpan) {}); in TEST() argument
83 call.set_on_next([](ConstByteSpan) {}); in TEST() argument
105 call.set_on_completed([](ConstByteSpan, Status) {}); in TEST() argument
124 call.set_on_completed([](ConstByteSpan, Status) {}); in TEST() argument
146 call.set_on_next([](ConstByteSpan) {}); in TEST() argument
170 call.set_on_next([](ConstByteSpan) {}); in TEST() argument
[all …]
/external/pigweed/pw_log_rpc/
Dlog_filter.cc30 ConstByteSpan module, in IsRuleMet()
32 ConstByteSpan thread) { in IsRuleMet()
56 Status Filter::UpdateRulesFromProto(ConstByteSpan buffer) { in UpdateRulesFromProto()
70 ConstByteSpan rule_buffer; in UpdateRulesFromProto()
80 ConstByteSpan module; in UpdateRulesFromProto()
95 ConstByteSpan thread; in UpdateRulesFromProto()
108 bool Filter::ShouldDropLog(ConstByteSpan entry) const { in ShouldDropLog()
114 ConstByteSpan log_module; in ShouldDropLog()
115 ConstByteSpan log_thread; in ShouldDropLog()
Dlog_filter_test.cc48 Result<ConstByteSpan> EncodeLogEntry(std::string_view message, in EncodeLogEntry()
50 ConstByteSpan thread) { in EncodeLogEntry()
69 Result<ConstByteSpan> EncodeFilter(const Filter& filter, ByteSpan buffer) { in EncodeFilter()
75 return ConstByteSpan(encoder); in EncodeFilter()
329 const Result<ConstByteSpan> log_entry_info = in TEST()
336 const Result<ConstByteSpan> log_entry_debug = in TEST()
343 const Result<ConstByteSpan> log_entry_warn = in TEST()
350 const Result<ConstByteSpan> log_entry_error = in TEST()
357 const Result<ConstByteSpan> log_entry_info_different = in TEST()
369 const Result<ConstByteSpan> log_entry_same_flags = in TEST()
[all …]
/external/pigweed/pw_rpc/public/pw_rpc/internal/
Dcall.h164 Status CloseAndSendResponse(ConstByteSpan response, Status status) in CloseAndSendResponse()
170 Status CloseAndSendResponseLocked(ConstByteSpan response, Status status) in CloseAndSendResponseLocked()
199 Status Write(ConstByteSpan payload) PW_LOCKS_EXCLUDED(rpc_lock()) { in Write()
204 Status WriteLocked(ConstByteSpan payload)
209 void SendInitialClientRequest(ConstByteSpan payload) in SendInitialClientRequest()
223 void HandlePayload(ConstByteSpan payload) PW_UNLOCK_FUNCTION(rpc_lock());
309 void set_on_next(Function<void(ConstByteSpan)>&& on_next) in set_on_next()
316 void set_on_next_locked(Function<void(ConstByteSpan)>&& on_next) in set_on_next_locked()
376 ConstByteSpan payload, in DecodeToStructAndInvokeOnNext()
409 ConstByteSpan payload, in DecodeToStructAndInvokeOnCompleted()
[all …]
Dclient_call.h80 Function<void(ConstByteSpan, Status)>&& on_completed, in Start() argument
82 ConstByteSpan request) PW_LOCKS_EXCLUDED(rpc_lock()) { in Start()
93 void HandleCompleted(ConstByteSpan response, Status status)
124 void set_on_completed(Function<void(ConstByteSpan, Status)>&& on_completed) in set_on_completed() argument
131 Function<void(ConstByteSpan, Status)>&& on_completed) in set_on_completed_locked() argument
139 Function<void(ConstByteSpan, Status)> on_completed_ PW_GUARDED_BY(rpc_lock());
152 Function<void(ConstByteSpan)>&& on_next, in Start()
155 ConstByteSpan request) { in Start()
/external/pigweed/pw_rpc/
Dclient_integration_test.cc37 using pw::ConstByteSpan;
54 Function<void(ConstByteSpan, Status)> UnaryOnCompleted() { in UnaryOnCompleted()
55 return [this](ConstByteSpan data, Status) { CopyPayload(data); }; in UnaryOnCompleted()
58 Function<void(ConstByteSpan)> OnNext() { in OnNext()
59 return [this](ConstByteSpan data) { CopyPayload(data); }; in OnNext()
63 void CopyPayload(ConstByteSpan data) { in CopyPayload()
/external/pigweed/pw_tls_client/
Dtest_server.cc39 Result<X509*> ParseDerCertificate(ConstByteSpan cert) { in ParseDerCertificate()
65 Status FixedSizeFIFOBuffer::DoWrite(ConstByteSpan data) { in DoWrite()
110 Status InMemoryTestServer::Initialize(ConstByteSpan key, in Initialize()
111 ConstByteSpan cert, in Initialize()
112 span<const ConstByteSpan> chains) { in Initialize()
163 Status InMemoryTestServer::LoadPrivateKey(ConstByteSpan key) { in LoadPrivateKey()
183 Status InMemoryTestServer::LoadCertificate(ConstByteSpan cert) { in LoadCertificate()
200 Status InMemoryTestServer::LoadCAChain(span<const ConstByteSpan> chains) { in LoadCAChain()
282 Status InMemoryTestServer::DoWrite(ConstByteSpan data) { in DoWrite()
/external/pigweed/pw_rpc/raw/public/pw_rpc/raw/internal/
Dmethod.h51 [](Service& service, ConstByteSpan req, RawUnaryResponder& responder) { in AsynchronousUnary()
61 [](Service& service, ConstByteSpan request, RawServerWriter& writer) { in ServerStreaming()
95 ConstByteSpan,
99 ConstByteSpan,
103 ConstByteSpan,
138 using RawSynchronousUnary = StatusWithSize(ConstByteSpan, ByteSpan);
139 using RawAsynchronousUnary = void(ConstByteSpan, RawUnaryResponder&);
140 using RawServerStreaming = void(ConstByteSpan, RawServerWriter&);
/external/pigweed/pw_log_rpc/public/pw_log_rpc/
Dlog_filter_service.h31 void SetFilter(ConstByteSpan request, rpc::RawUnaryResponder& responder) { in SetFilter()
37 void GetFilter(ConstByteSpan request, rpc::RawUnaryResponder& responder) { in GetFilter()
44 void ListFilterIds(ConstByteSpan, rpc::RawUnaryResponder& responder) { in ListFilterIds() argument
76 Status SetFilterImpl(ConstByteSpan request);
77 StatusWithSize GetFilterImpl(ConstByteSpan request, ByteSpan response);
/external/pigweed/pw_file/
Dflat_file_system_test.cc76 void ComparePathToEntry(ConstByteSpan serialized_path, in ComparePathToEntry()
135 for (ConstByteSpan response : results) { in ValidateExpectedPaths()
154 ConstByteSpan serialized_path; in ValidateExpectedPaths()
176 ctx.call(ConstByteSpan()); in TEST()
189 ctx.call(ConstByteSpan()); in TEST()
202 ctx.call(ConstByteSpan()); in TEST()
213 ctx.call(ConstByteSpan()); in TEST()
226 ctx.call(ConstByteSpan()); in TEST()

12345678910