Lines Matching refs:fd
65 void ReadAndCheckCommandMessage(int fd, MinadbdCommand expected_command) { in ReadAndCheckCommandMessage() argument
67 ASSERT_TRUE(android::base::ReadFully(fd, received.data(), kMinadbdMessageSize)); in ReadAndCheckCommandMessage()
110 unique_fd fd = daemon_service_to_fd(command, nullptr); in ExecuteCommandAndWaitForExit() local
111 ASSERT_NE(-1, fd); in ExecuteCommandAndWaitForExit()
147 unique_fd fd = daemon_service_to_fd(command, nullptr); in TEST_F() local
148 ASSERT_NE(-1, fd); in TEST_F()
170 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(package_path_.c_str(), O_RDONLY))); in TEST_F() local
173 if (fd == -1) { in TEST_F()
178 if (!android::base::ReadFully(fd, content_from_fuse.data(), 4096)) { in TEST_F()
189 unique_fd fd = daemon_service_to_fd("sideload-host:4096:4096", nullptr); in TEST_F() local
190 ASSERT_NE(-1, fd); in TEST_F()
195 ASSERT_TRUE(android::base::ReadFully(fd, adb_message.data(), 8)); in TEST_F()
197 ASSERT_TRUE(android::base::WriteFully(fd, content.data(), 4096)); in TEST_F()