Home
last modified time | relevance | path

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

/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DIsolatedServiceTest.java47 FileOutputStream fos = mActivity.openFileOutput(PermissionTestService.FILE_NAME, 0); in setUp() local
49 fos.write(content, 0, content.length); in setUp()
50 fos.close(); in setUp()
DPermissionTestService.java189 FileOutputStream fos = null; in testFileWriteAccess() local
191 fos = getApplication().openFileOutput("writeable_file", 0); in testFileWriteAccess()
193 fos.write(content, 0, content.length); in testFileWriteAccess()
201 if (fos != null) { in testFileWriteAccess()
203 fos.close(); in testFileWriteAccess()
/cts/tests/tests/os/src/android/os/cts/
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/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.java889 FileOutputStream fos = null; in saveToFile() local
893 fos = new FileOutputStream(file); in saveToFile()
894 bos = new BufferedOutputStream(fos); in saveToFile()
895 fos = null; // closing bos will also close fos in saveToFile()
909 if (fos != null) { in saveToFile()
910 fos.close(); in saveToFile()
DMediaRecorderTest.java299 FileOutputStream fos = new FileOutputStream(OUTPUT_PATH2); in testRecorderVideo() local
300 FileDescriptor fd = fos.getFD(); in testRecorderVideo()
305 fos.close(); in testRecorderVideo()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_FilesTest.java215 FileOutputStream fos = mContext.openFileOutput("dummy.dat", Context.MODE_PRIVATE); in testAccess() local
216 fos.write(0); in testAccess()
217 fos.close(); in testAccess()
231 fos = mContext.openFileOutput("dummy.dat", Context.MODE_WORLD_READABLE); in testAccess()
232 fos.write(0); in testAccess()
233 fos.close(); in testAccess()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java294 FileOutputStream fos = new FileOutputStream(prefsFileClone); in testTorture2() local
299 fos.write(buf, 0, n); in testTorture2()
302 fos.close(); in testTorture2()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java277 FileOutputStream fos = new FileOutputStream(pictureFile); in onPictureTaken() local
278 fos.write(data); in onPictureTaken()
279 fos.close(); in onPictureTaken()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebSettingsTest.java798 FileOutputStream fos = mContext.openFileOutput(filename, Context.MODE_PRIVATE);
799 fos.write(content.getBytes());
800 fos.close();
/cts/tools/dex-tools/dex/
Dclasses.out.dex43369 private android.net.LocalSocketImpl$SocketOutputStream fos