Searched refs:stream_utils (Results 1 – 12 of 12) sorted by relevance
/external/libbrillo/brillo/streams/ |
D | stream_utils_unittest.cc | 52 EXPECT_FALSE(stream_utils::ErrorStreamClosed(FROM_HERE, &error)); in TEST() 60 EXPECT_FALSE(stream_utils::ErrorOperationNotSupported(FROM_HERE, &error)); in TEST() 68 EXPECT_FALSE(stream_utils::ErrorReadPastEndOfStream(FROM_HERE, &error)); in TEST() 77 EXPECT_TRUE(stream_utils::CheckInt64Overflow(FROM_HERE, 0, 0, nullptr)); in TEST() 78 EXPECT_TRUE(stream_utils::CheckInt64Overflow( in TEST() 80 EXPECT_TRUE(stream_utils::CheckInt64Overflow( in TEST() 82 EXPECT_TRUE(stream_utils::CheckInt64Overflow(FROM_HERE, 100, -90, nullptr)); in TEST() 83 EXPECT_TRUE(stream_utils::CheckInt64Overflow( in TEST() 87 EXPECT_FALSE(stream_utils::CheckInt64Overflow(FROM_HERE, 100, -101, &error)); in TEST() 92 EXPECT_FALSE(stream_utils::CheckInt64Overflow( in TEST() [all …]
|
D | fake_stream.cc | 51 *mode = stream_utils::MakeAccessMode(read, write); in GetMinDelayAndMode() 163 return stream_utils::IsReadAccessMode(mode_); in CanRead() 167 return stream_utils::IsWriteAccessMode(mode_); in CanWrite() 171 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in SetSizeBlocking() 178 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in Seek() 203 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in ReadNonBlocking() 206 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in ReadNonBlocking() 267 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in WriteNonBlocking() 270 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in WriteNonBlocking() 329 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in FlushBlocking() [all …]
|
D | input_stream_set.cc | 92 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in SetSizeBlocking() 106 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in Seek() 115 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in ReadNonBlocking() 141 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in WriteNonBlocking() 163 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in WaitForData() 165 if (stream_utils::IsWriteAccessMode(mode)) in WaitForData() 166 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in WaitForData() 182 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in WaitForDataBlocking() 184 if (stream_utils::IsWriteAccessMode(in_mode)) in WaitForDataBlocking() 185 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in WaitForDataBlocking()
|
D | file_stream.cc | 85 if (stream_utils::IsReadAccessMode(mode)) { in WaitForData() 103 if (stream_utils::IsWriteAccessMode(mode)) { in WaitForData() 135 if (stream_utils::IsReadAccessMode(in_mode)) in WaitForDataBlocking() 138 if (stream_utils::IsWriteAccessMode(in_mode)) in WaitForDataBlocking() 150 *out_mode = stream_utils::MakeAccessMode(FD_ISSET(fd_, &read_fds), in WaitForDataBlocking() 358 return IsOpen() && stream_utils::IsReadAccessMode(access_mode_); in CanRead() 362 return IsOpen() && stream_utils::IsWriteAccessMode(access_mode_); in CanWrite() 379 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in SetSizeBlocking() 381 if (!stream_utils::CheckInt64Overflow(FROM_HERE, size, 0, error)) in SetSizeBlocking() 413 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in Seek() [all …]
|
D | tls_stream.cc | 247 bool is_read = stream_utils::IsReadAccessMode(mode); in WaitForData() 248 bool is_write = stream_utils::IsWriteAccessMode(mode); in WaitForData() 257 mode = stream_utils::MakeAccessMode(is_read, is_write); in WaitForData() 265 bool is_read = stream_utils::IsReadAccessMode(in_mode); in WaitForDataBlocking() 266 bool is_write = stream_utils::IsWriteAccessMode(in_mode); in WaitForDataBlocking() 275 in_mode = stream_utils::MakeAccessMode(is_read, is_write); in WaitForDataBlocking() 479 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in SetSizeBlocking() 486 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); in Seek() 495 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in ReadNonBlocking() 505 return stream_utils::ErrorStreamClosed(FROM_HERE, error); in WriteNonBlocking() [all …]
|
D | stream.cc | 22 if (!stream_utils::CheckInt64Overflow(FROM_HERE, position, 0, error)) in SetPosition() 94 return stream_utils::ErrorReadPastEndOfStream(FROM_HERE, error); in ReadAllBlocking() 247 CHECK(stream_utils::IsReadAccessMode(mode)); in OnReadAvailable() 309 CHECK(stream_utils::IsWriteAccessMode(mode)); in OnWriteAvailable() 330 stream_utils::ErrorReadPastEndOfStream(FROM_HERE, &error); in ReadAllAsyncCallback()
|
D | memory_stream.cc | 121 !stream_utils::CalculateStreamPosition(FROM_HERE, offset, whence, in Seek() 182 return container_ || stream_utils::ErrorStreamClosed(FROM_HERE, error); in CheckContainer()
|
D | stream_utils.h | 13 namespace stream_utils {
|
D | stream_utils.cc | 14 namespace stream_utils { namespace
|
/external/libbrillo/brillo/http/ |
D | http_connection_curl.cc | 199 stream_utils::ErrorStreamClosed(FROM_HERE, error); in ExtractDataStream()
|
/external/libbrillo/ |
D | libbrillo.gypi | 152 'brillo/streams/stream_utils.cc',
|
D | Android.mk | 90 brillo/streams/stream_utils.cc \
|