Searched refs:bufferedStream (Results 1 – 7 of 7) sorted by relevance
/external/skqp/tests/ |
D | FrontBufferedStreamTest.cpp | 16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read() argument 21 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read() 22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read() 27 SkStream* bufferedStream, bool shouldSucceed) { in test_rewind() argument 28 const bool success = bufferedStream->rewind(); in test_rewind() 37 const SkStream& bufferedStream, in test_hasLength() argument 40 REPORTER_ASSERT(reporter, bufferedStream.hasLength()); in test_hasLength() 42 REPORTER_ASSERT(reporter, !bufferedStream.hasLength()); in test_hasLength() 59 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_incremental_buffering() local 61 test_hasLength(reporter, *bufferedStream, *memStream); in test_incremental_buffering() [all …]
|
D | StreamTest.cpp | 232 auto bufferedStream = SkFrontBufferedStream::Make(std::move(dupe), bufferSize); in test_peeking_front_buffered_stream() local 233 REPORTER_ASSERT(r, bufferedStream != nullptr); in test_peeking_front_buffered_stream() 236 for (size_t i = 1; !bufferedStream->isAtEnd(); i++) { in test_peeking_front_buffered_stream() 237 const size_t unpeekableBytes = compare_peek_to_read(r, bufferedStream.get(), i); in test_peeking_front_buffered_stream() 252 bufferedStream = SkFrontBufferedStream::Make(original.duplicate(), bufferSize); in test_peeking_front_buffered_stream() 253 REPORTER_ASSERT(r, bufferedStream != nullptr); in test_peeking_front_buffered_stream() 261 REPORTER_ASSERT(r, bufferedStream->skip(start) == start); in test_peeking_front_buffered_stream() 263 const size_t bytesPeeked = bufferedStream->peek(peekStorage.get(), bytesToPeek); in test_peeking_front_buffered_stream() 271 const size_t bytesRead = bufferedStream->read(readStorage.get(), bytesPeeked); in test_peeking_front_buffered_stream() 276 REPORTER_ASSERT(r, bufferedStream->rewind()); in test_peeking_front_buffered_stream()
|
D | CodecTest.cpp | 434 auto bufferedStream = SkFrontBufferedStream::Make( in check() local 436 REPORTER_ASSERT(r, bufferedStream); in check() 437 codec = SkCodec::MakeFromStream(std::move(bufferedStream)); in check()
|
/external/skia/tests/ |
D | FrontBufferedStreamTest.cpp | 16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read() argument 21 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read() 22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read() 27 SkStream* bufferedStream, bool shouldSucceed) { in test_rewind() argument 28 const bool success = bufferedStream->rewind(); in test_rewind() 37 const SkStream& bufferedStream, in test_hasLength() argument 40 REPORTER_ASSERT(reporter, bufferedStream.hasLength()); in test_hasLength() 42 REPORTER_ASSERT(reporter, !bufferedStream.hasLength()); in test_hasLength() 59 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_incremental_buffering() local 61 test_hasLength(reporter, *bufferedStream, *memStream); in test_incremental_buffering() [all …]
|
D | StreamTest.cpp | 235 auto bufferedStream = SkFrontBufferedStream::Make(std::move(dupe), bufferSize); in test_peeking_front_buffered_stream() local 236 REPORTER_ASSERT(r, bufferedStream != nullptr); in test_peeking_front_buffered_stream() 239 for (size_t i = 1; !bufferedStream->isAtEnd(); i++) { in test_peeking_front_buffered_stream() 240 const size_t unpeekableBytes = compare_peek_to_read(r, bufferedStream.get(), i); in test_peeking_front_buffered_stream() 255 bufferedStream = SkFrontBufferedStream::Make(original.duplicate(), bufferSize); in test_peeking_front_buffered_stream() 256 REPORTER_ASSERT(r, bufferedStream != nullptr); in test_peeking_front_buffered_stream() 264 REPORTER_ASSERT(r, bufferedStream->skip(start) == start); in test_peeking_front_buffered_stream() 266 const size_t bytesPeeked = bufferedStream->peek(peekStorage.get(), bytesToPeek); in test_peeking_front_buffered_stream() 274 const size_t bytesRead = bufferedStream->read(readStorage.get(), bytesPeeked); in test_peeking_front_buffered_stream() 279 REPORTER_ASSERT(r, bufferedStream->rewind()); in test_peeking_front_buffered_stream()
|
D | CodecTest.cpp | 436 auto bufferedStream = SkFrontBufferedStream::Make( in check() local 438 REPORTER_ASSERT(r, bufferedStream); in check() 439 codec = SkCodec::MakeFromStream(std::move(bufferedStream)); in check()
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/tools/ |
D | ExecFileLoader.java | 114 final OutputStream bufferedStream = new BufferedOutputStream(fileStream); in save() local 116 save(bufferedStream); in save() 118 bufferedStream.close(); in save()
|