/frameworks/native/cmds/bugreport/ |
Android.bp | 2 name: "bugreport", 3 srcs: ["bugreport.cpp"],
|
/development/tools/bugreport/ |
manifest-library.mf | 2 Main-Class: com.android.bugreport.Main
|
manifest-tests.mf | 2 Main-Class: com.android.bugreport.TestRunner
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
BugreportParserFuncTest.java | 31 // FIXME: Make bugreport file configurable. 32 private static final String BUGREPORT_PATH = "/tmp/bugreport.txt"; 35 * A test that is intended to force Brillopad to parse a bugreport. The purpose of this is to 36 * assist a developer in checking why a given bugreport file might not be parsed correctly by 46 BugreportItem bugreport = null; local 49 bugreport = new BugreportParser().parse(bugreportReader); 51 System.out.println(String.format("Bugreport took %d ms to parse.", stop - start)); 64 assertNotNull(bugreport); 65 assertNotNull(bugreport.getTime()); 67 assertNotNull(bugreport.getSystemProps()) [all...] |
BugreportParserTest.java | 38 * Test that a bugreport can be parsed. 156 BugreportItem bugreport = new BugreportParser().parse(lines); local 157 assertNotNull(bugreport); 158 assertEquals(parseTime("2012-04-25 20:45:10.000"), bugreport.getTime()); 160 assertNotNull(bugreport.getMemInfo()); 161 assertEquals(5, bugreport.getMemInfo().size()); 163 assertNotNull(bugreport.getTop()); 164 assertEquals(994, bugreport.getTop().getTotal()); 166 assertNotNull(bugreport.getProcrank()); 167 assertEquals(3, bugreport.getProcrank().getPids().size()) 207 BugreportItem bugreport = new BugreportParser().parse(lines); local 220 BugreportItem bugreport = new BugreportParser().parse(lines); local 259 BugreportItem bugreport = new BugreportParser().parse(lines); local 277 BugreportItem bugreport = new BugreportParser().parse(lines); local 296 BugreportItem bugreport = new BugreportParser().parse(lines); local 315 BugreportItem bugreport = new BugreportParser().parse(lines); local 343 BugreportItem bugreport = new BugreportParser().parse(lines); local 392 BugreportItem bugreport = new BugreportParser().parse(lines); local 450 BugreportItem bugreport = new BugreportParser().parse(lines); local 477 BugreportItem bugreport = new BugreportParser().parse(lines); local 493 BugreportItem bugreport = new BugreportParser().parse(lines); local 588 BugreportItem bugreport = new BugreportParser().parse(lines); local 635 BugreportItem bugreport = new BugreportParser().parse(lines); local 654 BugreportItem bugreport = new BugreportParser().parse(lines); local 667 BugreportItem bugreport = new BugreportParser().parse(lines); local [all...] |
/development/tools/bugreport/src/com/android/bugreport/ |
Main.java | 17 package com.android.bugreport; 19 import com.android.bugreport.bugreport.Bugreport; 20 import com.android.bugreport.bugreport.BugreportParser; 21 import com.android.bugreport.html.Renderer; 22 import com.android.bugreport.inspector.Inspector; 23 import com.android.bugreport.logcat.LogcatParser; 24 import com.android.bugreport.monkey.MonkeyLogParser 73 Bugreport bugreport = null; local [all...] |
/system/bt/tools/scripts/ |
viewbtsnoop.sh | 27 echo "Usage: $0 bugreport(.txt|.zip)" 31 BUGREPORT="$1" 32 FILENAME="$(basename ${BUGREPORT})" 41 if [ ! -f "${BUGREPORT}" ]; 43 echo "File ${BUGREPORT} does not exist." 53 if [ "${BUGREPORT: -4}" == ".zip" ]; 55 unzip "${BUGREPORT}" -d "${TMPDIR}" 56 BUGREPORT="${TMPDIR}/${FILENAME%.*}.txt" 59 if [ -f "${BUGREPORT}" ]; 61 ${BTSNOOZ} "${BUGREPORT}" > "${LOGFILE} [all...] |
/development/tools/bugreport/src/com/android/bugreport/bugreport/ |
Bugreport.java | 17 package com.android.bugreport.bugreport; 19 import com.android.bugreport.anr.Anr; 20 import com.android.bugreport.logcat.Logcat; 21 import com.android.bugreport.logcat.LogLine; 22 import com.android.bugreport.stacks.ProcessSnapshot; 23 import com.android.bugreport.stacks.VmTraces; 30 * Class to represent what we know and understand about a bugreport. 32 public class Bugreport { 39 * Timestamp for the beginning of the bugreport [all...] |
MetadataParser.java | 17 package com.android.bugreport.bugreport; 19 import com.android.bugreport.util.Line; 20 import com.android.bugreport.util.Lines; 21 import com.android.bugreport.util.Utils; 29 * Parse the header and footer of the bugreport. 41 private Bugreport mBugreport; 50 * Set the Bugreport that we're working on. 52 public void setBugreport(Bugreport bugreport) { [all...] |
BugreportParser.java | 17 package com.android.bugreport.bugreport; 19 import com.android.bugreport.logcat.LogcatParser; 20 import com.android.bugreport.stacks.VmTracesParser; 21 import com.android.bugreport.util.Utils; 22 import com.android.bugreport.util.Line; 23 import com.android.bugreport.util.Lines; 36 * Parses a bugreport text file. The object can be reused, but can only parse 37 * one bugreport at a time (i.e. any single object is not thread-safe). 57 private Bugreport mBugreport [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
BugreportTest.java | 38 * Unit test suite for {@link Bugreport} 43 private static final String BUGREPORT_CONTENT = "BUGREPORT CONTENT"; 45 private Bugreport mBugreport; 51 mRegularFile = FileUtil.createTempFile("bugreport-test", "txt"); 56 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); local 57 InputStream name = new ByteArrayInputStream(bugreport.getName().getBytes()); 60 FileUtil.writeToFile(content, bugreport); 62 // We create a fake bugreport zip with main_entry.txt and the bugreport. 66 ZipUtil.addToZip(out, bugreport, new LinkedList<String>()) 162 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); local [all...] |
/tools/tradefederation/core/src/com/android/tradefed/util/ |
Bugreport.java | 35 * Object holding the bugreport files references, compatible of flat bugreport and zipped bugreport 38 public class Bugreport implements Closeable { 42 public Bugreport(File bugreportFile, boolean isZipped) { 48 * Return true if it's a zipped bugreport, false otherwise. 55 * Helper to log the Bugreport whether its zipped or not. 61 LogDataType type = isZipped() ? LogDataType.BUGREPORTZ : LogDataType.BUGREPORT; 68 * Return a {@link File} pointing to the bugreport main file. For a flat bugreport, it return 144 File bugreport = null; local [all...] |
/development/tools/bugreport/src/com/android/bugreport/anr/ |
Anr.java | 17 package com.android.bugreport.anr; 19 import com.android.bugreport.cpuinfo.CpuUsageSnapshot; 20 import com.android.bugreport.stacks.ProcessSnapshot; 21 import com.android.bugreport.stacks.ThreadSnapshot; 22 import com.android.bugreport.stacks.VmTraces; 27 * Contains the information about any ANRs that happend in this bugreport.
|
/tools/loganalysis/src/com/android/loganalysis/item/ |
BugreportItem.java | 24 * An {@link IItem} used to store Bugreport info. 67 * Get the time of the bugreport. 74 * Set the time of the bugreport. 81 * Get the {@link CommandLineItem} of the bugreport. 88 * Set the {@link CommandLineItem} of the bugreport. 95 * Get the {@link MemInfoItem} of the bugreport. 102 * Set the {@link MemInfoItem} of the bugreport. 109 * Get the {@link ProcrankItem} of the bugreport. 116 * Set the {@link ProcrankItem} of the bugreport. 123 * Get the {@link TopItem} of the bugreport [all...] |
DumpsysItem.java | 23 * An {@link IItem} used to store the output of the dumpsys section of the bugreport. 45 * Set the {@link DumpsysBatteryStatsItem} of the bugreport. 52 * Set the {@link DumpsysProcStatsItem} of the bugreport. 59 * Set the {@link DumpsysWifiStatsItem} of the bugreport. 66 * Get the {@link DumpsysBatteryStatsItem} of the bugreport. 73 * Get the {@link DumpsysProcStatsItem} of the bugreport. 80 * Get the {@link DumpsysWifiStatsItem} of the bugreport.
|
/development/tools/bugreport/src/com/android/bugreport/monkey/ |
MonkeyLogParser.java | 17 package com.android.bugreport.monkey; 19 import com.android.bugreport.anr.Anr; 20 import com.android.bugreport.anr.AnrParser; 21 import com.android.bugreport.bugreport.Bugreport; 22 import com.android.bugreport.util.Line; 23 import com.android.bugreport.util.Lines; 24 import com.android.bugreport.util.Utils; 46 * created bugreport [all...] |
/development/tools/bugreport/src/com/android/bugreport/stacks/ |
VmTracesParser.java | 17 package com.android.bugreport.stacks; 19 import com.android.bugreport.cpuinfo.CpuUsageParser; 20 import com.android.bugreport.cpuinfo.CpuUsageSnapshot; 21 import com.android.bugreport.util.Utils; 22 import com.android.bugreport.util.Line; 23 import com.android.bugreport.util.Lines; 24 import com.android.bugreport.stacks.ProcessSnapshot; 25 import com.android.bugreport.stacks.ProcessSnapshotParser; 26 import com.android.bugreport.stacks.VmTraces;
|
VmTraces.java | 17 package com.android.bugreport.stacks; 19 import com.android.bugreport.cpuinfo.CpuUsageSnapshot; 20 import com.android.bugreport.stacks.ProcessSnapshot; 21 import com.android.bugreport.stacks.ThreadSnapshot; 26 * Contains the information about any ANRs that happend in this bugreport.
|
/frameworks/native/cmds/dumpstate/ |
dumpstate.rc | 12 # dumpstatez generates a zipped bugreport but also uses a socket to print the file location once 15 -o /data/user_de/0/com.android.shell/files/bugreports/bugreport
|
/system/core/adb/ |
bugreport_test.cpp | 17 #include "bugreport.h" 119 class BugreportMock : public Bugreport { 155 const char* args[] = {"bugreport", "to", "principal"}; 159 // Tests the 'adb bugreport' option when the device does not support 'bugreportz' - it falls back 160 // to the flat-file format ('bugreport' binary on device) 169 std::string bugreport = "Reported the bug was."; local 171 EXPECT_CALL(br_, SendShellCommand(kTransportLocal, "HannibalLecter", "bugreport", false, _)) 172 .WillOnce(DoAll(WithArg<4>(WriteOnStdout(bugreport)), Return(0))); 174 const char* args[] = {"bugreport"}; 176 ASSERT_THAT(GetCapturedStdout(), StrEq(bugreport)); [all...] |
/development/tools/bugreport/src/com/android/bugreport/html/ |
Renderer.java | 17 package com.android.bugreport.html; 19 import com.android.bugreport.anr.Anr; 20 import com.android.bugreport.bugreport.Bugreport; 21 import com.android.bugreport.cpuinfo.CpuUsage; 22 import com.android.bugreport.cpuinfo.CpuUsageSnapshot; 23 import com.android.bugreport.logcat.Logcat; 24 import com.android.bugreport.logcat.LogLine; 25 import com.android.bugreport.stacks.ProcessSnapshot [all...] |
/system/sepolicy/public/ |
hal_dumpstate.te | 8 # write bug reports in /data/data/com.android.shell/files/bugreports/bugreport
|
incident.te | 2 # take an incident report (binary, shared bugreport), download incident
|
/development/tools/bugreport/src/com/android/bugreport/logcat/ |
LogLine.java | 17 package com.android.bugreport.logcat; 19 import com.android.bugreport.bugreport.ProcessInfo; 20 import com.android.bugreport.bugreport.ThreadInfo; 21 import com.android.bugreport.util.Line; 79 * If a bugreport was being taken during this log line
|
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
BugReporterVisitor.h | 26 class BugReport; 61 /// BugReport while processing a node. 65 BugReport &BR) = 0; 71 /// Also note that at most one visitor of a BugReport should generate a 74 getEndPath(BugReporterContext &BRC, const ExplodedNode *N, BugReport &BR); 81 BugReport &BR); 111 /// the BugReport. 112 static void registerStatementVarDecls(BugReport &BR, const Stmt *S, 127 BugReport &BR) override; 156 BugReport &BR) override [all...] |