Home
last modified time | relevance | path

Searched refs:stanza (Results 1 – 25 of 64) sorted by relevance

123

/external/webrtc/webrtc/libjingle/xmpp/
Dpresencereceivetask.cc32 const XmlElement * stanza = NextStanza(); in ProcessStart() local
33 if (stanza == NULL) { in ProcessStart()
37 Jid from(stanza->Attr(QN_FROM)); in ProcessStart()
38 HandlePresence(from, stanza); in ProcessStart()
43 bool PresenceReceiveTask::HandleStanza(const XmlElement * stanza) { in HandleStanza() argument
45 if (stanza->Name() != QN_PRESENCE) { in HandleStanza()
50 QueueStanza(stanza); in HandleStanza()
56 const XmlElement* stanza) { in HandlePresence() argument
57 if (stanza->Attr(QN_TYPE) == STR_ERROR) { in HandlePresence()
62 DecodeStatus(from, stanza, &status); in HandlePresence()
[all …]
Dxmpptask.cc49 XmppReturnStatus XmppTask::SendStanza(const XmlElement* stanza) { in SendStanza() argument
52 return GetClient()->SendStanza(stanza); in SendStanza()
72 void XmppTask::QueueStanza(const XmlElement* stanza) { in QueueStanza() argument
78 stanza_queue_.push_back(new XmlElement(*stanza)); in QueueStanza()
115 bool XmppTask::MatchResponseIq(const XmlElement* stanza, in MatchResponseIq() argument
118 if (stanza->Name() != QN_IQ) in MatchResponseIq()
121 if (stanza->Attr(QN_ID) != id) in MatchResponseIq()
124 return MatchStanzaFrom(stanza, to); in MatchResponseIq()
127 bool XmppTask::MatchStanzaFrom(const XmlElement* stanza, in MatchStanzaFrom() argument
129 Jid from(stanza->Attr(QN_FROM)); in MatchStanzaFrom()
[all …]
Diqtask.cc37 bool IqTask::HandleStanza(const buzz::XmlElement* stanza) { in HandleStanza() argument
38 if (!MatchResponseIq(stanza, to_, task_id())) in HandleStanza()
41 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT && in HandleStanza()
42 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) { in HandleStanza()
46 QueueStanza(stanza); in HandleStanza()
51 const buzz::XmlElement* stanza = NextStanza(); in ProcessResponse() local
52 if (stanza == NULL) in ProcessResponse()
55 bool success = (stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT); in ProcessResponse()
57 HandleResult(stanza); in ProcessResponse()
59 SignalError(this, stanza->FirstNamed(QN_ERROR)); in ProcessResponse()
Dpubsubtasks.cc26 bool IsPubSubEventItemsElem(const XmlElement* stanza, in IsPubSubEventItemsElem() argument
28 if (stanza->Name() != QN_MESSAGE) { in IsPubSubEventItemsElem()
32 const XmlElement* event_elem = stanza->FirstNamed(QN_PUBSUB_EVENT); in IsPubSubEventItemsElem()
107 void ParseEventItemsElem(const XmlElement* stanza, in ParseEventItemsElem() argument
109 const XmlElement* event_elem = stanza->FirstNamed(QN_PUBSUB_EVENT); in ParseEventItemsElem()
130 void ParsePubSubItemsElem(const XmlElement* stanza, in ParsePubSubItemsElem() argument
132 const XmlElement* pubsub_elem = stanza->FirstNamed(QN_PUBSUB); in ParsePubSubItemsElem()
153 void PubSubRequestTask::HandleResult(const XmlElement* stanza) { in HandleResult() argument
155 ParsePubSubItemsElem(stanza, &items); in HandleResult()
166 bool PubSubReceiveTask::WantsStanza(const XmlElement* stanza) { in WantsStanza() argument
[all …]
Dpingtask.cc32 bool PingTask::HandleStanza(const buzz::XmlElement* stanza) { in HandleStanza() argument
33 if (!MatchResponseIq(stanza, Jid(STR_EMPTY), task_id())) { in HandleStanza()
37 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT && in HandleStanza()
38 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) { in HandleStanza()
42 QueueStanza(stanza); in HandleStanza()
53 const buzz::XmlElement* stanza = NextStanza(); in ProcessStart() local
54 if (stanza != NULL) { in ProcessStart()
69 rtc::scoped_ptr<buzz::XmlElement> stanza( in ProcessStart() local
71 stanza->AddElement(new buzz::XmlElement(QN_PING)); in ProcessStart()
72 SendStanza(stanza.get()); in ProcessStart()
Dpubsub_task.cc32 bool PubsubTask::HandleStanza(const buzz::XmlElement* stanza) { in HandleStanza() argument
33 const buzz::QName& stanza_name(stanza->Name()); in HandleStanza()
35 if (MatchStanzaFrom(stanza, pubsub_node_jid_)) { in HandleStanza()
37 stanza->FirstNamed(QN_PUBSUB_EVENT); in HandleStanza()
44 if (MatchResponseIq(stanza, pubsub_node_jid_, task_id())) { in HandleStanza()
45 const buzz::XmlElement* pubsub_item = stanza->FirstNamed(QN_PUBSUB); in HandleStanza()
56 const buzz::XmlElement* stanza = NextStanza(); in ProcessResponse() local
57 if (stanza == NULL) { in ProcessResponse()
61 if (stanza->Attr(buzz::QN_TYPE) == buzz::STR_ERROR) { in ProcessResponse()
62 OnPubsubError(stanza->FirstNamed(buzz::QN_ERROR)); in ProcessResponse()
[all …]
Djingleinfotask.cc42 virtual bool HandleStanza(const XmlElement * stanza) { in HandleStanza() argument
43 if (!MatchResponseIq(stanza, Jid(), task_id())) in HandleStanza()
46 if (stanza->Attr(QN_TYPE) != STR_RESULT) in HandleStanza()
51 parent->QueueStanza(stanza); in HandleStanza()
69 JingleInfoTask::HandleStanza(const XmlElement * stanza) { in HandleStanza() argument
70 if (!MatchRequestIq(stanza, "set", QN_JINGLE_INFO_QUERY)) in HandleStanza()
74 Jid from(stanza->Attr(QN_FROM)); in HandleStanza()
80 QueueStanza(stanza); in HandleStanza()
89 const XmlElement * stanza = NextStanza(); in ProcessStart() local
90 if (stanza == NULL) in ProcessStart()
[all …]
Dreceivetask.cc16 bool ReceiveTask::HandleStanza(const XmlElement* stanza) { in HandleStanza() argument
17 if (WantsStanza(stanza)) { in HandleStanza()
18 QueueStanza(stanza); in HandleStanza()
26 const XmlElement* stanza = NextStanza(); in ProcessStart() local
27 if (stanza == NULL) in ProcessStart()
30 ReceiveStanza(stanza); in ProcessStart()
Dhangoutpubsubclient.cc190 PubSubClient* client, const XmlElement* stanza) { in OnPresenterRequestError() argument
191 SignalRequestError(client->node(), stanza); in OnPresenterRequestError()
195 PubSubClient* client, const XmlElement* stanza) { in OnMediaRequestError() argument
196 SignalRequestError(client->node(), stanza); in OnMediaRequestError()
250 const XmlElement* stanza) { in OnPresenterPublishError() argument
251 SignalPublishPresenterError(task_id, stanza); in OnPresenterPublishError()
312 const XmlElement* stanza) { in OnAudioMutePublishError() argument
315 SignalRemoteMuteError(task_id, mutee_nick, stanza); in OnAudioMutePublishError()
317 SignalPublishAudioMuteError(task_id, stanza); in OnAudioMutePublishError()
334 const XmlElement* stanza) { in OnVideoMutePublishError() argument
[all …]
Dpubsubclient.cc74 const XmlElement* stanza) { in OnRequestError() argument
75 SignalRequestError(this, stanza); in OnRequestError()
83 const XmlElement* GetItemFromStanza(const XmlElement* stanza) { in GetItemFromStanza() argument
84 if (stanza != NULL) { in GetItemFromStanza()
85 const XmlElement* pubsub = stanza->FirstNamed(QN_PUBSUB); in GetItemFromStanza()
97 const XmlElement* item = GetItemFromStanza(task->stanza()); in OnPublishResult()
105 const XmlElement* item = GetItemFromStanza(publish_task->stanza()); in OnPublishError()
114 const XmlElement* stanza) { in OnRetractError() argument
117 SignalRetractError(this, retract_task->task_id(), stanza); in OnRetractError()
Drostermoduleimpl.cc803 XmppRosterModuleImpl::IqResponse(XmppIqCookie, const XmlElement * stanza) { in IqResponse() argument
806 if (stanza->Attr(QN_TYPE) == "error") in IqResponse()
809 roster_handler_->RosterError(this, stanza); in IqResponse()
814 ASSERT(stanza->Attr(QN_TYPE) == "result"); in IqResponse()
816 InternalRosterItems(stanza); in IqResponse()
820 XmppRosterModuleImpl::HandleStanza(const XmlElement * stanza) in HandleStanza() argument
826 if (stanza->Name() == QN_PRESENCE) { in HandleStanza()
827 const std::string& jid_string = stanza->Attr(QN_FROM); in HandleStanza()
833 const std::string& type = stanza->Attr(QN_TYPE); in HandleStanza()
836 InternalSubscriptionRequest(jid, stanza, request_type); in HandleStanza()
[all …]
Dfakexmppclient.h55 virtual XmppReturnStatus SendStanza(const XmlElement* stanza) { in SendStanza() argument
56 sent_stanzas_.push_back(stanza); in SendStanza()
87 void HandleStanza(XmlElement* stanza) { in HandleStanza() argument
90 if ((*task)->HandleStanza(stanza)) { in HandleStanza()
91 delete stanza; in HandleStanza() local
95 delete stanza; in HandleStanza() local
Dxmpptask.h62 virtual XmppReturnStatus SendStanza(const XmlElement* stanza) = 0;
126 virtual bool HandleStanza(const XmlElement* stanza) { return false; } in HandleStanza() argument
129 XmppReturnStatus SendStanza(const XmlElement* stanza);
138 virtual void QueueStanza(const XmlElement* stanza);
141 bool MatchStanzaFrom(const XmlElement* stanza, const Jid& match_jid);
143 bool MatchResponseIq(const XmlElement* stanza, const Jid& to,
146 static bool MatchRequestIq(const XmlElement* stanza, const std::string& type,
Dhangoutpubsubclient.h124 const XmlElement* stanza);
126 const XmlElement* stanza);
133 const XmlElement* stanza);
139 const XmlElement* stanza);
145 const XmlElement* stanza);
151 const XmlElement* stanza);
157 const XmlElement* stanza);
163 const XmlElement* stanza);
Dxmppengineimpl.cc280 void XmppEngineImpl::IncomingStanza(const XmlElement* stanza) { in IncomingStanza() argument
284 if (stanza->Name() == QN_STREAM_ERROR) { in IncomingStanza()
286 SignalStreamError(stanza); in IncomingStanza()
289 login_task_->IncomingStanza(stanza, false); in IncomingStanza()
292 } else if (HandleIqResponse(stanza)) { in IncomingStanza()
297 (*stanza_handlers_[HL_PEEK])[i]->HandleStanza(stanza); in IncomingStanza()
303 if ((*stanza_handlers_[level])[i]->HandleStanza(stanza)) in IncomingStanza()
311 std::string type = stanza->Attr(QN_TYPE); in IncomingStanza()
312 if (stanza->Name() == QN_IQ && in IncomingStanza()
314 SendStanzaError(stanza, XSE_FEATURE_NOT_IMPLEMENTED, STR_EMPTY); in IncomingStanza()
Dpubsubtasks.h42 virtual void HandleResult(const XmlElement* stanza);
62 virtual bool WantsStanza(const XmlElement* stanza);
63 virtual void ReceiveStanza(const XmlElement* stanza);
87 virtual void HandleResult(const XmlElement* stanza);
107 virtual void HandleResult(const XmlElement* stanza);
Dxmppengineimpl.h136 virtual XmppReturnStatus SendStanza(const XmlElement* stanza);
143 virtual XmppReturnStatus SendIq(const XmlElement* stanza,
173 void IncomingStanza(const XmlElement *stanza);
174 void IncomingStart(const XmlElement *stanza);
178 void InternalSendStanza(const XmlElement* stanza);
199 virtual void Stanza(const XmlElement* stanza) { in Stanza() argument
200 outer_->IncomingStanza(stanza); in Stanza()
Dreceivetask.h31 virtual bool HandleStanza(const XmlElement* stanza);
34 virtual bool WantsStanza(const XmlElement* stanza) = 0;
36 virtual void ReceiveStanza(const XmlElement* stanza) = 0;
Dmucroomlookuptask.cc118 void MucRoomLookupTask::HandleResult(const XmlElement* stanza) { in HandleResult() argument
119 const XmlElement* query_elem = stanza->FirstNamed(QN_SEARCH_QUERY); in HandleResult()
121 SignalError(this, stanza); in HandleResult()
127 SignalError(this, stanza); in HandleResult()
134 SignalError(this, stanza); in HandleResult()
Dpingtask_unittest.cc30 buzz::XmppReturnStatus SendStanza(const buzz::XmlElement* stanza);
66 const buzz::XmlElement* stanza) { in SendStanza() argument
67 buzz::XmppReturnStatus result = FakeXmppClient::SendStanza(stanza); in SendStanza()
68 if (test->respond_to_pings && (stanza->FirstNamed(buzz::QN_PING) != NULL)) { in SendStanza()
Dpresencereceivetask.h41 virtual bool HandleStanza(const XmlElement * stanza);
46 void HandlePresence(const Jid& from, const XmlElement * stanza);
50 static void DecodeStatus(const Jid& from, const XmlElement * stanza,
Dmucroomuniquehangoutidtask.cc37 void MucRoomUniqueHangoutIdTask::HandleResult(const XmlElement* stanza) { in HandleResult() argument
39 const XmlElement* unique_elem = stanza->FirstNamed(QN_MUC_UNIQUE_QUERY); in HandleResult()
42 SignalError(this, stanza); in HandleResult()
Drostermoduleimpl.h248 virtual void IqResponse(XmppIqCookie cookie, const XmlElement * stanza);
264 void InternalSubscriptionRequest(const Jid& jid, const XmlElement* stanza,
266 void InternalIncomingPresence(const Jid& jid, const XmlElement* stanza);
267 void InternalIncomingPresenceError(const Jid& jid, const XmlElement* stanza);
268 void InternalRosterItems(const XmlElement* stanza);
Dpubsubclient.h92 const XmlElement* stanza);
99 const XmlElement* stanza);
102 const XmlElement* stanza);
/external/autotest/client/cros/cellular/
Dbase_station_8960.py154 stanza = ['CALL:MS:DNSServer:PRIMary:IP:ADDRess "%s"' % dns1]
156 stanza.append('CALL:MS:DNSServer:SECondary:IP:ADDRess "%s"' % dns2)
157 self.c.SendStanza(stanza)
163 stanza = ['CALL:MS:IP:ADDRess1 "%s"' % ip1]
165 stanza.append('CALL:MS:IP:ADDRess2 "%s"' % ip2)
166 self.c.SendStanza(stanza)

123