Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/tests/CoreTests/android/core/
DPipedStreamTest.java75 TestThread reader, writer; in testA() local
101 writer = new TestThread() { in testA()
114 writer.start(); in testA()
120 writer.join(1000); in testA()
128 if (writer.exception != null) { in testA()
129 throw new Exception(writer.exception); in testA()
143 TestThread reader, writer; in testB() local
181 writer = new TestThread() { in testB()
200 writer.start(); in testB()
206 writer.join(1000); in testB()
[all …]
DURLTest.java113 PrintWriter writer = new PrintWriter(output); in run() local
116 writer.println("HTTP/1.1 200 OK"); in run()
118 writer.println("Content-Length: " + body.length()); in run()
119 writer.println(""); in run()
120 writer.print(body); in run()
121 writer.flush(); in run()
123 writer.close(); in run()
DSSLSocketTest.java95 PrintWriter writer = new PrintWriter(output); in fetch() local
105 writer.println("GET https://" + host + path + " HTTP/1.1\r"); in fetch()
106 writer.println("Host: " + host + "\r"); in fetch()
107 writer.println("Connection: " + in fetch()
110 writer.println("\r"); in fetch()
111 writer.flush(); in fetch()
170 writer.close(); in fetch()
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/os/
DPerformanceCollectorTest.java107 MockPerformanceResultsWriter writer = new MockPerformanceResultsWriter(); in testBeginSnapshot() local
108 mPerfCollector.setPerformanceResultsWriter(writer); in testBeginSnapshot()
111 assertEquals("testBeginSnapshot", writer.snapshotLabel); in testBeginSnapshot()
121 MockPerformanceResultsWriter writer = new MockPerformanceResultsWriter(); in testEndSnapshot() local
122 mPerfCollector.setPerformanceResultsWriter(writer); in testEndSnapshot()
126 Bundle snapshot2 = writer.snapshotResults; in testEndSnapshot()
134 MockPerformanceResultsWriter writer = new MockPerformanceResultsWriter(); in testStartTiming() local
135 mPerfCollector.setPerformanceResultsWriter(writer); in testStartTiming()
138 assertEquals("testStartTiming", writer.timingLabel); in testStartTiming()
174 MockPerformanceResultsWriter writer = new MockPerformanceResultsWriter(); in testAddMeasurementLong() local
[all …]
DFileUtilsTest.java49 FileWriter writer = new FileWriter(mTestFile); in setUp() local
51 writer.write(TEST_DATA, 0, TEST_DATA.length()); in setUp()
53 writer.close(); in setUp()
/frameworks/base/core/jni/
Dandroid_backup_BackupDataOutput.cpp53 BackupDataWriter* writer = (BackupDataWriter*)w; in writeEntityHeader_native() local
60 err = writer->WriteEntityHeader(String8(keyUTF), dataSize); in writeEntityHeader_native()
71 BackupDataWriter* writer = (BackupDataWriter*)w; in writeEntityData_native() local
83 err = writer->WriteEntityData(dataBytes, size); in writeEntityData_native()
94 BackupDataWriter* writer = (BackupDataWriter*)w; in setKeyPrefix_native() local
99 writer->SetKeyPrefix(keyPrefix); in setKeyPrefix_native()
/frameworks/base/awt/javax/imageio/
DImageIO.java345 public static ImageReader getImageReader(ImageWriter writer) { in getImageReader() argument
386 ImageWriter writer) { in getImageTranscoders() argument
517 ImageWriter writer = it.next(); in write() local
518 writer.setOutput(output); in write()
519 writer.write(im); in write()
521 writer.dispose(); in write()
/frameworks/base/test-runner/android/test/
DBundlePrinter.java25 public BundlePrinter(PrintStream writer, Bundle result) { in BundlePrinter() argument
26 super(writer); in BundlePrinter()
DAndroidTestRunner.java192 Test test, PerformanceResultsWriter writer) { in setPerformanceWriterIfPerformanceCollectorTestCase() argument
194 ((PerformanceCollectorTestCase) test).setPerformanceResultsWriter(writer); in setPerformanceWriterIfPerformanceCollectorTestCase()
214 public void setPerformanceResultsWriter(PerformanceResultsWriter writer) { in setPerformanceResultsWriter() argument
215 mPerfWriter = writer; in setPerformanceResultsWriter()
DPerformanceCollectorTestCase.java36 public void setPerformanceResultsWriter(PerformanceResultsWriter writer); in setPerformanceResultsWriter() argument
DInstrumentationTestRunner.java423 PrintStream writer = new PrintStream(byteArrayOutputStream); in onStart() local
425 StringResultPrinter resultPrinter = new StringResultPrinter(writer); in onStart()
443 writer.close(); in onStart()
522 public StringResultPrinter(PrintStream writer) { in StringResultPrinter() argument
523 super(writer); in StringResultPrinter()
/frameworks/base/cmds/stagefright/
Drecord.cpp163 sp<MPEG4Writer> writer = new MPEG4Writer("/sdcard/output.mp4");
164 writer->addSource(enc_meta, encoder);
165 writer->start();
168 writer->stop();
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DRenameClassAdapter.java204 SignatureWriter writer = new SignatureWriter(); in renameTypeSignature() local
205 reader.accept(new RenameSignatureAdapter(writer)); in renameTypeSignature()
206 sig = writer.toString(); in renameTypeSignature()
220 SignatureWriter writer = new SignatureWriter(); in renameFieldSignature() local
221 reader.acceptType(new RenameSignatureAdapter(writer)); in renameFieldSignature()
222 sig = writer.toString(); in renameFieldSignature()
/frameworks/base/core/java/android/os/
DPerformanceCollector.java291 public PerformanceCollector(PerformanceResultsWriter writer) { in PerformanceCollector() argument
292 setPerformanceResultsWriter(writer); in PerformanceCollector()
295 public void setPerformanceResultsWriter(PerformanceResultsWriter writer) { in setPerformanceResultsWriter() argument
296 mPerfWriter = writer; in setPerformanceResultsWriter()
/frameworks/base/test-runner/junit/textui/
DResultPrinter.java20 public ResultPrinter(PrintStream writer) { in ResultPrinter() argument
21 fWriter= writer; in ResultPrinter()
DTestRunner.java42 public TestRunner(PrintStream writer) { in TestRunner() argument
43 this(new ResultPrinter(writer)); in TestRunner()
/frameworks/base/core/java/android/app/
DService.java510 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
511 writer.println("nothing to dump"); in dump()
/frameworks/base/libs/utils/
DBackupHelpers.cpp861 test_write_header_and_entity(BackupDataWriter& writer, const char* str) in test_write_header_and_entity() argument
866 err = writer.WriteEntityHeader(text, text.length()+1); in test_write_header_and_entity()
872 err = writer.WriteEntityData(text.string(), text.length()+1); in test_write_header_and_entity()
898 BackupDataWriter writer(fd); in backup_helper_test_data_writer() local
901 err |= test_write_header_and_entity(writer, "no_padding_"); in backup_helper_test_data_writer()
902 err |= test_write_header_and_entity(writer, "padded_to__3"); in backup_helper_test_data_writer()
903 err |= test_write_header_and_entity(writer, "padded_to_2__"); in backup_helper_test_data_writer()
904 err |= test_write_header_and_entity(writer, "padded_to1"); in backup_helper_test_data_writer()
/frameworks/base/awt/javax/imageio/spi/
DImageWriterSpi.java213 public boolean isOwnWriter(ImageWriter writer) { in isOwnWriter() argument
/frameworks/base/test-runner/junit/runner/
DBaseTestRunner.java266 PrintWriter writer= new PrintWriter(stringWriter); in getFilteredTrace() local
267 t.printStackTrace(writer); in getFilteredTrace()
/frameworks/base/core/java/com/android/internal/util/
DFastXmlSerializer.java309 public void setOutput(Writer writer) throws IOException, IllegalArgumentException, in setOutput() argument
311 mWriter = writer; in setOutput()