Home
last modified time | relevance | path

Searched refs:outputStream (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseOutputStreamTest.java60 AssetFileDescriptor.AutoCloseOutputStream outputStream = in testAutoCloseOutputStream() local
62 outputStream.write(FILE_DATA[0]); in testAutoCloseOutputStream()
63 outputStream.write(FILE_DATA, 1, 5); in testAutoCloseOutputStream()
64 outputStream.write(FILE_DATA); in testAutoCloseOutputStream()
65 outputStream.flush(); in testAutoCloseOutputStream()
DAssetFileDescriptor_AutoCloseInputStreamTest.java45 FileOutputStream outputStream = new FileOutputStream(mFile); in setUp() local
46 outputStream.write(FILE_DATA); in setUp()
47 outputStream.close(); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sample/
DSampleTestActivity.java102 FileOutputStream outputStream = null; in createFileAndShare() local
105 outputStream = new FileOutputStream(file); in createFileAndShare()
106 outputStream.write(TEST_STRING.getBytes()); in createFileAndShare()
116 if (outputStream != null) { in createFileAndShare()
117 outputStream.close(); in createFileAndShare()
/cts/tests/tests/webkit/src/android/webkit/cts/
DMockContentProvider.java83 FileOutputStream outputStream = new FileOutputStream(output.getFileDescriptor()); in writeDataToPipe() local
86 printWriter = new PrintWriter(new OutputStreamWriter(outputStream, "UTF-8")); in writeDataToPipe()
94 outputStream.close(); in writeDataToPipe()
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java76 FileOutputStream outputStream = getContext().openFileOutput(PRIVATE_FILE_NAME, in testCreatePrivateData() local
78 outputStream.write("file contents".getBytes()); in testCreatePrivateData()
79 outputStream.close(); in testCreatePrivateData()
82 outputStream = getContext().openFileOutput(PUBLIC_FILE_NAME, in testCreatePrivateData()
84 DataOutputStream dataOut = new DataOutputStream(outputStream); in testCreatePrivateData()
87 outputStream.close(); in testCreatePrivateData()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DDngCreatorTest.java107 ByteArrayOutputStream outputStream = null; in testSingleImageBasic() local
131 outputStream = new ByteArrayOutputStream(); in testSingleImageBasic()
132 dngCreator.writeImage(outputStream, resultPair.first); in testSingleImageBasic()
140 fileStream.write(outputStream.toByteArray()); in testSingleImageBasic()
149 if (outputStream != null) { in testSingleImageBasic()
150 outputStream.close(); in testSingleImageBasic()
182 ByteArrayOutputStream outputStream = null; in testSingleImageThumbnail() local
231 outputStream = new ByteArrayOutputStream(); in testSingleImageThumbnail()
232 dngCreator.writeImage(outputStream, resultPair.first.get(0)); in testSingleImageThumbnail()
239 fileStream.write(outputStream.toByteArray()); in testSingleImageThumbnail()
[all …]
DStillCaptureTest.java801 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in fullRawCaptureTestByCamera() local
803 dngCreator.writeImage(outputStream, rawImage); in fullRawCaptureTestByCamera()
807 byte[] rawBuffer = outputStream.toByteArray(); in fullRawCaptureTestByCamera()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsReport.java85 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in getContents() local
88 xml.setOutput(outputStream, "utf-8"); in getContents()
148 return outputStream.toString("utf-8"); in getContents()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DUsbAccessoryTestActivity.java158 FileOutputStream outputStream = new FileOutputStream(fileDescriptor); in openAccessory() local
159 new MessageThread(inputStream, outputStream, mHandler).start(); in openAccessory()
175 MessageThread(InputStream inputStream, OutputStream outputStream, MessageHandler handler) { in MessageThread() argument
177 this.mOutputStream = outputStream; in MessageThread()
/cts/tests/tests/media/src/android/media/cts/
DEncodeVirtualDisplayTest.java284 FileOutputStream outputStream = null; in doTestEncodeVirtual() local
288 outputStream = new FileOutputStream(fileName); in doTestEncodeVirtual()
407 if (outputStream != null) { in doTestEncodeVirtual()
412 outputStream.write(data); in doTestEncodeVirtual()
449 if (outputStream != null) { in doTestEncodeVirtual()
451 outputStream.close(); in doTestEncodeVirtual()
DEncodeDecodeTest.java572 FileOutputStream outputStream = null; in doEncodeDecodeVideoFromBuffer() local
576 outputStream = new FileOutputStream(fileName); in doEncodeDecodeVideoFromBuffer()
665 if (outputStream != null) { in doEncodeDecodeVideoFromBuffer()
670 outputStream.write(data); in doEncodeDecodeVideoFromBuffer()
800 if (outputStream != null) { in doEncodeDecodeVideoFromBuffer()
802 outputStream.close(); in doEncodeDecodeVideoFromBuffer()
837 FileOutputStream outputStream = null; in doEncodeDecodeVideoFromSurfaceToSurface() local
841 outputStream = new FileOutputStream(fileName); in doEncodeDecodeVideoFromSurfaceToSurface()
957 if (outputStream != null) { in doEncodeDecodeVideoFromSurfaceToSurface()
962 outputStream.write(data); in doEncodeDecodeVideoFromSurfaceToSurface()
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DXmlReport.java35 PackageFilter packageFilter, String reportTitle, OutputStream outputStream) { in printXmlReport() argument
36 PrintStream out = new PrintStream(outputStream); in printXmlReport()
DTextReport.java31 OutputStream outputStream) { in printTextReport() argument
32 PrintStream out = new PrintStream(outputStream); in printTextReport()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DContactsTest.java570 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in getByteFromStream() local
574 outputStream.write(buf, 0, i); in getByteFromStream()
576 return outputStream.toByteArray(); in getByteFromStream()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex17184 final java.io.OutputStream outputStream
29623 private java.io.OutputStream outputStream
29766 private java.io.OutputStream outputStream
65833 private java.io.OutputStream outputStream