Home
last modified time | relevance | path

Searched refs:lseek (Results 1 – 25 of 62) 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.cpp207 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 …]
Dtombstone_test.cpp102 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/
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.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/libunwindstack/tests/
DDexFileTest.cpp58 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()
DElfCacheTest.cpp57 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/
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()
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/
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/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/core/base/
Dlogging_test.cpp212 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/
Dbootinfo.cpp129 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/debuggerd/seccomp_policy/
Dcrash_dump.x86.policy18 lseek: 1
Dcrash_dump.arm64.policy17 lseek: 1
Dcrash_dump.arm.policy18 lseek: 1
Dcrash_dump.x86_64.policy17 lseek: 1
Dcrash_dump.policy.def23 lseek: 1
/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()

123