Home
last modified time | relevance | path

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

12

/external/libbrillo/brillo/streams/
Dmemory_stream.h57 static StreamPtr OpenCopyOf(const void* buffer, size_t size, ErrorPtr* error);
58 static StreamPtr OpenCopyOf(std::string buffer, ErrorPtr* error);
59 static StreamPtr OpenCopyOf(const char* buffer, ErrorPtr* error);
62 inline static StreamPtr OpenCopyOf(std::vector<T> buffer, ErrorPtr* error) { in OpenCopyOf()
74 static StreamPtr OpenRef(const void* buffer, size_t size, ErrorPtr* error);
75 static StreamPtr OpenRef(const std::string& buffer, ErrorPtr* error);
76 static StreamPtr OpenRef(const char* buffer, ErrorPtr* error);
79 inline static StreamPtr OpenRef(const std::vector<T>& buffer, in OpenRef()
92 static StreamPtr Create(size_t reserve_size, ErrorPtr* error);
94 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.cc16 std::vector<StreamPtr> owned_source_streams, in InputStreamSet()
22 StreamPtr InputStreamSet::Create(std::vector<Stream*> source_streams, in Create()
23 std::vector<StreamPtr> owned_source_streams, in Create()
25 StreamPtr stream; in Create()
57 StreamPtr InputStreamSet::Create(std::vector<Stream*> source_streams, in Create()
62 StreamPtr InputStreamSet::Create(std::vector<StreamPtr> owned_source_streams, in Create()
66 for (const StreamPtr& stream : owned_source_streams) in Create()
147 for (StreamPtr& stream_ptr : owned_source_streams_) { in CloseBlocking()
Dstream_utils.cc20 brillo::StreamPtr in_stream;
21 brillo::StreamPtr out_stream;
188 void CopyData(StreamPtr in_stream, in CopyData()
189 StreamPtr out_stream, in CopyData()
197 void CopyData(StreamPtr in_stream, in CopyData()
198 StreamPtr out_stream, in CopyData()
Dmemory_stream_unittest.cc206 StreamPtr stream = MemoryStream::OpenRef(buffer, sizeof(buffer), nullptr); in TEST()
220 StreamPtr stream = MemoryStream::OpenCopyOf(buffer, sizeof(buffer), nullptr); in TEST()
234 StreamPtr stream = MemoryStream::OpenRef(str, nullptr); in TEST()
246 StreamPtr stream = MemoryStream::OpenCopyOf(str, nullptr); in TEST()
258 StreamPtr stream = MemoryStream::OpenRef(str, nullptr); in TEST()
270 StreamPtr stream = MemoryStream::OpenCopyOf(str, nullptr); in TEST()
282 StreamPtr stream = MemoryStream::OpenRef(data, nullptr); in TEST()
298 StreamPtr stream = MemoryStream::OpenCopyOf(data, nullptr); in TEST()
314 StreamPtr stream = MemoryStream::CreateRef(&buffer, nullptr); in TEST()
353 StreamPtr stream = MemoryStream::CreateRef(&buffer, nullptr); in TEST()
Dfile_stream.h72 static StreamPtr Open(const base::FilePath& path,
79 static StreamPtr CreateTemporary(ErrorPtr* error);
91 static StreamPtr FromFileDescriptor(int file_descriptor,
Dfile_stream_unittest.cc703 StreamPtr stream = FileStream::CreateTemporary(nullptr); in TEST_F()
717 StreamPtr stream = FileStream::Open(path, in TEST_F()
743 StreamPtr stream = FileStream::Open(path, in TEST_F()
773 StreamPtr stream = FileStream::Open(path, in TEST_F()
793 StreamPtr stream = FileStream::Open(path, in TEST_F()
807 StreamPtr stream = FileStream::Open(path, in TEST_F()
829 StreamPtr stream = FileStream::Open(path, in TEST_F()
848 StreamPtr stream = FileStream::Open(path, in TEST_F()
871 StreamPtr stream = FileStream::Open(path, in TEST_F()
886 StreamPtr stream = FileStream::Open( in TEST_F()
[all …]
Dfile_stream.cc208 StreamPtr FileStream::Open(const base::FilePath& path, in Open()
212 StreamPtr stream; in Open()
260 StreamPtr FileStream::CreateTemporary(ErrorPtr* error) { in CreateTemporary()
261 StreamPtr stream; in CreateTemporary()
287 StreamPtr FileStream::FromFileDescriptor(int file_descriptor, in FromFileDescriptor()
290 StreamPtr stream; in FromFileDescriptor()
Dtls_stream.h33 StreamPtr socket,
35 const base::Callback<void(StreamPtr)>& success_callback,
Dtls_stream.cc77 bool Init(StreamPtr socket,
118 StreamPtr socket_;
339 bool TlsStream::TlsStreamImpl::Init(StreamPtr socket, in Init()
456 void TlsStream::Connect(StreamPtr socket, in Connect()
458 const base::Callback<void(StreamPtr)>& success_callback, in Connect()
/external/adhd/cras/src/tests/
Dtiming_unittest.cc49 const std::vector<StreamPtr>& streams, in SingleInputDevNextWake()
82 StreamPtr stream = in TEST_F()
90 std::vector<StreamPtr> streams; in TEST_F()
112 StreamPtr stream = in TEST_F()
118 std::vector<StreamPtr> streams; in TEST_F()
143 StreamPtr stream = in TEST_F()
149 std::vector<StreamPtr> streams; in TEST_F()
170 StreamPtr stream = in TEST_F()
178 std::vector<StreamPtr> streams; in TEST_F()
200 StreamPtr stream1 = in TEST_F()
[all …]
Ddev_io_stubs.h43 using StreamPtr = std::unique_ptr<Stream>; variable
65 StreamPtr create_stream(cras_stream_id_t id,
81 void add_stream_to_dev(IodevPtr& dev, const StreamPtr& stream);
Ddev_io_stubs.cc65 StreamPtr create_stream(cras_stream_id_t id, in create_stream()
74 StreamPtr s(new Stream(std::move(shm), in create_stream()
128 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.h34 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override;
35 void SetResponseData(StreamPtr stream) override;
45 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override;
72 StreamPtr request_data_stream_;
75 StreamPtr response_data_stream_;
Dmock_connection.h35 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override { in SetRequestData()
38 void SetResponseData(StreamPtr stream) override { in SetResponseData()
41 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override { in ExtractDataStream()
42 return StreamPtr{MockExtractDataStream(error)}; in ExtractDataStream()
Dhttp_form_data.cc86 bool TextFormField::ExtractDataStreams(std::vector<StreamPtr>* streams) { in ExtractDataStreams()
92 StreamPtr stream, in FileFormField()
108 bool FileFormField::ExtractDataStreams(std::vector<StreamPtr>* streams) { in ExtractDataStreams()
127 bool MultiPartFormField::ExtractDataStreams(std::vector<StreamPtr>* streams) { in ExtractDataStreams()
162 StreamPtr stream = FileStream::Open(file_path, Stream::AccessMode::READ, in AddFileField()
213 StreamPtr FormData::ExtractDataStream() { in ExtractDataStream()
214 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.h31 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override;
32 void SetResponseData(StreamPtr /* stream */) override {} in SetResponseData() argument
41 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_unittest.cc20 std::vector<StreamPtr> streams; in GetFormFieldData()
22 StreamPtr stream = InputStreamSet::Create(std::move(streams), nullptr); in GetFormFieldData()
50 StreamPtr stream = FileStream::Open(file_name, Stream::AccessMode::READ, in TEST()
173 StreamPtr stream = form_data.ExtractDataStream(); in TEST()
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_curl.cc80 bool Connection::SetRequestData(StreamPtr stream, in SetRequestData()
86 void Connection::SetResponseData(StreamPtr stream) { in SetResponseData()
197 StreamPtr Connection::ExtractDataStream(brillo::ErrorPtr* error) { in ExtractDataStream()

12