Lines Matching refs:file
173 for (const sp<ReportFile>& file: files) { in sendBroadcasts() local
174 err = file->loadEnvelope(); in sendBroadcasts()
177 file->getEnvelopeFileName().c_str()); in sendBroadcasts()
181 const ReportFileProto& envelope = file->getEnvelope(); in sendBroadcasts()
185 file->getEnvelopeFileName().c_str()); in sendBroadcasts()
205 if (!was_ready_sent(file->getId(), report.pkg(), report.cls())) { in sendBroadcasts()
210 err = send_to_dropbox(file, args); 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()
231 lastSent = file->getTimestampNs(); in sendBroadcasts()
330 sp<ReportFile> file = mWorkDirectory->getReport(reportId.pkg, reportId.cls, reportId.id, in report_approved() local
332 if (file != nullptr) { in report_approved()
333 err = file->loadEnvelope(); in report_approved()
338 err = file->markApproved(reportId.pkg, reportId.cls); in report_approved()
345 file->saveEnvelope(); in report_approved()
357 sp<ReportFile> file = mWorkDirectory->getReport(reportId.pkg, reportId.cls, reportId.id, in report_denied() local
359 if (file != nullptr) { in report_denied()
360 mWorkDirectory->commit(file, reportId.pkg, reportId.cls); in report_denied()
385 status_t Broadcaster::send_to_dropbox(const sp<ReportFile>& file, in send_to_dropbox() argument
397 ALOGW("Error opening pipe to filter incident report: %s", file->getDataFileName().c_str()); in send_to_dropbox()
405 thread th([file, writeFd, args]() { file->startFilteringData(writeFd, args); }); in send_to_dropbox()
419 mWorkDirectory->commit(file, DROPBOX_SENTINEL.getPackageName(), in send_to_dropbox()