/external/libbrillo/brillo/streams/ |
D | memory_stream.h | 59 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 …]
|
D | stream_utils.h | 82 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,
|
D | input_stream_set.h | 43 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_;
|
D | memory_stream.cc | 21 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 …]
|
D | input_stream_set.cc | 18 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()
|
D | stream_utils.cc | 24 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()
|
D | memory_stream_test.cc | 213 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()
|
D | file_stream.h | 74 static StreamPtr Open(const base::FilePath& path, 81 static StreamPtr CreateTemporary(ErrorPtr* error); 93 static StreamPtr FromFileDescriptor(int file_descriptor,
|
D | file_stream_test.cc | 709 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 …]
|
D | tls_stream.h | 33 StreamPtr socket, 35 const base::Callback<void(StreamPtr)>& success_callback,
|
D | file_stream.cc | 198 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/ |
D | timing_unittest.cc | 49 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 …]
|
D | dev_io_stubs.h | 46 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);
|
D | dev_io_stubs.cc | 78 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/ |
D | http_form_data.h | 72 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();
|
D | http_connection_curl.h | 35 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_;
|
D | mock_connection.h | 40 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()
|
D | http_form_data.cc | 88 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()
|
D | http_connection.h | 59 virtual bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) = 0; 62 virtual void SetResponseData(StreamPtr stream) = 0; 93 virtual StreamPtr ExtractDataStream(brillo::ErrorPtr* error) = 0;
|
D | http_connection_fake.h | 33 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override; 34 void SetResponseData(StreamPtr /* stream */) override {} in SetResponseData() argument 43 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override;
|
D | http_request.cc | 192 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()
|
D | http_form_data_test.cc | 21 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()
|
D | http_form_data_fuzzer.cc | 31 brillo::StreamPtr mem_stream = brillo::MemoryStream::OpenCopyOf( in CreateFileFormField() 112 brillo::StreamPtr form_stream = form_data.ExtractDataStream(); in LLVMFuzzerTestOneInput()
|
D | http_request.h | 241 bool AddRequestBody(StreamPtr stream, brillo::ErrorPtr* error); 250 bool AddResponseStream(StreamPtr stream, brillo::ErrorPtr* error); 359 StreamPtr ExtractDataStream(ErrorPtr* error);
|
D | http_connection_fake.cc | 35 bool Connection::SetRequestData(StreamPtr stream, in SetRequestData() 108 StreamPtr Connection::ExtractDataStream(brillo::ErrorPtr* error) { in ExtractDataStream()
|