Home
last modified time | relevance | path

Searched refs:Whence (Results 1 – 25 of 57) sorted by relevance

123

/external/pigweed/pw_stream/
Dstd_file_stream.cc22 std::ios::seekdir WhenceToSeekDir(Stream::Whence whence) { in WhenceToSeekDir()
24 case Stream::Whence::kBeginning: in WhenceToSeekDir()
26 case Stream::Whence::kCurrent: in WhenceToSeekDir()
28 case Stream::Whence::kEnd: in WhenceToSeekDir()
50 Status StdFileReader::DoSeek(ptrdiff_t offset, Whence origin) { in DoSeek()
102 Status StdFileWriter::DoSeek(ptrdiff_t offset, Whence origin) { in DoSeek()
Dinterval_reader.cc36 Status status = source_reader_->Seek(current_, Whence::kBeginning); in DoRead()
51 Status IntervalReader::DoSeek(ptrdiff_t offset, Whence origin) { in DoSeek()
57 case Whence::kBeginning: in DoSeek()
61 case Whence::kCurrent: in DoSeek()
65 case Whence::kEnd: in DoSeek()
Dstream_test.cc36 Status DoSeek(ptrdiff_t, Whence) override { return Status(); } in DoSeek() argument
42 Status DoSeek(ptrdiff_t, Whence) override { return Status(); } in DoSeek() argument
53 Status DoSeek(ptrdiff_t, Whence) override { return OkStatus(); } in DoSeek() argument
59 Status DoSeek(ptrdiff_t, Whence) override { return OkStatus(); } in DoSeek() argument
72 Status DoSeek(ptrdiff_t, Whence) override { return OkStatus(); } in DoSeek() argument
79 Status DoSeek(ptrdiff_t, Whence) override { return OkStatus(); } in DoSeek() argument
/external/libbrillo/brillo/streams/
Dstream_utils_test.cc103 using Whence = Stream::Whence; in TEST() typedef
109 FROM_HERE, 0, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
113 FROM_HERE, 0, Whence::FROM_CURRENT, current_pos, end_pos, &pos, nullptr)); in TEST()
117 FROM_HERE, 0, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
121 FROM_HERE, 10, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
125 FROM_HERE, 10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
130 FROM_HERE, 10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
134 FROM_HERE, -10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
139 FROM_HERE, -10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
144 FROM_HERE, -1, Whence::FROM_BEGIN, current_pos, end_pos, &pos, &error)); in TEST()
[all …]
Dstream_utils.cc157 Stream::Whence whence, in CalculateStreamPosition()
164 case Stream::Whence::FROM_BEGIN: in CalculateStreamPosition()
168 case Stream::Whence::FROM_CURRENT: in CalculateStreamPosition()
172 case Stream::Whence::FROM_END: in CalculateStreamPosition()
Dfile_stream_test.cc81 EXPECT_TRUE(stream->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
97 EXPECT_TRUE(stream->Seek(10, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
105 EXPECT_TRUE(stream->Seek(7, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
109 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TestCreateFile()
113 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
116 EXPECT_TRUE(stream->Seek(-1, Stream::Whence::FROM_END, &pos, nullptr)); in TestCreateFile()
329 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F()
333 EXPECT_TRUE(stream_->Seek(123456, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F()
338 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, &pos, in TEST_F()
341 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, nullptr, in TEST_F()
[all …]
Dfile_stream.cc399 Whence whence, in Seek()
407 case Whence::FROM_BEGIN: in Seek()
410 case Whence::FROM_CURRENT: in Seek()
413 case Whence::FROM_END: in Seek()
Dstream.h87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enum
176 Whence whence,
Dmemory_stream_test.cc133 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_BEGIN, &new_pos, &error)); in TEST_F()
137 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_CURRENT, &new_pos, &error)); in TEST_F()
142 EXPECT_TRUE(stream_->Seek(-2, Stream::Whence::FROM_END, nullptr, nullptr)); in TEST_F()
146 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_END, nullptr, nullptr)); in TEST_F()
Dstream_test.cc36 using Whence = Stream::Whence; typedef
56 MOCK_METHOD(bool, Seek, (int64_t, Whence, uint64_t*, ErrorPtr*), (override));
101 EXPECT_CALL(stream_mock, Seek(12345, Whence::FROM_BEGIN, _, _)) in TEST()
Dtls_stream.h49 Whence whence,
Dstream_utils.h55 Stream::Whence whence,
/external/llvm/tools/llvm-cov/
DCodeCoverage.cpp50 void error(const Twine &Message, StringRef Whence = "");
53 void deferError(const Twine &Message, StringRef Whence = "");
56 void deferWarning(const Twine &Message, StringRef Whence = "");
114 static std::string getErrorString(const Twine &Message, StringRef Whence, in getErrorString() argument
118 if (!Whence.empty()) in getErrorString()
119 Str += Whence; in getErrorString()
124 void CodeCoverageTool::error(const Twine &Message, StringRef Whence) { in error() argument
125 errs() << getErrorString(Message, Whence, false); in error()
128 void CodeCoverageTool::deferError(const Twine &Message, StringRef Whence) { in deferError() argument
130 DeferredMessages.emplace_back(getErrorString(Message, Whence, false)); in deferError()
[all …]
/external/pigweed/pw_stream/public/pw_stream/
Dstream.h39 enum Whence : uint8_t { enum
74 constexpr bool seekable(Whence origin) const { in seekable()
166 Status Seek(ptrdiff_t offset, Whence origin = kBeginning) {
252 virtual Status DoSeek(ptrdiff_t offset, Whence origin) = 0;
350 Status DoSeek(ptrdiff_t, Whence) final { return Status::Unimplemented(); } in DoSeek() argument
437 Status DoSeek(ptrdiff_t, Whence) final { return Status::Unimplemented(); } in DoSeek() argument
610 Status DoSeek(ptrdiff_t, Whence) final { return Status::Unimplemented(); } in DoSeek() argument
Dseek.h26 Stream::Whence origin, in ResolveSeekOffset()
45 Stream::Whence origin, in CalculateSeek()
Dnull_stream.h41 Status DoSeek(ptrdiff_t, Whence) final { return OkStatus(); } in DoSeek() argument
58 Status DoSeek(ptrdiff_t, Whence) final { return OkStatus(); } in DoSeek() argument
Dstd_file_stream.h31 Status DoSeek(ptrdiff_t offset, Whence origin) override;
48 Status DoSeek(ptrdiff_t offset, Whence origin) override;
Dmemory_stream.h79 Status DoSeek(ptrdiff_t offset, Whence origin) final { in DoSeek()
112 Status DoSeek(ptrdiff_t offset, Whence origin) override { in DoSeek()
Dinterval_reader.h83 Status DoSeek(ptrdiff_t offset, Whence origin) final;
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp39 static void exitWithError(const Twine &Message, StringRef Whence = "", in exitWithError() argument
42 if (!Whence.empty()) in exitWithError()
43 errs() << Whence << ": "; in exitWithError()
50 static void exitWithError(Error E, StringRef Whence = "") { in exitWithError() argument
59 exitWithError(IPE.message(), Whence, Hint); in exitWithError()
63 exitWithError(toString(std::move(E)), Whence); in exitWithError()
66 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") { in exitWithErrorCode() argument
67 exitWithError(EC.message(), Whence); in exitWithErrorCode()
/external/libchrome/base/files/
Dfile.h111 enum Whence { enum
202 int64_t Seek(Whence whence, int64_t offset);
/external/cronet/base/files/
Dfile.h107 enum Whence { enum
203 int64_t Seek(Whence whence, int64_t offset);
/external/pigweed/pw_protobuf/
Dstream_decoder.cc43 Status StreamDecoder::BytesReader::DoSeek(ptrdiff_t offset, Whence origin) { in DoSeek()
54 case Whence::kBeginning: in DoSeek()
58 case Whence::kCurrent: in DoSeek()
62 case Whence::kEnd: in DoSeek()
76 PW_TRY(decoder_.reader_.Seek(absolute_position, Whence::kBeginning)); in DoSeek()
/external/pigweed/pw_kvs/
Dflash_partition_stream_test.cc367 FlashPartition::Reader::Whence::kCurrent), in TEST_F()
372 ASSERT_EQ(reader.Seek(5, FlashPartition::Reader::Whence::kCurrent), in TEST_F()
379 ASSERT_EQ(reader.Seek(-5, FlashPartition::Reader::Whence::kCurrent), in TEST_F()
/external/libchrome/libchrome_tools/patch/
Dfile_posix.patch5 @@ -189,7 +189,9 @@ int64_t File::Seek(Whence whence, int64_t offset) {

123