Lines Matching refs:message
63 static MinadbdCommand ParseMinadbdCommand(const std::string& message) { in ParseMinadbdCommand() argument
64 if (!android::base::StartsWith(message, kMinadbdCommandPrefix)) { in ParseMinadbdCommand()
65 LOG(ERROR) << "Failed to parse command in message " << message; in ParseMinadbdCommand()
69 auto cmd_code_string = message.substr(strlen(kMinadbdCommandPrefix)); in ParseMinadbdCommand()
80 char message[kMinadbdMessageSize]; in WriteStatusToFd() local
81 memcpy(message, kMinadbdStatusPrefix, strlen(kMinadbdStatusPrefix)); in WriteStatusToFd()
82 android::base::put_unaligned(message + strlen(kMinadbdStatusPrefix), status); in WriteStatusToFd()
84 if (!android::base::WriteFully(fd, message, kMinadbdMessageSize)) { in WriteStatusToFd()
85 PLOG(ERROR) << "Failed to write message " << message; in WriteStatusToFd()
160 std::string message(buffer, buffer + kMinadbdMessageSize); in HandleMessageFromMinadbd() local
161 auto command_type = ParseMinadbdCommand(message); in HandleMessageFromMinadbd()
168 message.substr(strlen(kMinadbdCommandPrefix)).c_str()); in HandleMessageFromMinadbd()