/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 492 FileOutputStream fos = null; in setResource() local 494 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); in setResource() 495 setWallpaper(resources.openRawResource(resid), fos); in setResource() local 497 if (fos != null) { in setResource() 498 fos.close(); in setResource() 530 FileOutputStream fos = null; in setBitmap() local 532 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); in setBitmap() 533 bitmap.compress(Bitmap.CompressFormat.PNG, 90, fos); in setBitmap() 535 if (fos != null) { in setBitmap() 536 fos.close(); in setBitmap() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppCacheTest.java | 167 FileOutputStream fos = null; in openOutFileInAppFilesDir() local 169 fos = new FileOutputStream(pFile); in openOutFileInAppFilesDir() 175 fos.write(pFileOut.getBytes()); in openOutFileInAppFilesDir() 176 fos.close(); in openOutFileInAppFilesDir() 208 FileOutputStream fos = con.openFileOutput(fileName, Context.MODE_PRIVATE); in testAppFilesCreateFile() local 209 fos.close(); in testAppFilesCreateFile() 244 FileOutputStream fos = null; in testAppCreateCacheFiles() local 246 fos = new FileOutputStream(file1); in testAppCreateCacheFiles() 248 fos.write(buffer); in testAppCreateCacheFiles() 251 fos.close(); in testAppCreateCacheFiles() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncStorageEngineTest.java | 251 FileOutputStream fos = accountInfoFile.startWrite(); in testAuthorityParsing() local 252 fos.write(accountsFileData); in testAuthorityParsing() 253 accountInfoFile.finishWrite(fos); in testAuthorityParsing() 281 fos = accountInfoFile.startWrite(); in testAuthorityParsing() 282 fos.write(accountsFileData); in testAuthorityParsing() 283 accountInfoFile.finishWrite(fos); in testAuthorityParsing() 310 fos = accountInfoFile.startWrite(); in testAuthorityParsing() 311 fos.write(accountsFileData); in testAuthorityParsing() 312 accountInfoFile.finishWrite(fos); in testAuthorityParsing() 345 FileOutputStream fos = accountInfoFile.startWrite(); in testListenForTicklesParsing() local [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | DiskStatsService.java | 54 FileOutputStream fos = null; in dump() local 59 fos = new FileOutputStream(tmp); in dump() 60 fos.write(junk); in dump() 64 try { if (fos != null) fos.close(); } catch (IOException e) {} in dump()
|
D | LightsService.java | 163 FileOutputStream fos = new FileOutputStream(FLASHLIGHT_FILE); 167 fos.write(bytes); 168 fos.close();
|
/frameworks/base/services/java/com/android/server/am/ |
D | ProcessList.java | 224 FileOutputStream fos = null; in writeFile() local 226 fos = new FileOutputStream(path); in writeFile() 227 fos.write(data.getBytes()); in writeFile() 231 if (fos != null) { in writeFile() 233 fos.close(); in writeFile()
|
D | TransferPipe.java | 185 final FileOutputStream fos = new FileOutputStream(mOutFd); in run() local 199 fos.write(buffer, 0, size); in run() 205 fos.write(buffer, start, i-start); in run() 209 fos.write(bufferPrefix); in run() 221 fos.write(buffer, start, size-start); in run()
|
D | CompatModePackages.java | 344 FileOutputStream fos = null; in saveCompatModes() local 347 fos = mFile.startWrite(); in saveCompatModes() 349 out.setOutput(fos, "utf-8"); in saveCompatModes() 390 mFile.finishWrite(fos); in saveCompatModes() 393 if (fos != null) { in saveCompatModes() 394 mFile.failWrite(fos); in saveCompatModes()
|
/frameworks/base/keystore/java/android/security/ |
D | SystemKeyStore.java | 94 FileOutputStream fos = new FileOutputStream(keyFile); in generateNewKey() local 95 fos.write(retKey); in generateNewKey() 96 fos.flush(); in generateNewKey() 97 FileUtils.sync(fos); in generateNewKey() 98 fos.close(); in generateNewKey()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | CameraTestHelper.java | 70 FileOutputStream fos = null; 74 fos = new FileOutputStream(String.format("%s/%s/%s-%d.jpg", 77 fos.write(data); 84 if (fos != null) { 85 fos.close();
|
/frameworks/base/media/java/android/media/ |
D | MediaMuxer.java | 127 FileOutputStream fos = null; in MediaMuxer() local 130 fos = new FileOutputStream(file); in MediaMuxer() 131 FileDescriptor fd = fos.getFD(); in MediaMuxer() 136 if (fos != null) { in MediaMuxer() 137 fos.close(); in MediaMuxer()
|
D | MediaRecorder.java | 657 FileOutputStream fos = new FileOutputStream(mPath); in prepare() local 659 _setOutputFile(fos.getFD(), 0, 0); in prepare() 661 fos.close(); in prepare()
|
/frameworks/base/core/java/android/util/ |
D | AtomicFile.java | 162 FileOutputStream fos = new FileOutputStream(mBaseName); in truncate() local 163 FileUtils.sync(fos); in truncate() 164 fos.close(); in truncate()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AtomicFile.java | 124 FileOutputStream fos = new FileOutputStream(mBaseName); in truncate() local 125 FileUtils.sync(fos); in truncate() 126 fos.close(); in truncate()
|
/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/net/ |
D | LocalSocketImpl.java | 32 private SocketOutputStream fos; field in LocalSocketImpl 336 if (fos == null) { in getOutputStream() 337 fos = new SocketOutputStream(); in getOutputStream() 340 return fos; in getOutputStream()
|
/frameworks/base/services/java/com/android/server/content/ |
D | SyncStorageEngine.java | 1753 FileOutputStream fos = null; in writeAccountInfoLocked() local 1756 fos = mAccountInfoFile.startWrite(); in writeAccountInfoLocked() 1758 out.setOutput(fos, "utf-8"); in writeAccountInfoLocked() 1835 mAccountInfoFile.finishWrite(fos); in writeAccountInfoLocked() 1838 if (fos != null) { in writeAccountInfoLocked() 1839 mAccountInfoFile.failWrite(fos); in writeAccountInfoLocked() 2022 FileOutputStream fos = null; in writeStatusLocked() local 2024 fos = mStatusFile.startWrite(); in writeStatusLocked() 2033 fos.write(out.marshall()); in writeStatusLocked() 2036 mStatusFile.finishWrite(fos); in writeStatusLocked() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | AsecTests.java | 396 FileOutputStream fos = new FileOutputStream(f); in test_Fat_External_UnmountBusy_Success() local 401 fos.close(); in test_Fat_External_UnmountBusy_Success() 420 FileOutputStream fos = new FileOutputStream(f); in test_Fat_External_DestroyBusy() local 425 fos.close(); in test_Fat_External_DestroyBusy() 490 FileOutputStream fos = new FileOutputStream(f); in test_Fat_External_Size_Success() local 492 fos.write(buf); in test_Fat_External_Size_Success() 494 fos.close(); in test_Fat_External_Size_Success()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 54 FileOutputStream fos = aFile.startWrite(); in writeFile() local 55 fos.write(data); in writeFile() 56 aFile.finishWrite(fos); in writeFile()
|
/frameworks/base/services/java/com/android/server/pm/ |
D | UserManagerService.java | 588 FileOutputStream fos = null; in writeUserLocked() local 591 fos = userFile.startWrite(); in writeUserLocked() 592 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserLocked() 637 userFile.finishWrite(fos); in writeUserLocked() 640 userFile.failWrite(fos); in writeUserLocked() 653 FileOutputStream fos = null; in writeUserListLocked() local 656 fos = userListFile.startWrite(); in writeUserListLocked() 657 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserListLocked() 679 userListFile.finishWrite(fos); in writeUserListLocked() 681 userListFile.failWrite(fos); in writeUserListLocked() [all …]
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | TestService.java | 987 FileOutputStream fos = new FileOutputStream(mFile); in onRun() local 988 fos.write(1); in onRun() 989 fos.close(); in onRun() 1012 FileOutputStream fos = new FileOutputStream(mFile); in onRun() local 1013 fos.write(1); in onRun() 1014 fos.flush(); in onRun() 1015 FileUtils.sync(fos); in onRun() 1016 fos.close(); in onRun()
|
/frameworks/base/core/java/android/content/pm/ |
D | RegisteredServicesCache.java | 535 FileOutputStream fos = null; in writePersistentServicesLocked() local 537 fos = mPersistentServicesFile.startWrite(); in writePersistentServicesLocked() 539 out.setOutput(fos, "utf-8"); in writePersistentServicesLocked() 554 mPersistentServicesFile.finishWrite(fos); in writePersistentServicesLocked() 557 if (fos != null) { in writePersistentServicesLocked() 558 mPersistentServicesFile.failWrite(fos); in writePersistentServicesLocked()
|
/frameworks/volley/src/com/android/volley/toolbox/ |
D | DiskBasedCache.java | 199 FileOutputStream fos = new FileOutputStream(file); in put() local 201 e.writeHeader(fos); in put() 202 fos.write(entry.data); in put() 203 fos.close(); in put()
|
/frameworks/base/core/java/android/widget/ |
D | ActivityChooserModel.java | 1057 FileOutputStream fos = null; in doInBackground() local 1060 fos = mContext.openFileOutput(hostoryFileName, Context.MODE_PRIVATE); in doInBackground() 1069 serializer.setOutput(fos, null); in doInBackground() 1101 if (fos != null) { in doInBackground() 1103 fos.close(); in doInBackground()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ActivityChooserModel.java | 1057 FileOutputStream fos = null; in doInBackground() local 1060 fos = mContext.openFileOutput(hostoryFileName, Context.MODE_PRIVATE); in doInBackground() 1069 serializer.setOutput(fos, null); in doInBackground() 1101 if (fos != null) { in doInBackground() 1103 fos.close(); in doInBackground()
|