Home
last modified time | relevance | path

Searched refs:bugreport (Results 1 – 25 of 26) sorted by relevance

12

/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DBugreportParserTest.java164 BugreportItem bugreport = new BugreportParser().parse(lines); in testParse() local
165 assertNotNull(bugreport); in testParse()
166 assertEquals(parseTime("2012-04-25 20:45:10.000"), bugreport.getTime()); in testParse()
168 assertNotNull(bugreport.getMemInfo()); in testParse()
169 assertEquals(5, bugreport.getMemInfo().size()); in testParse()
171 assertNotNull(bugreport.getTop()); in testParse()
172 assertEquals(994, bugreport.getTop().getTotal()); in testParse()
174 assertNotNull(bugreport.getProcrank()); in testParse()
175 assertEquals(3, bugreport.getProcrank().getPids().size()); in testParse()
177 assertNotNull(bugreport.getKernelLog()); in testParse()
[all …]
DBugreportParserFuncTest.java46 BugreportItem bugreport = null; in testParse() local
49 bugreport = new BugreportParser().parse(bugreportReader); in testParse()
64 assertNotNull(bugreport); in testParse()
65 assertNotNull(bugreport.getTime()); in testParse()
67 assertNotNull(bugreport.getSystemProps()); in testParse()
68 assertTrue(bugreport.getSystemProps().size() > 0); in testParse()
70 assertNotNull(bugreport.getMemInfo()); in testParse()
71 assertTrue(bugreport.getMemInfo().size() > 0); in testParse()
73 assertNotNull(bugreport.getProcrank()); in testParse()
74 assertTrue(bugreport.getProcrank().getPids().size() > 0); in testParse()
[all …]
/tools/loganalysis/src/com/android/loganalysis/
DLogAnalyzer.java117 BugreportItem bugreport = new BugreportParser().parse(reader); in run() local
118 printBugreport(bugreport); in run()
178 private void printBugreport(BugreportItem bugreport) { in printBugreport() argument
181 printJson(bugreport); in printBugreport()
185 printJson(bugreport); in printBugreport()
188 printBugreportAnalysis(getBugreportAnalysis(bugreport)); in printBugreport()
200 result.put(RAW_DATA, bugreport.toJson()); in printBugreport()
203 result.put(ANALYSIS_DATA, getBugreportAnalysis(bugreport)); in printBugreport()
218 private JSONArray getBugreportAnalysis(BugreportItem bugreport) { in getBugreportAnalysis() argument
219 RuleEngine ruleEngine = new RuleEngine(bugreport); in getBugreportAnalysis()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DBugreportTest.java56 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in setUp() local
57 InputStream name = new ByteArrayInputStream(bugreport.getName().getBytes()); in setUp()
60 FileUtil.writeToFile(content, bugreport); in setUp()
66 ZipUtil.addToZip(out, bugreport, new LinkedList<String>()); in setUp()
162 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in testBugreportz_noMainFile() local
164 FileUtil.writeToFile(content, bugreport); in testBugreportz_noMainFile()
169 ZipUtil.addToZip(out, bugreport, new LinkedList<String>()); in testBugreportz_noMainFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java665 File bugreport = null; in testGetSshBugreport() local
667 bugreport = GceManager.getBugreportzWithSsh(fakeInfo, mOptions, mMockRunUtil); in testGetSshBugreport()
668 assertNotNull(bugreport); in testGetSshBugreport()
671 FileUtil.deleteFile(bugreport); in testGetSshBugreport()
740 File bugreport = null; in testGetNestedSshBugreport() local
742 bugreport = GceManager.getNestedDeviceSshBugreportz(fakeInfo, mOptions, mMockRunUtil); in testGetNestedSshBugreport()
743 assertNotNull(bugreport); in testGetNestedSshBugreport()
746 FileUtil.deleteFile(bugreport); in testGetNestedSshBugreport()
779 File bugreport = null; in testGetSshBugreport_Fail() local
781 bugreport = GceManager.getBugreportzWithSsh(fakeInfo, mOptions, mMockRunUtil); in testGetSshBugreport_Fail()
[all …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DStartupMetricsTest.java132 BugreportItem bugreport = null; in fetchBugReportMetrics() local
136 bugreport = in fetchBugReportMetrics()
147 if (bugreport != null) { in fetchBugReportMetrics()
149 MemInfoItem item = bugreport.getMemInfo(); in fetchBugReportMetrics()
156 if (bugreport.getProcrank() != null) { in fetchBugReportMetrics()
157 parseProcRankMap(listener, bugreport.getProcrank()); in fetchBugReportMetrics()
/tools/tradefederation/contrib/src/com/android/framework/tests/
DFrameworkStressTest.java147 BugreportItem bugreport = null; in testEnded() local
150 bugreport = in testEnded()
154 Assert.assertNotNull(bugreport); in testEnded()
155 Assert.assertNotNull(bugreport.getSystemLog()); in testEnded()
162 LogcatItem systemLog = bugreport.getSystemLog(); in testEnded()
DDataIdleTest.java121 try (InputStreamSource bugreport = mTestDevice.getBugreport()) { in logBugReport() argument
122 listener.testLog(BUG_REPORT_LABEL, LogDataType.BUGREPORT, bugreport); in logBugReport()
/tools/loganalysis/src/com/android/loganalysis/parser/
DBugreportParser.java81 BugreportItem bugreport = null;
83 if (bugreport == null && !"".equals(line.trim())) {
84 bugreport = new BugreportItem();
88 bugreport.setTime(parseTime(m.group(1)));
106 return bugreport;
/tools/tradefederation/core/src/com/android/tradefed/util/
DBugreport.java144 File bugreport = null; in extractFileBugreport() local
146 bugreport = ZipUtil2.extractFileFromZip(zip, name); in extractFileBugreport()
147 return bugreport; in extractFileBugreport()
/tools/tradefederation/contrib/src/com/android/media/tests/
DPanoramaBenchMarkTest.java122 InputStreamSource bugreport = mTestDevice.getBugreport(); in reportMetrics() local
123 listener.testLog("bugreport", LogDataType.BUGREPORT, bugreport); in reportMetrics()
124 bugreport.close(); in reportMetrics()
DCameraShotToShotLatencyTest.java177 InputStreamSource bugreport = mTestDevice.getBugreport(); in reportMetrics() local
178 listener.testLog("bugreport", LogDataType.BUGREPORT, bugreport); in reportMetrics()
179 bugreport.close(); in reportMetrics()
DCameraSettingsTest.java215 InputStreamSource bugreport = mTestDevice.getBugreport(); in reportMetrics() local
216 listener.testLog("bugreport", LogDataType.BUGREPORT, bugreport); in reportMetrics()
217 bugreport.close(); in reportMetrics()
DCameraLatencyTest.java175 InputStreamSource bugreport = mTestDevice.getBugreport(); in executeTest() local
177 LogDataType.BUGREPORT, bugreport); in executeTest()
178 bugreport.close(); in executeTest()
DCameraStressTest.java210 InputStreamSource bugreport = mTestDevice.getBugreport(); in executeTest() local
212 LogDataType.BUGREPORT, bugreport); in executeTest()
213 bugreport.cancel(); in executeTest()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DManagedRemoteDevice.java173 InputStreamSource bugreport = new FileInputStreamSource(bugreportFile); in getSshBugreport() local
174 mTestLogger.testLog("bugreportz-ssh", LogDataType.BUGREPORTZ, bugreport); in getSshBugreport()
175 StreamUtil.cancel(bugreport); in getSshBugreport()
DRemoteAndroidVirtualDevice.java236 InputStreamSource bugreport = new FileInputStreamSource(bugreportFile); in getSshBugreport() local
237 mTestLogger.testLog("bugreportz-ssh", LogDataType.BUGREPORTZ, bugreport); in getSshBugreport()
238 StreamUtil.cancel(bugreport); in getSshBugreport()
/tools/tradefederation/contrib/src/com/android/monkey/
DMonkeyBase.java503 Bugreport bugreport = mTestDevice.takeBugreport(); in takeBugreport() local
504 if (bugreport == null) { in takeBugreport()
508 bugreport.log(bugreportName, listener); in takeBugreport()
512 main = bugreport.getMainFile(); in takeBugreport()
527 StreamUtil.close(bugreport); in takeBugreport()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java2263 InputStreamSource bugreport = getBugreportInternal(); in getBugreport() local
2264 if (bugreport == null) { in getBugreport()
2268 return bugreport; in getBugreport()
2287 File bugreport = ZipUtil2.extractFileFromZip(zip, bugreportName); in getBugreport() local
2288 return new FileInputStreamSource(bugreport, true); in getBugreport()
2345 InputStreamSource bugreport = null; in logBugreport() local
2348 bugreport = getBugreportz(); in logBugreport()
2351 if (bugreport == null) { in logBugreport()
2353 bugreport = getBugreportInternal(); in logBugreport()
2357 if (bugreport != null) { in logBugreport()
[all …]
/tools/tradefederation/contrib/src/com/android/graphics/tests/
DImageProcessingTest.java86 try (InputStreamSource bugreport = mTestDevice.getBugreport()) { in run() argument
87 standardListener.testLog("bugreport.txt", LogDataType.BUGREPORT, bugreport); in run()
DUiPerformanceTest.java152 try (InputStreamSource bugreport = mTestDevice.getBugreport()) { in logOutputFile() argument
153 listener.testLog("bugreport", LogDataType.BUGREPORT, bugreport); in logOutputFile()
DOpenGlPerformanceTest.java231 try (InputStreamSource bugreport = mTestDevice.getBugreport()) { in logOutputFile() argument
232 listener.testLog("bugreport.txt", LogDataType.BUGREPORT, bugreport); in logOutputFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceFuncTest.java92 InputStreamSource bugreport = mTestDevice.getBugreport(); in testBugreport() local
94 String data = StreamUtil.getStringFromStream(bugreport.createInputStream()); in testBugreport()
101 StreamUtil.cancel(bugreport); in testBugreport()
/tools/tradefederation/core/src/com/android/tradefed/result/
DBugreportCollector.java287 try (InputStreamSource bugreport = mTestDevice.getBugreport()) { in grabBugreport() argument
288 mListener.testLog(logName, LogDataType.BUGREPORT, bugreport); in grabBugreport()
/tools/test/connectivity/acts/framework/tests/
Dacts_android_device_test.py116 def bugreport(self, params, timeout=android_device.BUG_REPORT_TIMEOUT): member in MockAdbProxy

12