/external/libbrillo/brillo/streams/ |
D | memory_stream.h | 57 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 …]
|
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 | 16 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()
|
D | stream_utils.cc | 20 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()
|
D | memory_stream_unittest.cc | 206 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()
|
D | file_stream.h | 72 static StreamPtr Open(const base::FilePath& path, 79 static StreamPtr CreateTemporary(ErrorPtr* error); 91 static StreamPtr FromFileDescriptor(int file_descriptor,
|
D | file_stream_unittest.cc | 703 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 …]
|
D | file_stream.cc | 208 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()
|
D | tls_stream.h | 33 StreamPtr socket, 35 const base::Callback<void(StreamPtr)>& success_callback,
|
D | tls_stream.cc | 77 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/ |
D | timing_unittest.cc | 49 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 …]
|
D | dev_io_stubs.h | 43 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);
|
D | dev_io_stubs.cc | 65 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/ |
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 | 34 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_;
|
D | mock_connection.h | 35 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()
|
D | http_form_data.cc | 86 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()
|
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 | 31 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override; 32 void SetResponseData(StreamPtr /* stream */) override {} in SetResponseData() argument 41 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_unittest.cc | 20 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()
|
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_curl.cc | 80 bool Connection::SetRequestData(StreamPtr stream, in SetRequestData() 86 void Connection::SetResponseData(StreamPtr stream) { in SetResponseData() 197 StreamPtr Connection::ExtractDataStream(brillo::ErrorPtr* error) { in ExtractDataStream()
|