Lines Matching refs:message

48     const pairing::message::ConfigurationMessage& message) {  in SendConfigurationMessage()  argument
52 message.encoding().symbol_length()); in SendConfigurationMessage()
55 EncodingTypeToProto(message.encoding().encoding_type())); in SendConfigurationMessage()
57 configuration.set_client_role(RoleToProto(message.client_role())); in SendConfigurationMessage()
64 const pairing::message::ConfigurationAckMessage& message) { in SendConfigurationAckMessage() argument
72 const pairing::message::OptionsMessage& message) { in SendOptionsMessage() argument
73 LOG(INFO) << "Sending " << message.ToString(); in SendOptionsMessage()
77 for (iter = message.input_encodings().begin(); in SendOptionsMessage()
78 iter != message.input_encodings().end(); in SendOptionsMessage()
86 for (iter = message.output_encodings().begin(); in SendOptionsMessage()
87 iter != message.output_encodings().end(); in SendOptionsMessage()
95 options.set_preferred_role(RoleToProto(message.protocol_role_preference())); in SendOptionsMessage()
102 const pairing::message::PairingRequestMessage& message) { in SendPairingRequestMessage() argument
103 LOG(INFO) << "Sending " << message.ToString(); in SendPairingRequestMessage()
106 request.set_service_name(message.service_name()); in SendPairingRequestMessage()
108 if (message.has_client_name()) { in SendPairingRequestMessage()
109 request.set_client_name(message.client_name()); in SendPairingRequestMessage()
117 const pairing::message::PairingRequestAckMessage& message) { in SendPairingRequestAckMessage() argument
118 LOG(INFO) << "Sending " << message.ToString(); in SendPairingRequestAckMessage()
122 if (message.has_server_name()) { in SendPairingRequestAckMessage()
123 ack.set_server_name(message.server_name()); in SendPairingRequestAckMessage()
131 const pairing::message::SecretMessage& message) { in SendSecretMessage() argument
132 LOG(INFO) << "Sending " << message.ToString(); in SendSecretMessage()
135 secret.set_secret(&message.secret()[0], message.secret().size()); in SendSecretMessage()
142 const pairing::message::SecretAckMessage& message) { in SendSecretAckMessage() argument
143 LOG(INFO) << "Sending " << message.ToString(); in SendSecretAckMessage()
146 ack.set_secret(&message.secret()[0], message.secret().size()); in SendSecretAckMessage()
240 pairing::message::OptionsMessage::ProtocolRole role = in ParseConfigurationMessage()
243 pairing::message::ConfigurationMessage message(encoding, role); in ParseConfigurationMessage() local
244 listener()->OnConfigurationMessage(message); in ParseConfigurationMessage()
256 pairing::message::ConfigurationAckMessage message; in ParseConfigurationAckMessage() local
257 listener()->OnConfigurationAckMessage(message); in ParseConfigurationAckMessage()
268 pairing::message::OptionsMessage message; in ParseOptionsMessage() local
275 message.AddInputEncoding(option); in ParseOptionsMessage()
283 message.AddOutputEncoding(option); in ParseOptionsMessage()
286 message.set_protocol_role_preference( in ParseOptionsMessage()
289 listener()->OnOptionsMessage(message); in ParseOptionsMessage()
302 pairing::message::PairingRequestMessage message(request.service_name(), in ParsePairingRequestMessage() local
304 listener()->OnPairingRequestMessage(message); in ParsePairingRequestMessage()
306 pairing::message::PairingRequestMessage message(request.service_name()); in ParsePairingRequestMessage() local
307 listener()->OnPairingRequestMessage(message); in ParsePairingRequestMessage()
321 pairing::message::PairingRequestAckMessage message(ack.server_name()); in ParsePairingRequestAckMessage() local
322 listener()->OnPairingRequestAckMessage(message); in ParsePairingRequestAckMessage()
324 pairing::message::PairingRequestAckMessage message; in ParsePairingRequestAckMessage() local
325 listener()->OnPairingRequestAckMessage(message); in ParsePairingRequestAckMessage()
340 pairing::message::SecretMessage message(secret_bytes); in ParseSecretMessage() local
341 listener()->OnSecretMessage(message); in ParseSecretMessage()
355 pairing::message::SecretAckMessage message(secret_bytes); in ParseSecretAckMessage() local
356 listener()->OnSecretAckMessage(message); in ParseSecretAckMessage()
397 void ProtobufWireAdapter::SendOuterMessage(const OuterMessage& message) { in SendOuterMessage() argument
400 std::string outer_string = message.SerializeAsString(); in SendOuterMessage()
449 pairing::message::OptionsMessage::ProtocolRole role) { in RoleToProto()
451 case pairing::message::OptionsMessage::kInputDevice: in RoleToProto()
453 case pairing::message::OptionsMessage::kDisplayDevice: in RoleToProto()
460 pairing::message::OptionsMessage::ProtocolRole
464 return pairing::message::OptionsMessage::kInputDevice; in RoleFromProto()
466 return pairing::message::OptionsMessage::kDisplayDevice; in RoleFromProto()
468 return pairing::message::OptionsMessage::kUnknown; in RoleFromProto()