/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | MemHealthRecord.java | 120 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 …]
|
D | FilesystemUtil.java | 46 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/tests/functional/applinktests/src/com/android/functional/applinktests/ |
D | AppLinkTests.java | 65 String out = getAppLink(TEST_PKG_NAME); in testDefaultAppLinkSettting() local 66 assertTrue("Default app link not set to 'undefined' mode", "undefined".equals(out)); in testDefaultAppLinkSettting() 115 String out = getAppLink(YOUTUBE_PKG_NAME); in testVerifiedAppOpenWhenUnverifiedSetToAsk() local 161 String out = getAppLink(TEST_PKG_NAME); in testSettingsChangeUI() local 163 assertTrue(String.format("Default app link not set to 'always ask' rather set to %s", out), in testSettingsChangeUI() 164 "always".equals(out)); in testSettingsChangeUI() 169 out = getAppLink(TEST_PKG_NAME); in testSettingsChangeUI() 171 assertTrue(String.format("Default app link not set to 'never' rather set to %s", out), in testSettingsChangeUI() 172 "never".equals(out)); in testSettingsChangeUI() 177 out = getAppLink(TEST_PKG_NAME); in testSettingsChangeUI() [all …]
|
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | MetricUtility.java | 67 ByteArrayOutputStream out = new ByteArrayOutputStream()) { in executeCommandBlocking() 72 out.write(buf, 0, length); in executeCommandBlocking() 75 return out.toByteArray(); in executeCommandBlocking()
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/ |
D | Android.bp | 22 out: ["statsd-config-protos.jar"], 31 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets/statsd-configs\" " + 34 "&& jar cf $(out) -C $$(dirname $(out)) $$assets_dir"
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | ScreenshotOnFailureCollector.java | 146 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()
|
D | BatteryStatsListener.java | 186 OutputStream out = new BufferedOutputStream(new FileOutputStream(logFile)) in dumpBatteryStats() 191 out.write(buf, 0, bytes); in dumpBatteryStats()
|
D | BaseMetricListener.java | 279 ByteArrayOutputStream out = new ByteArrayOutputStream() in executeCommandBlocking() 284 out.write(buf, 0, length); in executeCommandBlocking() 286 return out.toByteArray(); in executeCommandBlocking()
|
/platform_testing/libraries/health/runners/longevity/platform/samples/ |
D | Android.bp | 25 out: ["sample-profiles.jar"], 34 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets\" " + 41 "&& exit 1 ; fi ; done && jar cf $(out) -C $$(dirname $(out)) $$assets_dir",
|
/platform_testing/libraries/health/runners/longevity/platform/tests/ |
D | Android.bp | 25 out: ["lib-test-profiles.jar"], 34 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets\" " + 41 "&& exit 1 ; fi ; done && jar cf $(out) -C $$(dirname $(out)) $$assets_dir",
|
/platform_testing/tests/health/scenarios/tests/ |
D | Android.bp | 25 out: ["sample-profiles-common.jar"], 34 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets\" " + 41 "&& exit 1 ; fi ; done && jar cf $(out) -C $$(dirname $(out)) $$assets_dir",
|
/platform_testing/libraries/health/runners/longevity/ |
D | README.md | 16 **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/ |
D | run_android_bridge_test.cmd | 18 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/ |
D | LogcatOnFailureCollectorTest.java | 108 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatOnFailure_nofailure() 132 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatOnFailure() 180 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testRetrievingLogcat() 252 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatTimespan() 338 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testMultipleIterations()
|
D | BatteryStatsListenerTest.java | 118 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()
|
D | ScheduledRunMetricListenerTest.java | 67 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testPeriodicRun()
|
D | ScreenshotOnFailureCollectorTest.java | 130 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()
|
D | BaseMetricListenerInstrumentedTest.java | 111 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); 401 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); 453 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); 509 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); 562 mListener.instrumentationRunFinished(System.out, resultBundle, new Result());
|
D | ScreenRecordCollectorTest.java | 143 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testScreenRecord()
|
D | ScheduledRunCollectionListenerTest.java | 143 mListener.instrumentationRunFinished(System.out, result, new Result()); in testInstrumentationResult()
|
/platform_testing/libraries/junitxml/src/com/android/junitxml/ |
D | XmlRunListener.java | 89 public XmlRunListener(OutputStream out, String suiteName) { in XmlRunListener() argument 92 mOutputStream = out; in XmlRunListener() 163 if (mOutputStream != System.out && mOutputStream != System.err) { in endTestSuite()
|
D | JUnitXmlRunner.java | 86 TextListener textListener = new TextListener(System.out); in main()
|