/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BugreportTest.java | 45 private Bugreport mBugreport; field in BugreportTest 85 mBugreport = new Bugreport(mRegularFile, false); in testBugreport_flat() 87 Assert.assertEquals(mRegularFile, mBugreport.getMainFile()); in testBugreport_flat() 88 Assert.assertNull(mBugreport.getListOfFiles()); in testBugreport_flat() 90 mBugreport.close(); in testBugreport_flat() 99 mBugreport = new Bugreport(mZipFile, true); in testBugreport_zipped() 102 Assert.assertEquals(2, mBugreport.getListOfFiles().size()); in testBugreport_zipped() 103 mainFile = mBugreport.getMainFile(); in testBugreport_zipped() 108 mBugreport.close(); in testBugreport_zipped() 117 mBugreport = new Bugreport(mZipFile, true); in testBugreport_getFileByName() [all …]
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | BugreportParser.java | 120 private BugreportItem mBugreport = null; field in BugreportParser 144 return mBugreport; in parse() 163 return mBugreport; in parse() 196 if (mParsedInput && mBugreport == null) { in commit() 197 mBugreport = new BugreportItem(); in commit() 200 if (mBugreport != null) { in commit() 201 mBugreport.setCommandLine(mCommandLine); in commit() 202 mBugreport.setMemInfo((MemInfoItem) getSection(mMemInfoParser)); in commit() 203 mBugreport.setProcrank((ProcrankItem) getSection(mProcrankParser)); in commit() 204 mBugreport.setTop((TopItem) getSection(mTopParser)); in commit() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | Bugreport.java | 39 private File mBugreport; field in Bugreport 43 mBugreport = bugreportFile; in Bugreport() 62 try (InputStreamSource source = new FileInputStreamSource(mBugreport)) { in log() 73 if (mBugreport == null) { in getMainFile() 77 return mBugreport; in getMainFile() 81 try (ZipFile zip = new ZipFile(mBugreport)) { in getMainFile() 107 if (mBugreport == null) { in getListOfFiles() 114 try (ZipFile zipBugreport = new ZipFile(mBugreport)) { in getListOfFiles() 131 if (mBugreport == null || name == null) { in getFileByName() 145 try (ZipFile zip = new ZipFile(mBugreport)) { in extractFileBugreport() [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/rule/ |
D | LocationUsageRuleTest.java | 34 BugreportItem mBugreport; field in LocationUsageRuleTest 42 mBugreport = new BugreportItem(); in setUp() 51 mBugreport.setDumpsys(mDumpsys); in setUp() 52 mBugreport.setActivityService(mActivityService); in setUp() 65 LocationUsageRule locationUsageRule = new LocationUsageRule(mBugreport); in testLocationUsageAnalysis() 82 LocationUsageRule locationUsageRule = new LocationUsageRule(mBugreport); in testNoSignificantLocationUsageAnalysis() 92 LocationUsageRule locationUsageRule = new LocationUsageRule(mBugreport); in testNoLocationUsageAnalysis()
|
D | InterruptRuleTest.java | 34 BugreportItem mBugreport; field in InterruptRuleTest 41 mBugreport = new BugreportItem(); in setUp() 49 mBugreport.setDumpsys(mDumpsys); in setUp() 64 InterruptRule interruptRule = new InterruptRule(mBugreport); in testInterruptAnalysis() 83 InterruptRule interruptRule = new InterruptRule(mBugreport); in testNoSignificantInterruptAnalysis() 93 InterruptRule interruptRule = new InterruptRule(mBugreport); in testMissingInterruptAnalysis()
|
D | WifiStatsRuleTest.java | 32 BugreportItem mBugreport; field in WifiStatsRuleTest 39 mBugreport = new BugreportItem(); in setUp() 47 mBugreport.setDumpsys(mDumpsys); in setUp() 60 WifiStatsRule wifiStatsRule = new WifiStatsRule(mBugreport); in testWifiDisconnectAnalysis() 77 WifiStatsRule wifiStatsRule = new WifiStatsRule(mBugreport); in testWifiScanAnalysis() 94 WifiStatsRule wifiStatsRule = new WifiStatsRule(mBugreport); in testWifiAssociationAnalysis()
|
D | WakelockRuleTest.java | 34 BugreportItem mBugreport; field in WakelockRuleTest 41 mBugreport = new BugreportItem(); in setUp() 49 mBugreport.setDumpsys(mDumpsys); in setUp() 68 WakelockRule wakelockRule = new WakelockRule(mBugreport); in testWakelockAnalysis() 90 WakelockRule wakelockRule = new WakelockRule(mBugreport); in testNoSignificantWakelockAnalysis() 100 WakelockRule wakelockRule = new WakelockRule(mBugreport); in testNoWakelockAnalysis()
|
D | ProcessUsageRuleTest.java | 35 BugreportItem mBugreport; field in ProcessUsageRuleTest 42 mBugreport = new BugreportItem(); in setUp() 50 mBugreport.setDumpsys(mDumpsys); in setUp() 70 ProcessUsageRule usage = new ProcessUsageRule(mBugreport); in testAlarmAnalysis() 99 ProcessUsageRule usage = new ProcessUsageRule(mBugreport); in testSensorAnalysis()
|
/tools/tradefederation/core/prod-tests/src/com/android/monkey/ |
D | MonkeyBrillopadForwarder.java | 75 private BugreportItem mBugreport = null; field in MonkeyBrillopadForwarder 93 mBugreport = new BugreportParser().parse(new BufferedReader(new InputStreamReader( in testLog() 112 Assert.assertNotNull("Failed to parse or retrieve bug report", mBugreport); in testEnded() 119 LogcatItem systemLog = mBugreport.getSystemLog(); in testEnded()
|
D | MonkeyBase.java | 249 private BugreportItem mBugreport = null; field in MonkeyBase 364 mBugreport = takeBugreport(listener, BUGREPORT_NAME); in runMonkey() 403 if (mBugreport != null && mBugreport.getLastKmsg() != null) { in runMonkey() 404 List<MiscKernelLogItem> kernelErrors = mBugreport.getLastKmsg().getMiscEvents( in runMonkey() 406 List<MiscKernelLogItem> kernelResets = mBugreport.getLastKmsg().getMiscEvents( in runMonkey() 685 Assert.assertNotNull("Bugreport is null", mBugreport); in checkResults() 686 Assert.assertNotNull("Bugreport is empty", mBugreport.getTime()); in checkResults()
|