</BUG>
case DUMPSYS_MEMINFO:
return collectMemInfo();
case TOTAL_MEM_SIZE:
<BUG>return new SimpleElement(Long.toString(getTotalInternalMemorySize()));
</BUG>
case AVAILABLE_MEM_SIZE:
<BUG>return new SimpleElement(Long.toString(getAvailableInternalMemorySize()));
</BUG>
default:

return super.shouldCollect(crashReportFields, collect, reportBuilder) && !(reportBuilder.getException() instanceof OutOfMemoryError);
}
@NonNull
@Override
Element collect(ReportField reportField, ReportBuilder reportBuilder) {
switch (reportField) {
case DUMPSYS_MEMINFO:
return collectMemInfo();
case TOTAL_MEM_SIZE:
return new NumberElement(getTotalInternalMemorySize());
case AVAILABLE_MEM_SIZE:
return new NumberElement(getAvailableInternalMemorySize());
default:
