Home
last modified time | relevance | path

Searched refs:outFile (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/java/android/app/backup/
DFullBackup.java95 long size, int type, long mode, long mtime, File outFile) throws IOException { in restoreFile() argument
100 if (outFile != null) outFile.mkdirs(); in restoreFile()
106 if (outFile != null) { in restoreFile()
107 File parent = outFile.getParentFile(); in restoreFile()
113 out = new FileOutputStream(outFile); in restoreFile()
116 Log.e(TAG, "Unable to create/open file " + outFile.getPath(), e); in restoreFile()
136 Log.e(TAG, "Unable to write to file " + outFile.getPath(), e); in restoreFile()
139 outFile.delete(); in restoreFile()
148 if (mode >= 0 && outFile != null) { in restoreFile()
152 Libcore.os.chmod(outFile.getPath(), (int)mode); in restoreFile()
[all …]
DBackupAgent.java448 File outFile = new File(basePath, path); in onRestoreFile() local
449 if (DEBUG) Log.i(TAG, "[" + domain + " : " + path + "] mapped to " + outFile.getPath()); in onRestoreFile()
450 onRestoreFile(data, size, outFile, type, mode, mtime); in onRestoreFile()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java117 final File outFile = new File(filesDir, name); in getFilePath() local
118 return outFile; in getFilePath()
121 private void copyRawToFile(int rawResId, File outFile) { in copyRawToFile() argument
129 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
131 assertTrue(FileUtils.copyToFile(is, outFile)); in copyRawToFile()
132 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
215 final File outFile = getFilePath("test1.obb"); in testMountAndUnmountObbNormal() local
217 mountObb(sm, R.raw.test1, outFile, OnObbStateChangeListener.MOUNTED); in testMountAndUnmountObbNormal()
219 mountObb(sm, R.raw.test1, outFile, OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in testMountAndUnmountObbNormal()
221 final String mountPath = checkMountedPath(sm, outFile); in testMountAndUnmountObbNormal()
[all …]
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DSharedStorageAgent.java61 File outFile = null; in onRestoreFile() local
69 outFile = new File(mVolumes[i].getPath(), relpath.substring(slash + 1)); in onRestoreFile()
70 if (DEBUG) Slog.i(TAG, " => " + outFile.getAbsolutePath()); in onRestoreFile()
80 if (outFile == null) { in onRestoreFile()
84 FullBackup.restoreFile(data, size, type, -1, mtime, outFile); in onRestoreFile()
/frameworks/base/services/java/com/android/server/
DSystemBackupAgent.java133 File outFile = null; in onRestoreFile() local
137 outFile = new File(WALLPAPER_INFO); in onRestoreFile()
140 outFile = new File(WALLPAPER_IMAGE); in onRestoreFile()
146 if (outFile == null) { in onRestoreFile()
149 FullBackup.restoreFile(data, size, type, mode, mtime, outFile); in onRestoreFile()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java228 private void copyRawToFile(int rawResId, File outFile) throws NotFoundException { in copyRawToFile() argument
237 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
239 assertTrue(FileUtils.copyToFile(is, outFile)); in copyRawToFile()
240 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
252 File outFile = null; in createObbFile() local
255 outFile = new File(filesDir, name); in createObbFile()
256 copyRawToFile(rawResId, outFile); in createObbFile()
258 if (outFile != null) { in createObbFile()
259 outFile.delete(); in createObbFile()
262 return outFile; in createObbFile()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerStressTest.java160 File outFile = File.createTempFile("DM_TEST", null, new File(CACHE_DIR)); in testDownloadToCacheWithAlmostFullCache() local
174 fo = new FileOutputStream(outFile); in testDownloadToCacheWithAlmostFullCache()
199 if (outFile != null) { in testDownloadToCacheWithAlmostFullCache()
200 outFile.delete(); in testDownloadToCacheWithAlmostFullCache()
/frameworks/compile/libbcc/bcinfo/tools/
Dmain.cpp53 std::string outFile; variable
103 outFile = std::string(inFile.begin(), inFile.end() - 3) + ".ll"; in parseOption()
106 outFile = inFile + ".ll"; in parseOption()
338 new llvm::tool_output_file(outFile.c_str(), errmsg, in main()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java74 int videoFormat, int outFormat, String outFile, boolean videoOnly) { in recordVideo() argument
84 mRecorder.setOutputFile(outFile); in recordVideo()
175 int videoFormat, int outFormat, String outFile, boolean videoOnly) { in invalidRecordSetting() argument
184 mRecorder.setOutputFile(outFile); in invalidRecordSetting()
/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/
DMultipartTest.java36 FileWriter outFile = new FileWriter(upload); in testParts() local
37 BufferedWriter out = new BufferedWriter(outFile); in testParts()
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java67 File outFile = new File(extStorage, outputFile); in dumpResult() local
68 FileWriter writer = new FileWriter(outFile, true); in dumpResult()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java287 Uri getInstallablePackage(int fileResId, File outFile) { in getInstallablePackage() argument
295 FileUtils.setPermissions(outFile.getPath(), in getInstallablePackage()
298 assertTrue(FileUtils.copyToFile(is, outFile)); in getInstallablePackage()
299 FileUtils.setPermissions(outFile.getPath(), in getInstallablePackage()
302 return Uri.fromFile(outFile); in getInstallablePackage()
696 File outFile = new File(filesDir, outFileName); in getParsedPackage() local
697 Uri packageURI = getInstallablePackage(rawResId, outFile); in getParsedPackage()
1345 File outFile = new File(ip.pkg.mScanPath); in cleanUpInstall() local
1346 if (outFile != null && outFile.exists()) { in cleanUpInstall()
1347 outFile.delete(); in cleanUpInstall()
[all …]
/frameworks/base/core/java/android/webkit/
DCacheManager.java82 File outFile; field in CacheManager.CacheResult
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java219 int outFormat, String outFile, boolean videoOnly) { in stressVideoRecord() argument
232 mRecorder.setOutputFile(outFile); in stressVideoRecord()
DVideoEditorPerformance.java103 File outFile = new File(VIDEOEDITOR_OUTPUT); in writeTimingInfo() local
104 Writer output = new BufferedWriter(new FileWriter(outFile, true)); in writeTimingInfo()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DVideoEditorStressTest.java126 File outFile = new File(VIDEOEDITOR_OUTPUT); in writeTimingInfo() local
127 Writer output = new BufferedWriter(new FileWriter(outFile, true)); in writeTimingInfo()
136 File outFile = new File(VIDEOEDITOR_OUTPUT); in writeTestCaseHeader() local
137 Writer output = new BufferedWriter(new FileWriter(outFile, true)); in writeTestCaseHeader()
/frameworks/support/renderscript/v8/rs_support/
Drsg_generator.c608 const char* outFile = argv[2]; in main() local
622 FILE *f = fopen(outFile, "w"); in main()
/frameworks/rs/
Drsg_generator.c608 const char* outFile = argv[2]; in main() local
622 FILE *f = fopen(outFile, "w"); in main()