Lines Matching refs:ReportRequest
78 static bool contains_section(const sp<ReportRequest>& args, int sectionId) { in contains_section()
101 StreamingFilterFd(uint8_t privacyPolicy, int fd, const sp<ReportRequest>& request);
106 sp<ReportRequest> mRequest;
110 const sp<ReportRequest>& request) in StreamingFilterFd()
143 ReportRequest::ReportRequest(const IncidentReportArgs& a, in ReportRequest() function in android::os::incidentd::ReportRequest
153 ReportRequest::~ReportRequest() { in ~ReportRequest()
160 bool ReportRequest::ok() { in ok()
171 bool ReportRequest::containsSection(int sectionId) const { in containsSection()
175 void ReportRequest::closeFd() { in closeFd()
193 int ReportRequest::getFd() { in getFd()
197 status_t ReportRequest::initGzipIfNecessary() { in initGzipIfNecessary()
224 map<ComponentName, sp<ReportRequest>>::iterator found = mPersistedRequests.find(component); in addPersistedReport()
227 mPersistedRequests[component] = new ReportRequest(args, nullptr, -1); in addPersistedReport()
230 sp<ReportRequest> request = found->second; in addPersistedReport()
237 mStreamingRequests.push_back(new ReportRequest(args, listener, streamFd)); in addStreamingReport()
244 sp<ReportRequest> ReportBatch::getPersistedRequest(const ComponentName& component) { in getPersistedRequest()
245 map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.find(component); in getPersistedRequest()
253 void ReportBatch::forEachPersistedRequest(const function<void (const sp<ReportRequest>&)>& func) { in forEachPersistedRequest()
254 for (map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.begin(); in forEachPersistedRequest()
260 void ReportBatch::forEachStreamingRequest(const function<void (const sp<ReportRequest>&)>& func) { in forEachStreamingRequest()
261 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in forEachStreamingRequest()
269 for (map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.begin(); in forEachListener()
276 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in forEachListener()
287 for (map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.begin(); in forEachListener()
296 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in forEachListener()
308 for (map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.begin(); in getCombinedPersistedArgs()
317 for (map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.begin(); in containsSection()
323 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in containsSection()
337 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in transferStreamingRequests()
345 for (map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.begin(); in transferPersistedRequests()
352 void ReportBatch::getFailedRequests(vector<sp<ReportRequest>>* requests) { in getFailedRequests()
353 for (map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.begin(); in getFailedRequests()
359 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in getFailedRequests()
367 void ReportBatch::removeRequest(const sp<ReportRequest>& request) { in removeRequest()
368 for (map<ComponentName, sp<ReportRequest>>::iterator it = mPersistedRequests.begin(); in removeRequest()
375 for (vector<sp<ReportRequest>>::iterator it = mStreamingRequests.begin(); in removeRequest()
505 mBatch->forEachStreamingRequest([&filter, this](const sp<ReportRequest>& request) { in writeSection()
558 const sp<ReportRequest>& request) { in runReport()
588 mBatch->forEachPersistedRequest([](const sp<ReportRequest>& request) { in runReport()
612 mBatch->forEachStreamingRequest([](const sp<ReportRequest>& request) { in runReport()
622 mBatch->forEachStreamingRequest([](const sp<ReportRequest>& request) { in runReport()
674 mBatch->forEachStreamingRequest([reportId, &metadata](const sp<ReportRequest>& request) { in runReport()
687 mBatch->forEachStreamingRequest([](const sp<ReportRequest>& request) { in runReport()
760 mBatch->forEachPersistedRequest([this](const sp<ReportRequest>& request) { in cancel_and_remove_failed_requests()
775 vector<sp<ReportRequest>> failed; in cancel_and_remove_failed_requests()
777 for (sp<ReportRequest>& request: failed) { in cancel_and_remove_failed_requests()