/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | BackupPasswordManagerTest.java | 200 FileOutputStream fos = null; in writeHashAndSaltToFile() local 205 fos = new FileOutputStream(passwordHash); in writeHashAndSaltToFile() 206 dos = new DataOutputStream(fos); in writeHashAndSaltToFile() 213 if (fos != null) fos.close(); in writeHashAndSaltToFile() 218 FileOutputStream fos = null; in writePasswordVersionToFile() local 223 fos = new FileOutputStream(passwordVersion); in writePasswordVersionToFile() 224 dos = new DataOutputStream(fos); in writePasswordVersionToFile() 229 if (fos != null) fos.close(); in writePasswordVersionToFile()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakDetectorTest.java | 109 FileOutputStream fos = new FileOutputStream("/dev/null"); in testDump() local 110 mLeakDetector.dump(fos.getFD(), new PrintWriter(fos), new String[0]); in testDump() 125 FileOutputStream fos = new FileOutputStream("/dev/null"); in testDisabled() local 126 mLeakDetector.dump(fos.getFD(), new PrintWriter(fos), new String[0]); in testDisabled()
|
/frameworks/base/keystore/java/android/security/ |
D | SystemKeyStore.java | 92 FileOutputStream fos = new FileOutputStream(keyFile); in generateNewKey() local 93 fos.write(retKey); in generateNewKey() 94 fos.flush(); in generateNewKey() 95 FileUtils.sync(fos); in generateNewKey() 96 fos.close(); in generateNewKey()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestHelper.java | 69 FileOutputStream fos = null; 73 fos = new FileOutputStream(String.format("%s/%s/%s-%d.jpg", 77 fos.write(data); 84 if (fos != null) { 85 fos.close();
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemUpdateManagerService.java | 215 FileOutputStream fos = null; in writeInfoFileLocked() local 217 fos = mFile.startWrite(); in writeInfoFileLocked() 220 out.setOutput(fos, StandardCharsets.UTF_8.name()); in writeInfoFileLocked() 228 mFile.finishWrite(fos); in writeInfoFileLocked() 232 if (fos != null) { in writeInfoFileLocked() 233 mFile.failWrite(fos); in writeInfoFileLocked()
|
D | DiskStatsService.java | 77 FileOutputStream fos = null; in dump() local 82 fos = new FileOutputStream(tmp); in dump() 83 fos.write(junk); in dump() 87 try { if (fos != null) fos.close(); } catch (IOException e) {} in dump()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | TransferPipe.java | 250 final OutputStream fos; in run() local 259 fos = getNewOutputStream(); in run() 274 fos.write(buffer, 0, size); in run() 280 fos.write(buffer, start, i-start); in run() 284 fos.write(bufferPrefix); in run() 296 fos.write(buffer, start, size-start); in run()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotPersister.java | 392 FileOutputStream fos = null; in writeProto() local 394 fos = atomicFile.startWrite(); in writeProto() 395 fos.write(bytes); in writeProto() 396 atomicFile.finishWrite(fos); in writeProto() 398 atomicFile.failWrite(fos); in writeProto() 417 FileOutputStream fos = new FileOutputStream(file); in writeBuffer() local 418 swBitmap.compress(JPEG, QUALITY, fos); in writeBuffer() 419 fos.close(); in writeBuffer()
|
D | AppWarnings.java | 476 FileOutputStream fos = null; in writeConfigToFileAmsThread() local 478 fos = mConfigFile.startWrite(); in writeConfigToFileAmsThread() 481 out.setOutput(fos, StandardCharsets.UTF_8.name()); in writeConfigToFileAmsThread() 501 mConfigFile.finishWrite(fos); in writeConfigToFileAmsThread() 504 if (fos != null) { in writeConfigToFileAmsThread() 505 mConfigFile.failWrite(fos); in writeConfigToFileAmsThread()
|
D | CompatModePackages.java | 360 FileOutputStream fos = null; in saveCompatModes() local 363 fos = mFile.startWrite(); in saveCompatModes() 365 out.setOutput(fos, StandardCharsets.UTF_8.name()); in saveCompatModes() 407 mFile.finishWrite(fos); in saveCompatModes() 410 if (fos != null) { in saveCompatModes() 411 mFile.failWrite(fos); in saveCompatModes()
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | PackageStatusStorage.java | 315 FileOutputStream fos = null; in writePackageStatusLocked() local 317 fos = mPackageStatusFile.startWrite(); in writePackageStatusLocked() 319 serializer.setOutput(fos, StandardCharsets.UTF_8.name()); in writePackageStatusLocked() 338 mPackageStatusFile.finishWrite(fos); in writePackageStatusLocked() 340 if (fos != null) { in writePackageStatusLocked() 341 mPackageStatusFile.failWrite(fos); in writePackageStatusLocked()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | AdditionalSubtypeUtils.java | 138 FileOutputStream fos = null; in save() local 141 fos = subtypesFile.startWrite(); in save() 143 out.setOutput(fos, StandardCharsets.UTF_8.name()); in save() 180 subtypesFile.finishWrite(fos); in save() 183 if (fos != null) { in save() 184 subtypesFile.failWrite(fos); in save()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationTest.java | 162 FileOutputStream fos = af.startWrite(); in dumpDebug() local 164 final ProtoOutputStream protoOut = new ProtoOutputStream(fos); in dumpDebug() 169 af.finishWrite(fos); in dumpDebug() 170 fos = null; in dumpDebug() 172 af.failWrite(fos); in dumpDebug()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | FileUtils.java | 57 try (FileOutputStream fos = new FileOutputStream(filename)) { in bytesToFile() argument 58 fos.write(content); in bytesToFile()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageInstallerSessionTest.java | 198 FileOutputStream fos = null; in dumpSessions() local 200 fos = mSessionsFile.startWrite(); in dumpSessions() 203 out.setOutput(fos, StandardCharsets.UTF_8.name()); in dumpSessions() 212 mSessionsFile.finishWrite(fos); in dumpSessions() 215 if (fos != null) { in dumpSessions() 216 mSessionsFile.failWrite(fos); in dumpSessions()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 1277 FileOutputStream fos = null; in setResource() local 1280 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); in setResource() 1281 copyStreamToWallpaperFile(resources.openRawResource(resid), fos); in setResource() local 1284 fos.close(); in setResource() 1289 IoUtils.closeQuietly(fos); in setResource() 1405 FileOutputStream fos = null; in setBitmap() local 1407 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); in setBitmap() 1408 fullImage.compress(Bitmap.CompressFormat.PNG, 90, fos); in setBitmap() 1409 fos.close(); in setBitmap() 1412 IoUtils.closeQuietly(fos); in setBitmap() [all …]
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | BandwidthTestUtil.java | 108 FileOutputStream fos = new FileOutputStream(file); in DownloadFromUrl() local 109 fos.write(baf.toByteArray()); in DownloadFromUrl() 110 fos.close(); in DownloadFromUrl()
|
/frameworks/base/core/java/android/util/ |
D | AtomicFile.java | 191 FileOutputStream fos = new FileOutputStream(mBaseName); in truncate() local 192 FileUtils.sync(fos); in truncate() 193 fos.close(); in truncate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | LeakReporter.java | 84 try (FileOutputStream fos = new FileOutputStream(dumpFile)) { in dumpLeak() argument 85 PrintWriter w = new PrintWriter(fos); in dumpLeak() 89 mLeakDetector.dump(fos.getFD(), w, new String[0]); in dumpLeak()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppIdleHistory.java | 221 FileOutputStream fos = null; in writeScreenOnTime() local 223 fos = screenOnTimeFile.startWrite(); in writeScreenOnTime() 224 fos.write((Long.toString(mScreenOnDuration) + "\n" in writeScreenOnTime() 226 screenOnTimeFile.finishWrite(fos); in writeScreenOnTime() 228 screenOnTimeFile.failWrite(fos); in writeScreenOnTime() 687 FileOutputStream fos = null; in writeAppIdleTimes() local 690 fos = appIdleFile.startWrite(); in writeAppIdleTimes() 691 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeAppIdleTimes() 747 appIdleFile.finishWrite(fos); in writeAppIdleTimes() 749 appIdleFile.failWrite(fos); in writeAppIdleTimes()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationWindowedCount.java | 125 try (FileOutputStream fos = new FileOutputStream(mFile); in saveToFile() argument 126 DataOutputStream dos = new DataOutputStream(fos)) { in saveToFile()
|
/frameworks/base/core/java/android/net/ |
D | LocalSocketImpl.java | 40 private SocketOutputStream fos; field in LocalSocketImpl 347 if (fos == null) { in getOutputStream() 348 fos = new SocketOutputStream(); in getOutputStream() 351 return fos; in getOutputStream()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | FontFallbackSetup.java | 74 try (FileOutputStream fos = new FileOutputStream(testFontsXml)) { in FontFallbackSetup() argument 75 fos.write(mXml.getBytes(Charset.forName("UTF-8"))); in FontFallbackSetup()
|
/frameworks/base/test-runner/src/junit/runner/ |
D | BaseTestRunner.java | 57 FileOutputStream fos= new FileOutputStream(getPreferencesFile()); in savePreferences() local 59 getPreferences().store(fos, ""); in savePreferences() 61 fos.close(); in savePreferences()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationHistoryDatabase.java | 305 FileOutputStream fos = file.startWrite(); in writeLocked() local 307 NotificationHistoryProtoHelper.write(fos, notifications, mCurrentVersion); in writeLocked() 308 file.finishWrite(fos); in writeLocked() 309 fos = null; in writeLocked() 312 file.failWrite(fos); in writeLocked()
|