/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/ |
D | Event.java | 56 try (ByteArrayOutputStream bos = new ByteArrayOutputStream(); in toBytes() argument 57 ObjectOutputStream out = new ObjectOutputStream(bos)) { in toBytes() 60 return bos.toByteArray(); in toBytes()
|
/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/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 | 143 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { in addData() argument 144 bos.write(bytes, 0, bytes.length); in addData()
|
/cts/hostsidetests/backup/BackupEligibility/src/ |
D | BackupEligibilityTest.java | 122 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { in addData() argument 123 bos.write(bytes, 0, bytes.length); in addData()
|
/cts/hostsidetests/security/app/src/android/security/cts/ |
D | ZipPathValidatorDeviceTest.java | 232 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getZipBytesFromZipOutputStreamWithEmptyEntry() local 233 writeZipOutputStreamWithEmptyEntry(bos, entryName); in getZipBytesFromZipOutputStreamWithEmptyEntry() 234 return bos.toByteArray(); in getZipBytesFromZipOutputStreamWithEmptyEntry()
|
/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 | 141 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { in addData() argument 142 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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 151 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in bitmapToInputStream() local 152 bmp.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos); in bitmapToInputStream() 153 byte[] bitmapData = bos.toByteArray(); in bitmapToInputStream()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseUtilsTest.java | 497 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testDumpCurrentRow() local 498 PrintStream os = new PrintStream(bos); in testDumpCurrentRow() 502 assertEquals(expected, bos.toString()); in testDumpCurrentRow() 537 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testDumpCursor() local 538 PrintStream os = new PrintStream(bos); in testDumpCursor() 543 assertEquals(expected, bos.toString()); in testDumpCursor()
|
/cts/tests/ServiceKillTest/app/src/com/android/cts/servicekilltestapp/ |
D | ServiceKillTestService.java | 575 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in toBytes() local 576 ObjectOutputStream out = new ObjectOutputStream(bos); in toBytes() 580 bos.close(); in toBytes() 581 return bos.toByteArray(); in toBytes()
|
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/ |
D | InstallDexMetadataHostTest.java | 426 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in extractProfileFromDexMetadata() local 430 bos.write(buffer, 0, count); in extractProfileFromDexMetadata() 432 return bos.toByteArray(); in extractProfileFromDexMetadata()
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | IncludeExcludeTest.java | 214 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { in addData() argument 215 bos.write(bytes, 0, bytes.length); in addData()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioTrackSurroundTest.java | 163 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in loadRawResourceBytes() local 166 bos.write(b); in loadRawResourceBytes() 169 return bos.toByteArray(); in loadRawResourceBytes()
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | DecodeEditEncodeTest.java | 1086 BufferedOutputStream bos = null; 1090 bos = new BufferedOutputStream(fos); 1096 bos.write(chunk); 1102 if (bos != null) { 1103 bos.close();
|