Lines Matching refs:OptionsMessage
28 import com.google.polo.pairing.message.OptionsMessage;
286 } else if (poloMessage instanceof OptionsMessage) {
287 return toProto((OptionsMessage) poloMessage);
327 * Converts a {@link OptionsMessage} to a {@link PoloProto.Options}.
329 private PoloProto.Options toProto(OptionsMessage poloMessage) {
397 * Converts a {@link OptionsMessage.ProtocolRole} to a
400 private int toProto(OptionsMessage.ProtocolRole role) {
485 * Converts a {@link PoloProto.Options} to a {@link OptionsMessage}.
487 private OptionsMessage fromProto(PoloProto.Options protoMessage) {
488 OptionsMessage optionsMessage = new OptionsMessage();
492 optionsMessage.setProtocolRolePreference(OptionsMessage.ProtocolRole.INPUT_DEVICE);
495 optionsMessage.setProtocolRolePreference(OptionsMessage.ProtocolRole.DISPLAY_DEVICE);
500 optionsMessage.addInputEncoding(fromProto(e));
504 optionsMessage.addOutputEncoding(fromProto(e));
507 return optionsMessage;
516 OptionsMessage.ProtocolRole role = OptionsMessage.ProtocolRole.UNKNOWN;
520 role = OptionsMessage.ProtocolRole.INPUT_DEVICE;
523 role = OptionsMessage.ProtocolRole.DISPLAY_DEVICE;