OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SecretMessage
(Results
1 - 16
of
16
) sorted by null
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/message/
secretmessage.cc
15
#include "polo/pairing/message/
secretmessage
.h"
24
SecretMessage
::
SecretMessage
(const std::vector<uint8_t>& secret)
29
const std::vector<uint8_t>&
SecretMessage
::secret() const {
33
std::string
SecretMessage
::ToString() const {
35
ss << "[
SecretMessage
secret="
secretmessage.h
29
class
SecretMessage
: public PoloMessage {
33
explicit
SecretMessage
(const std::vector<uint8_t>& secret);
43
DISALLOW_COPY_AND_ASSIGN(
SecretMessage
);
messagelistener.h
25
#include "polo/pairing/message/
secretmessage
.h"
56
virtual void OnSecretMessage(const
SecretMessage
& message) = 0;
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/
SecretMessage.java
27
public class
SecretMessage
extends PoloMessage {
31
public
SecretMessage
(byte[] secret) {
57
if (!(obj instanceof
SecretMessage
)) {
61
SecretMessage
other = (
SecretMessage
) obj;
/external/google-tv-pairing-protocol/cpp/src/polo/wire/
polowireadapter.h
69
const pairing::message::
SecretMessage
& message) = 0;
/external/google-tv-pairing-protocol/cpp/tests/polo/wire/
mocks.h
52
void(const pairing::message::
SecretMessage
& message));
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/
JsonMessageBuilder.java
37
import com.google.polo.pairing.message.
SecretMessage
;
97
//
SecretMessage
JSON key names
277
* Generates a new {@link
SecretMessage
} from a JSON payload.
283
static
SecretMessage
getSecretMessage(JSONObject body) throws PoloException {
287
return new
SecretMessage
(secretBytes);
346
} else if (message instanceof
SecretMessage
) {
347
return toJson((
SecretMessage
) message);
491
* Translates a {@link
SecretMessage
} to a {@link JSONObject}.
495
static JSONObject toJson(
SecretMessage
message) throws JSONException {
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/
ProtobufWireAdapter.java
33
import com.google.polo.pairing.message.
SecretMessage
;
292
} else if (poloMessage instanceof
SecretMessage
) {
293
return toProto((
SecretMessage
) poloMessage);
421
* Converts a {@link
SecretMessage
} to a {@link PoloProto.Secret}.
423
private PoloProto.Secret toProto(
SecretMessage
poloMessage) {
539
* Converts a {@link PoloProto.Secret} to a {@link
SecretMessage
}.
541
private
SecretMessage
fromProto(PoloProto.Secret protoMessage) {
542
return new
SecretMessage
(protoMessage.secret);
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/
XmlMessageBuilder.java
37
import com.google.polo.pairing.message.
SecretMessage
;
86
//
SecretMessage
XML key names
339
* Generates a new {@link
SecretMessage
} from a JSON payload.
345
SecretMessage
getSecretMessage(JSONObject body) throws PoloException {
354
return new
SecretMessage
(secretBytes);
399
} else if (message instanceof
SecretMessage
) {
400
return toXML((
SecretMessage
) message);
556
* Translates a {@link
SecretMessage
} to an XML string.
560
String toXML(
SecretMessage
message) throws JSONException {
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
pairingsession.h
109
virtual void OnSecretMessage(const message::
SecretMessage
& message);
pairingsession.cc
115
message::
SecretMessage
secret_message(*gen_alpha);
216
void PairingSession::OnSecretMessage(const message::
SecretMessage
& message) {
/external/google-tv-pairing-protocol/cpp/src/polo/wire/protobuf/
protobufwireadapter.h
61
const pairing::message::
SecretMessage
& message);
protobufwireadapter.cc
131
const pairing::message::
SecretMessage
& message) {
332
LOG(ERROR) << "Invalid
SecretMessage
";
340
pairing::message::
SecretMessage
message(secret_bytes);
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
PairingSession.java
33
import com.google.polo.pairing.message.
SecretMessage
;
510
SecretMessage
secretMessage
= new
SecretMessage
(genAlpha);
511
mProtocol.sendMessage(
secretMessage
);
545
SecretMessage
secretMessage
=
546
(
SecretMessage
) getNextMessage(PoloMessageType.SECRET);
549
byte[] inbandAlpha =
secretMessage
.getSecret();
/external/google-tv-pairing-protocol/cpp/tests/polo/pairing/
pairingsessiontest.cc
57
void TestOnSecretMessage(const message::
SecretMessage
& message) {
256
message::
SecretMessage
message(alpha);
/external/google-tv-pairing-protocol/cpp/tests/polo/wire/protobuf/
protobufwireadaptertest.cc
50
void(const pairing::message::
SecretMessage
& message));
256
// Verifies that a
SecretMessage
is successfully sent over the interface.
277
pairing::message::
SecretMessage
message(secret);
Completed in 58 milliseconds