Home
last modified time | relevance | path

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

123

/system/core/libcutils/tests/
Dtrace-dev_test.cpp33 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/
Dadb_io_test.cpp52 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/
Ddump_memory_test.cpp158 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
178 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
197 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
210 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
266 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
286 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
311 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
337 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
391 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
416 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
[all …]
Dtombstone_test.cpp113 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
148 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
187 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
245 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
305 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
363 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
421 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
481 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
521 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
549 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()
259 ASSERT_TRUE(lseek(tmp_file_->fd, 0, SEEK_SET) != off_t(-1)); in TEST_F()
DLineBufferTest.cpp44 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/
Dload_file.c32 sz = lseek(fd, 0, SEEK_END); in load_file()
35 if(lseek(fd, 0, SEEK_SET) != 0) goto oops; in load_file()
/system/core/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()
171 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F()
200 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F()
222 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F()
251 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F()
283 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F()
349 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); in TEST_F()
/system/extras/tests/fstest/
Drecovery_test.cpp80 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/base/
Dlogging_test.cpp210 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET)); in CheckMessage()
231 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \
237 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \
311 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \
317 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \
404 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_CUR)); \ in TEST()
463 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \
469 ASSERT_EQ(0, lseek(cap1.fd(), 0, SEEK_CUR)); \
Dfile_test.cpp92 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST()
104 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST()
112 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << strerror(errno); in TEST()
/system/core/libsparse/
Dappend2simg.c37 #define lseek64 lseek
40 #define lseek64 lseek
Dsimg2img.c73 if (lseek(out, 0, SEEK_SET) == -1) { in main()
Dimg2simg.c37 #define lseek64 lseek
/system/extras/boot_control_copy/
Dbootinfo.c129 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/
Ddd_hostops.c50 .op_lseek = lseek,
/system/extras/memory_replay/
Dmain.cpp39 lseek(fd, 0, SEEK_SET); in GetMaxAllocs()
70 lseek(fd, 0, SEEK_SET); in ProcessDump()
/system/core/libutils/include/utils/
DCompat.h29 return lseek(fd, offset, whence); in lseek64()
/system/extras/zram-perf/
Dzram-perf.cpp84 lseek(m_fd, offset, SEEK_SET); in benchSequentialRead()
106 lseek(m_fd, offset, SEEK_SET); in benchSequentialWrite()
/system/core/libbacktrace/
DGetPss.cpp37 if (lseek(fd, place * sizeof(uint64_t), SEEK_SET) < 0) { in ReadData()
/system/vold/
DBenchmarkGen.h43 TEMP_FAILURE_RETRY(lseek(t3433f17, 0, SEEK_END)); in BenchmarkRun()
44 TEMP_FAILURE_RETRY(lseek(t3433f17, 38891199, SEEK_SET)); in BenchmarkRun()
63 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_SET)); in BenchmarkRun()
64 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_END)); in BenchmarkRun()
65 TEMP_FAILURE_RETRY(lseek(t3433f18, 38891199, SEEK_SET)); in BenchmarkRun()
81 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_SET)); in BenchmarkRun()
82 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_END)); in BenchmarkRun()
83 TEMP_FAILURE_RETRY(lseek(t3433f18, 38891199, SEEK_SET)); in BenchmarkRun()
91 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_SET)); in BenchmarkRun()
92 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_END)); in BenchmarkRun()
[all …]
/system/core/libappfuse/tests/
DFuseBufferTest.cc49 lseek(fd, 0, SEEK_SET); in TestReadInvalidLength()
82 lseek(fd, 0, SEEK_SET); in TEST()
/system/tpm/trunks/
Dtrunksd-seccomp-amd64.policy44 lseek: 1
Dtrunksd-seccomp-arm64.policy39 lseek: 1
Dtrunksd-seccomp-mips.policy40 lseek: 1

123