/external/google-tv-pairing-protocol/cpp/src/polo/encoding/ |
encodingoption.cc | 15 #include "polo/encoding/encodingoption.h" 22 EncodingOption::EncodingOption(EncodingOption::EncodingType encoding_type, 28 EncodingOption::EncodingType EncodingOption::encoding_type() const { 32 uint32_t EncodingOption::symbol_length() const { 36 bool EncodingOption::Equals(const EncodingOption& other) const { 41 std::string EncodingOption::ToString() const [all...] |
encodingoption.h | 28 class EncodingOption { 52 EncodingOption(EncodingType encoding_type, uint32_t symbol_length); 63 bool Equals(const EncodingOption& other) const; 68 // EncodingOption comparator for set ordering. 70 EncodingOption, EncodingOption, bool> { 71 bool operator()(const EncodingOption& option1, 72 const EncodingOption& option2) { 82 : public std::unary_function<EncodingOption, bool> { 83 const EncodingOption& option_ [all...] |
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/message/ |
optionsmessage.h | 20 #include "polo/encoding/encodingoption.h" 43 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_;
|
configurationmessage.h | 19 #include "polo/encoding/encodingoption.h" 33 ConfigurationMessage(const encoding::EncodingOption &encoding, 37 const ::polo::encoding::EncodingOption& encoding() const; 55 encoding::EncodingOption encoding_;
|
configurationmessage.cc | 26 const encoding::EncodingOption& encoding, 33 const encoding::EncodingOption& ConfigurationMessage::encoding() const { 52 // 'less' comparator so they are ordered using EncodingOption's less-than 54 encoding::EncodingOption::EncodingSet common_outputs; 55 std::insert_iterator<encoding::EncodingOption::EncodingSet> outputs_inserter( 63 encoding::EncodingOption::EncodingOptionComparator()); 65 encoding::EncodingOption::EncodingSet common_inputs; 66 std::insert_iterator<encoding::EncodingOption::EncodingSet> inputs_inserter( 74 encoding::EncodingOption::EncodingOptionComparator()); 80 const encoding::EncodingOption* best_input = NULL [all...] |
optionsmessage.cc | 41 const encoding::EncodingOption& encoding) { 46 const encoding::EncodingOption& encoding) { 51 const encoding::EncodingOption& encoding) const { 53 encoding::EncodingOption::EncodingOptionPredicate(encoding)) 58 const encoding::EncodingOption& encoding) const { 60 encoding::EncodingOption::EncodingOptionPredicate(encoding)) 64 const encoding::EncodingOption::EncodingSet& 69 const encoding::EncodingOption::EncodingSet& 77 encoding::EncodingOption::EncodingSet::const_iterator iter
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/ |
OptionsMessage.java | 67 private Set<EncodingOption> mInputEncodings; 72 private Set<EncodingOption> mOutputEncodings; 78 mInputEncodings = new HashSet<EncodingOption>(); 79 mOutputEncodings = new HashSet<EncodingOption>(); 90 public void addInputEncoding(EncodingOption encoding) { 94 public void addOutputEncoding(EncodingOption encoding) { 98 public boolean supportsInputEncoding(EncodingOption encoding) { 102 public boolean supportsOutputEncoding(EncodingOption encoding) { 106 public Set<EncodingOption> getInputEncodingSet() { 107 return new HashSet<EncodingOption>(mInputEncodings) [all...] |
EncodingOption.java | 22 public class EncodingOption { 60 public EncodingOption(EncodingType type, int symbolLength) { 84 if (!(obj instanceof EncodingOption)) { 88 EncodingOption other = (EncodingOption) obj;
|
ConfigurationMessage.java | 28 private EncodingOption mEncoding; 35 public ConfigurationMessage(EncodingOption enc, 42 public EncodingOption getEncoding() {
|
/external/google-tv-pairing-protocol/cpp/tests/polo/pairing/ |
pairingsessiontest.cc | 118 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); 124 ASSERT_EQ(encoding::EncodingOption::kHexadecimal, 138 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); 152 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); 165 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); 171 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 1) [all...] |
clientpairingsessiontest.cc | 101 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); 123 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8); 144 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8);
|
serverpairingsessiontest.cc | 118 encoding::EncodingOption encoding(encoding::EncodingOption::kHexadecimal, 8);
|
/external/google-tv-pairing-protocol/cpp/src/polo/wire/protobuf/ |
protobufwireadapter.cc | 76 encoding::EncodingOption::EncodingSet::const_iterator iter; 80 encoding::EncodingOption option = *iter; 89 encoding::EncodingOption option = *iter; 237 encoding::EncodingOption encoding( 273 encoding::EncodingOption option(EncodingTypeFromProto(encoding.type()), 281 encoding::EncodingOption option(EncodingTypeFromProto(encoding.type()), 416 encoding::EncodingOption::EncodingType type) { 418 case encoding::EncodingOption::kAlphaNumeric: 420 case encoding::EncodingOption::kHexadecimal: 422 case encoding::EncodingOption::kNumeric [all...] |
protobufwireadapter.h | 126 encoding::EncodingOption::EncodingType type); 130 encoding::EncodingOption::EncodingType EncodingTypeFromProto(
|
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/ |
pairingsession.h | 67 void AddInputEncoding(const encoding::EncodingOption& encoding); 71 void AddOutputEncoding(const encoding::EncodingOption& encoding); 171 bool IsValidEncodingOption(const encoding::EncodingOption& option) const;
|
pairingsession.cc | 61 const encoding::EncodingOption& encoding) { 76 const encoding::EncodingOption& encoding) { 186 const encoding::EncodingOption& encoding = message.encoding(); 199 case encoding::EncodingOption::kHexadecimal: 307 const encoding::EncodingOption& option) const { 309 return option.encoding_type() != encoding::EncodingOption::kUnknown
|
serverpairingsession.cc | 77 const encoding::EncodingOption& encoding = message.encoding();
|
/external/google-tv-pairing-protocol/cpp/tests/polo/wire/protobuf/ |
protobufwireadaptertest.cc | 142 encoding::EncodingOption(encoding::EncodingOption::kQRCode, 64), 204 encoding::EncodingOption(encoding::EncodingOption::kNumeric, 16)); 206 encoding::EncodingOption(encoding::EncodingOption::kAlphaNumeric, 32)); 208 encoding::EncodingOption(encoding::EncodingOption::kHexadecimal, 128)); 210 encoding::EncodingOption(encoding::EncodingOption::kQRCode, 512)) [all...] |
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/ |
ProtobufWireAdapter.java | 27 import com.google.polo.pairing.message.EncodingOption; 343 for (EncodingOption enc : poloMessage.getOutputEncodingSet()) { 350 for (EncodingOption enc : poloMessage.getInputEncodingSet()) { 369 * Converts a {@link EncodingOption} to a {@link PoloProto.Options.Encoding}. 371 private PoloProto.Options.Encoding toProto(EncodingOption enc) { 515 EncodingOption enc = fromProto(protoMessage.encoding); 553 * Converts a {@link PoloProto.Options.Encoding} to a {@link EncodingOption}. 555 private EncodingOption fromProto(PoloProto.Options.Encoding enc) { 556 EncodingOption.EncodingType type; 560 type = EncodingOption.EncodingType.ENCODING_ALPHANUMERIC [all...] |
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
ServerPairingSession.java | 23 import com.google.polo.pairing.message.EncodingOption; 88 EncodingOption encoding = mSessionConfig.getEncoding();
|
PairingSession.java | 27 import com.google.polo.pairing.message.EncodingOption; 310 * @param encoding the {@link EncodingOption} to add 312 public void addInputEncoding(EncodingOption encoding) { 335 * @param encoding the {@link EncodingOption} to add 337 public void addOutputEncoding(EncodingOption encoding) { 360 * {@link PairingSession#addInputEncoding(EncodingOption)} and 361 * {@link PairingSession#addOutputEncoding(EncodingOption)},
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/ |
JsonMessageBuilder.java | 28 import com.google.polo.pairing.message.EncodingOption; 29 import com.google.polo.pairing.message.EncodingOption.EncodingType; 93 // EncodingOption JSON key names 256 EncodingOption encoding = getEncodingOption( 312 * Generates a new {@link EncodingOption} from a JSON sub-dictionary. 315 * @return the new {@link EncodingOption} 318 static EncodingOption getEncodingOption(JSONObject option) 323 return new EncodingOption(type, length); 453 for (EncodingOption encoding : message.getInputEncodingSet()) { 459 for (EncodingOption encoding : message.getOutputEncodingSet()) [all...] |
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/ |
XmlMessageBuilder.java | 28 import com.google.polo.pairing.message.EncodingOption; 29 import com.google.polo.pairing.message.EncodingOption.EncodingType; 80 // EncodingOption XML key names 316 EncodingOption encoding = getEncodingOption( 368 * Generates a new {@link EncodingOption} from a JSON sub-dictionary. 371 * @return the new {@link EncodingOption} 374 EncodingOption getEncodingOption(JSONObject option) throws JSONException { 378 return new EncodingOption(type, length); 513 for (EncodingOption encoding : message.getInputEncodingSet()) { 521 for (EncodingOption encoding : message.getOutputEncodingSet()) [all...] |