Lines Matching refs:base
48 android::base::Socketpair(AF_UNIX, SOCK_STREAM, 0, &minadbd_socket_, &recovery_socket_)); in SetUp()
67 ASSERT_TRUE(android::base::ReadFully(fd, received.data(), kMinadbdMessageSize)); in ReadAndCheckCommandMessage()
106 android::base::WriteFully(recovery_socket_, status_message.data(), kMinadbdMessageSize)); in WriteMinadbdCommandStatus()
115 android::base::unique_fd minadbd_socket_;
116 android::base::unique_fd recovery_socket_;
154 ASSERT_TRUE(android::base::WriteStringToFd("12345678", recovery_socket_)); in TEST_F()
170 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(package_path_.c_str(), O_RDONLY))); in TEST_F()
178 if (!android::base::ReadFully(fd, content_from_fuse.data(), 4096)) { in TEST_F()
195 ASSERT_TRUE(android::base::ReadFully(fd, adb_message.data(), 8)); in TEST_F()
196 ASSERT_EQ(android::base::StringPrintf("%08u", 0), adb_message); in TEST_F()
197 ASSERT_TRUE(android::base::WriteFully(fd, content.data(), 4096)); in TEST_F()