Lines Matching refs:notify

87             const sp<AMessage> &notify);
137 void notify(NotificationReason reason);
164 const sp<AMessage> &notify)
169 mNotify(notify),
297 sp<AMessage> notify = mNotify->dup();
298 notify->setInt32("sessionID", mSessionID);
299 notify->setInt32("reason", kWhatDatagram);
302 notify->setString(
311 notify->setInt32("fromPort", ntohs(remoteAddr.sin_port));
313 notify->setBuffer("data", buf);
314 notify->post();
376 sp<AMessage> notify = mNotify->dup();
377 notify->setInt32("sessionID", mSessionID);
378 notify->setInt32("reason", kWhatDatagram);
379 notify->setBuffer("data", packet);
380 notify->post();
399 sp<AMessage> notify = mNotify->dup();
400 notify->setInt32("sessionID", mSessionID);
401 notify->setInt32("reason", kWhatBinaryData);
402 notify->setInt32("channel", mInBuffer.c_str()[1]);
410 notify->setBuffer("data", data);
411 notify->post();
425 sp<AMessage> notify = mNotify->dup();
426 notify->setInt32("sessionID", mSessionID);
427 notify->setInt32("reason", kWhatData);
428 notify->setObject("data", msg);
429 notify->post();
505 sp<AMessage> notify = mNotify->dup();
506 notify->setInt32("sessionID", mSessionID);
507 notify->setInt32("reason", kWhatWebSocketMessage);
508 notify->setBuffer("data", packet);
509 notify->setInt32("headerByte", data[0]);
510 notify->post();
618 notify(kWhatConnected);
791 void ANetworkSession::Session::notify(NotificationReason reason) {
856 const char *host, unsigned port, const sp<AMessage> &notify,
864 notify,
870 const sp<AMessage> &notify, int32_t *sessionID) {
877 notify,
882 unsigned localPort, const sp<AMessage> &notify, int32_t *sessionID) {
883 return createUDPSession(localPort, NULL, 0, notify, sessionID);
890 const sp<AMessage> &notify,
898 notify,
904 const sp<AMessage> &notify, int32_t *sessionID) {
911 notify,
919 const sp<AMessage> &notify,
927 notify,
968 const sp<AMessage> &notify,
1143 notify);