Searched refs:fos (Results 1 – 6 of 6) sorted by relevance
156 try (FileOutputStream fos = new FileOutputStream(entryFile)) { in extractZipSafely() argument159 fos.write(buffer, 0, count); in extractZipSafely()162 fos.getFD().sync(); in extractZipSafely()
97 FileOutputStream fos = new FileOutputStream(mFile); in run() local101 fos.write(mTestData); in run()103 fos.close(); in run()
282 try (FileOutputStream fos = new FileOutputStream(file)) { in testCreateEmptyFile_truncatesExisting() argument283 fos.write(new byte[1000]); in testCreateEmptyFile_truncatesExisting()295 try (FileOutputStream fos = new FileOutputStream(file)) { in createFile() argument296 fos.write(contents); in createFile()362 try (FileOutputStream fos = new FileOutputStream(file)) { in createRegularFile() argument363 fos.write("Hello".getBytes()); in createRegularFile()
799 try (FileOutputStream fos = new FileOutputStream(file)) { in createFile() argument800 fos.write(bytes); in createFile()821 try (FileOutputStream fos = new FileOutputStream(versionFile, false /* append */)) { in createTimeZoneDistroWithVersionBytes() argument822 fos.write(versionBytes); in createTimeZoneDistroWithVersionBytes()
445 FileOutputStream fos = new FileOutputStream(file, false /*append*/); in testFileDescriptorPassing() local447 FileDescriptor descriptor = fos.getFD(); in testFileDescriptorPassing()449 fos.close(); in testFileDescriptorPassing()
457 FileOutputStream fos = new FileOutputStream(file); in runClientSafeUnionTests() local459 testHandlesList.add(new NativeHandle(fos.getFD(), false /*own*/)); in runClientSafeUnionTests()474 ExpectTrue(resultFd.getInt$() != fos.getFD().getInt$()); in runClientSafeUnionTests()493 fos.close(); in runClientSafeUnionTests()