Home
last modified time | relevance | path

Searched refs:fos (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DCustomClassLoaderTest.java49 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()
DRecoverySystemTest.java47 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/
DPermissionTestService.java191 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()
DIsolatedServiceTest.java48 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/
DSyncStorageEngineTest.java61 FileOutputStream fos = accountInfoFile.startWrite(); in testMalformedAuthority() local
62 fos.write(accountsFileData); in testMalformedAuthority()
63 accountInfoFile.finishWrite(fos); in testMalformedAuthority()
DSharedPreferencesTest.java310 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/
DCtsMediaTextureRender.java289 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/
DTextureRender.java285 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()
DDecodeEditEncodeTest.java890 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()
DMediaRecorderTest.java559 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/
DApkNdkApiReport.java151 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/
DClientTest.java60 try (FileOutputStream fos = InstrumentationRegistry in testInstantApplicationWriteFile() argument
62 fos.write("MyTest".getBytes()); in testInstantApplicationWriteFile()
/cts/tests/tests/print/src/android/print/cts/
DPageRangeAdjustAndVerify.java339 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/
DReportExporter.java128 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/
DPhotoCaptureActivity.java306 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/
DWriteExternalStorageTest.java356 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/
DBasePrintTest.java971 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/
DWebSettingsTest.java1081 FileOutputStream fos = mContext.openFileOutput(filename, Context.MODE_PRIVATE); in writeFile() local
1082 fos.write(content.getBytes()); in writeFile()
1083 fos.close(); in writeFile()