Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 32) sorted by relevance

12

/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DFailureWatcher.java68 try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(hierarchy))) { in onError() argument
69 out.putNextEntry(new ZipEntry("bugreport.txt")); in onError()
70 dumpStringCommand("dumpsys window windows", out); in onError()
71 dumpStringCommand("dumpsys package", out); in onError()
72 out.closeEntry(); in onError()
74 out.putNextEntry(new ZipEntry("visible_windows.zip")); in onError()
75 dumpCommand("cmd window dump-visible-window-views", out); in onError()
76 out.closeEntry(); in onError()
100 private static void dumpStringCommand(String cmd, OutputStream out) throws IOException { in dumpStringCommand() argument
101 out.write(("\n\n" + cmd + "\n").getBytes()); in dumpStringCommand()
[all …]
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DZipUtil.java43 ZipOutputStream out = null; in createZip() local
46 out = new ZipOutputStream(new BufferedOutputStream(fileStream)); in createZip()
47 addToZip(out, dir, new LinkedList<String>()); in createZip()
55 out.close(); in createZip()
67 public static void addToZip(ZipOutputStream out, File file, List<String> relativePathSegs) in addToZip() argument
75 out.putNextEntry(zipEntry); in addToZip()
77 writeToStream(file, out); in addToZip()
79 out.closeEntry(); in addToZip()
88 addToZip(out, subFile, relativePathSegs); in addToZip()
119 private static void writeToStream(File file, OutputStream out) throws IOException { in writeToStream() argument
[all …]
DReadElf.java583 System.out.println("===Symbol==="); in main()
586 System.out.println(String.format("%8x: %s", i, symArr[i].toString())); in main()
588 System.out.println("===Dynamic Symbol==="); in main()
592 System.out.println( in main()
601 System.out.println( in main()
611 System.out.println("===Dynamic Dependencies==="); in main()
613 System.out.println(DynDepEntry); in main()
616 System.out.println("===Strings in Read Only(.rodata) section==="); in main()
618 System.out.println(roStr); in main()
875 System.out.println( in readSectionHeaders()
[all …]
DBackupUtils.java267 StringBuilder out = new StringBuilder(); in executeShellCommandAndReturnOutput() local
269 out.append(str).append("\n"); in executeShellCommandAndReturnOutput()
271 return out.toString(); in executeShellCommandAndReturnOutput()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DMemHealthRecord.java120 PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(fileName, true))); in saveVerbose() local
125 out.println("Foreground"); in saveVerbose()
148 out.println(procName); in saveVerbose()
149 out.printf("Average Native Heap: %d\n", getAverage(nativeHeap)); in saveVerbose()
150 out.printf("Average Dalvik Heap: %d\n", getAverage(dalvikHeap)); in saveVerbose()
151 out.printf("Average PSS: %d\n", getAverage(pss)); in saveVerbose()
152 out.printf("Peak Native Heap: %d\n", getMax(nativeHeap)); in saveVerbose()
153 out.printf("Peak Dalvik Heap: %d\n", getMax(dalvikHeap)); in saveVerbose()
154 out.printf("Peak PSS: %d\n", getMax(pss)); in saveVerbose()
155 out.printf("Count %d\n", nativeHeap.size()); in saveVerbose()
[all …]
DFilesystemUtil.java46 OutputStream out = new FileOutputStream(file); in saveProcessOutput() local
47 saveProcessOutput(instr, command, out); in saveProcessOutput()
48 out.close(); in saveProcessOutput()
52 public static void saveProcessOutput(Instrumentation instr, String command, OutputStream out) in saveProcessOutput() argument
57 pipe(new ParcelFileDescriptor.AutoCloseInputStream(pfd), out); in saveProcessOutput()
62 pipe(process.getInputStream(), out); in saveProcessOutput()
130 private static void pipe(InputStream in, OutputStream out) throws IOException { in pipe() argument
136 out.write(buffer, 0, bytesRead); in pipe()
141 out.flush(); in pipe()
/platform_testing/libraries/tradefed-python-lib/tradefed_py/
Dadb_handler.py30 (out, err) = proc.communicate()
33 return out
34 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
40 (out, err) = proc.communicate()
43 return out
44 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
Dandroid_device.py45 out = self.executeShellCommand('getprop %s' % name)
46 return out.strip()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/
DAndroid.bp26 out: ["statsd-config-protos.jar"],
35 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets/statsd-configs\" " +
38 "&& jar cf $(out) -C $$(dirname $(out)) $$assets_dir"
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DScreenshotOnFailureCollector.java146 OutputStream out = new BufferedOutputStream(new FileOutputStream(img)) in takeScreenshot() argument
148 screenshotToStream(out); in takeScreenshot()
149 out.flush(); in takeScreenshot()
162 public void screenshotToStream(OutputStream out) { in screenshotToStream() argument
164 .takeScreenshot().compress(Bitmap.CompressFormat.PNG, mQuality, out); in screenshotToStream()
DBatteryStatsListener.java186 OutputStream out = new BufferedOutputStream(new FileOutputStream(logFile)) in dumpBatteryStats()
191 out.write(buf, 0, bytes); in dumpBatteryStats()
DBaseMetricListener.java321 ByteArrayOutputStream out = new ByteArrayOutputStream() in executeCommandBlocking()
326 out.write(buf, 0, length); in executeCommandBlocking()
328 return out.toByteArray(); in executeCommandBlocking()
/platform_testing/libraries/health/runners/longevity/platform/samples/
DAndroid.bp29 out: ["sample-profiles.jar"],
38 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets\" " +
45 "&& exit 1 ; fi ; done && jar cf $(out) -C $$(dirname $(out)) $$assets_dir",
/platform_testing/libraries/health/runners/longevity/platform/tests/
DAndroid.bp29 out: ["lib-test-profiles.jar"],
38 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets\" " +
45 "&& exit 1 ; fi ; done && jar cf $(out) -C $$(dirname $(out)) $$assets_dir",
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java125 ByteArrayOutputStream out = new ByteArrayOutputStream()) { in executeCommandBlocking()
130 out.write(buf, 0, length); in executeCommandBlocking()
133 return out.toByteArray(); in executeCommandBlocking()
/platform_testing/tests/health/scenarios/tests/
DAndroid.bp29 out: ["sample-profiles-common.jar"],
38 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets\" " +
45 "&& exit 1 ; fi ; done && jar cf $(out) -C $$(dirname $(out)) $$assets_dir",
/platform_testing/libraries/audio-test-harness/proto/
DAndroid.bp34 "$(location soong_zip) -o $(out) -C $(genDir)/gen -D $(genDir)/gen"
38 "$(location soong_zip) -o $(out) -C $(genDir)/gen -D $(genDir)/gen"
69 out: [
81 out: [
/platform_testing/libraries/health/runners/longevity/
DREADME.md16 **Template command with stubbed out options.**
22 `java -Diterations=5 -Dquitter=true -cp out/host/linux-x86/framework/LongevityHostSamples.jar
28 out/host/linux-x86/framework/LongevityHostSamples.jar
33 **Template command with stubbed out options.**
77 `tests/` directory. Run them using `java out/host/linux-x86/framework/LongevityHostLibTests.jar
/platform_testing/emu_test/
Drun_android_bridge_test.cmd18 REM where adt-infra needs to be checked out.
55 echo "ADB test timed out"
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DLogcatCollectorTest.java120 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatCollectionOnEveryTestEnd()
192 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatCollectionWithBeforeDuration()
236 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatCollectionWithDirectoryOption()
276 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatOnlyOnTestFailureOption()
322 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testRetrievingLogcat()
392 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatTimespan()
478 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testMultipleIterations()
DGcaEventLogCollectorTest.java100 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testGcaEventLogCollectionOnTestEnd_includeFailure()
155 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testGcaEventLogCollectOnTestEnd_skipFailure()
208 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly()
DBatteryStatsListenerTest.java118 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestRunCollector()
168 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestRunToBytesCollector()
214 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestCaseCollector()
DScheduledRunMetricListenerTest.java67 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testPeriodicRun()
DScreenshotOnFailureCollectorTest.java130 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testSavePngAsFile()
167 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testSaveUixAsFile()
204 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testNoUixWithoutOption()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DXmlRunListener.java89 public XmlRunListener(OutputStream out, String suiteName) { in XmlRunListener() argument
92 mOutputStream = out; in XmlRunListener()
163 if (mOutputStream != System.out && mOutputStream != System.err) { in endTestSuite()

12