/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | X509CertificateSigningTest.java | 94 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/ |
D | AssetFileDescriptor_AutoCloseOutputStreamTest.java | 60 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()
|
D | AssetFileDescriptor_AutoCloseInputStreamTest.java | 45 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/ |
D | SampleTestActivity.java | 103 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/ |
D | CreatePrivateDataTest.java | 76 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/ |
D | DngCreatorTest.java | 139 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 …]
|
D | StillCaptureTest.java | 1149 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/ |
D | PersistableBundleTest.java | 47 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testWriteToStreamAndReadFromStream() local 48 bundle.writeToStream(outputStream); in testWriteToStreamAndReadFromStream() 49 ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray()); in testWriteToStreamAndReadFromStream()
|
D | SeccompTest.java | 417 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/ |
D | CodecUtils.java | 176 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()
|
D | HeifWriterTest.java | 108 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()
|
D | EncodeDecodeTest.java | 640 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 …]
|
D | EncodeVirtualDisplayTest.java | 289 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/ |
D | MockContentProvider.java | 83 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()
|
D | TracingControllerTest.java | 47 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/ |
D | UninstallTest.java | 77 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/ |
D | TestReport.java | 75 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/ |
D | TextReport.java | 31 PackageFilter packageFilter, OutputStream outputStream) { in printTextReport() argument 32 PrintStream out = new PrintStream(outputStream); in printTextReport()
|
D | XmlReport.java | 37 OutputStream outputStream) { in printXmlReport() argument 38 PrintStream out = new PrintStream(outputStream); in printXmlReport()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 345 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/ |
D | AdbRootDependentCompilationTest.java | 96 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/ |
D | RoleManagerTest.java | 356 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/ |
D | DeviceOwnerTest.java | 958 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/ |
D | ContactsTest.java | 1303 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in getByteFromStream() local 1307 outputStream.write(buf, 0, i); in getByteFromStream() 1309 return outputStream.toByteArray(); in getByteFromStream()
|