Home
last modified time | relevance | path

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

/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.java40 BugreportItem bugreport = null; in testParse() local
43 bugreport = new BugreportParser().parse(bugreportReader); in testParse()
56 assertNotNull(bugreport); in testParse()
57 assertNotNull(bugreport.getTime()); in testParse()
59 assertNotNull(bugreport.getSystemProps()); in testParse()
60 assertTrue(bugreport.getSystemProps().size() > 0); in testParse()
62 assertNotNull(bugreport.getMemInfo()); in testParse()
63 assertTrue(bugreport.getMemInfo().size() > 0); in testParse()
65 assertNotNull(bugreport.getProcrank()); in testParse()
66 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/test/openhst/
Dstress_test.py123 def SendNotificationEmail(subject, body, bugreport=None): argument
146 if FLAGS.attach_bugreport and bugreport:
148 ctype, _ = mimetypes.guess_type(bugreport)
150 with open(bugreport, "rb") as fp:
154 att.add_header("Content-Disposition", "attachment", filename=bugreport)
583 bugreport = None
586 bugreport = self.TakeBugReport()
592 "\n".join(["Current Summary:"] + self.GetSummaryLines()), bugreport)
670 bugreport = os.path.join(self.output_root,
676 with open(bugreport, "w") as bugreport_fp:
[all …]
Dstress_test.proto144 // REMOVE_DEVICE and ABORT are all special values that take a bugreport, send
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java718 File bugreport = null; in testGetSshBugreport() local
720 bugreport = GceManager.getBugreportzWithSsh(fakeInfo, mOptions, mMockRunUtil); in testGetSshBugreport()
721 assertNotNull(bugreport); in testGetSshBugreport()
724 FileUtil.deleteFile(bugreport); in testGetSshBugreport()
794 File bugreport = null; in testGetNestedSshBugreport() local
796 bugreport = GceManager.getNestedDeviceSshBugreportz(fakeInfo, mOptions, mMockRunUtil); in testGetNestedSshBugreport()
797 assertNotNull(bugreport); in testGetNestedSshBugreport()
800 FileUtil.deleteFile(bugreport); in testGetNestedSshBugreport()
833 File bugreport = null; in testGetSshBugreport_Fail() local
835 bugreport = GceManager.getBugreportzWithSsh(fakeInfo, mOptions, mMockRunUtil); in testGetSshBugreport_Fail()
[all …]
/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/src/com/android/tradefed/device/
DNativeDevice.java2366 InputStreamSource bugreport = getBugreportInternal(); in getBugreport() local
2367 if (bugreport == null) { in getBugreport()
2371 return bugreport; in getBugreport()
2390 File bugreport = ZipUtil2.extractFileFromZip(zip, bugreportName); in getBugreport() local
2391 return new FileInputStreamSource(bugreport, true); in getBugreport()
2448 InputStreamSource bugreport = null; in logBugreport() local
2451 bugreport = getBugreportz(); in logBugreport()
2454 if (bugreport == null) { in logBugreport()
2456 bugreport = getBugreportInternal(); in logBugreport()
2460 if (bugreport != null) { in logBugreport()
[all …]
/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/contrib/src/com/android/monkey/
DMonkeyBase.java506 Bugreport bugreport = mTestDevice.takeBugreport(); in takeBugreport() local
507 if (bugreport == null) { in takeBugreport()
511 bugreport.log(bugreportName, listener); in takeBugreport()
515 main = bugreport.getMainFile(); in takeBugreport()
530 StreamUtil.close(bugreport); in takeBugreport()
/tools/tradefederation/core/device_build_interfaces/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.java190 InputStreamSource bugreport = new FileInputStreamSource(bugreportFile); in getSshBugreport() local
191 mTestLogger.testLog("bugreportz-ssh", LogDataType.BUGREPORTZ, bugreport); in getSshBugreport()
192 StreamUtil.cancel(bugreport); in getSshBugreport()
DRemoteAndroidVirtualDevice.java238 InputStreamSource bugreport = new FileInputStreamSource(bugreportFile); in getSshBugreport() local
239 mTestLogger.testLog("bugreportz-ssh", LogDataType.BUGREPORTZ, bugreport); in getSshBugreport()
240 StreamUtil.cancel(bugreport); in getSshBugreport()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceFuncTest.java96 InputStreamSource bugreport = mTestDevice.getBugreport(); in testBugreport() local
98 String data = StreamUtil.getStringFromStream(bugreport.createInputStream()); in testBugreport()
105 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
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py963 self.adb.bugreport(