Home
last modified time | relevance | path

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

12

/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/content/src/android/content/cts/
DSyncStorageEngineTest.java47 FileOutputStream fos = accountInfoFile.startWrite(); in testMalformedAuthority() local
48 fos.write(accountsFileData); in testMalformedAuthority()
49 accountInfoFile.finishWrite(fos); in testMalformedAuthority()
DSharedPreferencesTest.java308 FileOutputStream fos = new FileOutputStream(prefsFileClone); in testTorture2() local
313 fos.write(buf, 0, n); in testTorture2()
316 fos.close(); in testTorture2()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
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()
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()
/cts/tests/tests/car/src/android/car/cts/
DCarWatchdogManagerTest.java160 try (FileOutputStream fos = new FileOutputStream(uniqueFile)) { in writeToDisk() argument
162 writeToFos(fos, size); in writeToDisk()
163 fos.getFD().sync(); in writeToDisk()
168 private static void writeToFos(FileOutputStream fos, long maxSize) throws IOException { in writeToFos() argument
174 fos.write(new byte[writeSize]); in writeToFos()
DCarWatchdogDaemonTest.java109 private static void writeToFos(FileOutputStream fos, long maxSize) throws IOException { in writeToFos() argument
115 fos.write(new byte[writeSize]); in writeToFos()
136 FileOutputStream fos = new FileOutputStream(uniqueFile); in writeToDisk() local
138 writeToFos(fos, size); in writeToDisk()
139 fos.getFD().sync(); in writeToDisk()
/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/media/src/android/mediav2/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()
/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.java903 FileOutputStream fos = null;
907 fos = new FileOutputStream(file);
908 bos = new BufferedOutputStream(fos);
909 fos = null; // closing bos will also close fos
923 if (fos != null) {
924 fos.close();
/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/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/car/app/src/android/car/cts/app/
DCarWatchdogTestActivity.java238 try (FileOutputStream fos = new FileOutputStream(uniqueFile)) { in writeToFile() argument
240 writtenBytes = writeToFos(fos, bytes); in writeToFile()
248 fos.getFD().sync(); in writeToFile()
269 private long writeToFos(FileOutputStream fos, long remainingBytes) { in writeToFos() argument
276 fos.write(new byte[writeBytes]); in writeToFos()
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java377 try (OutputStream fos = getContentResolver().openOutputStream(uri, "rw")) { in testInsertHiddenFile() argument
378 fos.write(BYTES_DATA1); in testInsertHiddenFile()
636 try (final FileOutputStream fos = new FileOutputStream(imageFile)) { in testRenameDoesntInvalidateUri_hasRW() argument
637 fos.write(BYTES_DATA1); in testRenameDoesntInvalidateUri_hasRW()
645 try (final FileOutputStream fos = new FileOutputStream(temporaryImageFile, true)) { in testRenameDoesntInvalidateUri_hasRW() argument
646 fos.write(BYTES_DATA2); in testRenameDoesntInvalidateUri_hasRW()
804 try (final OutputStream fos = getContentResolver().openOutputStream(uri, "rw")) { in testInsertWithUnsupportedMimeType() argument
805 fos.write(BYTES_DATA1); in testInsertWithUnsupportedMimeType()
838 try (FileOutputStream fos = new FileOutputStream(otherAppVideoFile)) { in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates() argument
839 fos.write(BYTES_DATA1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java265 try (FileOutputStream fos = new ParcelFileDescriptor.AutoCloseOutputStream(fdIn)) { in writeStdInAndClose() argument
266 fos.write(stdInBytes); in writeStdInAndClose()
/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.java184 FileOutputStream fos = new FileOutputStream(verifierReport); in saveReportOnInternalStorage() local
186 FileUtils.copy(is, fos); in saveReportOnInternalStorage()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DBasicVoiceInteractionService.java340 try (OutputStream fos =
343 fos.write(FAKE_HOTWORD_AUDIO_DATA, 0, 8);
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java371 try (FileOutputStream fos = new FileOutputStream(new File(cur, name))) { in testExternalStorageRename() argument
372 fos.write(42); in testExternalStorageRename()
/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/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java414 try (FileOutputStream fos = new FileOutputStream(file)) { in testCreateFileInAppExternalDir() argument
415 fos.write(BYTES_DATA1); in testCreateFileInAppExternalDir()
497 try (FileOutputStream fos = new FileOutputStream(imageFile)) { in testContributeMediaFile() argument
498 fos.write(BYTES_DATA1); in testContributeMediaFile()
499 fos.write(BYTES_DATA2); in testContributeMediaFile()
1437 try (FileOutputStream fos = new FileOutputStream(otherAppImageFile)) { in testSystemGalleryAppHasFullAccessToImages() argument
1438 fos.write(BYTES_DATA1); in testSystemGalleryAppHasFullAccessToImages()
1513 try (FileOutputStream fos = new FileOutputStream(otherAppVideoFile)) { in testSystemGalleryCanRenameImagesAndVideos() argument
1514 fos.write(BYTES_DATA1); in testSystemGalleryCanRenameImagesAndVideos()
1824 try (FileOutputStream fos = new FileOutputStream(hiddenImageFile)) { in testCanCreateHiddenFile() argument
[all …]
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java824 FileOutputStream fos = new FileOutputStream(output.getFileDescriptor()); in writeBlankPages() local
825 document.writeTo(fos); in writeBlankPages()
826 fos.flush(); in writeBlankPages()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingTestUtil.java135 FileOutputStream fos = new FileOutputStream(file); in dumpYuvToExternal() local
136 FileUtils.copy(fis, fos); in dumpYuvToExternal()

12