/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); 82 ErrorPtr* error) { 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 | mock_stream.h | 26 MOCK_METHOD(bool, SetSizeBlocking, (uint64_t, ErrorPtr*), (override)); 30 MOCK_METHOD(bool, Seek, (int64_t, Whence, uint64_t*, ErrorPtr*), (override)); 38 ErrorPtr*), 43 (void*, size_t, const base::Closure&, const ErrorCallback&, ErrorPtr*), 47 (void*, size_t, size_t*, bool*, ErrorPtr*), 51 (void*, size_t, size_t*, ErrorPtr*), 53 MOCK_METHOD(bool, ReadAllBlocking, (void*, size_t, ErrorPtr*), (override)); 61 ErrorPtr*), 69 ErrorPtr*), 73 (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 | 42 ErrorPtr* error) = 0; 53 ErrorPtr* error) = 0; 55 virtual bool Resize(size_t new_size, ErrorPtr* error) = 0; 77 ErrorPtr* error) override; 83 ErrorPtr* error) override; 89 ErrorPtr* error) const = 0; 93 virtual void* GetBuffer(size_t offset, ErrorPtr* error) = 0; 113 ErrorPtr* error) override; 115 bool Resize(size_t new_size, ErrorPtr* error) override; 119 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 | 52 ErrorPtr* error) = 0; 77 ErrorPtr* error); 81 static StreamPtr CreateTemporary(ErrorPtr* error); 95 ErrorPtr* error); 106 bool SetSizeBlocking(uint64_t size, ErrorPtr* error) override; 114 ErrorPtr* error) override; 121 ErrorPtr* error) override; 127 ErrorPtr* error) override; 130 bool FlushBlocking(ErrorPtr* error) override; 131 bool CloseBlocking(ErrorPtr* error) override; [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 | 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 | tls_stream.cc | 87 ErrorPtr* error); 93 ErrorPtr* error); 98 ErrorPtr* error); 100 bool Flush(ErrorPtr* error); 101 bool Close(ErrorPtr* error); 104 ErrorPtr* error); 108 ErrorPtr* error); 112 bool ReportError(ErrorPtr* error, 153 ErrorPtr* error) { in ReadNonBlocking() 190 ErrorPtr* error) { in WriteNonBlocking() [all …]
|
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 | input_stream_set.cc | 26 ErrorPtr* error) { in Create() 60 ErrorPtr* error) { in Create() 65 ErrorPtr* error) { in Create() 93 bool InputStreamSet::SetSizeBlocking(uint64_t /* size */, ErrorPtr* error) { in SetSizeBlocking() 107 ErrorPtr* error) { in Seek() 115 ErrorPtr* error) { in ReadNonBlocking() 142 ErrorPtr* error) { in WriteNonBlocking() 146 bool InputStreamSet::CloseBlocking(ErrorPtr* error) { in CloseBlocking() 163 ErrorPtr* error) { in WaitForData() 182 ErrorPtr* error) { in WaitForDataBlocking()
|
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 | memory_containers_test.cc | 29 MOCK_METHOD(bool, Resize, (size_t, ErrorPtr*), (override)); 35 (size_t, ErrorPtr*), 37 MOCK_METHOD(void*, GetBuffer, (size_t, ErrorPtr*), (override)); 82 ErrorPtr error; in TEST_F() 110 auto OnReadError = [](ErrorPtr* error) { in TEST_F() 121 ErrorPtr error; in TEST_F() 140 ErrorPtr error; in TEST_F() 177 auto OnWriteError = [](ErrorPtr* error) { in TEST_F() 188 ErrorPtr error; in TEST_F() 198 auto OnWriteError = [](ErrorPtr* error) { in TEST_F() [all …]
|
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);
|
/external/gwp_asan/gwp_asan/ |
D | crash_handler.cpp | 24 uintptr_t ErrorPtr) { in __gwp_asan_error_is_mine() argument 29 return ErrorPtr < State->GuardedPagePoolEnd && in __gwp_asan_error_is_mine() 30 State->GuardedPagePool <= ErrorPtr; in __gwp_asan_error_is_mine() 48 uintptr_t ErrorPtr) { in __gwp_asan_diagnose_error() argument 49 if (!__gwp_asan_error_is_mine(State, ErrorPtr)) in __gwp_asan_diagnose_error() 56 if (State->isGuardPage(ErrorPtr)) { in __gwp_asan_diagnose_error() 57 size_t Slot = State->getNearestSlot(ErrorPtr); in __gwp_asan_diagnose_error() 65 if (SlotMeta->Addr < ErrorPtr) in __gwp_asan_diagnose_error() 72 addrToMetadata(State, Metadata, ErrorPtr); in __gwp_asan_diagnose_error() 84 uintptr_t ErrorPtr) { in __gwp_asan_get_metadata() argument [all …]
|
/external/llvm-project/compiler-rt/lib/gwp_asan/ |
D | crash_handler.cpp | 23 uintptr_t ErrorPtr) { in __gwp_asan_error_is_mine() argument 28 return ErrorPtr < State->GuardedPagePoolEnd && in __gwp_asan_error_is_mine() 29 State->GuardedPagePool <= ErrorPtr; in __gwp_asan_error_is_mine() 47 uintptr_t ErrorPtr) { in __gwp_asan_diagnose_error() argument 48 if (!__gwp_asan_error_is_mine(State, ErrorPtr)) in __gwp_asan_diagnose_error() 55 if (State->isGuardPage(ErrorPtr)) { in __gwp_asan_diagnose_error() 56 size_t Slot = State->getNearestSlot(ErrorPtr); in __gwp_asan_diagnose_error() 64 if (SlotMeta->Addr < ErrorPtr) in __gwp_asan_diagnose_error() 71 addrToMetadata(State, Metadata, ErrorPtr); in __gwp_asan_diagnose_error() 83 uintptr_t ErrorPtr) { in __gwp_asan_get_metadata() argument [all …]
|
/external/libbrillo/brillo/errors/ |
D | error.cc | 13 using brillo::ErrorPtr; 33 ErrorPtr Error::Create(const base::Location& location, in Create() 37 return Create(location, domain, code, message, ErrorPtr()); in Create() 40 ErrorPtr Error::Create(const base::Location& location, in Create() 44 ErrorPtr inner_error) { in Create() 46 return ErrorPtr( in Create() 50 void Error::AddTo(ErrorPtr* error, in AddTo() 64 void Error::AddToPrintf(ErrorPtr* error, in AddToPrintf() 77 ErrorPtr Error::Clone() const { in Clone() 78 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); 116 ErrorPtr inner_error_;
|
D | error_test.cc | 16 brillo::ErrorPtr GenerateNetworkError() { in GenerateNetworkError() 24 brillo::ErrorPtr GenerateHttpError() { in GenerateHttpError() 25 brillo::ErrorPtr inner = GenerateNetworkError(); in GenerateHttpError() 32 brillo::ErrorPtr err = GenerateNetworkError(); in TEST() 51 brillo::ErrorPtr err = GenerateHttpError(); in TEST() 68 brillo::ErrorPtr err = GenerateHttpError(); in TEST() 69 brillo::ErrorPtr clone = err->Clone(); in TEST()
|
/external/libbrillo/brillo/http/ |
D | mock_connection.h | 22 MOCK_METHOD(bool, SendHeaders, (const HeaderList&, ErrorPtr*), (override)); 23 MOCK_METHOD(bool, MockSetRequestData, (Stream*, ErrorPtr*)); 25 MOCK_METHOD(bool, FinishRequest, (ErrorPtr*), (override)); 37 MOCK_METHOD(Stream*, MockExtractDataStream, (brillo::ErrorPtr*), (const)); 40 bool SetRequestData(StreamPtr stream, brillo::ErrorPtr* error) override { in SetRequestData() 46 StreamPtr ExtractDataStream(brillo::ErrorPtr* error) override { in ExtractDataStream()
|
D | http_utils.h | 65 brillo::ErrorPtr* error); 74 brillo::ErrorPtr* error); 125 brillo::ErrorPtr* error); 143 brillo::ErrorPtr* error); 164 brillo::ErrorPtr* error); 202 brillo::ErrorPtr* error); 225 brillo::ErrorPtr* error); 247 brillo::ErrorPtr* error); 269 brillo::ErrorPtr* error); 291 brillo::ErrorPtr* error); [all …]
|
/external/gwp_asan/gwp_asan/optional/ |
D | segv_handler_posix.cpp | 88 void dumpReport(uintptr_t ErrorPtr, const gwp_asan::AllocatorState *State, in dumpReport() argument 96 if (!__gwp_asan_error_is_mine(State, ErrorPtr)) in dumpReport() 104 ErrorPtr = InternalErrorPtr; in dumpReport() 106 Error E = __gwp_asan_diagnose_error(State, Metadata, ErrorPtr); in dumpReport() 116 __gwp_asan_get_metadata(State, Metadata, ErrorPtr); in dumpReport() 119 printHeader(E, ErrorPtr, AllocMeta, Printf); in dumpReport() 136 Printf("0x%zx was deallocated by thread <unknown> here:\n", ErrorPtr); in dumpReport() 138 Printf("0x%zx was deallocated by thread %zu here:\n", ErrorPtr, ThreadID); in dumpReport() 147 Printf("0x%zx was allocated by thread <unknown> here:\n", ErrorPtr); in dumpReport() 149 Printf("0x%zx was allocated by thread %zu here:\n", ErrorPtr, ThreadID); in dumpReport()
|
/external/llvm-project/compiler-rt/lib/gwp_asan/optional/ |
D | segv_handler_posix.cpp | 161 void dumpReport(uintptr_t ErrorPtr, const gwp_asan::AllocatorState *State, in dumpReport() argument 169 if (!__gwp_asan_error_is_mine(State, ErrorPtr)) in dumpReport() 177 ErrorPtr = InternalErrorPtr; in dumpReport() 179 Error E = __gwp_asan_diagnose_error(State, Metadata, ErrorPtr); in dumpReport() 189 __gwp_asan_get_metadata(State, Metadata, ErrorPtr); in dumpReport() 192 printHeader(E, ErrorPtr, AllocMeta, Printf); in dumpReport() 209 Printf("0x%zx was deallocated by thread <unknown> here:\n", ErrorPtr); in dumpReport() 211 Printf("0x%zx was deallocated by thread %zu here:\n", ErrorPtr, ThreadID); in dumpReport() 220 Printf("0x%zx was allocated by thread <unknown> here:\n", ErrorPtr); in dumpReport() 222 Printf("0x%zx was allocated by thread %zu here:\n", ErrorPtr, ThreadID); in dumpReport()
|
/external/libbrillo/brillo/dbus/ |
D | dbus_object_internal_impl.h | 87 ErrorPtr param_reader_error; in HandleMethod() 125 ErrorPtr param_reader_error; in HandleMethod() 157 const base::Callback<bool(ErrorPtr*, Args...)>& handler) in SimpleDBusInterfaceMethodHandlerWithError() argument 164 ErrorPtr error; in HandleMethod() 175 ErrorPtr param_reader_error; in HandleMethod() 186 base::Callback<bool(ErrorPtr*, Args...)> handler_; 208 const base::Callback<bool(ErrorPtr*, ::dbus::Message*, Args...)>& handler) in SimpleDBusInterfaceMethodHandlerWithErrorAndMessage() argument 216 ErrorPtr error; in HandleMethod() 227 ErrorPtr param_reader_error; in HandleMethod() 238 base::Callback<bool(ErrorPtr*, ::dbus::Message*, Args...)> handler_; [all …]
|