Home
last modified time | relevance | path

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

/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DCodeCoverageTest.java76 File coverageFile = null; in run() local
79 coverageFile = getDevice().pullFile(mCoverageFile); in run()
80 if (coverageFile != null) { in run()
81 CLog.d("coverage file from device: %s", coverageFile.getAbsolutePath()); in run()
82 try (FileInputStreamSource source = new FileInputStreamSource(coverageFile)) { in run()
101 if (coverageFile != null) { in run()
102 FileUtil.deleteFile(coverageFile); in run()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DJavaCodeCoverageCollector.java219 private void saveCoverageMeasurement(File coverageFile) throws IOException { in saveCoverageMeasurement() argument
224 mExecFileLoader.load(coverageFile); in saveCoverageMeasurement()
226 logCoverageMeasurement(coverageFile); in saveCoverageMeasurement()
231 private void logCoverageMeasurement(File coverageFile) { in logCoverageMeasurement() argument
232 try (FileInputStreamSource source = new FileInputStreamSource(coverageFile, true)) { in logCoverageMeasurement()
233 testLog(generateMeasurementFileName(coverageFile), LogDataType.COVERAGE, source); in logCoverageMeasurement()
238 private String generateMeasurementFileName(File coverageFile) { in generateMeasurementFileName() argument
246 + getNameWithoutExtension(coverageFile.getName()) in generateMeasurementFileName()
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DJavaCodeCoverageCollectorTest.java512 File coverageFile = folder.newFile(new File(devicePath).getName()); in mockCoverageFileOnDevice() local
514 try (OutputStream out = new FileOutputStream(coverageFile)) { in mockCoverageFileOnDevice()
518 doReturn(coverageFile).when(mMockDevice).pullFile(devicePath); in mockCoverageFileOnDevice()