Home
last modified time | relevance | path

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

/system/timezone/distro/core/src/main/com/android/timezone/distro/
DTimeZoneDistro.java156 try (FileOutputStream fos = new FileOutputStream(entryFile)) { in extractZipSafely() argument
159 fos.write(buffer, 0, count); in extractZipSafely()
162 fos.getFD().sync(); in extractZipSafely()
/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
DWritingService.java97 FileOutputStream fos = new FileOutputStream(mFile); in run() local
101 fos.write(mTestData); in run()
103 fos.close(); in run()
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java282 try (FileOutputStream fos = new FileOutputStream(file)) { in testCreateEmptyFile_truncatesExisting() argument
283 fos.write(new byte[1000]); in testCreateEmptyFile_truncatesExisting()
295 try (FileOutputStream fos = new FileOutputStream(file)) { in createFile() argument
296 fos.write(contents); in createFile()
362 try (FileOutputStream fos = new FileOutputStream(file)) { in createRegularFile() argument
363 fos.write("Hello".getBytes()); in createRegularFile()
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java799 try (FileOutputStream fos = new FileOutputStream(file)) { in createFile() argument
800 fos.write(bytes); in createFile()
821 try (FileOutputStream fos = new FileOutputStream(versionFile, false /* append */)) { in createTimeZoneDistroWithVersionBytes() argument
822 fos.write(versionBytes); in createTimeZoneDistroWithVersionBytes()
/system/tools/aidl/tests/java/src/android/aidl/tests/
DTestServiceClient.java445 FileOutputStream fos = new FileOutputStream(file, false /*append*/); in testFileDescriptorPassing() local
447 FileDescriptor descriptor = fos.getFD(); in testFileDescriptorPassing()
449 fos.close(); in testFileDescriptorPassing()
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java457 FileOutputStream fos = new FileOutputStream(file); in runClientSafeUnionTests() local
459 testHandlesList.add(new NativeHandle(fos.getFD(), false /*own*/)); in runClientSafeUnionTests()
474 ExpectTrue(resultFd.getInt$() != fos.getFD().getInt$()); in runClientSafeUnionTests()
493 fos.close(); in runClientSafeUnionTests()