/aosp14/frameworks/base/tools/aapt2/io/ |
H A D | FileStream.cpp | 111 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() 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() 194 bool FileOutputStream::HadError() const { in HadError() [all …]
|
H A D | FileStream.h | 63 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);
|
/aosp14/frameworks/base/core/tests/benchmarks/src/android/os/ |
H A D | FileUtilsBenchmark.java | 30 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()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | AtomicFile.java | 32 import java.io.FileOutputStream; 122 public FileOutputStream startWrite() throws IOException { in startWrite() 150 return new FileOutputStream(mNewName); in startWrite() 159 return new FileOutputStream(mNewName); in startWrite() 172 public void finishWrite(FileOutputStream str) { in finishWrite() 195 public void failWrite(FileOutputStream str) { in failWrite() 217 FileOutputStream fos = new FileOutputStream(mBaseName); in truncate() 229 @Deprecated public FileOutputStream openAppend() throws IOException { in openAppend() 231 return new FileOutputStream(mBaseName, true); in openAppend() 319 public void write(Consumer<FileOutputStream> writeContent) { in write() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/ |
H A D | PowerStatsServiceTest.java | 56 import java.io.FileOutputStream; 299 FileOutputStream fos = new FileOutputStream(incidentReport); in testWrittenMeterDataMatchesReadIncidentReportData() 343 FileOutputStream fos = new FileOutputStream(incidentReport); in testWrittenModelDataMatchesReadIncidentReportData() 390 FileOutputStream fos = new FileOutputStream(incidentReport); in testWrittenResidencyDataMatchesReadIncidentReportData() 444 FileOutputStream onDeviceStorageFos = new FileOutputStream(onDeviceStorageFile); in testCorruptOnDeviceMeterStorage() 450 FileOutputStream incidentReportFos = new FileOutputStream(incidentReport); in testCorruptOnDeviceMeterStorage() 493 FileOutputStream incidentReportFos = new FileOutputStream(incidentReport); in testCorruptOnDeviceModelStorage() 534 FileOutputStream incidentReportFos = new FileOutputStream(incidentReport); in testCorruptOnDeviceResidencyStorage() 584 FileOutputStream incidentReportFos = new FileOutputStream(incidentReport); in testNotEnoughBytesAfterMeterLengthField() 628 FileOutputStream incidentReportFos = new FileOutputStream(incidentReport); in testNotEnoughBytesAfterModelLengthField() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | ResilientAtomicFile.java | 33 import java.io.FileOutputStream; 52 private FileOutputStream mMainOutStream = null; 54 private FileOutputStream mReserveOutStream = null; 61 private void finalizeOutStream(FileOutputStream str) throws IOException { in finalizeOutStream() 83 public FileOutputStream startWrite() throws IOException { in startWrite() 110 mMainOutStream = new FileOutputStream(mFile); in startWrite() 112 mReserveOutStream = new FileOutputStream(mReserveCopy); in startWrite() 118 public void finishWrite(FileOutputStream str) throws IOException { in finishWrite() 124 try (FileOutputStream mainOutStream = mMainOutStream) { in finishWrite() 137 try (FileOutputStream reserveOutStream = mReserveOutStream) { in finishWrite() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A D | AtomicDirectory.java | 31 import java.io.FileOutputStream; 59 private final @NonNull ArrayMap<File, FileOutputStream> mOpenFiles = new ArrayMap<>(); 140 public @NonNull FileOutputStream openWrite(@NonNull File file) throws IOException { in openWrite() 147 final FileOutputStream destination = new FileOutputStream(file); in openWrite() 159 public void closeWrite(@NonNull FileOutputStream destination) { in closeWrite() 169 public void failWrite(@NonNull FileOutputStream destination) { in failWrite()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/ |
H A D | FullBackupUtilsTest.java | 43 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/ |
H A D | IntegrityFileManager.java | 41 import java.io.FileOutputStream; 133 try (FileOutputStream ruleFileOutputStream = in writeRules() 134 new FileOutputStream(new File(mStagingDir, RULES_FILE)); in writeRules() 135 FileOutputStream indexingFileOutputStream = in writeRules() 136 new FileOutputStream(new File(mStagingDir, INDEXING_FILE))) { in writeRules() 214 try (FileOutputStream outputStream = new FileOutputStream(metadataFile)) { in writeMetadata()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
H A D | LeakDetectorTest.java | 33 import java.io.FileOutputStream; 115 FileOutputStream fos = new FileOutputStream("/dev/null"); in testDump() 131 FileOutputStream fos = new FileOutputStream("/dev/null"); in testDisabled()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
H A D | IconTest.java | 37 import java.io.FileOutputStream; 89 new FileOutputStream(new File(dir, "bitmap1-test.png"))); in testWithBitmap() 98 new FileOutputStream(new File(dir, "bitmap2-test.png"))); in testWithBitmap() 107 new FileOutputStream(new File(dir, "bitmap3-test.png"))); in testWithBitmap() 177 new FileOutputStream(new File(dir, "res1-test.png"))); in testWithBitmapResource() 246 new FileOutputStream(file1)); in testWithFile() 256 new FileOutputStream(new File(dir, "file1-test.png"))); in testWithFile() 270 new FileOutputStream(file1)); in testAsync() 322 new FileOutputStream(originalfile).write(pngdata); in testParcel() 363 new FileOutputStream(testfile)); in testParcel() [all …]
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | DataStreamFileCodec.java | 24 import java.io.FileOutputStream; 70 FileOutputStream fileOutputStream = new FileOutputStream(mFile); in serialize()
|
/aosp14/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | UsbAccessoryStreamTransport.java | 26 import java.io.FileOutputStream; 35 private FileOutputStream mOutputStream; 41 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in UsbAccessoryStreamTransport()
|
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | BitmapUtils.java | 24 import java.io.FileOutputStream; 32 FileOutputStream out = null; in saveBitmapIntoPNG() 45 out = new FileOutputStream(outputFile, false); in saveBitmapIntoPNG()
|
/aosp14/frameworks/base/tests/AppResourcesLoaders/src/com/android/example/loaders/ |
H A D | LoadersApplication.java | 27 import java.io.FileOutputStream; 50 final FileOutputStream os = new FileOutputStream(apkFile); in copyResource()
|
/aosp14/frameworks/base/services/flags/java/com/android/server/flags/ |
H A D | FeatureFlagsBinder.java | 30 import java.io.FileOutputStream; 163 FileOutputStream fout = new FileOutputStream(out.getFileDescriptor()); in handleShellCommand() 164 FileOutputStream ferr = new FileOutputStream(err.getFileDescriptor()); in handleShellCommand()
|
/aosp14/frameworks/base/apct-tests/perftests/blobstore/src/com/android/perftests/blob/ |
H A D | BlobStorePerfTests.java | 46 import java.io.FileOutputStream; 129 try (FileOutputStream outputStream = new FileOutputStream(file)) { in testDirectReads() 174 try (FileOutputStream outputStream = new FileOutputStream(file)) { in testDirectWrites() 192 try (FileOutputStream outputStream = new ParcelFileDescriptor in testBlobStoreWrites() 211 private void writeData(FileOutputStream outputStream, long sizeBytes) throws Exception { in writeData()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
H A D | BackupPasswordManagerTest.java | 43 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()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | UserBackupManagerFilePersistedSettings.java | 25 import java.io.FileOutputStream; 68 try (FileOutputStream fout = new FileOutputStream(stage)) { in writeBackupEnableState()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
H A D | AppMetadataBackupWriter.java | 27 import java.io.FileOutputStream; 91 FileOutputStream outputStream = new FileOutputStream(manifestFile); in backupManifest() 175 FileOutputStream fileOutputStream = new FileOutputStream(metadataFile); in backupWidget()
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GetBitmapActivity.java | 32 import java.io.FileOutputStream; 56 FileOutputStream out = new FileOutputStream( in onCreate()
|
H A D | VideoViewCaptureActivity.java | 32 import java.io.FileOutputStream; 66 try (FileOutputStream out = new FileOutputStream( in onCreate()
|
/aosp14/frameworks/base/services/permission/java/com/android/server/permission/access/util/ |
H A D | AtomicFileExtensions.kt | 21 import java.io.FileOutputStream 37 inline fun AtomicFile.writeInlined(block: (FileOutputStream) -> Unit) {
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | FileObserverTest.java | 28 import java.io.FileOutputStream; 81 FileOutputStream out = new FileOutputStream(mTestFile); in testRun()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | CertBlacklister.java | 28 import java.io.FileOutputStream; 83 FileOutputStream out = null; in writeBlacklist() 90 out = new FileOutputStream(tmp); in writeBlacklist()
|