Home
last modified time | relevance | path

Searched refs:outerMessage (Results 1 – 5 of 5) sorted by relevance

/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/
DProtobufWireAdapter.java225 OuterMessage outerMessage = new OuterMessage(); in wrapInnerMessage() local
226 outerMessage.status = OuterMessage.STATUS_OK; in wrapInnerMessage()
227 outerMessage.protocolVersion = 1; in wrapInnerMessage()
228 outerMessage.type = type; in wrapInnerMessage()
229 outerMessage.payload = MessageNano.toByteArray(message); in wrapInnerMessage()
230 return outerMessage; in wrapInnerMessage()
253 OuterMessage outerMessage = wrapInnerMessage(pb); in sendMessage() local
254 writeMessage(outerMessage); in sendMessage()
261 OuterMessage outerMessage = new OuterMessage(); in sendErrorMessage() local
262 outerMessage.protocolVersion = 1; in sendErrorMessage()
[all …]
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/
DJsonWireAdapter.java90 JSONObject outerMessage; in parseOuterMessageString() local
92 outerMessage = new JSONObject(outerString); in parseOuterMessageString()
96 return JsonMessageBuilder.outerJsonToPoloMessage(outerMessage); in parseOuterMessageString()
DJsonMessageBuilder.java112 public static PoloMessage outerJsonToPoloMessage(JSONObject outerMessage) in outerJsonToPoloMessage() argument
119 status = outerMessage.getInt(OUTER_FIELD_STATUS); in outerJsonToPoloMessage()
123 payload = outerMessage.getJSONObject(OUTER_FIELD_PAYLOAD); in outerJsonToPoloMessage()
124 int msgIntVal = outerMessage.getInt(OUTER_FIELD_TYPE); in outerJsonToPoloMessage()
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/
DXmlWireAdapter.java74 XmlMessageWrapper outerMessage = in getNextMessage() local
78 debug(HexDump.dumpHexString(outerMessage.serializeToByteArray())); in getNextMessage()
81 String outerXML = new String(outerMessage.getPayload()); in getNextMessage()
DXmlMessageBuilder.java129 JSONObject outerMessage; in outerXMLToPoloMessage() local
131 outerMessage = XML.toJSONObject(outerXml); in outerXMLToPoloMessage()
139 payload = outerMessage.getJSONObject(OUTER_FIELD_PAYLOAD); in outerXMLToPoloMessage()
152 if (outerMessage.has("msg_id")) { in outerXMLToPoloMessage()
154 mLastMessageId = outerMessage.getString("msg_id"); in outerXMLToPoloMessage()