/external/bsdiff/ |
D | extents_file_unittest.cc | 28 MOCK_METHOD1(Seek, bool(off_t)); 94 EXPECT_CALL(*mock_file_, Seek(offset_pair.second)).WillOnce(Return(true)); in TEST_F() 97 EXPECT_TRUE(file.Seek(offset_pair.first)); in TEST_F() 103 EXPECT_TRUE(file.Seek(12)); in TEST_F() 104 EXPECT_FALSE(file.Seek(13)); in TEST_F() 106 EXPECT_FALSE(file.Seek(-1)); in TEST_F() 115 EXPECT_CALL(*mock_file_, Seek(10)).WillOnce(Return(true)); in TEST_F() 117 EXPECT_CALL(*mock_file_, Seek(20)).WillOnce(Return(true)); in TEST_F() 119 EXPECT_CALL(*mock_file_, Seek(27)).WillOnce(Return(true)); in TEST_F() 136 EXPECT_CALL(*mock_file_, Seek(10)).WillOnce(Return(true)); in TEST_F() [all …]
|
/external/puffin/src/ |
D | stream_unittest.cc | 30 ASSERT_TRUE(stream->Seek(0)); in TestRead() 40 ASSERT_TRUE(stream->Seek(size)); in TestRead() 47 ASSERT_TRUE(stream->Seek(size - 1)); in TestRead() 51 ASSERT_TRUE(stream->Seek(size - 1)); in TestRead() 57 ASSERT_TRUE(stream->Seek(0)); in TestRead() 67 ASSERT_TRUE(stream->Seek(idx)); in TestRead() 81 ASSERT_TRUE(stream->Seek(start)); in TestRead() 94 ASSERT_TRUE(stream->Seek(size)); in TestWriteBoundary() 102 ASSERT_TRUE(stream->Seek(size - 1)); in TestWriteBoundary() 107 ASSERT_TRUE(stream->Seek(size - 1)); in TestWriteBoundary() [all …]
|
D | puffin_stream.cc | 66 TEST_AND_RETURN_VALUE(stream->Seek(0), nullptr); in CreateForPuff() 71 TEST_AND_RETURN_VALUE(puffin_stream->Seek(0), nullptr); in CreateForPuff() 83 TEST_AND_RETURN_VALUE(stream->Seek(0), nullptr); in CreateForHuff() 87 TEST_AND_RETURN_VALUE(puffin_stream->Seek(0), nullptr); in CreateForHuff() 160 bool PuffinStream::Seek(uint64_t offset) { in Seek() function in puffin::PuffinStream 196 TEST_AND_RETURN_FALSE(stream_->Seek(0)); in Seek() 227 TEST_AND_RETURN_FALSE(stream_->Seek(start_byte)); in Read() 276 TEST_AND_RETURN_FALSE(stream_->Seek(start_byte)); in Read() 298 TEST_AND_RETURN_FALSE(stream_->Seek(start_byte + bytes_to_read)); in Read()
|
D | extent_stream.cc | 62 bool ExtentStream::Seek(uint64_t offset) { in Seek() function in puffin::ExtentStream 74 stream_->Seek(cur_extent_->offset + cur_extent_offset_)); in Seek() 125 TEST_AND_RETURN_FALSE(stream_->Seek(cur_extent_->offset)); in DoReadOrWrite()
|
D | file_stream.h | 19 explicit FileStream(int fd) : fd_(fd) { Seek(0); } in FileStream() 26 bool Seek(uint64_t offset) override;
|
/external/lzma/CPP/7zip/Common/ |
D | LimitedStreams.h | 47 HRESULT SeekToPhys() { return _stream->Seek(_physPos, STREAM_SEEK_SET, NULL); } in SeekToPhys() 62 STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition); 64 HRESULT SeekToStart() { return Seek(0, STREAM_SEEK_SET, NULL); } in SeekToStart() 83 HRESULT SeekToPhys() { return Stream->Seek(_physPos, STREAM_SEEK_SET, NULL); } in SeekToPhys() 101 STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition); 118 HRESULT SeekToPhys() { return Stream->Seek(_phyPos, STREAM_SEEK_SET, NULL); } in SeekToPhys() 126 STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition); 178 STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition); 180 HRESULT SeekToStart() { return Stream->Seek(Offset, STREAM_SEEK_SET, NULL); } in SeekToStart() 198 HRESULT SeekToPhys() { return _stream->Seek(_physPos, STREAM_SEEK_SET, NULL); } in SeekToPhys() [all …]
|
D | FileStreams.cpp | 114 bool result = File.Seek(alignedPos, FILE_BEGIN, realNewPosition); in Read() 143 bool result = File.Seek(VirtPos, FILE_BEGIN, realNewPosition); in Read() 241 STDMETHODIMP CInFileStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in CInFileStream 268 bool result = File.Seek(offset, seekOrigin, realNewPosition); in Seek() 280 off_t res = File.Seek((off_t)offset, seekOrigin); in Seek() 367 STDMETHODIMP COutFileStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in COutFileStream 375 bool result = File.Seek(offset, seekOrigin, realNewPosition); in Seek() 382 off_t res = File.Seek((off_t)offset, seekOrigin); in Seek() 397 if (!File.Seek(0, FILE_CURRENT, currentPos)) in SetSize() 401 result = result && File.Seek(currentPos, currentPos2); in SetSize()
|
D | LimitedStreams.cpp | 59 STDMETHODIMP CLimitedInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in CLimitedInStream 133 STDMETHODIMP CClusterInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in CClusterInStream 195 STDMETHODIMP CExtentsStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in CExtentsStream 250 STDMETHODIMP CTailInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in CTailInStream 259 RINOK(Stream->Seek(offset, STREAM_SEEK_END, &pos)); in Seek() 274 return Stream->Seek(Offset + _virtPos, STREAM_SEEK_SET, NULL); in Seek() 317 STDMETHODIMP CLimitedCachedInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in CLimitedCachedInStream 346 STDMETHODIMP CTailOutStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in CTailOutStream 360 return Stream->Seek(Offset + _virtPos, STREAM_SEEK_SET, NULL); in Seek()
|
D | OffsetStream.cpp | 13 return _stream->Seek(offset, STREAM_SEEK_SET, NULL); in Init() 21 STDMETHODIMP COffsetOutStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() function in COffsetOutStream 30 HRESULT result = _stream->Seek(offset, seekOrigin, &absoluteNewPosition); in Seek()
|
/external/webrtc/webrtc/base/ |
D | bitbuffer_unittest.cc | 146 EXPECT_TRUE(buffer.Seek(0, 0)); in TEST() 147 EXPECT_TRUE(buffer.Seek(0, 7)); in TEST() 151 EXPECT_FALSE(buffer.Seek(0, 8)); in TEST() 157 EXPECT_TRUE(buffer.Seek(0, 0)); in TEST() 158 EXPECT_TRUE(buffer.Seek(2, 4)); in TEST() 162 EXPECT_TRUE(buffer.Seek(4, 0)); in TEST() 163 EXPECT_FALSE(buffer.Seek(5, 0)); in TEST() 167 EXPECT_FALSE(buffer.Seek(4, 1)); in TEST() 204 EXPECT_TRUE(buffer.Seek(0, 0)); in TEST() 261 EXPECT_TRUE(buffer.Seek(0, 0)); in TEST() [all …]
|
/external/lzma/CPP/Windows/ |
D | FileIO.cpp | 96 return Seek(0, FILE_CURRENT, position); in GetPosition() 118 bool CFileBase::Seek(Int64 distanceToMove, DWORD moveMethod, UInt64 &newPosition) const throw() in Seek() function in NWindows::NFile::NIO::CFileBase 137 bool CFileBase::Seek(UInt64 position, UInt64 &newPosition) const throw() in Seek() function in NWindows::NFile::NIO::CFileBase 139 return Seek(position, FILE_BEGIN, newPosition); in Seek() 145 return Seek(0, newPosition); in SeekToBegin() 150 return Seek(0, FILE_END, newPosition); in SeekToEnd() 163 if (!Seek(pos, realNewPosition)) in CorrectDeviceSize() 191 if (!Seek(pos, realNewPosition)) in CorrectDeviceSize() 425 if (!Seek(length, newPosition)) in SetLength()
|
/external/lzma/CPP/Common/ |
D | C_FileIO.cpp | 38 off_t curPos = Seek(0, SEEK_CUR); in GetLength() 39 off_t lengthTemp = Seek(0, SEEK_END); in GetLength() 40 Seek(curPos, SEEK_SET); in GetLength() 45 off_t CFileBase::Seek(off_t distanceToMove, int moveMethod) const in Seek() function in NC::NFile::NIO::CFileBase
|
/external/libbrillo/brillo/streams/ |
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() 127 MOCK_METHOD2(Seek, off64_t(off64_t, int)); 301 EXPECT_CALL(fd_mock(), Seek(0, SEEK_CUR)).WillOnce(Return(234)); in TEST_F() 305 EXPECT_CALL(fd_mock(), Seek(0, SEEK_CUR)).WillOnce(Return(1234)); in TEST_F() 313 EXPECT_CALL(fd_mock(), Seek(0, SEEK_SET)).WillOnce(Return(0)); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | lmdb_reader_op.cc | 75 if (Seek(MDB_FIRST) == false) { in ReadLocked() 80 if (Seek(MDB_NEXT) == false) { in ReadLocked() 93 CHECK_EQ(Seek(MDB_FIRST), true); in ResetLocked() 98 bool Seek(MDB_cursor_op op) { in Seek() function in tensorflow::LMDBReader
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | two_level_iterator.cc | 37 void Seek(const StringPiece& target) override; 94 void TwoLevelIterator::Seek(const StringPiece& target) { in Seek() function in tensorflow::table::__anonb8ac68c50111::TwoLevelIterator 95 index_iter_->Seek(target); in Seek() 97 if (data_iter_ != nullptr) data_iter_->Seek(target); in Seek()
|
D | random_inputstream.h | 41 Status Seek(int64 position) { in Seek() function 46 Status Reset() override { return Seek(0); } in Reset()
|
D | random_inputstream_test.cc | 86 TEST(RandomInputStream, Seek) { in TEST() argument 97 TF_ASSERT_OK(in.Seek(3)); in TEST() 106 TF_ASSERT_OK(in.Seek(1)); in TEST()
|
D | table.cc | 134 iiter->Seek(k); in InternalGet() 138 block_iter->Seek(k); in InternalGet() 154 index_iter->Seek(key); in ApproximateOffsetOf()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Misc/ |
D | LookaheadStream.cs | 170 Seek(marker); in Rewind() 175 Seek(_lastMarker); in Rewind() 186 public virtual void Seek(int index) { in Seek() method in Antlr.Runtime.Misc.LookaheadStream
|
/external/lzma/CPP/7zip/Archive/ |
D | SplitHandler.cpp | 197 RINOK(stream->Seek(0, STREAM_SEEK_END, &size)); in Open2() 198 RINOK(stream->Seek(0, STREAM_SEEK_SET, NULL)); in Open2() 231 RINOK(nextStream->Seek(0, STREAM_SEEK_END, &size)); in Open2() 232 RINOK(nextStream->Seek(0, STREAM_SEEK_SET, NULL)); in Open2() 323 RINOK(inStream->Seek(0, STREAM_SEEK_SET, NULL)); in Extract()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
D | BufferedTreeNodeStream.cs | 407 Seek(marker); in Rewind() 411 Seek(lastMarker); in Rewind() 414 public virtual void Seek(int index) { in Seek() method in Antlr.Runtime.Tree.BufferedTreeNodeStream 431 Seek(index); in Push() 441 Seek(ret); in Pop()
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | BufferedTreeNodeStream.cs | 483 Seek( marker ); in Rewind() 488 Seek( lastMarker ); in Rewind() 491 public virtual void Seek( int index ) in Seek() method in Antlr.Runtime.Tree.BufferedTreeNodeStream 512 Seek( index ); in Push() 523 Seek( ret ); in Pop()
|
/external/pdfium/core/fxcrt/ |
D | cfx_seekablestreamproxy.cpp | 151 Seek(From::Begin, 0); in CFX_SeekableStreamProxy() 174 Seek(From::Begin, static_cast<FX_FILESIZE>(m_wBOMLength)); in CFX_SeekableStreamProxy() 184 void CFX_SeekableStreamProxy::Seek(From eSeek, FX_FILESIZE iOffset) { in Seek() function in CFX_SeekableStreamProxy 261 Seek(From::Current, iSrc - iLen); in ReadString()
|
/external/lzma/CPP/7zip/Archive/Common/ |
D | MultiStream.h | 41 RINOK(s.Stream->Seek(0, STREAM_SEEK_CUR, &s.LocalPos)); in Init() 52 STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition);
|
/external/libchrome/base/files/ |
D | file_unittest.cc | 402 EXPECT_EQ(0, file.Seek(base::File::FROM_BEGIN, 0)); 437 TEST(FileTest, Seek) { argument 447 EXPECT_EQ(kOffset, file.Seek(base::File::FROM_BEGIN, kOffset)); 448 EXPECT_EQ(2 * kOffset, file.Seek(base::File::FROM_CURRENT, kOffset)); 449 EXPECT_EQ(kOffset, file.Seek(base::File::FROM_CURRENT, -kOffset)); 451 EXPECT_EQ(kOffset, file.Seek(base::File::FROM_END, -kOffset)); 470 ASSERT_EQ(0, file.Seek(base::File::FROM_CURRENT, 0)); 471 ASSERT_EQ(0, file2.Seek(base::File::FROM_CURRENT, 0)); 473 ASSERT_EQ(kDataLen, file.Seek(base::File::FROM_CURRENT, 0)); 474 ASSERT_EQ(kDataLen, file2.Seek(base::File::FROM_CURRENT, 0));
|