/external/libbrillo/brillo/streams/ |
stream_utils_unittest.cc | 5 #include <brillo/streams/stream_utils.h> 52 EXPECT_FALSE(stream_utils::ErrorStreamClosed(FROM_HERE, &error)); 60 EXPECT_FALSE(stream_utils::ErrorOperationNotSupported(FROM_HERE, &error)); 68 EXPECT_FALSE(stream_utils::ErrorReadPastEndOfStream(FROM_HERE, &error)); 77 EXPECT_TRUE(stream_utils::CheckInt64Overflow(FROM_HERE, 0, 0, nullptr)); 78 EXPECT_TRUE(stream_utils::CheckInt64Overflow( 80 EXPECT_TRUE(stream_utils::CheckInt64Overflow( 82 EXPECT_TRUE(stream_utils::CheckInt64Overflow(FROM_HERE, 100, -90, nullptr)); 83 EXPECT_TRUE(stream_utils::CheckInt64Overflow( 87 EXPECT_FALSE(stream_utils::CheckInt64Overflow(FROM_HERE, 100, -101, &error)) [all...] |
input_stream_set.cc | 10 #include <brillo/streams/stream_utils.h> 92 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 106 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 115 return stream_utils::ErrorStreamClosed(FROM_HERE, error); 141 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 163 return stream_utils::ErrorStreamClosed(FROM_HERE, error); 165 if (stream_utils::IsWriteAccessMode(mode)) 166 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 182 return stream_utils::ErrorStreamClosed(FROM_HERE, error); 184 if (stream_utils::IsWriteAccessMode(in_mode) [all...] |
fake_stream.cc | 11 #include <brillo/streams/stream_utils.h> 51 *mode = stream_utils::MakeAccessMode(read, write); 163 return stream_utils::IsReadAccessMode(mode_); 167 return stream_utils::IsWriteAccessMode(mode_); 171 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 178 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 203 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 206 return stream_utils::ErrorStreamClosed(FROM_HERE, error); 267 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 270 return stream_utils::ErrorStreamClosed(FROM_HERE, error) [all...] |
file_stream.cc | 18 #include <brillo/streams/stream_utils.h> 85 if (stream_utils::IsReadAccessMode(mode)) { 103 if (stream_utils::IsWriteAccessMode(mode)) { 135 if (stream_utils::IsReadAccessMode(in_mode)) 138 if (stream_utils::IsWriteAccessMode(in_mode)) 150 *out_mode = stream_utils::MakeAccessMode(FD_ISSET(fd_, &read_fds), 358 return IsOpen() && stream_utils::IsReadAccessMode(access_mode_); 362 return IsOpen() && stream_utils::IsWriteAccessMode(access_mode_); 379 return stream_utils::ErrorStreamClosed(FROM_HERE, error); 381 if (!stream_utils::CheckInt64Overflow(FROM_HERE, size, 0, error) [all...] |
tls_stream.cc | 20 #include <brillo/streams/stream_utils.h> 247 bool is_read = stream_utils::IsReadAccessMode(mode); 248 bool is_write = stream_utils::IsWriteAccessMode(mode); 257 mode = stream_utils::MakeAccessMode(is_read, is_write); 265 bool is_read = stream_utils::IsReadAccessMode(in_mode); 266 bool is_write = stream_utils::IsWriteAccessMode(in_mode); 275 in_mode = stream_utils::MakeAccessMode(is_read, is_write); 479 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 486 return stream_utils::ErrorOperationNotSupported(FROM_HERE, error); 495 return stream_utils::ErrorStreamClosed(FROM_HERE, error) [all...] |
stream.cc | 13 #include <brillo/streams/stream_utils.h> 22 if (!stream_utils::CheckInt64Overflow(FROM_HERE, position, 0, error)) 94 return stream_utils::ErrorReadPastEndOfStream(FROM_HERE, error); 247 CHECK(stream_utils::IsReadAccessMode(mode)); 309 CHECK(stream_utils::IsWriteAccessMode(mode)); 330 stream_utils::ErrorReadPastEndOfStream(FROM_HERE, &error);
|
memory_stream.cc | 12 #include <brillo/streams/stream_utils.h> 121 !stream_utils::CalculateStreamPosition(FROM_HERE, offset, whence, 182 return container_ || stream_utils::ErrorStreamClosed(FROM_HERE, error);
|
stream_utils.cc | 5 #include <brillo/streams/stream_utils.h> 14 namespace stream_utils { namespace in namespace:brillo 215 } // namespace stream_utils
|
stream_utils.h | 13 namespace stream_utils { namespace in namespace:brillo 111 } // namespace stream_utils
|
stream.h | 60 // You should use stream_utils::ErrorOperationNotSupported() for this. Also 70 // return stream_utils::ErrorOperationNotSupported(error);
|
/system/webservd/libwebserv/ |
request_utils.cc | 19 #include <brillo/streams/stream_utils.h> 69 brillo::stream_utils::CopyData(std::move(in_stream), std::move(out_stream),
|
dbus_protocol_handler.cc | 22 #include <brillo/streams/stream_utils.h> 52 brillo::stream_utils::CopyData(
|
/external/libbrillo/brillo/http/ |
http_connection_curl.cc | 11 #include <brillo/streams/stream_utils.h> 199 stream_utils::ErrorStreamClosed(FROM_HERE, error);
|
/external/libbrillo/ |
libbrillo.gypi | 152 'brillo/streams/stream_utils.cc',
|
Android.mk | 90 brillo/streams/stream_utils.cc \
|