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()
402 FileOutputStream fos = context.openFileOutput("test-dummy", Context.MODE_PRIVATE); in testFileDescriptorPassing() local404 FileDescriptor descriptor = fos.getFD(); in testFileDescriptorPassing()406 fos.close(); in testFileDescriptorPassing()
461 FileOutputStream fos = new FileOutputStream(file); in runClientSafeUnionTests() local463 testHandlesList.add(new NativeHandle(fos.getFD(), false /*own*/)); in runClientSafeUnionTests()478 ExpectTrue(resultFd.getInt$() != fos.getFD().getInt$()); in runClientSafeUnionTests()497 fos.close(); in runClientSafeUnionTests()