/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 | 26 struct statfs buf; in TEST() local 27 ASSERT_EQ(0, statfs(kMetadata, &buf)) in TEST() 29 ASSERT_EQ(EXT4_SUPER_MAGIC, buf.f_type); in TEST()
|
/test/vts/drivers/hal/libdatatype/ |
D | vts_datatype.cpp | 51 char* buf = (char*)malloc(len); in RandomCharPointer() local 52 buf[len - 1] = '\0'; in RandomCharPointer() 53 return buf; in RandomCharPointer() 58 void* buf = malloc(len); in RandomVoidPointer() local 59 return buf; in RandomVoidPointer()
|
/test/vts/runners/target/gtest/ |
D | gtest_main.cpp | 279 char buf[200]; in EnumerateTests() local 280 while (fgets(buf, sizeof(buf), fp) != NULL) { in EnumerateTests() 281 char* p = buf; in EnumerateTests() 752 char buf[1024]; in ReadChildProcOutput() local 754 read(child_proc.child_read_fd, buf, sizeof(buf) - 1)); in ReadChildProcOutput() 756 buf[bytes_read] = '\0'; in ReadChildProcOutput() 757 testcase.GetTest(test_id).AppendTestOutput(buf); in ReadChildProcOutput() 836 char buf[1024]; in CollectChildTestResult() local 837 snprintf(buf, sizeof(buf), in CollectChildTestResult() 841 testcase.GetTest(test_id).AppendTestOutput(buf); in CollectChildTestResult() [all …]
|
/test/vts-testcase/security/poc/target/kernel_wifi/31707909/ |
D | poc.cpp | 45 char *buf; member 58 void *buf; /* pointer to user buffer */ member 73 char buf[BUF_LEN]; in poc() local 89 ioc.buf = iocbuf; in poc()
|
/test/vts-testcase/security/poc/target/kernel_sound/28838221/ |
D | poc.cpp | 25 char buf[SIZE] = {0}; in main() local 34 sprintf(buf, "%x %x", 0x1111111, 0x2222222); in main() 35 ret = write(fd, buf, SIZE); in main()
|
/test/vts-testcase/kernel/api/bpf_native_test/ |
D | BpfTest.cpp | 97 char buf[strlen("msg: 18446744073709551615")]; in workerThread() local 120 recv_len = recvfrom(recvSock, &buf, sizeof(buf), 0, in workerThread()
|
/test/vts/utils/python/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 | 258 uint8_t *buf = static_cast<uint8_t *>(buf_mem.get()); in ReadRawDataOfFile() local 291 if (pread(blk_fd, &buf[offset], extent.fe_length, extent.fe_physical) != in ReadRawDataOfFile() 302 *raw_data = std::vector<uint8_t>(&buf[0], &buf[offset]); in ReadRawDataOfFile()
|
/test/vts-testcase/security/avb/ |
D | VtsSecurityAvbTest.cpp | 523 struct utsname buf; in GetKernelInfo() local 525 ret = uname(&buf); in GetKernelInfo() 531 ret = sscanf(buf.release, "%d.%d%c", &kernel_version_major, in GetKernelInfo() 538 buf.machine); in GetKernelInfo()
|