Home
last modified time | relevance | path

Searched refs:FileOutputStream (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/frameworks/base/tools/aapt2/io/
DFileStream.cpp111 FileOutputStream::FileOutputStream(const std::string& path, size_t buffer_capacity) in FileOutputStream() function in aapt::io::FileOutputStream
123 FileOutputStream::FileOutputStream(unique_fd fd, size_t buffer_capacity) in FileOutputStream() function in aapt::io::FileOutputStream
124 : FileOutputStream(fd.get(), buffer_capacity) { in FileOutputStream()
128 FileOutputStream::FileOutputStream(int fd, size_t buffer_capacity) in FileOutputStream() function in aapt::io::FileOutputStream
137 FileOutputStream::~FileOutputStream() { in ~FileOutputStream()
142 bool FileOutputStream::Next(void** data, size_t* size) { in Next()
161 void FileOutputStream::BackUp(size_t count) { in BackUp()
169 size_t FileOutputStream::ByteCount() const { in ByteCount()
173 bool FileOutputStream::Flush() { in Flush()
180 bool FileOutputStream::FlushImpl() { in FlushImpl()
[all …]
DFileStream.h63 class FileOutputStream : public OutputStream {
65 explicit FileOutputStream(const std::string& path,
69 explicit FileOutputStream(int fd, size_t buffer_capacity = kDefaultBufferCapacity);
72 explicit FileOutputStream(android::base::unique_fd fd,
75 ~FileOutputStream();
91 DISALLOW_COPY_AND_ASSIGN(FileOutputStream);
/frameworks/base/core/java/android/util/
DAtomicFile.java27 import java.io.FileOutputStream;
102 public FileOutputStream startWrite() throws IOException { in startWrite()
112 public FileOutputStream startWrite(long startTime) throws IOException { in startWrite()
126 FileOutputStream str = null; in startWrite()
128 str = new FileOutputStream(mBaseName); in startWrite()
139 str = new FileOutputStream(mBaseName); in startWrite()
153 public void finishWrite(FileOutputStream str) { in finishWrite()
174 public void failWrite(FileOutputStream str) { in failWrite()
192 FileOutputStream fos = new FileOutputStream(mBaseName); in truncate()
204 @Deprecated public FileOutputStream openAppend() throws IOException { in openAppend()
[all …]
/frameworks/base/core/tests/benchmarks/src/android/os/
DFileUtilsBenchmark.java30 import java.io.FileOutputStream;
48 try (FileOutputStream os = new FileOutputStream(mSrc)) { in setUp()
56 FileOutputStream out = new FileOutputStream(mDest)) { in timeRegularUserspace()
65 FileOutputStream out = new FileOutputStream(mDest)) { in timeRegularSendfile()
74 FileOutputStream out = new FileOutputStream(mDest)) { in timePipeSourceUserspace()
83 FileOutputStream out = new FileOutputStream(mDest)) { in timePipeSourceSplice()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java27 import java.io.FileOutputStream;
61 public FileOutputStream startWrite() throws IOException { in startWrite()
73 FileOutputStream str = null; in startWrite()
75 str = new FileOutputStream(mBaseName); in startWrite()
86 str = new FileOutputStream(mBaseName); in startWrite()
95 public void finishWrite(FileOutputStream str) { in finishWrite()
108 public void failWrite(FileOutputStream str) { in failWrite()
122 public FileOutputStream openAppend() throws IOException { in openAppend()
124 return new FileOutputStream(mBaseName, true); in openAppend()
133 FileOutputStream fos = new FileOutputStream(mBaseName); in truncate()
DAtomicDirectory.java27 import java.io.FileOutputStream;
49 private final @NonNull ArrayMap<File, FileOutputStream> mOpenFiles = new ArrayMap<>();
135 public @NonNull FileOutputStream openWrite(@NonNull File file) throws IOException { in openWrite()
139 final FileOutputStream destination = new FileOutputStream(file); in openWrite()
153 public void closeWrite(@NonNull FileOutputStream destination) { in closeWrite()
164 public void failWrite(@NonNull FileOutputStream destination) { in failWrite()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/
Dzero_copy_stream_impl.cc175 FileOutputStream::FileOutputStream(int file_descriptor, int block_size) in FileOutputStream() function in google::protobuf::io::FileOutputStream
180 FileOutputStream::~FileOutputStream() { in ~FileOutputStream()
184 bool FileOutputStream::Close() { in Close()
189 bool FileOutputStream::Flush() { in Flush()
193 bool FileOutputStream::Next(void** data, int* size) { in Next()
197 void FileOutputStream::BackUp(int count) { in BackUp()
201 int64 FileOutputStream::ByteCount() const { in ByteCount()
205 FileOutputStream::CopyingFileOutputStream::CopyingFileOutputStream( in CopyingFileOutputStream()
213 FileOutputStream::CopyingFileOutputStream::~CopyingFileOutputStream() { in ~CopyingFileOutputStream()
221 bool FileOutputStream::CopyingFileOutputStream::Close() { in Close()
[all …]
Dzero_copy_stream_impl.h141 class LIBPROTOBUF_EXPORT FileOutputStream : public ZeroCopyOutputStream {
147 explicit FileOutputStream(int file_descriptor, int block_size = -1);
148 ~FileOutputStream();
206 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FileOutputStream);
/frameworks/native/opengl/tools/glgen/src/
DGenerateGL.java19 import java.io.FileOutputStream;
120 new PrintStream(new FileOutputStream("out/" + gl10Filename)); in main()
122 new PrintStream(new FileOutputStream("out/" + gl10ExtFilename)); in main()
124 new PrintStream(new FileOutputStream("out/" + gl11Filename)); in main()
126 new PrintStream(new FileOutputStream("out/" + gl11ExtFilename)); in main()
128 new PrintStream(new FileOutputStream("out/" + gl11ExtPackFilename)); in main()
130 new PrintStream(new FileOutputStream("out/" + glImplFilename)); in main()
132 new PrintStream(new FileOutputStream("out/" + cFilename)); in main()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java36 import java.io.FileOutputStream;
86 new FileOutputStream(new File(dir, "bitmap1-original.png"))); in testWithBitmap()
88 new FileOutputStream(new File(dir, "bitmap1-test.png"))); in testWithBitmap()
95 new FileOutputStream(new File(dir, "bitmap2-original.png"))); in testWithBitmap()
97 new FileOutputStream(new File(dir, "bitmap2-test.png"))); in testWithBitmap()
104 new FileOutputStream(new File(dir, "bitmap3-original.png"))); in testWithBitmap()
106 new FileOutputStream(new File(dir, "bitmap3-test.png"))); in testWithBitmap()
151 new FileOutputStream(new File(dir, "adaptive-bitmap1-original.png"))); in testWithAdaptiveBitmap()
153 new FileOutputStream(new File(dir, "adaptive-bitmap1-test.png"))); in testWithAdaptiveBitmap()
174 new FileOutputStream(new File(dir, "res1-original.png"))); in testWithBitmapResource()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DFullBackupUtilsTest.java43 import java.io.FileOutputStream;
95 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_emptyInput_throwsEOFException()
115 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException()
135 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything()
151 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_notEnoughData_throwsEOFException()
173 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_oneSmallChunk_writesOutputCorrectly()
193 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_oneLargeChunk_writesOutputCorrectly()
216 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_twoSmallChunks_writesOutputCorrectly()
241 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_twoLargeChunks_writesOutputCorrectly()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakDetectorTest.java31 import java.io.FileOutputStream;
109 FileOutputStream fos = new FileOutputStream("/dev/null"); in testDump()
125 FileOutputStream fos = new FileOutputStream("/dev/null"); in testDisabled()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DDataStreamFileCodec.java24 import java.io.FileOutputStream;
70 FileOutputStream fileOutputStream = new FileOutputStream(mFile); in serialize()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DBitmapUtils.java24 import java.io.FileOutputStream;
32 FileOutputStream out = null; in saveBitmapIntoPNG()
45 out = new FileOutputStream(outputFile, false); in saveBitmapIntoPNG()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DUsbAccessoryStreamTransport.java26 import java.io.FileOutputStream;
35 private FileOutputStream mOutputStream;
41 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in UsbAccessoryStreamTransport()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DJarUtil.java21 import java.io.FileOutputStream;
42 public static void createJar(@NotNull FileOutputStream outStream, in createJar()
70 public static void createJar(@NotNull FileOutputStream outStream, in createJar()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java25 import java.io.FileOutputStream;
73 FileOutputStream stream = new FileOutputStream(tmpFile); in calibrateMethod()
96 FileOutputStream hashStream = new FileOutputStream(tmpFile); in calibrateMethod()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerFilePersistedSettings.java26 import java.io.FileOutputStream;
64 try (FileOutputStream fout = new FileOutputStream(stage)) { in writeBackupEnableState()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DBackupPasswordManagerTest.java43 import java.io.FileOutputStream;
200 FileOutputStream fos = null; in writeHashAndSaltToFile()
205 fos = new FileOutputStream(passwordHash); in writeHashAndSaltToFile()
218 FileOutputStream fos = null; in writePasswordVersionToFile()
223 fos = new FileOutputStream(passwordVersion); in writePasswordVersionToFile()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java28 import java.io.FileOutputStream;
52 FileOutputStream fOut = new FileOutputStream(file); in savePNG()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DByteBufferWriter.java36 import java.io.FileOutputStream;
96 } else if (output instanceof FileOutputStream) { in write()
98 ((FileOutputStream) output).getChannel().write(buffer); in write()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DAppMetadataBackupWriter.java27 import java.io.FileOutputStream;
91 FileOutputStream outputStream = new FileOutputStream(manifestFile); in backupManifest()
175 FileOutputStream fileOutputStream = new FileOutputStream(metadataFile); in backupWidget()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java28 import java.io.FileOutputStream;
58 FileOutputStream fOut = new FileOutputStream(file); in save()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapActivity.java32 import java.io.FileOutputStream;
56 FileOutputStream out = new FileOutputStream( in onCreate()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java28 import java.io.FileOutputStream;
58 FileOutputStream fOut = new FileOutputStream(file); in save()

12345678910>>...12