/system/core/libcutils/tests/ |
D | trace-dev_test.cpp | 33 lseek(tmp_file_.fd, 0, SEEK_SET); in SetUp() 55 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 68 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 69 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 77 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 80 EXPECT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 81 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 91 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 92 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 104 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() [all …]
|
/system/core/adb/ |
D | adb_io_test.cpp | 52 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 66 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 80 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 99 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 113 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 139 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 152 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST()
|
/system/core/debuggerd/libdebuggerd/test/ |
D | dump_memory_test.cpp | 207 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 227 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 246 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 259 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 315 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 335 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 360 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 386 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 440 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 465 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() [all …]
|
D | tombstone_test.cpp | 102 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 137 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 176 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 234 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 288 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 340 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 392 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 447 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 476 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
|
/system/extras/memory_replay/tests/ |
D | NativeInfoTest.cpp | 60 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 121 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 182 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 259 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F()
|
D | LineBufferTest.cpp | 44 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 63 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 84 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 113 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 143 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 178 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F() 213 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F()
|
/system/core/libcutils/ |
D | load_file.cpp | 34 sz = lseek(fd, 0, SEEK_END); in load_file() 37 if(lseek(fd, 0, SEEK_SET) != 0) goto oops; in load_file()
|
/system/core/libunwindstack/tests/ |
D | DexFileTest.cpp | 58 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST() 79 ASSERT_EQ(0x100, lseek(tf.fd, 0x100, SEEK_SET)); in TEST() 118 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST() 132 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST() 146 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST()
|
D | ElfCacheTest.cpp | 57 ASSERT_EQ(offset, static_cast<uint64_t>(lseek(tf->fd, offset, SEEK_SET))); in WriteElfFile() 115 lseek(tf.fd, 0x500, SEEK_SET); in VerifyWithinSameMap() 212 lseek(tf.fd, 0x500, SEEK_SET); in VerifyWithinSameMapNeverReadAtZero()
|
/system/core/libziparchive/ |
D | zip_writer_test.cc | 59 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 91 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 126 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 160 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 188 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 210 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 238 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 270 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 336 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F()
|
/system/extras/tests/fstest/ |
D | recovery_test.cpp | 80 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in getSuperBlock() 115 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in setSbErrorBit() 150 if (lseek(blk_fd, block_size, SEEK_SET) == -1) { in corruptGdtFreeBlock() 170 if (lseek(blk_fd, -sizeof(gd), SEEK_CUR) == -1) { in corruptGdtFreeBlock()
|
/system/core/libsparse/ |
D | append2simg.c | 37 #define lseek64 lseek 40 #define lseek64 lseek
|
D | simg2img.c | 73 if (lseek(out, 0, SEEK_SET) == -1) { in main()
|
D | img2simg.c | 37 #define lseek64 lseek
|
/system/core/base/ |
D | logging_test.cpp | 212 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET)); in CheckMessage() 242 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \ 248 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \ 322 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \ 328 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \ 415 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_CUR)); \ in TEST() 474 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \ 480 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \
|
/system/extras/boot_control_copy/ |
D | bootinfo.cpp | 129 if (lseek(fd, BOOTINFO_OFFSET, SEEK_SET) != BOOTINFO_OFFSET) { in boot_info_load() 150 if (lseek(fd, BOOTINFO_OFFSET, SEEK_SET) != BOOTINFO_OFFSET) { in boot_info_save()
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
D | dd_hostops.c | 50 .op_lseek = lseek,
|
/system/extras/memory_replay/ |
D | main.cpp | 39 lseek(fd, 0, SEEK_SET); in GetMaxAllocs() 70 lseek(fd, 0, SEEK_SET); in ProcessDump()
|
/system/core/debuggerd/seccomp_policy/ |
D | crash_dump.x86.policy | 18 lseek: 1
|
D | crash_dump.arm64.policy | 17 lseek: 1
|
D | crash_dump.arm.policy | 18 lseek: 1
|
D | crash_dump.x86_64.policy | 17 lseek: 1
|
D | crash_dump.policy.def | 23 lseek: 1
|
/system/core/libutils/include/utils/ |
D | Compat.h | 29 return lseek(fd, offset, whence); in lseek64()
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 84 lseek(m_fd, offset, SEEK_SET); in benchSequentialRead() 106 lseek(m_fd, offset, SEEK_SET); in benchSequentialWrite()
|