/test/vts-testcase/kernel/api/qtaguid/ |
D | SocketTagUserSpace.cpp | 66 if (bind(sock_server.fd, (struct sockaddr *)&server, sizeof(server)) < 0) { in server_download() 70 listen(sock_server.fd, 3); in server_download() 73 if (connect(sock_client.fd, (struct sockaddr *)&server, sizeof(server)), 0) { in server_download() 77 new_socket = accept(sock_server.fd, (struct sockaddr *)&client, in server_download() 85 send(sock_client.fd, "start", 5, 0); in server_download() 96 EXPECT_GE(recv(sock_client.fd, byte_buffer, 1024, 0), 0); in server_download() 133 fd = socket(AF_INET, SOCK_STREAM, 0); in setup() 134 if (fd < 0) { in setup() 138 if (legacy_tagSocket(fd, tag, getuid()) < 0) { in setup() 140 close(fd); in setup() [all …]
|
D | SocketTagUserSpace.h | 29 SockInfo() : fd(-1) {} in SockInfo() 38 int fd; variable
|
/test/vts/utils/native/libprofiling/ |
D | VtsProfilingInterface.cpp | 64 int fd = -1; in GetTraceFile() local 66 fd = trace_map_[fullname]; in GetTraceFile() 68 fstat(fd, &statbuf); in GetTraceFile() 71 if (statbuf.st_nlink <= 0 || fcntl(fd, F_GETFD) == -1) { in GetTraceFile() 72 fd = CreateTraceFile(package, version); in GetTraceFile() 73 trace_map_[fullname] = fd; in GetTraceFile() 77 fd = CreateTraceFile(package, version); in GetTraceFile() 78 trace_map_[fullname] = fd; in GetTraceFile() 80 return fd; in GetTraceFile() 99 int fd = open(file_path.c_str(), O_RDWR | O_CREAT | O_EXCL, in CreateTraceFile() local [all …]
|
/test/vts-testcase/security/poc/target/kernel_bluetooth/30149612/ |
D | poc.cpp | 14 int fd; in main() local 16 fd = socket(AF_BLUETOOTH, SOCK_STREAM, 3); in main() 17 if (fd == -1) { in main() 25 if (bind(fd, &sa, 2)) { in main() 27 close(fd); in main() 32 if (getsockname(fd, &sa, &len)) { in main() 34 close(fd); in main() 51 close(fd); in main()
|
/test/vts/hals/light/bullhead/ |
D | lights.c | 61 int fd; in write_int() local 64 fd = open(path, O_RDWR); in write_int() 65 if (fd >= 0) { in write_int() 68 int amt = write(fd, buffer, bytes); in write_int() 69 close(fd); in write_int() 82 int fd; in write_on_off() local 85 fd = open(path, O_RDWR); in write_on_off() 86 if (fd >= 0) { in write_on_off() 89 int amt = write(fd, buffer, bytes); in write_on_off() 90 close(fd); in write_on_off()
|
/test/vts-testcase/security/poc/target/kernel_sound/28838221/ |
D | poc.cpp | 24 int fd; in main() local 27 fd = open(path, O_RDWR); in main() 28 if (fd < 0) { in main() 35 ret = write(fd, buf, SIZE); in main() 42 close(fd); in main()
|
/test/vts-testcase/security/poc/target/kernel_wifi/31707909/ |
D | poc.cpp | 67 int fd, i, res; in poc() local 76 fd = socket(AF_INET, SOCK_STREAM, 0); in poc() 77 if (fd < 0) { in poc() 78 printf("open socket error : fd:0x%x %s \n", fd, strerror(errno)); in poc() 96 if ((res = ioctl(fd, 0x89F0, (struct ifreq *)&arg)) < 0) { in poc() 101 close(fd); in poc()
|
/test/vts-testcase/kernel/api/tun/ |
D | vts_kernel_tun_test.cpp | 62 int fd = open(tun_device_.c_str(), O_RDWR | O_NONBLOCK); in TunInit() local 63 if (fd < 0) { in TunInit() 66 if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) { in TunInit() 67 close(fd); in TunInit() 70 return fd; in TunInit()
|
/test/vts-testcase/kernel/bow/ |
D | BowTest.cpp | 233 unique_fd fd( in PrepareFile() local 235 ASSERT_NE(fd.get(), -1); in PrepareFile() 239 write(fd.get(), buffer, sizeof(buffer)); in PrepareFile() 276 unique_fd fd; in FindChanged() local 278 fd = unique_fd(open(loop_device_.c_str(), O_RDONLY)); in FindChanged() 280 fd = unique_fd(open(bow_device_.c_str(), O_RDONLY)); in FindChanged() 281 EXPECT_NE(fd.get(), -1); in FindChanged() 282 if (fd.get() == -1) return; in FindChanged() 297 EXPECT_NE(lseek(fd.get(), i * sector_size_, SEEK_SET), -1); in FindChanged() 298 EXPECT_EQ(read(fd.get(), buffer, sizeof(buffer)), sizeof(buffer)); in FindChanged() [all …]
|
/test/vts/drivers/resource/hidl_handle_driver/ |
D | VtsHidlHandleDriver.cpp | 104 int fd = native_handle->data[0]; in ReadFile() local 105 ssize_t read_result = read(fd, read_data, num_bytes); in ReadFile() 108 << fd << " failure: " << strerror(errno); in ReadFile() 126 int fd = native_handle->data[0]; in WriteFile() local 127 ssize_t write_result = write(fd, write_data, num_bytes); in WriteFile() 129 LOG(ERROR) << "Write to file failure: write to file with descriptor " << fd in WriteFile()
|
/test/vts/drivers/hal/replayer/ |
D | VtsHidlHalReplayer.cpp | 44 int fd = open(trace_file.c_str(), O_RDONLY); in ListTestServices() local 45 if (fd < 0) { in ListTestServices() 51 google::protobuf::io::FileInputStream input(fd); in ListTestServices() 80 int fd = open(trace_file.c_str(), O_RDONLY); in ReplayTrace() local 81 if (fd < 0) { in ReplayTrace() 87 google::protobuf::io::FileInputStream input(fd); in ReplayTrace()
|
/test/framework/harnesses/host_controller/command_processor/ |
D | command_config.py | 143 with open(full_path, "r") as fd: 144 context = fd.read() 150 with open(full_path, "r") as fd: 151 context = fd.read()
|
D | command_upload.py | 337 with open(report_file_path, "w") as fd: 338 fd.write(suite_res_msg.SerializeToString()) 339 fd.close()
|
/test/vts/utils/native/trace_processor/ |
D | VtsTraceProcessor.cpp | 47 int fd = in ParseBinaryTrace() local 49 if (fd < 0) { in ParseBinaryTrace() 54 google::protobuf::io::FileInputStream input(fd); in ParseBinaryTrace() 118 int fd = open(output_file.c_str(), O_WRONLY | O_CREAT | O_EXCL, in WriteProfilingMsg() local 120 if (fd < 0) { in WriteProfilingMsg() 125 google::protobuf::io::FileOutputStream output(fd); in WriteProfilingMsg()
|
/test/vts-testcase/security/avb/ |
D | VtsSecurityAvbTest.cpp | 463 android::base::unique_fd fd(open(system_path.c_str(), O_RDONLY)); in TEST() local 464 ASSERT_GE(fd, 0) << "Fail to open system partition. Try 'adb root'."; in TEST() 486 fd, descriptor->image_size, salt, descriptor->data_block_size, in TEST()
|
/test/vts/compilation_tools/vtsc/test/golden/DRIVER/ |
D | Bar.driver.cpp | 1176 … int fd = open(file_name.c_str(), fd_val.flags() | O_CREAT, fd_val.mode()); in CallFunction() local 1177 if (fd == -1) { in CallFunction() 1181 handle->data[fd_index] = fd; in CallFunction()
|
/test/suite_harness/tools/dex-tools/dex/ |
D | classes0.out.dex | 10984 java.io.FileDescriptor fd 11051 java.io.FileDescriptor fd 13493 private java.io.FileDescriptor fd 17216 private java.io.FileDescriptor fd 17236 private java.io.FileDescriptor fd 23038 protected java.io.FileDescriptor fd 25131 protected java.io.FileDescriptor fd 72041 private java.io.FileDescriptor fd 72905 private final java.io.FileDescriptor fd 73076 java.io.FileDescriptor fd
|
D | classes.out.dex | 7502 java.io.FileDescriptor fd 43365 private java.io.FileDescriptor fd
|