Home
last modified time | relevance | path

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

/cts/tests/tests/identity/src/android/security/identity/cts/
DX509CertificateSigningTest.java94 FileOutputStream outputStream = null; in testSigning() local
96 outputStream = file.startWrite(); in testSigning()
97 outputStream.write(cert.getEncoded()); in testSigning()
98 outputStream.close(); in testSigning()
99 file.finishWrite(outputStream); in testSigning()
101 if (outputStream != null) { in testSigning()
102 file.failWrite(outputStream); in testSigning()
/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.java103 FileOutputStream outputStream = null; in createFileAndShare() local
106 outputStream = new FileOutputStream(file); in createFileAndShare()
107 outputStream.write(TEST_STRING.getBytes()); in createFileAndShare()
117 if (outputStream != null) { in createFileAndShare()
118 outputStream.close(); in createFileAndShare()
/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, 0 /*mode*/); in testCreatePrivateData()
83 DataOutputStream dataOut = new DataOutputStream(outputStream); in testCreatePrivateData()
86 outputStream.close(); in testCreatePrivateData()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java139 ByteArrayOutputStream outputStream = null; in testSingleImageBasic() local
162 outputStream = new ByteArrayOutputStream(); in testSingleImageBasic()
163 dngCreator.writeImage(outputStream, resultPair.first); in testSingleImageBasic()
171 fileStream.write(outputStream.toByteArray()); in testSingleImageBasic()
177 validateDngNative(outputStream.toByteArray())); in testSingleImageBasic()
182 if (outputStream != null) { in testSingleImageBasic()
183 outputStream.close(); in testSingleImageBasic()
215 ByteArrayOutputStream outputStream = null; in testSingleImageThumbnail() local
272 outputStream = new ByteArrayOutputStream(); in testSingleImageThumbnail()
273 dngCreator.writeImage(outputStream, resultPair.first.get(0)); in testSingleImageThumbnail()
[all …]
DStillCaptureTest.java1149 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in fullRawCaptureTestByCamera() local
1151 dngCreator.writeImage(outputStream, rawImage); in fullRawCaptureTestByCamera()
1155 byte[] rawBuffer = outputStream.toByteArray(); in fullRawCaptureTestByCamera()
/cts/tests/tests/os/src/android/os/cts/
DPersistableBundleTest.java47 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testWriteToStreamAndReadFromStream() local
48 bundle.writeToStream(outputStream); in testWriteToStreamAndReadFromStream()
49 ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray()); in testWriteToStreamAndReadFromStream()
DSeccompTest.java417 final ParcelFileDescriptor.AutoCloseOutputStream outputStream = in installTestFilter() local
446 outputStream.write(myPidBytes); in installTestFilter()
448 outputStream.write(buffer[i]); in installTestFilter()
454 outputStream.close(); in installTestFilter()
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java176 FileOutputStream outputStream = new FileOutputStream(outputFile); in saveBitmapToFile() local
177 bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream); in saveBitmapToFile()
178 outputStream.flush(); in saveBitmapToFile()
179 outputStream.close(); in saveBitmapToFile()
DHeifWriterTest.java108 FileOutputStream outputStream = null; in setUp() local
111 outputStream = new FileOutputStream(outputPath); in setUp()
112 copy(inputStream, outputStream); in setUp()
115 closeQuietly(outputStream); in setUp()
438 FileOutputStream outputStream = null; in doTest() local
468 outputStream = new FileOutputStream(outputFile); in doTest()
476 outputStream.write(data); in doTest()
517 if (outputStream != null) { in doTest()
518 outputStream.close(); in doTest()
DEncodeDecodeTest.java640 FileOutputStream outputStream = null; in doEncodeDecodeVideoFromBuffer() local
644 outputStream = new FileOutputStream(fileName); in doEncodeDecodeVideoFromBuffer()
779 if (outputStream != null) { in doEncodeDecodeVideoFromBuffer()
784 outputStream.write(data); in doEncodeDecodeVideoFromBuffer()
883 if (outputStream != null) { in doEncodeDecodeVideoFromBuffer()
885 outputStream.close(); in doEncodeDecodeVideoFromBuffer()
920 FileOutputStream outputStream = null; in doEncodeDecodeVideoFromSurfaceToSurface() local
924 outputStream = new FileOutputStream(fileName); in doEncodeDecodeVideoFromSurfaceToSurface()
1040 if (outputStream != null) { in doEncodeDecodeVideoFromSurfaceToSurface()
1045 outputStream.write(data); in doEncodeDecodeVideoFromSurfaceToSurface()
[all …]
DEncodeVirtualDisplayTest.java289 FileOutputStream outputStream = null; in doTestEncodeVirtual() local
293 outputStream = new FileOutputStream(fileName); in doTestEncodeVirtual()
412 if (outputStream != null) { in doTestEncodeVirtual()
417 outputStream.write(data); in doTestEncodeVirtual()
454 if (outputStream != null) { in doTestEncodeVirtual()
456 outputStream.close(); in doTestEncodeVirtual()
/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()
DTracingControllerTest.java47 private ByteArrayOutputStream outputStream; field in TracingControllerTest.TracingReceiver
50 outputStream = new ByteArrayOutputStream(); in TracingReceiver()
58 outputStream.write(chunk); in write()
102 ByteArrayOutputStream getOutputStream() { return outputStream; } in getOutputStream()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java77 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in dumpWindowHierarchy() local
78 mUiDevice.dumpWindowHierarchy(outputStream); in dumpWindowHierarchy()
79 String windowHierarchy = outputStream.toString(StandardCharsets.UTF_8.name()); in dumpWindowHierarchy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DTestReport.java75 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in getContents() local
79 xml.setOutput(outputStream, "utf-8"); in getContents()
132 return outputStream.toString("utf-8"); in getContents()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTextReport.java31 PackageFilter packageFilter, OutputStream outputStream) { in printTextReport() argument
32 PrintStream out = new PrintStream(outputStream); in printTextReport()
DXmlReport.java37 OutputStream outputStream) { in printXmlReport() argument
38 PrintStream out = new PrintStream(outputStream); in printXmlReport()
/cts/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java345 private void testFlushWorks(OutputStream outputStream, InputStream inputStream) in testFlushWorks() argument
351 outputStream.write(buffer); in testFlushWorks()
359 outputStream.flush(); in testFlushWorks()
/cts/hostsidetests/compilation/src/android/compilation/cts/
DAdbRootDependentCompilationTest.java96 try (OutputStream outputStream = new FileOutputStream(apkFile)) { in setUp() argument
98 ByteStreams.copy(inputStream, outputStream); in setUp()
/cts/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java356 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in dumpWindowHierarchy() local
357 sUiDevice.dumpWindowHierarchy(outputStream); in dumpWindowHierarchy()
358 String windowHierarchy = outputStream.toString(StandardCharsets.UTF_8.name()); in dumpWindowHierarchy()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceOwnerTest.java958 try (OutputStream outputStream = new FileOutputStream(file)) { in pushUpdateFileToDevice() argument
960 ByteStreams.copy(inputStream, outputStream); in pushUpdateFileToDevice()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DContactsTest.java1303 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in getByteFromStream() local
1307 outputStream.write(buf, 0, i); in getByteFromStream()
1309 return outputStream.toByteArray(); in getByteFromStream()