/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/content/src/android/content/cts/ |
D | SyncStorageEngineTest.java | 47 FileOutputStream fos = accountInfoFile.startWrite(); in testMalformedAuthority() local 48 fos.write(accountsFileData); in testMalformedAuthority() 49 accountInfoFile.finishWrite(fos); in testMalformedAuthority()
|
D | SharedPreferencesTest.java | 308 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/ |
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()
|
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()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarWatchdogManagerTest.java | 160 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()
|
D | CarWatchdogDaemonTest.java | 109 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/ |
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/media/src/android/mediav2/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()
|
/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 | 903 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/ |
D | ClientTest.java | 60 try (FileOutputStream fos = InstrumentationRegistry in testInstantApplicationWriteFile() argument 62 fos.write("MyTest".getBytes()); in testInstantApplicationWriteFile()
|
/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/car/app/src/android/car/cts/app/ |
D | CarWatchdogTestActivity.java | 238 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/ |
D | LegacyStorageTest.java | 377 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/ |
D | ShellCommandUtils.java | 265 try (FileOutputStream fos = new ParcelFileDescriptor.AutoCloseOutputStream(fdIn)) { in writeStdInAndClose() argument 266 fos.write(stdInBytes); in writeStdInAndClose()
|
/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 | 184 FileOutputStream fos = new FileOutputStream(verifierReport); in saveReportOnInternalStorage() local 186 FileUtils.copy(is, fos); in saveReportOnInternalStorage()
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | BasicVoiceInteractionService.java | 340 try (OutputStream fos = 343 fos.write(FAKE_HOTWORD_AUDIO_DATA, 0, 8);
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteExternalStorageTest.java | 371 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/ |
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/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 414 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/ |
D | BasePrintTest.java | 824 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/ |
D | MediaTranscodingTestUtil.java | 135 FileOutputStream fos = new FileOutputStream(file); in dumpYuvToExternal() local 136 FileUtils.copy(fis, fos); in dumpYuvToExternal()
|