Home
last modified time | relevance | path

Searched refs:metricFile (Results 1 – 3 of 3) sorted by relevance

/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DBatterystatsCollectorHostTest.java94 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in testBatteryStatsListener_perRun()
95 assertTrue(metricFile.getName().contains(BATTERYSTATS_PROTO)); in testBatteryStatsListener_perRun()
98 Measurements.newBuilder().setSingleString(metricFile.getAbsolutePath()) in testBatteryStatsListener_perRun()
101 InputStream is = new BufferedInputStream(new FileInputStream(metricFile)) in testBatteryStatsListener_perRun()
108 assertTrue(metricFile.delete()); in testBatteryStatsListener_perRun()
145 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in testBatteryStatsListener_perTest()
146 assertTrue(metricFile.getName().contains(BATTERYSTATS_PROTO)); in testBatteryStatsListener_perTest()
148 InputStream is = new BufferedInputStream(new FileInputStream(metricFile)) in testBatteryStatsListener_perTest()
155 assertTrue(metricFile.delete()); in testBatteryStatsListener_perTest()
DScreenshotOnFailureCollectorHostTest.java87 String key, File metricFile, DeviceMetricData runData) { in testScreenshotListener()
89 assertTrue(metricFile.getName().contains("png")); in testScreenshotListener()
90 assertTrue(metricFile.length() > 0); in testScreenshotListener()
93 new FileInputStream(metricFile)); in testScreenshotListener()
98 assertTrue(metricFile.delete()); in testScreenshotListener()
DLogcatCollectorHostTest.java100 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in processMetricFile() argument
102 assertTrue(metricFile.getName().endsWith(".txt")); in processMetricFile()
104 URLConnection.guessContentTypeFromStream(new FileInputStream(metricFile)); in processMetricFile()
109 assertTrue(metricFile.delete()); in processMetricFile()