Home
last modified time | relevance | path

Searched refs:StreamPtr (Results 1 – 25 of 35) sorted by relevance

12

/external/libbrillo/brillo/streams/
Dmemory_stream.h59 static StreamPtr OpenCopyOf(const void* buffer, size_t size, ErrorPtr* error);
60 static StreamPtr OpenCopyOf(std::string buffer, ErrorPtr* error);
61 static StreamPtr OpenCopyOf(const char* buffer, ErrorPtr* error);
64 inline static StreamPtr OpenCopyOf(std::vector<T> buffer, ErrorPtr* error) { in OpenCopyOf()
76 static StreamPtr OpenRef(const void* buffer, size_t size, ErrorPtr* error);
77 static StreamPtr OpenRef(const std::string& buffer, ErrorPtr* error);
78 static StreamPtr OpenRef(const char* buffer, ErrorPtr* error);
81 inline static StreamPtr OpenRef(const std::vector<T>& buffer, in OpenRef()
94 static StreamPtr Create(size_t reserve_size, ErrorPtr* error);
96 inline static StreamPtr Create(ErrorPtr* error) { return Create(0, error); } in Create()
[all …]
Dstream_utils.h82 base::Callback<void(StreamPtr, StreamPtr, uint64_t)>;
84 base::Callback<void(StreamPtr, StreamPtr, const brillo::Error*)>;
92 BRILLO_EXPORT void CopyData(StreamPtr in_stream,
93 StreamPtr out_stream,
104 BRILLO_EXPORT void CopyData(StreamPtr in_stream,
105 StreamPtr out_stream,
Dinput_stream_set.h43 static StreamPtr Create(std::vector<Stream*> source_streams,
44 std::vector<StreamPtr> owned_source_streams,
50 static StreamPtr Create(std::vector<Stream*> source_streams, ErrorPtr* error);
57 static StreamPtr Create(std::vector<StreamPtr> owned_source_streams,
113 std::vector<StreamPtr> owned_source_streams,
122 std::vector<StreamPtr> owned_source_streams_;
Dmemory_stream.cc21 StreamPtr MemoryStream::OpenRef(const void* buffer, in OpenRef()
29 StreamPtr MemoryStream::OpenCopyOf(const void* buffer, in OpenCopyOf()
38 StreamPtr MemoryStream::OpenRef(const std::string& buffer, ErrorPtr* error) { in OpenRef()
44 StreamPtr MemoryStream::OpenCopyOf(std::string buffer, ErrorPtr* error) { in OpenCopyOf()
50 StreamPtr MemoryStream::OpenRef(const char* buffer, ErrorPtr* error) { in OpenRef()
54 StreamPtr MemoryStream::OpenCopyOf(const char* buffer, ErrorPtr* error) { in OpenCopyOf()
58 StreamPtr MemoryStream::Create(size_t reserve_size, ErrorPtr* error) { in Create()
64 StreamPtr MemoryStream::CreateRef(std::string* buffer, ErrorPtr* error) { in CreateRef()
70 StreamPtr MemoryStream::CreateRefForAppend(std::string* buffer, in CreateRefForAppend()
77 StreamPtr MemoryStream::CreateEx( in CreateEx()
[all …]
Dinput_stream_set.cc18 std::vector<StreamPtr> owned_source_streams, in InputStreamSet()
24 StreamPtr InputStreamSet::Create(std::vector<Stream*> source_streams, in Create()
25 std::vector<StreamPtr> owned_source_streams, in Create()
27 StreamPtr stream; in Create()
59 StreamPtr InputStreamSet::Create(std::vector<Stream*> source_streams, in Create()
64 StreamPtr InputStreamSet::Create(std::vector<StreamPtr> owned_source_streams, in Create()
68 for (const StreamPtr& stream : owned_source_streams) in Create()
149 for (StreamPtr& stream_ptr : owned_source_streams_) { in CloseBlocking()
Dstream_utils.cc24 brillo::StreamPtr in_stream;
25 brillo::StreamPtr out_stream;
192 void CopyData(StreamPtr in_stream, in CopyData()
193 StreamPtr out_stream, in CopyData()
201 void CopyData(StreamPtr in_stream, in CopyData()
202 StreamPtr out_stream, in CopyData()
Dmemory_stream_test.cc213 StreamPtr stream = MemoryStream::OpenRef(buffer, sizeof(buffer), nullptr); in TEST()
227 StreamPtr stream = MemoryStream::OpenCopyOf(buffer, sizeof(buffer), nullptr); in TEST()
241 StreamPtr stream = MemoryStream::OpenRef(str, nullptr); in TEST()
253 StreamPtr stream = MemoryStream::OpenCopyOf(str, nullptr); in TEST()
265 StreamPtr stream = MemoryStream::OpenRef(str, nullptr); in TEST()
277 StreamPtr stream = MemoryStream::OpenCopyOf(str, nullptr); in TEST()
289 StreamPtr stream = MemoryStream::OpenRef(data, nullptr); in TEST()
305 StreamPtr stream = MemoryStream::OpenCopyOf(data, nullptr); in TEST()
321 StreamPtr stream = MemoryStream::CreateRef(&buffer, nullptr); in TEST()
360 StreamPtr stream = MemoryStream::CreateRef(&buffer, nullptr); in TEST()
Dfile_stream.h74 static StreamPtr Open(const base::FilePath& path,
81 static StreamPtr CreateTemporary(ErrorPtr* error);
93 static StreamPtr FromFileDescriptor(int file_descriptor,
Dfile_stream_test.cc709 StreamPtr stream = FileStream::CreateTemporary(nullptr); in TEST_F()
723 StreamPtr stream = FileStream::Open(path, in TEST_F()
749 StreamPtr stream = FileStream::Open(path, in TEST_F()
779 StreamPtr stream = FileStream::Open(path, in TEST_F()
799 StreamPtr stream = FileStream::Open(path, in TEST_F()
813 StreamPtr stream = FileStream::Open(path, in TEST_F()
835 StreamPtr stream = FileStream::Open(path, in TEST_F()
854 StreamPtr stream = FileStream::Open(path, in TEST_F()
877 StreamPtr stream = FileStream::Open(path, in TEST_F()
892 StreamPtr stream = FileStream::Open( in TEST_F()
[all …]
Dtls_stream.h33 StreamPtr socket,
35 const base::Callback<void(StreamPtr)>& success_callback,
Dfile_stream.cc198 StreamPtr FileStream::Open(const base::FilePath& path, in Open()
202 StreamPtr stream; in Open()
250 StreamPtr FileStream::CreateTemporary(ErrorPtr* error) { in CreateTemporary()
251 StreamPtr stream; in CreateTemporary()
277 StreamPtr FileStream::FromFileDescriptor(int file_descriptor, in FromFileDescriptor()
280 StreamPtr stream; in FromFileDescriptor()
/external/adhd/cras/src/tests/
Dtiming_unittest.cc49 const std::vector<StreamPtr>& streams, in SingleInputDevNextWake()
78 const std::vector<StreamPtr>& streams, in SingleOutputDevNextWake()
187 std::vector<StreamPtr> streams; in TEST_F()
209 StreamPtr stream1 = create_stream(1, 1, CRAS_STREAM_INPUT, 480, &format); in TEST_F()
212 StreamPtr stream2 = create_stream(1, 2, CRAS_STREAM_INPUT, 480, &format); in TEST_F()
217 std::vector<StreamPtr> streams; in TEST_F()
239 StreamPtr stream1 = create_stream(1, 1, CRAS_STREAM_INPUT, 480, &format); in TEST_F()
243 StreamPtr stream2 = create_stream(1, 2, CRAS_STREAM_INPUT, 480, &format); in TEST_F()
247 std::vector<StreamPtr> streams; in TEST_F()
264 StreamPtr stream = create_stream(1, 1, CRAS_STREAM_INPUT, 480, &format); in TEST_F()
[all …]
Ddev_io_stubs.h46 using StreamPtr = std::unique_ptr<Stream>; variable
64 StreamPtr create_stream(cras_stream_id_t id,
80 void add_stream_to_dev(IodevPtr& dev, const StreamPtr& stream);
Ddev_io_stubs.cc78 StreamPtr create_stream(cras_stream_id_t id, in create_stream()
87 StreamPtr s( in create_stream()
146 void add_stream_to_dev(IodevPtr& dev, const StreamPtr& stream) { in add_stream_to_dev()
/external/libbrillo/brillo/http/
Dhttp_form_data.h72 virtual bool ExtractDataStreams(std::vector<StreamPtr>* streams) = 0;
108 bool ExtractDataStreams(std::vector<StreamPtr>* streams) override;
128 StreamPtr stream,
138 bool ExtractDataStreams(std::vector<StreamPtr>* streams) override;
141 StreamPtr stream_;
166 bool ExtractDataStreams(std::vector<StreamPtr>* streams) override;
222 StreamPtr ExtractDataStream();
Dhttp_connection_curl.h35 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override;
36 void SetResponseData(StreamPtr stream) override;
46 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override;
73 StreamPtr request_data_stream_;
76 StreamPtr response_data_stream_;
Dmock_connection.h40 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override { in SetRequestData()
43 void SetResponseData(StreamPtr stream) override { in SetResponseData()
46 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override { in ExtractDataStream()
47 return StreamPtr{MockExtractDataStream(error)}; in ExtractDataStream()
Dhttp_form_data.cc88 bool TextFormField::ExtractDataStreams(std::vector<StreamPtr>* streams) { in ExtractDataStreams()
94 StreamPtr stream, in FileFormField()
110 bool FileFormField::ExtractDataStreams(std::vector<StreamPtr>* streams) { in ExtractDataStreams()
129 bool MultiPartFormField::ExtractDataStreams(std::vector<StreamPtr>* streams) { in ExtractDataStreams()
174 StreamPtr stream = FileStream::Open(file_path, Stream::AccessMode::READ, in AddFileField()
225 StreamPtr FormData::ExtractDataStream() { in ExtractDataStream()
226 std::vector<StreamPtr> source_streams; in ExtractDataStream()
Dhttp_connection.h59 virtual bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) = 0;
62 virtual void SetResponseData(StreamPtr stream) = 0;
93 virtual StreamPtr ExtractDataStream(brillo::ErrorPtr* error) = 0;
Dhttp_connection_fake.h33 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override;
34 void SetResponseData(StreamPtr /* stream */) override {} in SetResponseData() argument
43 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override;
Dhttp_request.cc192 StreamPtr stream = MemoryStream::OpenCopyOf(data, size, error); in AddRequestBody()
196 bool Request::AddRequestBody(StreamPtr stream, brillo::ErrorPtr* error) { in AddRequestBody()
209 bool Request::AddResponseStream(StreamPtr stream, brillo::ErrorPtr* error) { in AddResponseStream()
325 StreamPtr Response::ExtractDataStream(ErrorPtr* error) { in ExtractDataStream()
331 StreamPtr src_stream = connection_->ExtractDataStream(nullptr); in ExtractData()
332 StreamPtr dest_stream = MemoryStream::CreateRef(&data, nullptr); in ExtractData()
Dhttp_form_data_test.cc21 std::vector<StreamPtr> streams; in GetFormFieldData()
23 StreamPtr stream = InputStreamSet::Create(std::move(streams), nullptr); in GetFormFieldData()
51 StreamPtr stream = FileStream::Open(file_name, Stream::AccessMode::READ, in TEST()
174 StreamPtr stream = form_data.ExtractDataStream(); in TEST()
Dhttp_form_data_fuzzer.cc31 brillo::StreamPtr mem_stream = brillo::MemoryStream::OpenCopyOf( in CreateFileFormField()
112 brillo::StreamPtr form_stream = form_data.ExtractDataStream(); in LLVMFuzzerTestOneInput()
Dhttp_request.h241 bool AddRequestBody(StreamPtr stream, brillo::ErrorPtr* error);
250 bool AddResponseStream(StreamPtr stream, brillo::ErrorPtr* error);
359 StreamPtr ExtractDataStream(ErrorPtr* error);
Dhttp_connection_fake.cc35 bool Connection::SetRequestData(StreamPtr stream, in SetRequestData()
108 StreamPtr Connection::ExtractDataStream(brillo::ErrorPtr* error) { in ExtractDataStream()

12