/aosp12/system/core/libcutils/ |
H A D | trace-dev_test.cpp | 67 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 79 EXPECT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 90 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 116 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 128 EXPECT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 139 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 165 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 177 EXPECT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 188 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 214 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() [all …]
|
H A D | ashmem_test.cpp | 166 {99, SEEK_SET, 99}, {dataStart, SEEK_CUR, dataStart + 99}, in TEST() 168 {-99, SEEK_END, size - 99}, {-dataStart, SEEK_CUR, dataEnd - 99}, in TEST()
|
/aosp12/frameworks/base/native/graphics/jni/ |
H A D | aassetstreamadaptor.cpp | 51 return AAsset_seek64(mAAsset, 0, SEEK_CUR) != -1; in hasPosition() 55 const off64_t offset = AAsset_seek64(mAAsset, 0, SEEK_CUR); in getPosition() 74 if (AAsset_seek64(mAAsset, offset, SEEK_CUR) == -1) { in move() 92 const off64_t oldOffset = AAsset_seek64(mAAsset, 0, SEEK_CUR); in read() 98 const off64_t newOffset = AAsset_seek64(mAAsset, size, SEEK_CUR); in read()
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | Utils.cpp | 55 return fAsset->seek(0, SEEK_CUR) != -1; in hasPosition() 59 const off64_t offset = fAsset->seek(0, SEEK_CUR); in getPosition() 78 if (fAsset->seek(offset, SEEK_CUR) == -1) { in move() 96 off64_t oldOffset = fAsset->seek(0, SEEK_CUR); in read() 101 off64_t newOffset = fAsset->seek(size, SEEK_CUR); in read() 152 return ::lseek64(descriptor, 0, SEEK_CUR) != -1; in isSeekable()
|
H A D | Utils.h | 60 fCurr = ::lseek(fd, 0, SEEK_CUR); in AutoFDSeek()
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_backup_BackupHelperDispatcher.cpp | 64 lseek(fd, remainingHeader, SEEK_CUR); in readHeader_native() 82 lseek(fd, remainingHeader, SEEK_CUR); in readHeader_native() 117 lseek(fd, remainingHeader, SEEK_CUR); in readHeader_native() 131 lseek(fd, bytesToSkip, SEEK_CUR); in skipChunk_native() 161 pos = lseek(fd, 0, SEEK_CUR); in allocateHeader_native() 163 lseek(fd, headerSize, SEEK_CUR); in allocateHeader_native() 179 prevPos = lseek(fd, 0, SEEK_CUR); in writeHeader_native()
|
/aosp12/build/make/tools/ziptime/ |
H A D | ZipEntry.cpp | 102 if (fseek(fp, -kLFHLen, SEEK_CUR) != 0) in rewrite() 145 if (fseek(fp, -kCDELen, SEEK_CUR) != 0) in rewrite() 151 if (fseek(fp, fileNameLength + extraFieldLength + fileCommentLength, SEEK_CUR) != 0) in rewrite()
|
/aosp12/system/update_engine/payload_consumer/ |
H A D | cow_writer_file_descriptor.cc | 57 const auto offset = cow_reader_->Seek(0, SEEK_CUR); in Read() 81 auto offset = cow_reader_->Seek(0, SEEK_CUR); in Write() 86 if (cow_reader_->Seek(count, SEEK_CUR) < 0) { in Write()
|
H A D | cached_file_descriptor_unittest.cc | 140 EXPECT_EQ(cfd_->Seek(1, SEEK_CUR), 1); in TEST_F() 141 EXPECT_EQ(cfd_->Seek(1, SEEK_CUR), 2); in TEST_F() 144 EXPECT_EQ(cfd_->Seek(1, SEEK_CUR), static_cast<off64_t>(kFileSize)); in TEST_F() 145 EXPECT_EQ(cfd_->Seek(1, SEEK_CUR), static_cast<off64_t>(kFileSize + 1)); in TEST_F()
|
H A D | cached_file_descriptor.cc | 33 CHECK(whence == SEEK_SET || whence == SEEK_CUR); in Seek()
|
H A D | fake_file_descriptor.cc | 60 case SEEK_CUR: in Seek()
|
/aosp12/bionic/tests/ |
H A D | sys_uio_test.cpp | 51 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadVPwriteV() 55 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadVPwriteV()
|
/aosp12/bionic/libc/include/bits/ |
H A D | seek_constants.h | 39 #define SEEK_CUR 1 macro
|
/aosp12/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/ |
H A D | omx_vdec_test.cpp | 2856 lseek64(inputBufferFileFd, -1, SEEK_CUR); in Read_Buffer_From_DAT_File() 2926 lseek64(inputBufferFileFd, -5, SEEK_CUR); in Read_Buffer_From_H264_Start_Code_File() 3000 lseek64(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_Vop_Start_Code_File() 3005 lseek64(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_Vop_Start_Code_File() 3157 lseek64(inputBufferFileFd, -8, SEEK_CUR); in Read_Buffer_From_RCV_File_Seq_Layer() 3164 lseek64(inputBufferFileFd, 24, SEEK_CUR); in Read_Buffer_From_RCV_File_Seq_Layer() 3176 lseek64(inputBufferFileFd, 8, SEEK_CUR); in Read_Buffer_From_RCV_File_Seq_Layer() 3243 lseek64(inputBufferFileFd, off ,SEEK_CUR); in Read_Buffer_From_RCV_File() 3582 lseek(inputBufferFileFd, -32, SEEK_CUR); in Read_Buffer_From_VP8_File() 3627 lseek64(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_MVC_File() [all …]
|
/aosp12/art/libelffile/stream/ |
H A D | output_stream.h | 29 kSeekCurrent = SEEK_CUR,
|
/aosp12/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/ |
H A D | omx_vdec_test.cpp | 2614 lseek64(inputBufferFileFd, -1, SEEK_CUR); in Read_Buffer_From_DAT_File() 2691 lseek64(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_Vop_Start_Code_File() 2698 lseek64(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_Vop_Start_Code_File() 2751 lseek(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_Mpeg2_Start_Code() 2765 lseek(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_Mpeg2_Start_Code() 2776 lseek(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_Mpeg2_Start_Code() 2849 lseek64(inputBufferFileFd, -8, SEEK_CUR); in Read_Buffer_From_RCV_File_Seq_Layer() 2942 lseek64(inputBufferFileFd, off ,SEEK_CUR); in Read_Buffer_From_RCV_File() 3033 lseek(inputBufferFileFd,-(SEQbytes+4),SEEK_CUR); in Read_Buffer_From_VC1_File() 3038 lseek64(inputBufferFileFd, -4, SEEK_CUR); in Read_Buffer_From_VC1_File() [all …]
|
/aosp12/system/media/audio_utils/ |
H A D | tinysndfile.c | 182 fseek(stream, (long) (chunkSize - minSize), SEEK_CUR); in sf_open_read() 247 fseek(stream, (long) chunkSize, SEEK_CUR); in sf_open_read() 253 fseek(stream, (long) chunkSize, SEEK_CUR); in sf_open_read() 262 fseek(stream, (long) chunkSize, SEEK_CUR); in sf_open_read()
|
/aosp12/frameworks/compile/mclinker/lib/Support/Windows/ |
H A D | FileSystem.inc | 92 if (-1 == (old_pos = ::lseek(pFD, 0, SEEK_CUR))) 114 if (-1 == (old_pos = ::lseek(pFD, 0, SEEK_CUR)))
|
/aosp12/bionic/libc/bionic/ |
H A D | lockf.cpp | 39 fl.l_whence = SEEK_CUR; in lockf64()
|
/aosp12/build/make/tools/ |
H A D | fat16copy.py | 56 f.seek(n, os.SEEK_CUR) 83 if direction == os.SEEK_CUR: 404 f.seek(-self.fs.bytes_per_cluster, os.SEEK_CUR) 414 f.seek(-(record_count * 32), os.SEEK_CUR)
|
/aosp12/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 57 m_pos = (ssize_t) lseek(fd, 0, SEEK_CUR); in BackupDataWriter() 184 m_pos = (ssize_t) lseek(fd, 0, SEEK_CUR); in BackupDataReader()
|
/aosp12/system/extras/partition_tools/ |
H A D | lpunpack.cc | 300 if (lseek(output_fd_, hole_size_, SEEK_CUR) < 0) { in WriteBlock() 315 off_t offset = lseek(output_fd_, 0, SEEK_CUR); in Finish()
|
/aosp12/system/extras/simpleperf/ |
H A D | CallChainJoiner.cpp | 235 if (fseek(fp, -4, SEEK_CUR) != 0 || fread(&size, sizeof(size), 1, fp) != 1) { in ReadCallChainInReverseOrder() 240 if (fseek(fp, -static_cast<int>(size), SEEK_CUR) != 0 || in ReadCallChainInReverseOrder() 242 fseek(fp, -static_cast<int>(data.size()), SEEK_CUR) != 0) { in ReadCallChainInReverseOrder()
|
/aosp12/frameworks/base/libs/protoutil/src/ |
H A D | ProtoFileReader.cpp | 35 off_t current = lseek(fd, 0, SEEK_CUR); in get_file_size()
|
/aosp12/bionic/tests/headers/posix/ |
H A D | fcntl_h.c | 53 MACRO(SEEK_CUR); in fcntl_h()
|