Searched refs:kMinadbdMessageSize (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/minadbd/ |
D | minadbd_types.h | 23 constexpr size_t kMinadbdMessageSize = 8; variable 62 static_assert(kMinadbdMessageSize == sizeof(kMinadbdCommandPrefix) - 1 + sizeof(MinadbdCommand)); 63 static_assert(kMinadbdMessageSize ==
|
D | minadbd_services_test.cpp | 66 std::vector<uint8_t> received(kMinadbdMessageSize, '\0'); in ReadAndCheckCommandMessage() 67 ASSERT_TRUE(android::base::ReadFully(fd, received.data(), kMinadbdMessageSize)); in ReadAndCheckCommandMessage() 69 std::vector<uint8_t> expected(kMinadbdMessageSize, '\0'); in ReadAndCheckCommandMessage() 102 std::string status_message(kMinadbdMessageSize, '\0'); in WriteMinadbdCommandStatus() 106 android::base::WriteFully(recovery_socket_, status_message.data(), kMinadbdMessageSize)); in WriteMinadbdCommandStatus()
|
D | minadbd_services.cpp | 68 char message[kMinadbdMessageSize]; in WriteCommandToFd() 72 if (!android::base::WriteFully(fd, message, kMinadbdMessageSize)) { in WriteCommandToFd() 82 char buffer[kMinadbdMessageSize]; in WaitForCommandStatus() 83 if (!android::base::ReadFully(fd, buffer, kMinadbdMessageSize)) { in WaitForCommandStatus() 88 std::string message(buffer, buffer + kMinadbdMessageSize); in WaitForCommandStatus()
|
/bootable/recovery/install/ |
D | adb_install.cpp | 80 char message[kMinadbdMessageSize]; in WriteStatusToFd() 84 if (!android::base::WriteFully(fd, message, kMinadbdMessageSize)) { in WriteStatusToFd() 154 char buffer[kMinadbdMessageSize]; in HandleMessageFromMinadbd() 155 if (!android::base::ReadFully(socket_fd, buffer, kMinadbdMessageSize)) { in HandleMessageFromMinadbd() 160 std::string message(buffer, buffer + kMinadbdMessageSize); in HandleMessageFromMinadbd()
|