/external/libbrillo/brillo/streams/ |
D | stream_utils_unittest.cc | 101 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 …]
|
D | stream_utils.cc | 153 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()
|
D | file_stream_unittest.cc | 78 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() 314 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F() 318 EXPECT_TRUE(stream_->Seek(123456, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F() 323 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, &pos, in TEST_F() 326 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, nullptr, in TEST_F() [all …]
|
D | file_stream.cc | 409 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()
|
D | stream.h | 87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enum 176 Whence whence,
|
D | memory_stream_unittest.cc | 126 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()
|
D | stream_unittest.cc | 27 using Whence = Stream::Whence; typedef 47 MOCK_METHOD4(Seek, bool(int64_t, Whence, uint64_t*, ErrorPtr*)); 83 EXPECT_CALL(stream_mock, Seek(12345, Whence::FROM_BEGIN, _, _)) in TEST()
|
D | mock_stream.h | 30 MOCK_METHOD4(Seek, bool(int64_t, Whence, uint64_t*, ErrorPtr*));
|
D | tls_stream.h | 49 Whence whence,
|
D | stream_utils.h | 55 Stream::Whence whence,
|
D | input_stream_set.h | 75 Whence whence,
|
D | file_stream.h | 110 Whence whence,
|
D | fake_stream.h | 93 Whence whence,
|
D | memory_stream.h | 158 Whence whence,
|
D | input_stream_set.cc | 103 Whence /* whence */, in Seek() argument
|
D | input_stream_set_unittest.cc | 54 EXPECT_FALSE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, nullptr, nullptr)); in TEST_F()
|
D | memory_stream.cc | 116 Whence whence, in Seek()
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek01.c | 129 int Whence[] = { SEEK_SET, SEEK_CUR, SEEK_END, -1 }; variable 157 for (ind = 0; Whence[ind] >= 0; ind++) { in main() 162 TEST(lseek(Fd, (long)offset, Whence[ind])); in main() 173 Fname, offset, Whence[ind], in main()
|
D | lseek10.c | 106 int Whence; member 141 whence = Test_cases[ind].Whence; in main()
|
D | lseek02.c | 129 int Whence[] = { SEEK_SET, SEEK_CUR, SEEK_END, -1 }; variable
|
/external/llvm/tools/llvm-cov/ |
D | CodeCoverage.cpp | 50 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/ |
D | llvm-profdata.cpp | 39 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/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek02.c | 103 int Whence; member 137 whence = Test_cases[ind].Whence; in main()
|
/external/libchrome/base/files/ |
D | file.h | 120 enum Whence { enum 209 int64_t Seek(Whence whence, int64_t offset);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | StreamChecker.cpp | 264 SVal Whence = state->getSVal(CE->getArg(2), C.getLocationContext()); in Fseek() local 265 Optional<nonloc::ConcreteInt> CI = Whence.getAs<nonloc::ConcreteInt>(); in Fseek()
|