Home
last modified time | relevance | path

Searched refs:ReportFile (Results 1 – 7 of 7) sorted by relevance

/aosp12/frameworks/base/cmds/incidentd/src/
H A DWorkDirectory.cpp248 ReportFile::ReportFile(const sp<WorkDirectory>& workDirectory, int64_t timestampNs, in ReportFile() function in android::os::incidentd::ReportFile
261 ReportFile::~ReportFile() { in ~ReportFile()
336 void ReportFile::markCompleted() { in markCompleted()
356 status_t ReportFile::saveEnvelope() { in saveEnvelope()
389 void ReportFile::closeDataFile() { in closeDataFile()
486 int ReportFile::getDataFileFd() { in getDataFileFd()
498 string ReportFile::getId() { in getId()
558 sp<ReportFile> result = new ReportFile(this, timestampNs, envelopeFileName, dataFileName); in createReportFile()
582 sp<ReportFile> reportFile = new ReportFile(this, it->second.timestampNs, in getReports()
603 sp<ReportFile> result = new ReportFile(this, timestampNs, in getReport()
[all …]
H A DWorkDirectory.h48 class ReportFile : public virtual RefBase {
50 ReportFile(const sp<WorkDirectory>& workDirectory, int64_t timestampNs,
53 virtual ~ReportFile();
214 sp<ReportFile> createReportFile();
221 status_t getReports(vector<sp<ReportFile>>* files, int64_t after);
228 sp<ReportFile> getReport(const string& pkg, const string& cls, const string& id,
241 void commit(const sp<ReportFile>& report, const string& pkg, const string& cls);
252 void remove(const sp<ReportFile>& report);
267 void delete_files_for_report_if_necessary(const sp<ReportFile>& report);
H A DReporter.h197 void setPersistedFile(sp<ReportFile> file);
217 sp<ReportFile> mPersistedFile;
274 sp<ReportFile> mPersistedFile;
H A DBroadcaster.cpp167 vector<sp<ReportFile>> files; in sendBroadcasts()
173 for (const sp<ReportFile>& file: files) { in sendBroadcasts()
330 sp<ReportFile> file = mWorkDirectory->getReport(reportId.pkg, reportId.cls, reportId.id, in report_approved()
357 sp<ReportFile> file = mWorkDirectory->getReport(reportId.pkg, reportId.cls, reportId.id, in report_denied()
385 status_t Broadcaster::send_to_dropbox(const sp<ReportFile>& file, in send_to_dropbox()
H A DIncidentService.cpp412 vector<sp<ReportFile>> all; in getIncidentReportList()
419 for (sp<ReportFile>& file: all) { in getIncidentReportList()
447 sp<ReportFile> file = mWorkDirectory->getReport(pkg, cls, id, &args); in getIncidentReport()
475 sp<ReportFile> file = mWorkDirectory->getReport(pkg, cls, id, nullptr); in deleteIncidentReports()
H A DReporter.cpp123 PersistedFilterFd(uint8_t privacyPolicy, int fd, const sp<ReportFile>& reportFile);
128 sp<ReportFile> mReportFile;
132 const sp<ReportFile>& reportFile) in PersistedFilterFd()
394 void ReportWriter::setPersistedFile(sp<ReportFile> file) { in setPersistedFile()
H A DBroadcaster.h114 status_t send_to_dropbox(const sp<ReportFile>& file, const IncidentReportArgs& args);