Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncStorageEngineTest.java377 FileOutputStream fos = accountInfoFile.startWrite(); in testAuthorityParsingV2() local
378 fos.write(accountsFileData); in testAuthorityParsingV2()
379 accountInfoFile.finishWrite(fos); in testAuthorityParsingV2()
408 fos = accountInfoFile.startWrite(); in testAuthorityParsingV2()
409 fos.write(accountsFileData); in testAuthorityParsingV2()
410 accountInfoFile.finishWrite(fos); in testAuthorityParsingV2()
437 fos = accountInfoFile.startWrite(); in testAuthorityParsingV2()
438 fos.write(accountsFileData); in testAuthorityParsingV2()
439 accountInfoFile.finishWrite(fos); in testAuthorityParsingV2()
485 FileOutputStream fos = accountInfoFile.startWrite(); in testAuthorityParsing() local
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppCacheTest.java167 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/java/com/android/server/
DDiskStatsService.java54 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()
DLightsService.java163 FileOutputStream fos = new FileOutputStream(FLASHLIGHT_FILE);
167 fos.write(bytes);
168 fos.close();
/frameworks/base/keystore/java/android/security/
DSystemKeyStore.java94 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/core/java/android/app/
DWallpaperManager.java729 FileOutputStream fos = null; in setResource() local
731 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); in setResource()
732 setWallpaper(resources.openRawResource(resid), fos); in setResource() local
734 if (fos != null) { in setResource()
735 fos.close(); in setResource()
767 FileOutputStream fos = null; in setBitmap() local
769 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); in setBitmap()
770 bitmap.compress(Bitmap.CompressFormat.PNG, 90, fos); in setBitmap()
772 if (fos != null) { in setBitmap()
773 fos.close(); in setBitmap()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCameraTestHelper.java70 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/
DMediaMuxer.java128 FileOutputStream fos = null; in MediaMuxer() local
131 fos = new FileOutputStream(file); in MediaMuxer()
132 FileDescriptor fd = fos.getFD(); in MediaMuxer()
137 if (fos != null) { in MediaMuxer()
138 fos.close(); in MediaMuxer()
DMediaRecorder.java691 FileOutputStream fos = new FileOutputStream(mPath); in prepare() local
693 _setOutputFile(fos.getFD(), 0, 0); in prepare()
695 fos.close(); in prepare()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java185 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()
DAtomicFile.java124 FileOutputStream fos = new FileOutputStream(mBaseName); in truncate() local
125 FileUtils.sync(fos); in truncate()
126 fos.close(); in truncate()
/frameworks/base/core/java/android/util/
DAtomicFile.java162 FileOutputStream fos = new FileOutputStream(mBaseName); in truncate() local
163 FileUtils.sync(fos); in truncate()
164 fos.close(); in truncate()
/frameworks/base/services/java/com/android/server/am/
DCompatModePackages.java331 FileOutputStream fos = null; in saveCompatModes() local
334 fos = mFile.startWrite(); in saveCompatModes()
336 out.setOutput(fos, "utf-8"); in saveCompatModes()
377 mFile.finishWrite(fos); in saveCompatModes()
380 if (fos != null) { in saveCompatModes()
381 mFile.failWrite(fos); in saveCompatModes()
DProcessList.java510 FileOutputStream fos = null; in writeFile() local
512 fos = new FileOutputStream(path); in writeFile()
513 fos.write(data.getBytes()); in writeFile()
517 if (fos != null) { in writeFile()
519 fos.close(); in writeFile()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DBandwidthTestUtil.java108 FileOutputStream fos = new FileOutputStream(file); in DownloadFromUrl() local
109 fos.write(baf.toByteArray()); in DownloadFromUrl()
110 fos.close(); in DownloadFromUrl()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DAsecTests.java396 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/
DPackageManagerSettingsTests.java54 FileOutputStream fos = aFile.startWrite(); in writeFile() local
55 fos.write(data); in writeFile()
56 aFile.finishWrite(fos); in writeFile()
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java36 private SocketOutputStream fos; field in LocalSocketImpl
366 if (fos == null) { in getOutputStream()
367 fos = new SocketOutputStream(); in getOutputStream()
370 return fos; in getOutputStream()
/frameworks/base/services/java/com/android/server/content/
DSyncStorageEngine.java1999 FileOutputStream fos = null; in writeAccountInfoLocked() local
2002 fos = mAccountInfoFile.startWrite(); in writeAccountInfoLocked()
2004 out.setOutput(fos, "utf-8"); in writeAccountInfoLocked()
2056 mAccountInfoFile.finishWrite(fos); in writeAccountInfoLocked()
2059 if (fos != null) { in writeAccountInfoLocked()
2060 mAccountInfoFile.failWrite(fos); in writeAccountInfoLocked()
2251 FileOutputStream fos = null; in writeStatusLocked() local
2253 fos = mStatusFile.startWrite(); in writeStatusLocked()
2262 fos.write(out.marshall()); in writeStatusLocked()
2265 mStatusFile.finishWrite(fos); in writeStatusLocked()
[all …]
/frameworks/base/services/java/com/android/server/pm/
DUserManagerService.java625 FileOutputStream fos = null; in writeUserLocked() local
628 fos = userFile.startWrite(); in writeUserLocked()
629 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserLocked()
689 userFile.finishWrite(fos); in writeUserLocked()
692 userFile.failWrite(fos); in writeUserLocked()
705 FileOutputStream fos = null; in writeUserListLocked() local
708 fos = userListFile.startWrite(); in writeUserListLocked()
709 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserListLocked()
731 userListFile.finishWrite(fos); in writeUserListLocked()
733 userListFile.failWrite(fos); in writeUserListLocked()
[all …]
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java535 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/
DDiskBasedCache.java198 FileOutputStream fos = new FileOutputStream(file); in put() local
200 e.writeHeader(fos); in put()
201 fos.write(entry.data); in put()
202 fos.close(); in put()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActivityChooserModel.java1057 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/base/core/java/android/widget/
DActivityChooserModel.java1067 FileOutputStream fos = null; in doInBackground() local
1070 fos = mContext.openFileOutput(hostoryFileName, Context.MODE_PRIVATE); in doInBackground()
1079 serializer.setOutput(fos, null); in doInBackground()
1111 if (fos != null) { in doInBackground()
1113 fos.close(); in doInBackground()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java1003 FileOutputStream fos = new FileOutputStream(mFile); in onRun() local
1004 fos.write(1); in onRun()
1005 fos.close(); in onRun()
1028 FileOutputStream fos = new FileOutputStream(mFile); in onRun() local
1029 fos.write(1); in onRun()
1030 fos.flush(); in onRun()
1031 FileUtils.sync(fos); in onRun()
1032 fos.close(); in onRun()

12