Lines Matching refs:section

443 void ReportWriter::warning(const Section* section, status_t err, const char* format, ...) {  in warning()  argument
446 vflog(section, err, ANDROID_LOG_ERROR, "error", format, args); in warning()
450 void ReportWriter::error(const Section* section, status_t err, const char* format, ...) { in error() argument
453 vflog(section, err, ANDROID_LOG_WARN, "warning", format, args); in error()
457 void ReportWriter::vflog(const Section* section, status_t err, int level, const char* levelText, in vflog() argument
460 int prefixLen = snprintf(NULL, 0, prefixFormat, levelText, section->id, in vflog()
474 sprintf(line, prefixFormat, levelText, section->id, err, strerror(-err)); in vflog()
638 for (const Section** section = SECTION_LIST; *section; section++) { in runReport() local
639 if (execute_section(*section, &metadata, reportByteSize) != NO_ERROR) { in runReport()
644 for (const Section* section : mRegisteredSections) { in runReport() local
645 if (execute_section(section, &metadata, reportByteSize) != NO_ERROR) { in runReport()
705 status_t Reporter::execute_section(const Section* section, IncidentMetadata* metadata, in execute_section() argument
707 const int sectionId = section->id; in execute_section()
714 ALOGD("Start incident report section %d '%s'", sectionId, section->name.string()); in execute_section()
725 status_t err = section->Execute(&mWriter); in execute_section()
730 mWriter.error(section, err, "Section failed. Stopping report."); in execute_section()
750 ALOGD("Finish incident report section %d '%s'", sectionId, section->name.string()); in execute_section()