OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:outerMessage
(Results
1 - 5
of
5
) sorted by null
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/
ProtobufWireAdapter.java
35
import com.google.polo.wire.protobuf.PoloProto.
OuterMessage
;
118
* @return the next
OuterMessage
read from the wire
121
private
OuterMessage
readNextOuterMessage() throws IOException, PoloException {
130
OuterMessage
message =
OuterMessage
.parseFrom(messageBuffer);
132
if (message.status !=
OuterMessage
.STATUS_OK) {
149
OuterMessage
message = readNextOuterMessage();
153
if (message.type ==
OuterMessage
.MESSAGE_TYPE_OPTIONS) {
155
} else if (message.type ==
OuterMessage
.MESSAGE_TYPE_PAIRING_REQUEST) {
157
} else if (message.type ==
OuterMessage
.MESSAGE_TYPE_PAIRING_REQUEST_ACK)
[
all
...]
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/
JsonWireAdapter.java
90
JSONObject
outerMessage
;
92
outerMessage
= new JSONObject(outerString);
96
return JsonMessageBuilder.outerJsonToPoloMessage(
outerMessage
);
JsonMessageBuilder.java
54
* Status types. These match the values defined by
OuterMessage
.MessageType
67
//
OuterMessage
JSON key names
107
* @param
outerMessage
a {@link JSONObject} corresponding to the
112
public static PoloMessage outerJsonToPoloMessage(JSONObject
outerMessage
)
119
status =
outerMessage
.getInt(OUTER_FIELD_STATUS);
123
payload =
outerMessage
.getJSONObject(OUTER_FIELD_PAYLOAD);
124
int msgIntVal =
outerMessage
.getInt(OUTER_FIELD_TYPE);
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/
XmlWireAdapter.java
74
XmlMessageWrapper
outerMessage
=
78
debug(HexDump.dumpHexString(
outerMessage
.serializeToByteArray()));
81
String outerXML = new String(
outerMessage
.getPayload());
XmlMessageBuilder.java
52
*
OuterMessage
.MessageType in polo.proto.
62
//
OuterMessage
XML key names
129
JSONObject
outerMessage
;
131
outerMessage
= XML.toJSONObject(outerXml);
139
payload =
outerMessage
.getJSONObject(OUTER_FIELD_PAYLOAD);
152
if (
outerMessage
.has("msg_id")) {
154
mLastMessageId =
outerMessage
.getString("msg_id");
Completed in 42 milliseconds