Home
last modified time | relevance | path

Searched refs:bos (Results 1 – 16 of 16) sorted by relevance

/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEvent.java56 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/
DMainActivity.java71 try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(f))) { in createFile() argument
74 bos.write(bytes, 0, bytesToWrite); in createFile()
/cts/hostsidetests/backup/FullBackupOnly/src/
DFullBackupOnlyBackupAgent.java85 try (BufferedOutputStream bos = new BufferedOutputStream( in onRestore() argument
87 bos.write(dataBuf, 0, dataBuf.length); in onRestore()
DFullBackupOnlyTest.java143 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/
DBackupEligibilityTest.java122 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/
DZipPathValidatorDeviceTest.java232 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getZipBytesFromZipOutputStreamWithEmptyEntry() local
233 writeZipOutputStreamWithEmptyEntry(bos, entryName); in getZipBytesFromZipOutputStreamWithEmptyEntry()
234 return bos.toByteArray(); in getZipBytesFromZipOutputStreamWithEmptyEntry()
/cts/tools/cfassembler/src/dxconvext/
DClassFileAssembler.java108 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/
DFullbackupTest.java141 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/
DFramebufferTest.java616 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/
DBitmapUtils.java151 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/
DDatabaseUtilsTest.java497 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/
DServiceKillTestService.java575 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/
DInstallDexMetadataHostTest.java426 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/
DIncludeExcludeTest.java214 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/
DAudioTrackSurroundTest.java163 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/
DDecodeEditEncodeTest.java1086 BufferedOutputStream bos = null;
1090 bos = new BufferedOutputStream(fos);
1096 bos.write(chunk);
1102 if (bos != null) {
1103 bos.close();