Home
last modified time | relevance | path

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

123

/external/libbrillo/brillo/streams/
Dstream_utils_unittest.cc101 using Whence = Stream::Whence; in TEST() typedef
107 FROM_HERE, 0, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
111 FROM_HERE, 0, Whence::FROM_CURRENT, current_pos, end_pos, &pos, nullptr)); in TEST()
115 FROM_HERE, 0, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
119 FROM_HERE, 10, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
123 FROM_HERE, 10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
128 FROM_HERE, 10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
132 FROM_HERE, -10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
137 FROM_HERE, -10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
142 FROM_HERE, -1, Whence::FROM_BEGIN, current_pos, end_pos, &pos, &error)); in TEST()
[all …]
Dstream_utils.cc153 Stream::Whence whence, in CalculateStreamPosition()
160 case Stream::Whence::FROM_BEGIN: in CalculateStreamPosition()
164 case Stream::Whence::FROM_CURRENT: in CalculateStreamPosition()
168 case Stream::Whence::FROM_END: in CalculateStreamPosition()
Dfile_stream_unittest.cc78 EXPECT_TRUE(stream->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
94 EXPECT_TRUE(stream->Seek(10, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
102 EXPECT_TRUE(stream->Seek(7, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
106 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TestCreateFile()
110 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
113 EXPECT_TRUE(stream->Seek(-1, Stream::Whence::FROM_END, &pos, nullptr)); in TestCreateFile()
323 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F()
327 EXPECT_TRUE(stream_->Seek(123456, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F()
332 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, &pos, in TEST_F()
335 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, nullptr, in TEST_F()
[all …]
Dfile_stream.cc409 Whence whence, in Seek()
417 case Whence::FROM_BEGIN: in Seek()
420 case Whence::FROM_CURRENT: in Seek()
423 case Whence::FROM_END: in Seek()
Dstream.h87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enum
176 Whence whence,
Dmemory_stream_unittest.cc126 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_BEGIN, &new_pos, &error)); in TEST_F()
130 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_CURRENT, &new_pos, &error)); in TEST_F()
135 EXPECT_TRUE(stream_->Seek(-2, Stream::Whence::FROM_END, nullptr, nullptr)); in TEST_F()
139 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_END, nullptr, nullptr)); in TEST_F()
Dstream_unittest.cc36 using Whence = Stream::Whence; typedef
56 MOCK_METHOD4(Seek, bool(int64_t, Whence, uint64_t*, ErrorPtr*));
92 EXPECT_CALL(stream_mock, Seek(12345, Whence::FROM_BEGIN, _, _)) in TEST()
Dmock_stream.h30 MOCK_METHOD4(Seek, bool(int64_t, Whence, uint64_t*, ErrorPtr*));
Dtls_stream.h49 Whence whence,
Dinput_stream_set.h75 Whence whence,
Dstream_utils.h55 Stream::Whence whence,
Dfile_stream.h110 Whence whence,
Dfake_stream.h93 Whence whence,
Dmemory_stream.h158 Whence whence,
Dinput_stream_set.cc103 Whence /* whence */, in Seek() argument
/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/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp45 static void warn(Twine Message, std::string Whence = "", in warn() argument
48 if (!Whence.empty()) in warn()
49 errs() << Whence << ": "; in warn()
55 static void exitWithError(Twine Message, std::string Whence = "", in exitWithError() argument
58 if (!Whence.empty()) in exitWithError()
59 errs() << Whence << ": "; in exitWithError()
66 static void exitWithError(Error E, StringRef Whence = "") { in exitWithError() argument
75 exitWithError(IPE.message(), Whence, Hint); in exitWithError()
79 exitWithError(toString(std::move(E)), Whence); in exitWithError()
82 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") { in exitWithErrorCode() argument
[all …]
/external/ltp/testcases/kernel/syscalls/llseek/
Dllseek02.c104 int Whence; member
138 whence = Test_cases[ind].Whence; in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cov/
DCodeCoverage.cpp68 void error(const Twine &Message, StringRef Whence = "");
71 void warning(const Twine &Message, StringRef Whence = "");
164 static std::string getErrorString(const Twine &Message, StringRef Whence, in getErrorString() argument
168 if (!Whence.empty()) in getErrorString()
169 Str += Whence.str() + ": "; in getErrorString()
174 void CodeCoverageTool::error(const Twine &Message, StringRef Whence) { in error() argument
177 << getErrorString(Message, Whence, false); in error()
180 void CodeCoverageTool::warning(const Twine &Message, StringRef Whence) { in warning() argument
183 << getErrorString(Message, Whence, true); in warning()
/external/libchrome/base/files/
Dfile.h111 enum Whence { enum
202 int64_t Seek(Whence whence, int64_t offset);
/external/libchrome/libchrome_tools/patch/
Dfile_posix.patch5 @@ -189,7 +189,9 @@ int64_t File::Seek(Whence whence, int64_t offset) {
/external/syzkaller/vendor/golang.org/x/sys/unix/
Dztypes_solaris_amd64.go115 Whence int16 member
Dztypes_netbsd_386.go86 Whence int16 member
/external/clang/lib/StaticAnalyzer/Checkers/
DStreamChecker.cpp264 SVal Whence = state->getSVal(CE->getArg(2), C.getLocationContext()); in Fseek() local
265 Optional<nonloc::ConcreteInt> CI = Whence.getAs<nonloc::ConcreteInt>(); in Fseek()

123