Home
last modified time | relevance | path

Searched refs:fos (Results 1 – 25 of 31) sorted by relevance

12

/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipProfileDb.java107 FileOutputStream fos = null; in saveProfile() local
110 fos = atomicFile.startWrite(); in saveProfile()
111 oos = new ObjectOutputStream(fos); in saveProfile()
114 atomicFile.finishWrite(fos); in saveProfile()
116 atomicFile.failWrite(fos); in saveProfile()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadUtils.java35 FileOutputStream fos = null; in requestDownload() local
37 fos = new FileOutputStream(file); in requestDownload()
38 return download(jc, url, fos); in requestDownload()
42 Utils.closeSilently(fos); in requestDownload()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCStatusLogger.java67 FileWriter fos = new FileWriter(mFile); in logStatus() local
68 BufferedWriter bw = new BufferedWriter(fos); in logStatus()
102 FileWriter fos = new FileWriter(mFile); in flash() local
103 BufferedWriter bw = new BufferedWriter(fos); in flash()
/packages/apps/DevCamera/src/com/android/devcamera/
DMediaSaver.java72 FileOutputStream fos = new FileOutputStream(file); in saveDepth() local
73 FileChannel channel = fos.getChannel(); in saveDepth()
85 fos.flush(); in saveDepth()
86 fos.close(); in saveDepth()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DTestActivity.java528 FileOutputStream fos = null; in onPut() local
536 fos = new FileOutputStream(f); in onPut()
541 fos.write(b, 0, len); in onPut()
544 fos.close(); in onPut()
548 if (fos != null) { in onPut()
550 fos.close(); in onPut()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DDeferredFileOutputStream.java165 FileOutputStream fos = new FileOutputStream(outputFile); in thresholdReached() local
166 memoryOutputStream.writeTo(fos); in thresholdReached()
167 currentOutputStream = fos; in thresholdReached()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java292 FileOutputStream fos = null; in storeLocation() local
294 fos = atomicFile.startWrite(); in storeLocation()
295 try (JsonWriter jsonWriter = new JsonWriter(new OutputStreamWriter(fos, "UTF-8"))) { in storeLocation()
333 atomicFile.finishWrite(fos); in storeLocation()
336 atomicFile.failWrite(fos); in storeLocation()
DCarUxRestrictionsManagerService.java464 FileOutputStream fos; in persistConfig() local
466 fos = stagedFile.startWrite(); in persistConfig()
472 new OutputStreamWriter(fos, StandardCharsets.UTF_8))) { in persistConfig()
480 stagedFile.failWrite(fos); in persistConfig()
483 stagedFile.finishWrite(fos); in persistConfig()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DLogoUtilsTest.java150 FileOutputStream fos = new FileOutputStream(tempFile); in writeBitmapToTempFile() local
151 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fos); in writeBitmapToTempFile()
152 fos.close(); in writeBitmapToTempFile()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java418 FileOutputStream fos = null; in writeDynamicSettingsLocked() local
420 fos = mDynamicSettingsFile.startWrite(); in writeDynamicSettingsLocked()
422 out.setOutput(fos, "utf-8"); in writeDynamicSettingsLocked()
443 mDynamicSettingsFile.finishWrite(fos); in writeDynamicSettingsLocked()
447 if (fos != null) { in writeDynamicSettingsLocked()
448 mDynamicSettingsFile.failWrite(fos); in writeDynamicSettingsLocked()
DRegisteredNfcFServicesCache.java487 FileOutputStream fos = null; in writeDynamicSystemCodeNfcid2Locked() local
489 fos = mDynamicSystemCodeNfcid2File.startWrite(); in writeDynamicSystemCodeNfcid2Locked()
491 out.setOutput(fos, "utf-8"); in writeDynamicSystemCodeNfcid2Locked()
522 mDynamicSystemCodeNfcid2File.finishWrite(fos); in writeDynamicSystemCodeNfcid2Locked()
526 if (fos != null) { in writeDynamicSystemCodeNfcid2Locked()
527 mDynamicSystemCodeNfcid2File.failWrite(fos); in writeDynamicSystemCodeNfcid2Locked()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoStore.java200 FileOutputStream fos = new FileOutputStream(file); in insert() local
201 fos.write(photoBytes); in insert()
202 fos.close(); in insert()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DVideoUtils.java108 FileOutputStream fos = new FileOutputStream(dst); in writeMovieIntoFile() local
109 FileChannel fc = fos.getChannel(); in writeMovieIntoFile()
113 fos.close(); in writeMovieIntoFile()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DTestUtils.java217 FileOutputStream fos = new FileOutputStream(file); in dumpToCacheDir() local
218 fos.write(data); in dumpToCacheDir()
219 fos.close(); in dumpToCacheDir()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DDbDowngradeHelper.java101 try (FileOutputStream fos = new FileOutputStream(schemaFile); in updateSchemaFile() argument
103 IOUtils.copy(in, fos); in updateSchemaFile()
DBgDataModel.java243 FileOutputStream fos = new FileOutputStream(fd); in dumpProto() local
246 fos.write(MessageNano.toByteArray(proto)); in dumpProto()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java571 FileOutputStream fos; in setWallpaperBitmapInRotationLive() local
573 fos = mAppContext.openFileOutput(pendingFile.getName(), Context.MODE_PRIVATE); in setWallpaperBitmapInRotationLive()
580 wallpaperBitmap.compress(CompressFormat.JPEG, DEFAULT_COMPRESS_QUALITY, fos); in setWallpaperBitmapInRotationLive()
584 fos.flush(); in setWallpaperBitmapInRotationLive()
585 fos.close(); in setWallpaperBitmapInRotationLive()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java459 FileOutputStream fos = new FileOutputStream(getLocationCacheFile()); in writeCacheFile() local
460 fos.write(json.getBytes()); in writeCacheFile()
461 fos.close(); in writeCacheFile()
/packages/apps/TimeZoneUpdater/src/main/com/android/timezone/updater/
DRulesCheckReceiver.java279 try (FileOutputStream fos = new FileOutputStream(localFile, false /* append */)) { in copyDataToLocalFile() argument
280 Streams.copy(fis, fos); in copyDataToLocalFile()
/packages/apps/TimeZoneData/src/main/com/android/timezone/data/
DTimeZoneRulesDataProvider.java280 FileOutputStream fos = new FileOutputStream(distroFile, false /* append */)) {
281 copy(is, fos);
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java255 final FileOutputStream fos = new FileOutputStream(dumpFile);
256 final DataOutputStream dos = new DataOutputStream(fos);
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java2742 FileOutputStream fos = new FileOutputStream(file); in storeNativeCrashLogs() local
2743 mDeviceHost.dump(fos.getFD()); in storeNativeCrashLogs()
2744 fos.flush(); in storeNativeCrashLogs()
2745 fos.close(); in storeNativeCrashLogs()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java2708 final FileOutputStream fos = new FileOutputStream(dumpFile);
2709 final BufferedOutputStream bos = new BufferedOutputStream(fos);
/packages/inputmethods/LatinIME/dictionaries/
Dcs_wordlist.combined.gz1dictionary=main:cs,locale=cs,description=Čeština,date=1393228134, ...
Dlv_wordlist.combined.gz

12