/test/vts-testcase/kernel/virtual_ab/ |
D | userdata_test.cpp | 23 struct statfs buf; in TEST() local 24 ASSERT_EQ(0, statfs(kUserdata, &buf)) in TEST() 26 if (buf.f_type != EXT4_SUPER_MAGIC) { in TEST() 28 << buf.f_type; in TEST() 30 ASSERT_EQ(4096, buf.f_bsize); in TEST()
|
D | metadata_test.cpp | 27 struct statfs buf; in TEST() local 28 ASSERT_EQ(0, statfs(kMetadata, &buf)) in TEST() 31 bool is_ext4 = (buf.f_type == EXT4_SUPER_MAGIC); in TEST() 32 bool is_f2fs = (buf.f_type == F2FS_SUPER_MAGIC); in TEST() 34 << "Filesystem magic: " << std::to_string(buf.f_type); in TEST()
|
/test/dittosuite/src/ |
D | syscall.cpp | 53 int Syscall::FStat(int filedes, struct stat64* buf) { in FStat() argument 54 return fstat64(filedes, buf); in FStat() 77 int64_t Syscall::Read(int fd, char* buf, int64_t count, int64_t offset) { in Read() argument 78 return pread64(fd, buf, count, offset); in Read() 85 int64_t Syscall::ReadLink(const std::string& path_name, char* buf, int64_t bufsiz) { in ReadLink() argument 86 return readlink(path_name.c_str(), buf, bufsiz); in ReadLink() 142 int64_t Syscall::Write(int fd, char* buf, int64_t count, int64_t offset) { in Write() argument 143 return pwrite64(fd, buf, count, offset); in Write()
|
/test/dittosuite/include/ditto/ |
D | syscall.h | 55 virtual int FStat(int filedes, struct stat64* buf) = 0; 60 virtual int64_t Read(int fd, char* buf, int64_t count, int64_t offset) = 0; 63 virtual int64_t ReadLink(const std::string& path_name, char* buf, int64_t bufsiz) = 0; 66 virtual int64_t Write(int fd, char* buf, int64_t count, int64_t offset) = 0; 82 int FStat(int filedes, struct stat64* buf) override; 87 int64_t Read(int fd, char* buf, int64_t count, int64_t offset) override; 90 int64_t ReadLink(const std::string& path_name, char* buf, int64_t bufsiz) override; 93 int64_t Write(int fd, char* buf, int64_t count, int64_t offset) override;
|
/test/vts-testcase/kernel/api/drop_caches_prop/ |
D | drop_caches_test.cpp | 33 char buf[chunksize]; in TEST() local 52 buf[c] = (random() % 26) + 'A'; in TEST() 54 write(fd, buf, chunksize); in TEST() 67 while ((n = read(fd.get(), buf, sizeof(buf))) > 0) { in TEST()
|
/test/dittosuite/test/ |
D | write_file_test.cpp | 97 EXPECT_CALL(syscall_, FStat(fd_, _)).WillOnce(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 98 buf->st_size = size; in TEST_F() 125 .WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 126 buf->st_size = size; in TEST_F() 159 .WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 160 buf->st_size = file_size; in TEST_F() 198 .WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 199 buf->st_size = file_size; in TEST_F() 237 .WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 238 buf->st_size = file_size; in TEST_F() [all …]
|
D | read_file_test.cpp | 99 EXPECT_CALL(syscall_, FStat(fd_, _)).Times(2).WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 100 buf->st_size = size; in TEST_F() 127 .WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 128 buf->st_size = size; in TEST_F() 161 .WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 162 buf->st_size = file_size; in TEST_F() 200 .WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 201 buf->st_size = file_size; in TEST_F() 239 .WillRepeatedly(Invoke([&](int, struct stat64* buf) { in TEST_F() argument 240 buf->st_size = file_size; in TEST_F() [all …]
|
/test/dittosuite/test/include/ |
D | mock_syscall.h | 37 .WillByDefault(::testing::Invoke([](int, struct stat64* buf) { in MockSyscall() 38 buf->st_size = kDefaultFileSize; in MockSyscall() 62 MOCK_METHOD(int, FStat, (int filedes, struct stat64* buf), (override)); 67 MOCK_METHOD(int64_t, Read, (int fd, char* buf, int64_t count, int64_t offset), (override)); 71 MOCK_METHOD(int64_t, ReadLink, (const std::string& path_name, char* buf, int64_t bufsiz), 75 MOCK_METHOD(int64_t, Write, (int fd, char* buf, int64_t count, int64_t offset), (override));
|
/test/vts-testcase/kernel/api/bpf_native_test/ |
D | BpfTest.cpp | 99 char buf[strlen("msg: 18446744073709551615")]; in workerThread() local 122 recv_len = recvfrom(recvSock, &buf, sizeof(buf), 0, in workerThread()
|
/test/vts/vndk_utils/library/ |
D | elf_parser.py | 216 buf = self._file.read(buf_size) 219 end_index = buf.find(b"\0") 221 ret += buf 223 ret += buf[:end_index] 225 if len(buf) != buf_size:
|
/test/vts-testcase/kernel/encryption/ |
D | file_based_encryption_tests.cpp | 306 uint8_t *buf = static_cast<uint8_t *>(buf_mem.get()); in ReadRawDataOfFile() local 339 if (pread(blk_fd, &buf[offset], extent.fe_length, extent.fe_physical) != in ReadRawDataOfFile() 350 *raw_data = std::vector<uint8_t>(&buf[0], &buf[offset]); in ReadRawDataOfFile()
|