Home
last modified time | relevance | path

Searched refs:fileOutputStream (Results 1 – 16 of 16) sorted by relevance

/aosp12/frameworks/base/services/core/java/com/android/server/apphibernation/
H A DHibernationStateDiskStore.java145 FileOutputStream fileOutputStream; in writeStateProto() local
147 fileOutputStream = atomicFile.startWrite(); in writeStateProto()
154 ProtoOutputStream protoOutputStream = new ProtoOutputStream(fileOutputStream); in writeStateProto()
157 atomicFile.finishWrite(fileOutputStream); in writeStateProto()
160 atomicFile.failWrite(fileOutputStream); in writeStateProto()
/aosp12/frameworks/base/services/people/java/com/android/server/people/data/
H A DAbstractProtoDiskReadWriter.java106 FileOutputStream fileOutputStream = null; in writeTo() local
108 fileOutputStream = atomicFile.startWrite(); in writeTo()
115 final ProtoOutputStream protoOutputStream = new ProtoOutputStream(fileOutputStream); in writeTo()
118 atomicFile.finishWrite(fileOutputStream); in writeTo()
119 fileOutputStream = null; in writeTo()
122 atomicFile.failWrite(fileOutputStream); in writeTo()
/aosp12/packages/modules/DnsResolver/tests/
H A Dpbtxt2pb_converter_host.cpp53 google::protobuf::io::FileOutputStream fileOutputStream(fd); in ConvertPbtxtToPb() local
54 fileOutputStream.SetCloseOnDelete(true); in ConvertPbtxtToPb()
55 if (!goldTest.SerializeToZeroCopyStream(&fileOutputStream)) { in ConvertPbtxtToPb()
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DDataStreamFileCodec.java70 FileOutputStream fileOutputStream = new FileOutputStream(mFile); in serialize() argument
71 BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream); in serialize()
/aosp12/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
H A DProtoLogTool.kt49 val out = injector.fileOutputStream(command.outputSourceJarArg)
184 val out = injector.fileOutputStream(command.viewerConfigJsonArg)
230 override fun fileOutputStream(file: String) = FileOutputStream(file)
240 fun fileOutputStream(file: String): OutputStream regex
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
H A DRecoverySnapshotStorage.java129 FileOutputStream fileOutputStream = new FileOutputStream(snapshotFile) in writeToDisk() argument
131 KeyChainSnapshotSerializer.serialize(snapshot, fileOutputStream); in writeToDisk()
/aosp12/packages/services/Car/service/src/com/android/car/telemetry/publisher/
H A DStatsPublisher.java199 FileOutputStream fileOutputStream = null; in saveBundle() local
201 fileOutputStream = mSavedStatsConfigsFile.startWrite(); in saveBundle()
202 mSavedStatsConfigs.writeToStream(fileOutputStream); in saveBundle()
203 mSavedStatsConfigsFile.finishWrite(fileOutputStream); in saveBundle()
206 mSavedStatsConfigsFile.failWrite(fileOutputStream); in saveBundle()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/backup/
H A DBackupDataTest.java226 FileOutputStream fileOutputStream = new FileOutputStream(mDataFile.getFileDescriptor()); in copyAssetToFile() local
229 fileOutputStream.write(copybuffer, 0, numBytes); in copyAssetToFile()
230 fileOutputStream.close(); in copyAssetToFile()
/aosp12/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/tzs2range/write/
H A DSuffixTableWriter.java69 FileOutputStream fileOutputStream = new FileOutputStream(mFile); in SuffixTableWriter() local
72 fileOutputStream, entrySizeByteCount, keySizeBits, signedValue, blockSharedData); in SuffixTableWriter()
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
H A DAppMetadataBackupWriter.java175 FileOutputStream fileOutputStream = new FileOutputStream(metadataFile); in backupWidget() local
176 BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream); in backupWidget()
/aosp12/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/
H A DZappingTimeTest.java275 FileOutputStream fileOutputStream = new FileOutputStream(cacheFile); in createCacheFile() local
279 fileOutputStream.write(buffer); in createCacheFile()
282 fileOutputStream.close(); in createCacheFile()
H A DZappingTimeTestExoV2.java302 FileOutputStream fileOutputStream = new FileOutputStream(cacheFile); in createCacheFile() local
306 fileOutputStream.write(buffer); in createCacheFile()
309 fileOutputStream.close(); in createCacheFile()
/aosp12/frameworks/base/services/core/java/com/android/server/testharness/
H A DTestHarnessModeService.java210 OutputStream fileOutputStream = Files.newOutputStream(adbKeys); in writeBytesToFile() local
211 fileOutputStream.write(keys); in writeBytesToFile()
212 fileOutputStream.close(); in writeBytesToFile()
/aosp12/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
H A DEndToEndTest.kt122 override fun fileOutputStream(file: String): OutputStream =
/aosp12/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
H A DTypes.java125 try (FileOutputStream fileOutputStream = new FileOutputStream(outputFile)) { in storeProtoAsBinary() argument
126 fileOutputStream.write(message.toByteArray()); in storeProtoAsBinary()
/aosp12/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeechService.java1103 FileOutputStream fileOutputStream) { in SynthesisToFileOutputStreamSpeechItem() argument
1105 mFileOutputStream = fileOutputStream; in SynthesisToFileOutputStreamSpeechItem()