Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/apphibernation/
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()
/frameworks/base/services/people/java/com/android/server/people/data/
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()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DDataStreamFileCodec.java70 FileOutputStream fileOutputStream = new FileOutputStream(mFile); in serialize() argument
71 BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream); in serialize()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorage.java129 FileOutputStream fileOutputStream = new FileOutputStream(snapshotFile) in writeToDisk() argument
131 KeyChainSnapshotSerializer.serialize(snapshot, fileOutputStream); in writeToDisk()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBackgroundInstallControlServiceTest.java159 FileOutputStream fileOutputStream; in testInitBackgroundInstalledPackages_one() local
161 fileOutputStream = atomicFile.startWrite(); in testInitBackgroundInstalledPackages_one()
169 ProtoOutputStream protoOutputStream = new ProtoOutputStream(fileOutputStream); in testInitBackgroundInstalledPackages_one()
175 atomicFile.finishWrite(fileOutputStream); in testInitBackgroundInstalledPackages_one()
178 atomicFile.failWrite(fileOutputStream); in testInitBackgroundInstalledPackages_one()
192 FileOutputStream fileOutputStream; in testInitBackgroundInstalledPackages_two() local
194 fileOutputStream = atomicFile.startWrite(); in testInitBackgroundInstalledPackages_two()
202 ProtoOutputStream protoOutputStream = new ProtoOutputStream(fileOutputStream); in testInitBackgroundInstalledPackages_two()
215 atomicFile.finishWrite(fileOutputStream); in testInitBackgroundInstalledPackages_two()
218 atomicFile.failWrite(fileOutputStream); in testInitBackgroundInstalledPackages_two()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundInstallControlService.java432 FileOutputStream fileOutputStream; in writeBackgroundInstalledPackagesToDisk() local
434 fileOutputStream = atomicFile.startWrite(); in writeBackgroundInstalledPackagesToDisk()
441 ProtoOutputStream protoOutputStream = new ProtoOutputStream(fileOutputStream); in writeBackgroundInstalledPackagesToDisk()
455 atomicFile.finishWrite(fileOutputStream); in writeBackgroundInstalledPackagesToDisk()
458 atomicFile.failWrite(fileOutputStream); in writeBackgroundInstalledPackagesToDisk()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java226 FileOutputStream fileOutputStream = new FileOutputStream(mDataFile.getFileDescriptor()); in copyAssetToFile() local
229 fileOutputStream.write(copybuffer, 0, numBytes); in copyAssetToFile()
230 fileOutputStream.close(); in copyAssetToFile()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DAppMetadataBackupWriter.java175 FileOutputStream fileOutputStream = new FileOutputStream(metadataFile); in backupWidget() local
176 BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream); in backupWidget()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DProtoLogTool.kt101 val out = injector.fileOutputStream(command.outputSourceJarArg) in <lambda>()
398 val outFile = injector.fileOutputStream(command.viewerConfigFileNameArg) in <lambda>()
467 override fun fileOutputStream(file: String) = FileOutputStream(file) in <lambda>() method
477 fun fileOutputStream(file: String): OutputStream in <lambda>() method
/frameworks/base/packages/SettingsLib/DataStore/src/com/android/settingslib/datastore/
DBackupRestoreStorage.kt252 val fileOutputStream = FileOutputStream(fileDescriptor) in <lambda>() constant
253 val dataOutputStream = DataOutputStream(fileOutputStream) in <lambda>()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java219 OutputStream fileOutputStream = Files.newOutputStream(adbKeys); in writeBytesToFile() local
220 fileOutputStream.write(keys); in writeBytesToFile()
221 fileOutputStream.close(); in writeBytesToFile()
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
DEndToEndTest.kt159 override fun fileOutputStream(file: String): OutputStream = in <lambda>() method
/frameworks/base/services/core/java/com/android/server/app/
DGameManagerService.java1930 FileOutputStream fileOutputStream = null;
1933 fileOutputStream = mGameModeInterventionListFile.startWrite();
1934 bufferedWriter = new BufferedWriter(new OutputStreamWriter(fileOutputStream,
1974 FileUtils.sync(fileOutputStream);
1975 mGameModeInterventionListFile.finishWrite(fileOutputStream);
1977 mGameModeInterventionListFile.failWrite(fileOutputStream);
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java296 FileOutputStream fileOutputStream = new FileOutputStream(dest); in testCopy_SocketToFile_FileToSocket$noRavenwood()
298 … FileUtils.copy(srvConnFd, fileOutputStream.getFD(), rcvFileSize, null, null, null); in testCopy_SocketToFile_FileToSocket$noRavenwood()
300 fileOutputStream.close(); in testCopy_SocketToFile_FileToSocket$noRavenwood()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java1103 FileOutputStream fileOutputStream) { in SynthesisToFileOutputStreamSpeechItem() argument
1105 mFileOutputStream = fileOutputStream; in SynthesisToFileOutputStreamSpeechItem()