Lines Matching refs:pkg
57 pkg(), in ReportId()
63 pkg(that.pkg), in ReportId()
69 pkg(p), in ReportId()
83 if (pkg < that.pkg) { in operator <()
86 if (pkg > that.pkg) { in operator <()
129 void Broadcaster::clearBroadcasts(const string& pkg, const string& cls, const string& id) { in clearBroadcasts() argument
132 map<ReportId,ReportStatus>::const_iterator found = mHistory.find(ReportId(id, pkg, cls)); in clearBroadcasts()
144 void Broadcaster::clearPackageBroadcasts(const string& pkg) { in clearPackageBroadcasts() argument
149 if (it->first.pkg == pkg) { in clearPackageBroadcasts()
205 if (!was_ready_sent(file->getId(), report.pkg(), report.cls())) { in sendBroadcasts()
206 if (report.pkg() == DROPBOX_SENTINEL.getPackageName() in sendBroadcasts()
215 reportReadyBroadcasts.insert(ReportId(file->getId(), report.pkg(), in sendBroadcasts()
221 if (!was_approval_sent(file->getId(), report.pkg(), report.cls())) { in sendBroadcasts()
222 err = send_approval_broadcasts(file->getId(), report.pkg(), report.cls()); in sendBroadcasts()
238 err = send_report_ready_broadcasts(report.id, report.pkg, report.cls); in sendBroadcasts()
269 bool Broadcaster::was_approval_sent(const string& id, const string& pkg, const string& cls) { in was_approval_sent() argument
271 map<ReportId,ReportStatus>::const_iterator found = mHistory.find(ReportId(id, pkg, cls)); in was_approval_sent()
278 void Broadcaster::set_approval_sent(const string& id, const string& pkg, const string& cls, in set_approval_sent() argument
281 ReportStatus& reportStatus = mHistory[ReportId(id, pkg, cls)]; in set_approval_sent()
286 bool Broadcaster::was_ready_sent(const string& id, const string& pkg, const string& cls) { in was_ready_sent() argument
288 map<ReportId,ReportStatus>::const_iterator found = mHistory.find(ReportId(id, pkg, cls)); in was_ready_sent()
295 void Broadcaster::set_ready_sent(const string& id, const string& pkg, const string& cls) { in set_ready_sent() argument
297 mHistory[ReportId(id, pkg, cls)].ready_sent = true; in set_ready_sent()
300 status_t Broadcaster::send_approval_broadcasts(const string& id, const string& pkg, in send_approval_broadcasts() argument
307 sp<ConsentListener> listener = new ConsentListener(this, ReportId(id, pkg, cls)); in send_approval_broadcasts()
309 ALOGI("send_approval_broadcasts for %s %s/%s", id.c_str(), pkg.c_str(), cls.c_str()); in send_approval_broadcasts()
311 Status status = ics->authorizeReport(0, String16(pkg.c_str()), in send_approval_broadcasts()
319 set_approval_sent(id, pkg, cls, listener); in send_approval_broadcasts()
329 reportId.id.c_str(), reportId.pkg.c_str(), reportId.cls.c_str()); in report_approved()
330 sp<ReportFile> file = mWorkDirectory->getReport(reportId.pkg, reportId.cls, reportId.id, in report_approved()
338 err = file->markApproved(reportId.pkg, reportId.cls); in report_approved()
341 reportId.id.c_str(), reportId.pkg.c_str(), reportId.cls.c_str()); in report_approved()
356 reportId.id.c_str(), reportId.pkg.c_str(), reportId.cls.c_str()); in report_denied()
357 sp<ReportFile> file = mWorkDirectory->getReport(reportId.pkg, reportId.cls, reportId.id, in report_denied()
360 mWorkDirectory->commit(file, reportId.pkg, reportId.cls); in report_denied()
364 status_t Broadcaster::send_report_ready_broadcasts(const string& id, const string& pkg, in send_report_ready_broadcasts() argument
371 ALOGI("send_report_ready_broadcasts for %s %s/%s", id.c_str(), pkg.c_str(), cls.c_str()); in send_report_ready_broadcasts()
373 Status status = ics->sendReportReadyBroadcast(String16(pkg.c_str()), String16(cls.c_str())); in send_report_ready_broadcasts()
380 set_ready_sent(id, pkg, cls); in send_report_ready_broadcasts()