/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); 80 ErrorPtr* error) { 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 | mock_stream.h | 26 MOCK_METHOD2(SetSizeBlocking, bool(uint64_t, ErrorPtr*)); 30 MOCK_METHOD4(Seek, bool(int64_t, Whence, uint64_t*, ErrorPtr*)); 36 ErrorPtr*)); 41 ErrorPtr*)); 42 MOCK_METHOD5(ReadNonBlocking, bool(void*, size_t, size_t*, bool*, ErrorPtr*)); 43 MOCK_METHOD4(ReadBlocking, bool(void*, size_t, size_t*, ErrorPtr*)); 44 MOCK_METHOD3(ReadAllBlocking, bool(void*, size_t, ErrorPtr*)); 50 ErrorPtr*)); 55 ErrorPtr*)); 56 MOCK_METHOD4(WriteNonBlocking, bool(const void*, size_t, size_t*, ErrorPtr*)); [all …]
|
D | stream.h | 146 virtual bool SetSizeBlocking(uint64_t size, ErrorPtr* error) = 0; 150 bool TruncateBlocking(ErrorPtr* error); 167 bool SetPosition(uint64_t position, ErrorPtr* error); 178 ErrorPtr* error) = 0; 208 ErrorPtr* error); 220 ErrorPtr* error); 239 ErrorPtr* error) = 0; 258 ErrorPtr* error); 265 ErrorPtr* error); 294 ErrorPtr* error); [all …]
|
D | memory_containers.h | 41 ErrorPtr* error) = 0; 52 ErrorPtr* error) = 0; 54 virtual bool Resize(size_t new_size, ErrorPtr* error) = 0; 76 ErrorPtr* error) override; 82 ErrorPtr* error) override; 88 ErrorPtr* error) const = 0; 92 virtual void* GetBuffer(size_t offset, ErrorPtr* error) = 0; 112 ErrorPtr* error) override; 114 bool Resize(size_t new_size, ErrorPtr* error) override; 118 void* GetBuffer(size_t offset, ErrorPtr* error) override; [all …]
|
D | memory_stream.cc | 23 ErrorPtr* error) { in OpenRef() 31 ErrorPtr* error) { 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() 71 ErrorPtr* error) { in CreateRefForAppend() 80 ErrorPtr* error) { in CreateEx() [all …]
|
D | input_stream_set.h | 45 ErrorPtr* error); 50 static StreamPtr Create(std::vector<Stream*> source_streams, ErrorPtr* error); 58 ErrorPtr* error); 69 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override; 77 ErrorPtr* error) override; 84 ErrorPtr* error) override; 90 ErrorPtr* error) override; 93 bool FlushBlocking(ErrorPtr* /* error */) override { return true; } in FlushBlocking() argument 94 bool CloseBlocking(ErrorPtr* error) override; 99 ErrorPtr* error) override; [all …]
|
D | file_stream.h | 50 ErrorPtr* error) = 0; 75 ErrorPtr* error); 79 static StreamPtr CreateTemporary(ErrorPtr* error); 93 ErrorPtr* error); 104 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override; 112 ErrorPtr* error) override; 119 ErrorPtr* error) override; 125 ErrorPtr* error) override; 128 bool FlushBlocking(ErrorPtr* error) override; 129 bool CloseBlocking(ErrorPtr* error) override; [all …]
|
D | tls_stream.cc | 81 ErrorPtr* error); 87 ErrorPtr* error); 92 ErrorPtr* error); 94 bool Flush(ErrorPtr* error); 95 bool Close(ErrorPtr* error); 98 ErrorPtr* error); 102 ErrorPtr* error); 106 bool ReportError(ErrorPtr* error, 147 ErrorPtr* error) { in ReadNonBlocking() 184 ErrorPtr* error) { in WriteNonBlocking() [all …]
|
D | memory_containers.cc | 16 ErrorPtr* error) { in ErrorStreamReadOnly() 37 ErrorPtr* error) { in Read() 61 ErrorPtr* error) { in Write() 80 ErrorPtr* error) { in Write() 85 ErrorPtr* error) { in Resize() 90 ErrorPtr* error) { in GetBuffer() 106 bool StringPtr::Resize(size_t new_size, ErrorPtr* /* error */) { in Resize() argument 112 ErrorPtr* /* error */) const { in GetReadOnlyBuffer() 116 void* StringPtr::GetBuffer(size_t offset, ErrorPtr* /* error */) { in GetBuffer() argument 124 ErrorPtr* /* error */) const { in GetReadOnlyBuffer()
|
D | stream.cc | 17 bool Stream::TruncateBlocking(ErrorPtr* error) { in TruncateBlocking() 21 bool Stream::SetPosition(uint64_t position, ErrorPtr* error) { in SetPosition() 31 ErrorPtr* error) { in ReadAsync() 50 ErrorPtr* error) { in ReadAllAsync() 68 ErrorPtr* error) { in ReadBlocking() 87 ErrorPtr* error) { in ReadAllBlocking() 106 ErrorPtr* error) { in WriteAsync() 123 ErrorPtr* error) { in WriteAllAsync() 141 ErrorPtr* error) { in WriteBlocking() 159 ErrorPtr* error) { in WriteAllBlocking() [all …]
|
D | tls_stream.h | 45 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override; 51 ErrorPtr* error) override; 56 ErrorPtr* error) override; 60 ErrorPtr* error) override; 61 bool FlushBlocking(ErrorPtr* error) override; 62 bool CloseBlocking(ErrorPtr* error) override; 65 ErrorPtr* error) override; 69 ErrorPtr* error) override;
|
D | input_stream_set.cc | 24 ErrorPtr* error) { in Create() 58 ErrorPtr* error) { in Create() 63 ErrorPtr* error) { in Create() 91 bool InputStreamSet::SetSizeBlocking(uint64_t /* size */, ErrorPtr* error) { in SetSizeBlocking() 105 ErrorPtr* error) { in Seek() 113 ErrorPtr* error) { in ReadNonBlocking() 140 ErrorPtr* error) { in WriteNonBlocking() 144 bool InputStreamSet::CloseBlocking(ErrorPtr* error) { in CloseBlocking() 161 ErrorPtr* error) { in WaitForData() 180 ErrorPtr* error) { in WaitForDataBlocking()
|
D | memory_containers_unittest.cc | 29 MOCK_METHOD2(Resize, bool(size_t, ErrorPtr*)); 33 MOCK_CONST_METHOD2(GetReadOnlyBuffer, const void*(size_t, ErrorPtr*)); 34 MOCK_METHOD2(GetBuffer, void*(size_t, ErrorPtr*)); 76 ErrorPtr error; in TEST_F() 104 auto OnReadError = [](ErrorPtr* error) { in TEST_F() 115 ErrorPtr error; in TEST_F() 134 ErrorPtr error; in TEST_F() 171 auto OnWriteError = [](ErrorPtr* error) { in TEST_F() 182 ErrorPtr error; in TEST_F() 192 auto OnWriteError = [](ErrorPtr* error) { in TEST_F() [all …]
|
D | fake_stream.h | 89 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override; 95 ErrorPtr* error) override; 101 ErrorPtr* error) override; 105 ErrorPtr* error) override; 106 bool FlushBlocking(ErrorPtr* error) override; 107 bool CloseBlocking(ErrorPtr* error) override; 110 ErrorPtr* error) override; 114 ErrorPtr* error) override;
|
D | stream_utils.h | 17 const base::Location& location, ErrorPtr* error); 21 const base::Location& location, ErrorPtr* error); 25 const base::Location& location, ErrorPtr* error); 29 const base::Location& location, ErrorPtr* error); 43 ErrorPtr* error); 59 ErrorPtr* error);
|
D | stream_utils.cc | 52 brillo::ErrorPtr error; in PerformWrite() 65 brillo::ErrorPtr error; in PerformRead() 84 ErrorPtr* error) { in ErrorStreamClosed() 94 ErrorPtr* error) { in ErrorOperationNotSupported() 104 ErrorPtr* error) { in ErrorReadPastEndOfStream() 114 ErrorPtr* error) { in ErrorOperationTimeout() 126 ErrorPtr* error) { in CheckInt64Overflow() 157 ErrorPtr* error) { in CalculateStreamPosition()
|
/external/libbrillo/brillo/errors/ |
D | error.cc | 11 using brillo::ErrorPtr; 36 ErrorPtr Error::Create(const base::Location& location, in Create() 40 return Create(location, domain, code, message, ErrorPtr()); in Create() 43 ErrorPtr Error::Create(const base::Location& location, in Create() 47 ErrorPtr inner_error) { in Create() 49 return ErrorPtr( in Create() 53 void Error::AddTo(ErrorPtr* error, in AddTo() 67 void Error::AddToPrintf(ErrorPtr* error, in AddToPrintf() 80 ErrorPtr Error::Clone() const { in Clone() 81 ErrorPtr inner_error = inner_error_ ? inner_error_->Clone() : nullptr; in Clone() [all …]
|
D | error.h | 19 using ErrorPtr = std::unique_ptr<Error>; variable 26 static ErrorPtr Create(const base::Location& location, 30 static ErrorPtr Create(const base::Location& location, 34 ErrorPtr inner_error); 38 static void AddTo(ErrorPtr* error, 45 static void AddToPrintf(ErrorPtr* error, 53 ErrorPtr Clone() const; 103 ErrorPtr inner_error); 115 ErrorPtr inner_error_;
|
D | error_unittest.cc | 13 brillo::ErrorPtr GenerateNetworkError() { in GenerateNetworkError() 21 brillo::ErrorPtr GenerateHttpError() { in GenerateHttpError() 22 brillo::ErrorPtr inner = GenerateNetworkError(); in GenerateHttpError() 29 brillo::ErrorPtr err = GenerateNetworkError(); in TEST() 48 brillo::ErrorPtr err = GenerateHttpError(); in TEST() 65 brillo::ErrorPtr err = GenerateHttpError(); in TEST() 66 brillo::ErrorPtr clone = err->Clone(); in TEST()
|
/external/libbrillo/brillo/http/ |
D | mock_connection.h | 22 MOCK_METHOD2(SendHeaders, bool(const HeaderList&, ErrorPtr*)); 23 MOCK_METHOD2(MockSetRequestData, bool(Stream*, ErrorPtr*)); 25 MOCK_METHOD1(FinishRequest, bool(ErrorPtr*)); 32 MOCK_CONST_METHOD1(MockExtractDataStream, Stream*(brillo::ErrorPtr*)); 35 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override { in SetRequestData() 41 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override { in ExtractDataStream()
|
D | http_utils.h | 64 brillo::ErrorPtr* error); 73 brillo::ErrorPtr* error); 124 brillo::ErrorPtr* error); 142 brillo::ErrorPtr* error); 163 brillo::ErrorPtr* error); 201 brillo::ErrorPtr* error); 224 brillo::ErrorPtr* error); 246 brillo::ErrorPtr* error); 268 brillo::ErrorPtr* error); 290 brillo::ErrorPtr* error); [all …]
|
D | http_connection.h | 57 brillo::ErrorPtr* error) = 0; 59 virtual bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) = 0; 67 virtual bool FinishRequest(brillo::ErrorPtr* error) = 0; 93 virtual StreamPtr ExtractDataStream(brillo::ErrorPtr* error) = 0;
|
D | http_utils.cc | 27 brillo::ErrorPtr* error) { in GetAndBlock() 47 brillo::ErrorPtr* error) { in HeadAndBlock() 69 brillo::ErrorPtr* error) { in PostTextAndBlock() 99 brillo::ErrorPtr* error) { in SendRequestAndBlock() 117 brillo::ErrorPtr* error) { in SendRequestWithNoDataAndBlock() 136 brillo::ErrorPtr error; in SendRequest() 189 brillo::ErrorPtr* error) { in PostBinaryAndBlock() 241 brillo::ErrorPtr* error) { in PostFormDataAndBlock() 257 brillo::ErrorPtr* error) { in PostFormDataAndBlock() 290 brillo::ErrorPtr error; in PostFormData() [all …]
|
D | http_connection_fake.h | 30 bool SendHeaders(const HeaderList& headers, brillo::ErrorPtr* error) override; 31 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override; 33 bool FinishRequest(brillo::ErrorPtr* error) override; 41 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override;
|
/external/libbrillo/brillo/dbus/ |
D | dbus_object_internal_impl.h | 86 ErrorPtr param_reader_error; in HandleMethod() 124 ErrorPtr param_reader_error; in HandleMethod() 156 const base::Callback<bool(ErrorPtr*, Args...)>& handler) in SimpleDBusInterfaceMethodHandlerWithError() argument 163 ErrorPtr error; in HandleMethod() 174 ErrorPtr param_reader_error; in HandleMethod() 185 base::Callback<bool(ErrorPtr*, Args...)> handler_; 207 const base::Callback<bool(ErrorPtr*, dbus::Message*, Args...)>& handler) in SimpleDBusInterfaceMethodHandlerWithErrorAndMessage() argument 215 ErrorPtr error; in HandleMethod() 226 ErrorPtr param_reader_error; in HandleMethod() 237 base::Callback<bool(ErrorPtr*, dbus::Message*, Args...)> handler_; [all …]
|