Home
last modified time | relevance | path

Searched refs:lseek (Results 1 – 25 of 71) sorted by relevance

123

/system/core/libcutils/
Dtrace-dev_test.cpp32 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 …]
Dload_file.cpp34 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/
Dadb_io_test.cpp51 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()
Dsysdeps.h148 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/
Dtombstone_test.cpp95 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 …]
Ddump_memory_test.cpp210 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/
DNativeInfoTest.cpp60 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/
Dwriter.cpp46 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/
DMapInfoGetBuildIDTest.cpp140 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()
DDexFileTest.cpp50 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/
Dtest_utils.cpp46 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()
Dfile_test.cpp121 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/
Dzip_writer_test.cc59 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/
Drecovery_test.cpp82 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/
Dlpadd.cc190 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()
Dlpunpack.cc261 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/
Dcode_coverage.x86_64.policy11 lseek: 1
Dcode_coverage.arm64.policy11 lseek: 1
/system/core/libsparse/
Dappend2simg.cpp36 #define lseek64 lseek
39 #define lseek64 lseek
Dsimg2img.cpp70 if (lseek(out, 0, SEEK_SET) == -1) { in main()
/system/extras/boot_control_copy/
Dbootinfo.cpp132 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/
Dcrash_dump.arm64.policy17 lseek: 1
Dcrash_dump.arm.policy18 lseek: 1
Dcrash_dump.x86_64.policy17 lseek: 1
Dcrash_dump.x86.policy18 lseek: 1

123