Home
last modified time | relevance | path

Searched refs:mDestDir (Results 1 – 7 of 7) sorted by relevance

/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBatteryStatsListener.java65 private File mDestDir; field in BatteryStatsListener
99 mDestDir = createAndEmptyDirectory(dir); in onTestRunStart()
111 if (mToFile && mDestDir == null) { in onTestStart()
126 if ((mToFile && mDestDir == null) || mPerRun || !mBatteryStatReset) { in onTestEnd()
149 if (mToFile && mDestDir == null) { in onTestRunEnd()
182 File logFile = new File(mDestDir, fileName); in dumpBatteryStats()
DMobilityChangeCollector.java42 private File mDestDir; field in MobilityChangeCollector
47 mDestDir = createAndEmptyDirectory(DEFAULT_DIR); in onTestRunStart()
56 File mobilityLog = new File(mDestDir, fileName); in onTestRunEnd()
DLogcatCollector.java58 private File mDestDir; field in LogcatCollector
88 mDestDir = createAndEmptyDirectory(DEFAULT_DIR); in onTestRunStart()
122 if (mDestDir == null) { in onTestEnd()
134 File logcat = new File(mDestDir, fileName); in onTestEnd()
158 runData.addStringMetric(getTag(), mDestDir.getAbsolutePath().toString()); in onTestRunEnd()
DScreenRecordCollector.java50 private static File mDestDir; field in ScreenRecordCollector
60 mDestDir = createAndEmptyDirectory(OUTPUT_DIR); in onTestRunStart()
65 if (mDestDir == null) { in onTestStart()
79 if (mDestDir == null) { in onTestEnd()
124 return Paths.get(mDestDir.getAbsolutePath(), fileName).toFile(); in getOutputFile()
DScreenshotOnFailureCollector.java56 private File mDestDir; field in ScreenshotOnFailureCollector
97 mDestDir = createAndEmptyDirectory(dir); in onTestRunStart()
110 if (mDestDir == null) { in onTestFail()
140 File img = new File(mDestDir, fileName); in takeScreenshot()
170 File uixFile = new File(mDestDir, String.format("%s.uix", fileName)); in collectUiXml()
DGcaEventLogCollector.java80 private File mDestDir; field in GcaEventLogCollector
99 mDestDir = createAndEmptyDirectory(DEST_DIR); in onTestRunStart()
167 testData.addFileMetric(fileName, new File(mDestDir, fileName)); in collectEventLog()
173 String.format("cp %s %s/%s", mEventLogPath, mDestDir.getAbsolutePath(), fileName); in copyEventLogToSharedStorage()
176 logListResult(mDestDir.getAbsolutePath()); in copyEventLogToSharedStorage()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DGcaEventLogCollectorTest.java55 private File mDestDir; field in GcaEventLogCollectorTest
62 mDestDir = new File("/sdcard", "camera_events_dest"); in setUp()
68 mCollector.recursiveDelete(mDestDir); in tearDown()
75 Mockito.doReturn(mDestDir).when(listener).createAndEmptyDirectory(Mockito.anyString()); in initListener()