Home
last modified time | relevance | path

Searched refs:outputFile (Results 1 – 10 of 10) sorted by relevance

/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/
DScreenRecorder.kt31 private val outputFile: File = File.createTempFile("transition", "screen_recording"), constant in android.tools.traces.monitors.ScreenRecorder
41 val runnable = ScreenRecordingRunnable(outputFile, context, width, height) in newRecordingThread()
69 require(outputFile.exists()) { "Screen recorder didn't start" } in doStart()
75 Log.d(LOG_TAG, "Stopping screen recording. Storing result in $outputFile") in doStop()
85 return outputFile in doStop()
92 return "ScreenRecorder($outputFile)" in toString()
DScreenRecordingRunnable.kt38 private val outputFile: File, constant in android.tools.traces.monitors.ScreenRecordingRunnable
78 Log.d(LOG_TAG, "Starting screen recording to file $outputFile") in run()
229 outputFile.deleteIfExists() in createMuxer()
230 require(!outputFile.exists()) in createMuxer()
231 outputFile.createNewFile() in createMuxer()
232 val inputStream = FileOutputStream(outputFile) in createMuxer()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DJUnitXmlRunner.java46 String outputFile = System.getenv("XML_OUTPUT_FILE"); in getRunListener() local
48 if (outputFile != null && outputFile.length() > 0) { in getRunListener()
51 new FileOutputStream(outputFile), in getRunListener()
64 File outputFile = new File(outputFileStr); in getAtestRunListener() local
65 if (outputFile.exists()) { in getAtestRunListener()
66 return new AtestRunListener(suiteName, outputFile, count); in getAtestRunListener()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DScreenRecordRule.kt137 val outputFile = ArtifactSaver.artifactFile(description, "ScreenRecord", "mp4") in <lambda>() constant
138 log("Executing test with screen recording. Output file=$outputFile") in <lambda>()
149 automation.executeShellCommand("screenrecord --verbose --bugreport $outputFile") in <lambda>()
158 outputFile.tryWaitingForFileToExists() in <lambda>()
166 outputFile.tryWaitingForFileSizeToSettle() in <lambda>()
180 shell("rm $outputFile") in <lambda>()
181 log("$outputFile deleted, because test passed") in <lambda>()
184 if (outputFile.exists()) { in <lambda>()
185 val fileSizeKb = Files.size(outputFile.toPath()) / 1024 in <lambda>()
186 log("Screen recording captured at: $outputFile. File size: $fileSizeKb KB") in <lambda>()
[all …]
DDropCachesRule.java58 File outputFile = File.createTempFile("drop_cache_script", ".sh", outputDir); in executeDropCachesImpl() local
59 outputFile.setWritable(true); in executeDropCachesImpl()
60 outputFile.setExecutable(true, /*ownersOnly*/false); in executeDropCachesImpl()
62 mDropCacheScriptPath = outputFile.toString(); in executeDropCachesImpl()
73 outputFile.delete(); in executeDropCachesImpl()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/events/
DEventLogMonitor.kt50 val outputFile = File.createTempFile(TraceType.EVENT_LOG.fileName, "") in doStop() constant
52 FileOutputStream(outputFile).use { in doStop()
56 "-v epoch -t $sinceTime >> $outputFile" in doStop()
62 return outputFile in doStop()
/platform_testing/libraries/audio-test-harness/instrumentation/src/com/android/media/audiotestharness/instrumentation/
DAudioTestHarnessCaptureTest.java157 File outputFile = new File(getActivity().getFilesDir(), filename); in writeSamplesToAppStorage() local
159 if (outputFile.exists()) { in writeSamplesToAppStorage()
160 outputFile.delete(); in writeSamplesToAppStorage()
162 outputFile.createNewFile(); in writeSamplesToAppStorage()
170 Files.write(buf.array(), outputFile); in writeSamplesToAppStorage() local
172 Log.v(TAG, String.format("Wrote file (%s) of size (%d)", outputFile, toWrite.length)); in writeSamplesToAppStorage()
/platform_testing/libraries/screenshot/scripts/
Ddeviceless_converter.py11 def runGradleCommand(outputFile: str, cfg: Config, mc: ModuleConfig) -> int:
13 with open(os.path.expanduser(outputFile), "w") as of:
47 outputFile = f"{cfg.output_dir}/{basename}.err"
52 exitValue = runGradleCommand(outputFile, cfg, mc)
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DFreeMemHelper.java227 File outputFile = File.createTempFile("drop_cache_script", ".sh", outputDir); in executeDropCachesImpl() local
228 outputFile.setWritable(true); in executeDropCachesImpl()
229 outputFile.setExecutable(true, /*ownersOnly*/false); in executeDropCachesImpl()
231 String dropCacheScriptPath = outputFile.toString(); in executeDropCachesImpl()
241 outputFile.delete(); in executeDropCachesImpl()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DFilesystemUtil.java106 File outputFile = new File(outputDir, String.format("%d.txt", epochSeconds)); in dumpMeminfo() local
107 Log.i(TAG, outputFile.toString()); in dumpMeminfo()
111 fos = new FileOutputStream(outputFile); in dumpMeminfo()