Home | History | Annotate | Download | only in libloc_api_50001

Lines Matching refs:notification

58     Notification* notification = (Notification*)fromCaller;
61 return s1->forMe(*notification);
67 // fromCaller -- caller provides this ptr to a Notification obj.
71 Notification* notification = (Notification*)fromCaller;
75 // each subscriber decides if this notification is interesting.
76 return s1->notifyRsrcStatus(*notification) &&
80 notification->postNotifyDelete;
84 // Notification
86 const int Notification::BROADCAST_ALL = 0x80000000;
87 const int Notification::BROADCAST_ACTIVE = 0x80000001;
88 const int Notification::BROADCAST_INACTIVE = 0x80000002;
94 bool Subscriber::forMe(Notification &notification)
96 if (NULL != notification.rcver) {
97 return equals(notification.rcver);
99 return Notification::BROADCAST_ALL == notification.groupID ||
100 (Notification::BROADCAST_ACTIVE == notification.groupID &&
102 (Notification::BROADCAST_INACTIVE == notification.groupID &&
115 bool BITSubscriber::notifyRsrcStatus(Notification &notification)
117 bool notify = forMe(notification);
120 switch(notification.rsrcStatus)
146 bool ATLSubscriber::notifyRsrcStatus(Notification &notification)
148 bool notify = forMe(notification);
151 switch(notification.rsrcStatus)
185 bool WIFISubscriber::notifyRsrcStatus(Notification &notification)
187 bool notify = forMe(notification);
190 switch(notification.rsrcStatus)
216 bool DSSubscriber::notifyRsrcStatus(Notification &notification)
218 bool notify = forMe(notification);
221 switch(notification.rsrcStatus) {
226 ((DSStateMachine *)mStateMachine)->informStatus(notification.rsrcStatus, ID);
272 // no notification until we get RSRC_GRANTED
292 Notification notification(subscriber, event, false);
293 subscriber->notifyRsrcStatus(notification);
348 Notification notification(subscriber, event, true);
349 mStateMachine->notifySubscribers(notification);
372 Notification notification(Notification::BROADCAST_ACTIVE, event, false);
375 mStateMachine->notifySubscribers(notification);
388 Notification notification(Notification::BROADCAST_ALL, event, true);
391 mStateMachine->notifySubscribers(notification);
432 Notification notification(subscriber, RSRC_GRANTED, false);
433 subscriber->notifyRsrcStatus(notification);
447 Notification notification(subscriber, event, true);
448 mStateMachine->notifySubscribers(notification);
477 Notification notification(Notification::BROADCAST_ALL, event, true);
479 mStateMachine->notifySubscribers(notification);
538 Notification notification(subscriber, event, true);
539 mStateMachine->notifySubscribers(notification);
555 Notification notification(Notification::BROADCAST_INACTIVE, event, true);
558 mStateMachine->notifySubscribers(notification);
715 void AgpsStateMachine::notifySubscribers(Notification& notification) const
717 if (notification.postNotifyDelete) {
727 (void*)&notification, true);
734 (void*)&notification, false);
741 Notification notification((const Subscriber*)subscriber);
743 hasSubscriber, (void*)&notification, false);
753 Notification notification(Notification::BROADCAST_ACTIVE);
755 (void*)&notification, false);
782 Notification notification(Notification::BROADCAST_ALL, RSRC_DENIED, true);
783 notifySubscriber(&notification, subscriber);
792 Notification notification((const Subscriber*)subscriber);
794 hasSubscriber, (void*)&notification, false);
806 Notification notification(Notification::BROADCAST_ACTIVE);
808 hasSubscriber, (void*)&notification, false);
841 Notification notification(Notification::BROADCAST_ACTIVE);
843 (void*)&notification, false);
859 Notification notification(Notification::BROADCAST_ACTIVE);
861 (void*)&notification, false);