/cts/tests/tests/os/src/android/os/cts/ |
D | CustomClassLoaderTest.java | 49 OutputStream fos = new FileOutputStream(tf); in setUp() local 53 fos.write(buffer, 0, len); in setUp() 56 fos.flush(); in setUp() 57 fos.close(); in setUp()
|
D | RecoverySystemTest.java | 47 FileOutputStream fos = mContext.openFileOutput(name, 0); in getAsset() local 52 fos.write(b, 0, read); in getAsset() 55 fos.close(); in getAsset()
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
D | PermissionTestService.java | 191 FileOutputStream fos = null; in testFileWriteAccess() local 193 fos = getApplication().openFileOutput("writeable_file", 0); in testFileWriteAccess() 195 fos.write(content, 0, content.length); in testFileWriteAccess() 203 if (fos != null) { in testFileWriteAccess() 205 fos.close(); in testFileWriteAccess()
|
D | IsolatedServiceTest.java | 48 FileOutputStream fos = mActivity.openFileOutput(PermissionTestService.FILE_NAME, 0); in setUp() local 50 fos.write(content, 0, content.length); in setUp() 51 fos.close(); in setUp()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | SyncStorageEngineTest.java | 61 FileOutputStream fos = accountInfoFile.startWrite(); in testMalformedAuthority() local 62 fos.write(accountsFileData); in testMalformedAuthority() 63 accountInfoFile.finishWrite(fos); in testMalformedAuthority()
|
D | SharedPreferencesTest.java | 310 FileOutputStream fos = new FileOutputStream(prefsFileClone); in testTorture2() local 315 fos.write(buf, 0, n); in testTorture2() 318 fos.close(); in testTorture2()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaTextureRender.java | 289 FileOutputStream fos = null; in saveFrame() local 291 fos = new FileOutputStream(filename); in saveFrame() 293 bmp.compress(Bitmap.CompressFormat.PNG, 90, fos); in saveFrame() 299 if (fos != null) fos.close(); in saveFrame()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | TextureRender.java | 285 FileOutputStream fos = null; in saveFrame() local 287 fos = new FileOutputStream(filename); in saveFrame() 289 bmp.compress(Bitmap.CompressFormat.PNG, 90, fos); in saveFrame() 295 if (fos != null) fos.close(); in saveFrame()
|
D | DecodeEditEncodeTest.java | 890 FileOutputStream fos = null; in saveToFile() local 894 fos = new FileOutputStream(file); in saveToFile() 895 bos = new BufferedOutputStream(fos); in saveToFile() 896 fos = null; // closing bos will also close fos in saveToFile() 910 if (fos != null) { in saveToFile() 911 fos.close(); in saveToFile()
|
D | MediaRecorderTest.java | 559 FileOutputStream fos = new FileOutputStream(OUTPUT_PATH2); in testRecorderVideo() local 560 FileDescriptor fd = fos.getFD(); in testRecorderVideo() 565 fos.close(); in testRecorderVideo()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | ApkNdkApiReport.java | 151 FileOutputStream fos = new FileOutputStream(tempFile); in parseTestcasesFolder() local 156 fos.write(bytes, 0, length); in parseTestcasesFolder() 159 fos.close(); in parseTestcasesFolder()
|
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/ |
D | ClientTest.java | 60 try (FileOutputStream fos = InstrumentationRegistry in testInstantApplicationWriteFile() argument 62 fos.write("MyTest".getBytes()); in testInstantApplicationWriteFile()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PageRangeAdjustAndVerify.java | 339 try (FileOutputStream fos = new FileOutputStream(fd.getFileDescriptor())) { in adjustPageRangeAndVerifyPages() 340 document.writeTo(fos); in adjustPageRangeAndVerifyPages() 341 fos.flush(); in adjustPageRangeAndVerifyPages()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | ReportExporter.java | 128 FileOutputStream fos = new FileOutputStream(verifierReport); in saveReportOnInternalStorage() local 130 FileUtils.copy(is, fos); in saveReportOnInternalStorage()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | PhotoCaptureActivity.java | 306 FileOutputStream fos = new FileOutputStream(pictureFile); in onPictureTaken() local 307 fos.write(data); in onPictureTaken() 308 fos.close(); in onPictureTaken()
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteExternalStorageTest.java | 356 try (FileOutputStream fos = new FileOutputStream(new File(cur, name))) { in testExternalStorageRename() argument 357 fos.write(42); in testExternalStorageRename()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | BasePrintTest.java | 971 FileOutputStream fos = new FileOutputStream(output.getFileDescriptor()); in writeBlankPages() local 972 document.writeTo(fos); in writeBlankPages() 973 fos.flush(); in writeBlankPages()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebSettingsTest.java | 1081 FileOutputStream fos = mContext.openFileOutput(filename, Context.MODE_PRIVATE); in writeFile() local 1082 fos.write(content.getBytes()); in writeFile() 1083 fos.close(); in writeFile()
|