Home
last modified time | relevance | path

Searched refs:EncodingOption (Results 1 – 23 of 23) sorted by relevance

/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/
DOptionsMessage.java67 private Set<EncodingOption> mInputEncodings;
72 private Set<EncodingOption> mOutputEncodings;
78 mInputEncodings = new HashSet<EncodingOption>(); in OptionsMessage()
79 mOutputEncodings = new HashSet<EncodingOption>(); in OptionsMessage()
90 public void addInputEncoding(EncodingOption encoding) { in addInputEncoding()
94 public void addOutputEncoding(EncodingOption encoding) { in addOutputEncoding()
98 public boolean supportsInputEncoding(EncodingOption encoding) { in supportsInputEncoding()
102 public boolean supportsOutputEncoding(EncodingOption encoding) { in supportsOutputEncoding()
106 public Set<EncodingOption> getInputEncodingSet() { in getInputEncodingSet()
107 return new HashSet<EncodingOption>(mInputEncodings); in getInputEncodingSet()
[all …]
DEncodingOption.java22 public class EncodingOption { class
60 public EncodingOption(EncodingType type, int symbolLength) { in EncodingOption() method in EncodingOption
84 if (!(obj instanceof EncodingOption)) { in equals()
88 EncodingOption other = (EncodingOption) obj; in equals()
DConfigurationMessage.java28 private EncodingOption mEncoding;
35 public ConfigurationMessage(EncodingOption enc, in ConfigurationMessage()
42 public EncodingOption getEncoding() { in getEncoding()
/external/google-tv-pairing-protocol/cpp/src/polo/encoding/
Dencodingoption.h28 class EncodingOption {
52 EncodingOption(EncodingType encoding_type, uint32_t symbol_length);
63 bool Equals(const EncodingOption& other) const;
70 EncodingOption, EncodingOption, bool> {
71 bool operator()(const EncodingOption& option1, in operator()
72 const EncodingOption& option2) { in operator()
82 : public std::unary_function<EncodingOption, bool> {
83 const EncodingOption& option_;
85 explicit EncodingOptionPredicate(const EncodingOption& option) in EncodingOptionPredicate()
88 bool operator()(const EncodingOption& other) const { in operator()
[all …]
Dencodingoption.cc22 EncodingOption::EncodingOption(EncodingOption::EncodingType encoding_type, in EncodingOption() function in polo::encoding::EncodingOption
28 EncodingOption::EncodingType EncodingOption::encoding_type() const { in encoding_type()
32 uint32_t EncodingOption::symbol_length() const { in symbol_length()
36 bool EncodingOption::Equals(const EncodingOption& other) const { in Equals()
41 std::string EncodingOption::ToString() const { in ToString()
/external/google-tv-pairing-protocol/cpp/tests/polo/pairing/
Dpairingsessiontest.cc118 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
124 ASSERT_EQ(encoding::EncodingOption::kHexadecimal, in TEST_F()
138 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
152 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
165 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
171 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 1); in TEST_F()
177 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
183 encoding::EncodingOption encoding(encoding::EncodingOption::kUnknown, 8); in TEST_F()
193 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
223 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
Dclientpairingsessiontest.cc101 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
123 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
144 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
Dserverpairingsessiontest.cc118 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); in TEST_F()
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/message/
Doptionsmessage.h43 void AddInputEncoding(const encoding::EncodingOption& encoding);
46 void AddOutputEncoding(const encoding::EncodingOption& encoding);
50 const encoding::EncodingOption& encoding) const;
54 const encoding::EncodingOption& encoding) const;
63 const encoding::EncodingOption::EncodingSet& input_encodings() const;
66 const encoding::EncodingOption::EncodingSet& output_encodings() const;
73 encoding::EncodingOption::EncodingSet input_encodings_;
74 encoding::EncodingOption::EncodingSet output_encodings_;
Dconfigurationmessage.cc26 const encoding::EncodingOption& encoding, in ConfigurationMessage()
33 const encoding::EncodingOption& ConfigurationMessage::encoding() const { in encoding()
54 encoding::EncodingOption::EncodingSet common_outputs; in GetBestConfiguration()
55 std::insert_iterator<encoding::EncodingOption::EncodingSet> outputs_inserter( in GetBestConfiguration()
63 encoding::EncodingOption::EncodingOptionComparator()); in GetBestConfiguration()
65 encoding::EncodingOption::EncodingSet common_inputs; in GetBestConfiguration()
66 std::insert_iterator<encoding::EncodingOption::EncodingSet> inputs_inserter( in GetBestConfiguration()
74 encoding::EncodingOption::EncodingOptionComparator()); in GetBestConfiguration()
80 const encoding::EncodingOption* best_input = NULL; in GetBestConfiguration()
81 const encoding::EncodingOption* best_output = NULL; in GetBestConfiguration()
Doptionsmessage.cc41 const encoding::EncodingOption& encoding) { in AddInputEncoding()
46 const encoding::EncodingOption& encoding) { in AddOutputEncoding()
51 const encoding::EncodingOption& encoding) const { in SupportsInputEncoding()
53 encoding::EncodingOption::EncodingOptionPredicate(encoding)) in SupportsInputEncoding()
58 const encoding::EncodingOption& encoding) const { in SupportsOutputEncoding()
60 encoding::EncodingOption::EncodingOptionPredicate(encoding)) in SupportsOutputEncoding()
64 const encoding::EncodingOption::EncodingSet&
69 const encoding::EncodingOption::EncodingSet&
77 encoding::EncodingOption::EncodingSet::const_iterator iter in ToString()
Dconfigurationmessage.h33 ConfigurationMessage(const encoding::EncodingOption &encoding,
37 const ::polo::encoding::EncodingOption& encoding() const;
55 encoding::EncodingOption encoding_;
/external/google-tv-pairing-protocol/cpp/src/polo/wire/protobuf/
Dprotobufwireadapter.cc76 encoding::EncodingOption::EncodingSet::const_iterator iter; in SendOptionsMessage()
80 encoding::EncodingOption option = *iter; in SendOptionsMessage()
89 encoding::EncodingOption option = *iter; in SendOptionsMessage()
237 encoding::EncodingOption encoding( in ParseConfigurationMessage()
273 encoding::EncodingOption option(EncodingTypeFromProto(encoding.type()), in ParseOptionsMessage()
281 encoding::EncodingOption option(EncodingTypeFromProto(encoding.type()), in ParseOptionsMessage()
416 encoding::EncodingOption::EncodingType type) { in EncodingTypeToProto()
418 case encoding::EncodingOption::kAlphaNumeric: in EncodingTypeToProto()
420 case encoding::EncodingOption::kHexadecimal: in EncodingTypeToProto()
422 case encoding::EncodingOption::kNumeric: in EncodingTypeToProto()
[all …]
Dprotobufwireadapter.h126 encoding::EncodingOption::EncodingType type);
130 encoding::EncodingOption::EncodingType EncodingTypeFromProto(
/external/google-tv-pairing-protocol/cpp/tests/polo/wire/protobuf/
Dprotobufwireadaptertest.cc142 encoding::EncodingOption(encoding::EncodingOption::kQRCode, 64), in TEST_F()
204 encoding::EncodingOption(encoding::EncodingOption::kNumeric, 16)); in TEST_F()
206 encoding::EncodingOption(encoding::EncodingOption::kAlphaNumeric, 32)); in TEST_F()
208 encoding::EncodingOption(encoding::EncodingOption::kHexadecimal, 128)); in TEST_F()
210 encoding::EncodingOption(encoding::EncodingOption::kQRCode, 512)); in TEST_F()
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/
DProtobufWireAdapter.java27 import com.google.polo.pairing.message.EncodingOption;
343 for (EncodingOption enc : poloMessage.getOutputEncodingSet()) { in toProto()
350 for (EncodingOption enc : poloMessage.getInputEncodingSet()) { in toProto()
371 private PoloProto.Options.Encoding toProto(EncodingOption enc) { in toProto()
515 EncodingOption enc = fromProto(protoMessage.encoding); in fromProto()
555 private EncodingOption fromProto(PoloProto.Options.Encoding enc) { in fromProto()
556 EncodingOption.EncodingType type; in fromProto()
560 type = EncodingOption.EncodingType.ENCODING_ALPHANUMERIC; in fromProto()
563 type = EncodingOption.EncodingType.ENCODING_HEXADECIMAL; in fromProto()
566 type = EncodingOption.EncodingType.ENCODING_NUMERIC; in fromProto()
[all …]
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
Dpairingsession.cc61 const encoding::EncodingOption& encoding) { in AddInputEncoding()
76 const encoding::EncodingOption& encoding) { in AddOutputEncoding()
186 const encoding::EncodingOption& encoding = message.encoding(); in SetConfiguration()
199 case encoding::EncodingOption::kHexadecimal: in SetConfiguration()
307 const encoding::EncodingOption& option) const { in IsValidEncodingOption()
309 return option.encoding_type() != encoding::EncodingOption::kUnknown in IsValidEncodingOption()
Dpairingsession.h67 void AddInputEncoding(const encoding::EncodingOption& encoding);
71 void AddOutputEncoding(const encoding::EncodingOption& encoding);
171 bool IsValidEncodingOption(const encoding::EncodingOption& option) const;
Dserverpairingsession.cc77 const encoding::EncodingOption& encoding = message.encoding(); in OnConfigurationMessage()
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/
DJsonMessageBuilder.java28 import com.google.polo.pairing.message.EncodingOption;
29 import com.google.polo.pairing.message.EncodingOption.EncodingType;
256 EncodingOption encoding = getEncodingOption( in getConfigMessage()
318 static EncodingOption getEncodingOption(JSONObject option) in getEncodingOption()
323 return new EncodingOption(type, length); in getEncodingOption()
453 for (EncodingOption encoding : message.getInputEncodingSet()) { in toJson()
459 for (EncodingOption encoding : message.getOutputEncodingSet()) { in toJson()
533 static JSONObject toJson(EncodingOption encoding) throws JSONException { in toJson()
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/
DXmlMessageBuilder.java28 import com.google.polo.pairing.message.EncodingOption;
29 import com.google.polo.pairing.message.EncodingOption.EncodingType;
316 EncodingOption encoding = getEncodingOption( in getConfigMessage()
374 EncodingOption getEncodingOption(JSONObject option) throws JSONException { in getEncodingOption()
378 return new EncodingOption(type, length); in getEncodingOption()
513 for (EncodingOption encoding : message.getInputEncodingSet()) { in toXML()
521 for (EncodingOption encoding : message.getOutputEncodingSet()) { in toXML()
581 JSONObject encodingToJson(EncodingOption encoding) throws JSONException { in encodingToJson()
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DServerPairingSession.java23 import com.google.polo.pairing.message.EncodingOption;
88 EncodingOption encoding = mSessionConfig.getEncoding(); in doConfigurationPhase()
DPairingSession.java27 import com.google.polo.pairing.message.EncodingOption;
312 public void addInputEncoding(EncodingOption encoding) { in addInputEncoding()
337 public void addOutputEncoding(EncodingOption encoding) { in addOutputEncoding()