Home
last modified time | relevance | path

Searched refs:OptionsMessage (Results 1 – 25 of 27) sorted by relevance

12

/external/google-tv-pairing-protocol/cpp/src/polo/pairing/message/
Doptionsmessage.cc26 OptionsMessage::OptionsMessage() in OptionsMessage() function in polo::pairing::message::OptionsMessage
31 void OptionsMessage::set_protocol_role_preference( in set_protocol_role_preference()
32 OptionsMessage::ProtocolRole preference) { in set_protocol_role_preference()
36 OptionsMessage::ProtocolRole OptionsMessage::protocol_role_preference() const { in protocol_role_preference()
40 void OptionsMessage::AddInputEncoding( in AddInputEncoding()
45 void OptionsMessage::AddOutputEncoding( in AddOutputEncoding()
50 bool OptionsMessage::SupportsInputEncoding( in SupportsInputEncoding()
57 bool OptionsMessage::SupportsOutputEncoding( in SupportsOutputEncoding()
65 OptionsMessage::input_encodings() const { in input_encodings()
70 OptionsMessage::output_encodings() const { in output_encodings()
[all …]
Dconfigurationmessage.cc27 message::OptionsMessage::ProtocolRole client_role) in ConfigurationMessage()
37 OptionsMessage::ProtocolRole ConfigurationMessage::client_role() const { in client_role()
49 const OptionsMessage &local_options, in GetBestConfiguration()
50 const OptionsMessage &peer_options) { in GetBestConfiguration()
94 == OptionsMessage::kDisplayDevice) { in GetBestConfiguration()
97 OptionsMessage::kDisplayDevice); in GetBestConfiguration()
100 OptionsMessage::kInputDevice); in GetBestConfiguration()
105 OptionsMessage::kInputDevice); in GetBestConfiguration()
108 OptionsMessage::kDisplayDevice); in GetBestConfiguration()
Dconfigurationmessage.h34 OptionsMessage::ProtocolRole client_role);
40 OptionsMessage::ProtocolRole client_role() const;
51 const OptionsMessage& local_options,
52 const OptionsMessage& peer_options);
56 OptionsMessage::ProtocolRole client_role_;
Doptionsmessage.h28 class OptionsMessage : public PoloMessage {
40 OptionsMessage();
76 DISALLOW_COPY_AND_ASSIGN(OptionsMessage);
Dmessagelistener.h45 virtual void OnOptionsMessage(const OptionsMessage& message) = 0;
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/
DProtobufWireAdapter.java28 import com.google.polo.pairing.message.OptionsMessage;
287 } else if (poloMessage instanceof OptionsMessage) { in poloMessageToProto()
288 return toProto((OptionsMessage) poloMessage); in poloMessageToProto()
330 private PoloProto.Options toProto(OptionsMessage poloMessage) { in toProto()
401 private int toProto(OptionsMessage.ProtocolRole role) { in toProto()
488 private OptionsMessage fromProto(PoloProto.Options protoMessage) { in fromProto()
489 OptionsMessage optionsMessage = new OptionsMessage(); in fromProto()
493 optionsMessage.setProtocolRolePreference(OptionsMessage.ProtocolRole.INPUT_DEVICE); in fromProto()
496 … optionsMessage.setProtocolRolePreference(OptionsMessage.ProtocolRole.DISPLAY_DEVICE); in fromProto()
517 OptionsMessage.ProtocolRole role = OptionsMessage.ProtocolRole.UNKNOWN; in fromProto()
[all …]
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
Dpairingsession.cc38 message::OptionsMessage::kDisplayDevice in PairingSession()
39 : message::OptionsMessage::kInputDevice); in PairingSession()
287 message::OptionsMessage::ProtocolRole PairingSession::GetLocalRole() const { in GetLocalRole()
289 return message::OptionsMessage::kUnknown; in GetLocalRole()
296 message::OptionsMessage::kDisplayDevice ? in GetLocalRole()
297 message::OptionsMessage::kInputDevice in GetLocalRole()
298 : message::OptionsMessage::kDisplayDevice; in GetLocalRole()
303 return GetLocalRole() == message::OptionsMessage::kInputDevice; in IsInputDevice()
Dpairingsession.h122 message::OptionsMessage::ProtocolRole GetLocalRole() const;
147 const message::OptionsMessage& local_options() const { in local_options()
188 message::OptionsMessage local_options_;
Dserverpairingsession.cc61 const message::OptionsMessage& message) { in OnOptionsMessage()
79 if (GetLocalRole() == message::OptionsMessage::kDisplayDevice) { in OnConfigurationMessage()
Dserverpairingsession.h48 const message::OptionsMessage& message);
Dclientpairingsession.h49 virtual void OnOptionsMessage(const message::OptionsMessage& message);
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/
DOptionsMessage.java27 public class OptionsMessage extends PoloMessage { class
74 public OptionsMessage() { in OptionsMessage() method in OptionsMessage
119 OptionsMessage otherOptions) { in getBestConfiguration()
200 if (!(obj instanceof OptionsMessage)) { in equals()
204 OptionsMessage other = (OptionsMessage) obj; in equals()
DConfigurationMessage.java33 private OptionsMessage.ProtocolRole mClientRole;
36 OptionsMessage.ProtocolRole role) { in ConfigurationMessage()
46 public OptionsMessage.ProtocolRole getClientRole() { in getClientRole()
/external/google-tv-pairing-protocol/cpp/tests/polo/pairing/
Dpairingsessiontest.cc53 const message::OptionsMessage& GetLocalOptions() { in GetLocalOptions()
72 void(const pairing::message::OptionsMessage& message));
120 message::OptionsMessage::kInputDevice); in TEST_F()
127 ASSERT_EQ(message::OptionsMessage::kInputDevice, in TEST_F()
140 message::OptionsMessage::kInputDevice); in TEST_F()
154 message::OptionsMessage::kDisplayDevice); in TEST_F()
195 message::OptionsMessage::kInputDevice); in TEST_F()
225 message::OptionsMessage::kInputDevice); in TEST_F()
Dclientpairingsessiontest.cc103 message::OptionsMessage::kInputDevice); in TEST_F()
134 message::OptionsMessage message; in TEST_F()
137 message.set_protocol_role_preference(message::OptionsMessage::kInputDevice); in TEST_F()
146 message::OptionsMessage::kInputDevice); in TEST_F()
Dserverpairingsessiontest.cc113 message::OptionsMessage message; in TEST_F()
132 message::OptionsMessage::kInputDevice); in TEST_F()
/external/google-tv-pairing-protocol/cpp/src/polo/wire/protobuf/
Dprotobufwireadapter.cc72 const pairing::message::OptionsMessage& message) { in SendOptionsMessage()
240 pairing::message::OptionsMessage::ProtocolRole role = in ParseConfigurationMessage()
268 pairing::message::OptionsMessage message; in ParseOptionsMessage()
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()
Dprotobufwireadapter.h49 const pairing::message::OptionsMessage& message);
136 pairing::message::OptionsMessage::ProtocolRole role);
140 pairing::message::OptionsMessage::ProtocolRole RoleFromProto(
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/
DJsonMessageBuilder.java30 import com.google.polo.pairing.message.OptionsMessage;
31 import com.google.polo.pairing.message.OptionsMessage.ProtocolRole;
201 static OptionsMessage getOptionsMessage(JSONObject body) in getOptionsMessage()
203 OptionsMessage options = new OptionsMessage(); in getOptionsMessage()
340 } else if (message instanceof OptionsMessage) { in poloMessageToJson()
341 return toJson((OptionsMessage) message); in poloMessageToJson()
449 static JSONObject toJson(OptionsMessage message) throws JSONException { in toJson()
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/
DXmlMessageBuilder.java30 import com.google.polo.pairing.message.OptionsMessage;
31 import com.google.polo.pairing.message.OptionsMessage.ProtocolRole;
252 OptionsMessage getOptionsMessage(JSONObject body) throws PoloException { in getOptionsMessage()
253 OptionsMessage options = new OptionsMessage(); in getOptionsMessage()
393 } else if (message instanceof OptionsMessage) { in poloMessageToXML()
394 return toXML((OptionsMessage) message); in poloMessageToXML()
507 String toXML(OptionsMessage message) throws JSONException { in toXML()
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DClientPairingSession.java21 import com.google.polo.pairing.message.OptionsMessage;
88 OptionsMessage serverOptions = (OptionsMessage) getNextMessage( in doInitializationPhase()
DPairingSession.java28 import com.google.polo.pairing.message.OptionsMessage;
29 import com.google.polo.pairing.message.OptionsMessage.ProtocolRole;
146 protected OptionsMessage mLocalOptions;
224 mLocalOptions = new OptionsMessage(); in PairingSession()
/external/google-tv-pairing-protocol/cpp/tests/polo/wire/protobuf/
Dprotobufwireadaptertest.cc41 void(const pairing::message::OptionsMessage& message));
143 pairing::message::OptionsMessage::kDisplayDevice); in TEST_F()
196 pairing::message::OptionsMessage message; in TEST_F()
198 pairing::message::OptionsMessage::kInputDevice); in TEST_F()
/external/google-tv-pairing-protocol/cpp/tests/polo/wire/
Dmocks.h46 void(const pairing::message::OptionsMessage& message));
/external/google-tv-pairing-protocol/cpp/src/polo/wire/
Dpolowireadapter.h57 const pairing::message::OptionsMessage& message) = 0;

12