/cts/tests/backup/app/src/android/backup/app/ |
D | MainActivity.java | 71 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(f))) { in createFile() argument 74 bos.write(bytes, 0, bytesToWrite); in createFile()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 89 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in bitmapToInputStream() local 90 bmp.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos); in bitmapToInputStream() 91 byte[] bitmapData = bos.toByteArray(); in bitmapToInputStream()
|
/cts/hostsidetests/backup/AllowBackup/src/ |
D | AllowBackupTest.java | 114 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { in addData() argument 115 bos.write(bytes, 0, bytes.length); in addData()
|
/cts/hostsidetests/backup/FullBackupOnly/src/ |
D | FullBackupOnlyBackupAgent.java | 85 try (BufferedOutputStream bos = new BufferedOutputStream( in onRestore() argument 87 bos.write(dataBuf, 0, dataBuf.length); in onRestore()
|
D | FullBackupOnlyTest.java | 140 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { in addData() argument 141 bos.write(bytes, 0, bytes.length); in addData()
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 108 BufferedOutputStream bos = new BufferedOutputStream(os); in run() local 109 writeClassFile(r, bos, isDex); in run() 110 bos.close(); in run()
|
/cts/hostsidetests/backup/fullbackupapp/src/android/cts/backup/fullbackupapp/ |
D | FullbackupTest.java | 138 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { in addData() argument 139 bos.write(bytes, 0, bytes.length); in addData()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | FramebufferTest.java | 616 BufferedOutputStream bos = null; in saveFrame() local 618 bos = new BufferedOutputStream(new FileOutputStream(filename)); in saveFrame() 620 bmp.compress(Bitmap.CompressFormat.PNG, 90, bos); in saveFrame() 623 if (bos != null) bos.close(); in saveFrame()
|
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/ |
D | InstallDexMetadataHostTest.java | 234 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in extractProfileFromDexMetadata() local 238 bos.write(buffer, 0, count); in extractProfileFromDexMetadata() 240 return bos.toByteArray(); in extractProfileFromDexMetadata()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseUtilsTest.java | 368 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testDumpCurrentRow() local 369 PrintStream os = new PrintStream(bos); in testDumpCurrentRow() 373 assertEquals(expected, bos.toString()); in testDumpCurrentRow() 408 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testDumpCursor() local 409 PrintStream os = new PrintStream(bos); in testDumpCursor() 414 assertEquals(expected, bos.toString()); in testDumpCursor()
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | IncludeExcludeTest.java | 195 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { in addData() argument 196 bos.write(bytes, 0, bytes.length); in addData()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecodeEditEncodeTest.java | 881 BufferedOutputStream bos = null; in saveToFile() local 885 bos = new BufferedOutputStream(fos); in saveToFile() 891 bos.write(chunk); in saveToFile() 897 if (bos != null) { in saveToFile() 898 bos.close(); in saveToFile()
|