/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiElement.java | 127 public void print(String tag, ApiElement parentElement, String indent, PrintStream stream) { in print() argument 128 print(tag, true, parentElement, indent, stream); in print() 144 PrintStream stream) { in print() argument 145 stream.print(indent); in print() 146 stream.print('<'); in print() 147 stream.print(tag); in print() 148 stream.print(" name=\""); in print() 149 stream.print(encodeAttribute(mName)); in print() 151 stream.print("\" since=\""); in print() 152 stream.print(mSince); in print() [all …]
|
D | Api.java | 39 public void print(PrintStream stream) { in print() argument 40 stream.println("<api version=\"2\">"); in print() 41 print(mClasses.values(), "class", "\t", stream); in print() local 42 printClosingTag("api", "", stream); in print()
|
D | ApiClass.java | 95 public void print(String tag, ApiElement parentElement, String indent, PrintStream stream) { in print() argument 96 super.print(tag, false, parentElement, indent, stream); in print() 98 print(mSuperClasses, "extends", innerIndent, stream); in print() 99 print(mInterfaces, "implements", innerIndent, stream); in print() 100 print(mMethods.values(), "method", innerIndent, stream); in print() local 101 print(mFields.values(), "field", innerIndent, stream); in print() local 102 printClosingTag(tag, indent, stream); in print()
|
/tools/tradefederation/core/python-lib/tradefed_py/ |
D | tf_runner.py | 51 self.stream.write('TEST_RUN_STARTED %s\n' % json.dumps(resp)) 61 self.stream.write('TEST_STARTED %s\n' % json.dumps(resp)) 71 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp)) 82 self.stream.write('TEST_FAILED %s\n' % json.dumps(resp)) 84 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp)) 95 self.stream.write('TEST_IGNORED %s\n' % json.dumps(resp)) 97 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp)) 108 self.stream.write('TEST_ASSUMPTION_FAILURE %s\n' % json.dumps(resp)) 110 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp)) 120 self.stream.write('TEST_ASSUMPTION_FAILURE %s\n' % json.dumps(resp)) [all …]
|
D | base_test.py | 31 def setUpDevice(self, serial, stream, options): argument 40 self.stream = stream 42 self.android_device = android_device.AndroidTestDevice(serial, stream) 53 self.stream.write('TEST_LOG %s\n' % json.dumps(resp))
|
D | android_device.py | 25 def __init__(self, serial=None, stream=None): argument 28 self._logging = stream
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | StreamUtil.java | 59 final InputStream stream = source.createInputStream(); in getStringFromSource() local 62 contents = getStringFromStream(stream); in getStringFromSource() 64 close(stream); in getStringFromSource() 95 final InputStream stream = source.createInputStream(); in getByteArrayListFromSource() local 98 contents = getByteArrayListFromStream(stream); in getByteArrayListFromSource() 100 close(stream); in getByteArrayListFromSource() 112 public static String getStringFromStream(InputStream stream) throws IOException { in getStringFromStream() argument 115 try (Reader ir = new BufferedReader(new InputStreamReader(stream))) { in getStringFromStream() 130 public static ByteArrayList getByteArrayListFromStream(InputStream stream) throws IOException { in getByteArrayListFromStream() argument 131 InputStream is = new BufferedInputStream(stream); in getByteArrayListFromStream() [all …]
|
D | TestMapping.java | 40 import java.util.stream.Stream; 186 Stream<Path> stream = null; in getTests() local 189 stream = in getTests() 193 stream.filter(path -> path.getFileName().toString().equals(TEST_MAPPING)) in getTests() 204 if (stream != null) { in getTests() 205 stream.close(); in getTests()
|
D | CircularAtraceUtil.java | 97 FileInputStreamSource stream = new FileInputStreamSource(temp); in endTrace() local 98 return stream; in endTrace()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Version.kt | 30 … val stream = BufferedInputStream(Version::class.java.getResourceAsStream("/version.properties")) constant 32 properties.load(stream) 34 stream.close()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | ByteTracker.java | 48 public CloseableDelegateByteSource fromStream(@Nonnull InputStream stream) throws IOException { in fromStream() argument 49 byte[] data = ByteStreams.toByteArray(stream); in fromStream() 67 public CloseableDelegateByteSource fromStream(@Nonnull ByteArrayOutputStream stream) 69 byte[] data = stream.toByteArray();
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestSuiteInfoTest.java | 58 FileInputStream stream = null; in testLoadConfig() local 68 stream = new FileInputStream(propertyFile); in testLoadConfig() 69 Properties p = instance.loadSuiteInfo(stream); in testLoadConfig() 77 StreamUtil.close(stream); in testLoadConfig()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | FileMetadataCollector.java | 75 InputStream stream = null; in invocationEnded() local 77 stream = source.createInputStream(); in invocationEnded() 78 mLogSaver.saveLogDataRaw("metadata", LogDataType.TEXTPB, stream); in invocationEnded() 84 StreamUtil.close(stream); in invocationEnded()
|
/tools/tradefederation/core/src/com/android/tradefed/log/ |
D | FileLogger.java | 227 SizeLimitedOutputStream stream = mLogStream; in doCloseLog() local 229 StreamUtil.flushAndCloseStream(stream); in doCloseLog() 230 if (stream != null) { in doCloseLog() 231 stream.delete(); in doCloseLog()
|
D | LogReceiver.java | 80 InputStreamSource stream = getData(); in postLog() local 84 StreamUtil.cancel(stream); in postLog()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | StreamUtilTest.java | 44 final InputStream stream = source.createInputStream(); in testGetByteArrayListFromSource() local 45 final ByteArrayList output = StreamUtil.getByteArrayListFromStream(stream); in testGetByteArrayListFromSource() 77 final InputStream stream = source.createInputStream(); in testGetStringFromSource() local 78 final String output = StreamUtil.getStringFromStream(stream); in testGetStringFromSource()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/metricregression/ |
D | DetectRegression.java | 45 import java.util.stream.Collectors; 184 runMetricsResult.stream().map(TableRow::toStringArray).forEach(table::addLine); in logResult() 195 .stream() in logResult() 207 .stream() in logResult() 227 .stream() in getMetricsFiles() 257 return list.stream().collect(Collectors.averagingDouble(x -> x)); in calcMean() 264 list.stream().collect(Collectors.averagingDouble(x -> Math.pow(x - mean, 2)))); in calcStdDev()
|
/tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
D | CoexBaseTest.py | 140 self.stream = test_params[-1:] 152 if self.stream[0] == "ul": 155 if self.protocol[0] == "tcp" and self.stream[0] == "bidirectional": 166 if self.stream[0] == "bidirectional": 170 if self.stream[0] == "bidirectional": 195 sent, received = iperf_result(result, self.stream)
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | JacocoCodeCoverageTest.java | 41 import java.util.stream.Collectors; 42 import java.util.stream.Stream; 122 Stream<File> buildFilesStream = buildFiles.stream().map(VersionedFile::getFile); in generateCoverageReport() 196 return getClassFilesFilters().stream() in isClassFile()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/host/ |
D | CoverageMeasurementForwarder.java | 84 try (InputStreamSource stream = new FileInputStreamSource(coverageMeasurement)) { in run() argument 85 listener.testLog(artifactName, LogDataType.COVERAGE, stream); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/metricregression/ |
D | DetectRegressionTest.java | 42 import java.util.stream.Collectors; 79 Arrays.stream( in testDetectRegression() 91 Arrays.stream( in testDetectRegression()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | DumpHeapCollector.java | 125 try (FileInputStreamSource stream = new FileInputStreamSource(dumpheap)) { in saveDumpheap() argument 127 .testLog(FileUtil.getBaseName(dumpheap.getName()), LogDataType.HPROF, stream); in saveDumpheap() local
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | ScheduledDeviceMetricCollectorTest.java | 121 assertTrue(metrics.keySet().stream().anyMatch(key -> key.startsWith("{test device 1}"))); in testSetupAndPeriodicRunMultipleDevices() 122 assertTrue(metrics.keySet().stream().anyMatch(key -> key.startsWith("{test device 2}"))); in testSetupAndPeriodicRunMultipleDevices()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | SnapshotInputStreamSourceTest.java | 53 File createBackingFile(String name, InputStream stream) { in testCancel()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/ |
D | CoverageMeasurementForwarderTest.java | 80 try (InputStream stream = ((InputStreamSource) args[2]).createInputStream()) { in setUp() 81 mCapturedLogs.put((String) args[0], ByteString.readFrom(stream)); in setUp()
|