/system/core/libcutils/ |
D | trace-dev_test.cpp | 32 lseek(tmp_file_.fd, 0, SEEK_SET); in SetUp() 54 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 67 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 68 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 76 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 79 EXPECT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 80 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 90 ASSERT_EQ(ATRACE_MESSAGE_LENGTH - 1, lseek(atrace_marker_fd, 0, SEEK_CUR)); in TEST_F() 91 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() 103 ASSERT_EQ(0, lseek(atrace_marker_fd, 0, SEEK_SET)); in TEST_F() [all …]
|
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/adb/ |
D | adb_io_test.cpp | 51 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 65 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 79 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 98 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 112 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 138 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST() 151 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in POSIX_TEST()
|
D | sysdeps.h | 148 return lseek(fd.get(), pos, where); in unix_lseek() 150 #undef lseek 151 #define lseek ___xxx_lseek macro 527 return lseek(fd.get(), pos, where); in adb_lseek() 532 #undef lseek 533 #define lseek ___xxx_lseek macro
|
/system/core/debuggerd/libdebuggerd/test/ |
D | tombstone_test.cpp | 95 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 135 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 164 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 199 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 232 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 265 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 301 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 330 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 388 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 405 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() [all …]
|
D | dump_memory_test.cpp | 210 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 230 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 249 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 262 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 281 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 301 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 326 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 352 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 412 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() 435 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F() [all …]
|
/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() 324 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F()
|
/system/core/fs_mgr/libvbmeta/ |
D | writer.cpp | 46 if (lseek(fd, offset, SEEK_SET) < 0) { in WritePrimaryVBMetaTable() 58 if (lseek(fd, offset, SEEK_SET) < 0) { in WriteBackupVBMetaTable() 70 if (lseek(fd, offset, SEEK_SET) < 0) { in WriteVBMetaImage()
|
/system/core/libunwindstack/tests/ |
D | MapInfoGetBuildIDTest.cpp | 140 ASSERT_EQ(offset, lseek(fd, offset, SEEK_SET)); in InitElfData() 160 ASSERT_EQ(offset, lseek(fd, offset, SEEK_SET)); in InitElfData() 170 ASSERT_EQ(offset, lseek(fd, offset, SEEK_SET)); in InitElfData() 174 ASSERT_EQ(offset, lseek(fd, offset, SEEK_SET)); in InitElfData() 179 ASSERT_EQ(offset, lseek(fd, offset, SEEK_SET)); in InitElfData()
|
D | DexFileTest.cpp | 50 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST() 70 ASSERT_EQ(0x100, lseek(tf.fd, 0x100, SEEK_SET)); in TEST() 149 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST() 162 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST() 175 ASSERT_EQ(0x500, lseek(tf.fd, 0x500, SEEK_SET)); in TEST()
|
/system/libbase/ |
D | test_utils.cpp | 46 CHECK_EQ(0, TEMP_FAILURE_RETRY(lseek(fd(), 0, SEEK_SET))); in str() 54 CHECK_EQ(0, TEMP_FAILURE_RETRY(lseek(fd(), 0, SEEK_SET))); in Reset()
|
D | file_test.cpp | 121 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST() 136 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST() 151 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST() 184 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST() 196 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST() 204 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST()
|
/system/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() 271 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 338 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F() 364 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F()
|
/system/extras/tests/fstest/ |
D | recovery_test.cpp | 82 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in getSuperBlock() 117 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in setSbErrorBit() 152 if (lseek(blk_fd, block_size, SEEK_SET) == -1) { in corruptGdtFreeBlock() 172 if (lseek(blk_fd, -sizeof(gd), SEEK_CUR) == -1) { in corruptGdtFreeBlock()
|
/system/extras/partition_tools/ |
D | lpadd.cc | 190 auto size = lseek(source_fd, 0, SEEK_END); in AddPartition() 191 if (size < 0 || lseek(source_fd, 0, SEEK_SET) < 0) { in AddPartition() 313 [[maybe_unused]] auto pos = lseek(fd.get(), 0, SEEK_CUR); in WritePartition() 323 auto pos = lseek(fd.get(), 0, SEEK_CUR); in WriteExtent() 336 if (lseek(super_fd_, extent.target_data * LP_SECTOR_SIZE, SEEK_SET) < 0) { in WriteExtent() 362 if (lseek(fd.get(), 0, SEEK_SET) < 0) { in Truncate() 387 auto len = lseek(super_fd_, 0, SEEK_END); in Finalize() 388 if (len < 0 || lseek(super_fd_, 0, SEEK_SET < 0)) { in Finalize()
|
D | lpunpack.cc | 261 if (lseek(image_fd_, super_offset, SEEK_SET) < 0) { in WriteExtent() 300 if (lseek(output_fd_, hole_size_, SEEK_CUR) < 0) { in WriteBlock() 315 off_t offset = lseek(output_fd_, 0, SEEK_CUR); in Finish()
|
/system/core/code_coverage/seccomp_policy/ |
D | code_coverage.x86_64.policy | 11 lseek: 1
|
D | code_coverage.arm64.policy | 11 lseek: 1
|
/system/core/libsparse/ |
D | append2simg.cpp | 36 #define lseek64 lseek 39 #define lseek64 lseek
|
D | simg2img.cpp | 70 if (lseek(out, 0, SEEK_SET) == -1) { in main()
|
/system/extras/boot_control_copy/ |
D | bootinfo.cpp | 132 if (lseek(fd, BOOTINFO_OFFSET, SEEK_SET) != BOOTINFO_OFFSET) { in boot_info_load() 153 if (lseek(fd, BOOTINFO_OFFSET, SEEK_SET) != BOOTINFO_OFFSET) { in boot_info_save()
|
/system/core/debuggerd/seccomp_policy/ |
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.x86.policy | 18 lseek: 1
|