Home
last modified time | relevance | path

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

/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/common/device-side/util/src/com/android/compatibility/common/util/
DBitmapUtils.java89 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/
DAllowBackupTest.java114 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/
DFullBackupOnlyBackupAgent.java85 try (BufferedOutputStream bos = new BufferedOutputStream( in onRestore() argument
87 bos.write(dataBuf, 0, dataBuf.length); in onRestore()
DFullBackupOnlyTest.java140 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/
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.java138 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/
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/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DInstallDexMetadataHostTest.java234 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/
DDatabaseUtilsTest.java368 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/
DIncludeExcludeTest.java195 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/
DDecodeEditEncodeTest.java881 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()