Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/backup/
DFullBackup.java93 long size, int type, long mode, long mtime, File outFile) throws IOException { in restoreFile() argument
98 if (outFile != null) outFile.mkdirs(); in restoreFile()
104 if (outFile != null) { in restoreFile()
105 File parent = outFile.getParentFile(); in restoreFile()
111 out = new FileOutputStream(outFile); in restoreFile()
114 Log.e(TAG, "Unable to create/open file " + outFile.getPath(), e); in restoreFile()
134 Log.e(TAG, "Unable to write to file " + outFile.getPath(), e); in restoreFile()
137 outFile.delete(); in restoreFile()
146 if (mode >= 0 && outFile != null) { in restoreFile()
150 Os.chmod(outFile.getPath(), (int)mode); in restoreFile()
[all …]
DBackupAgent.java556 File outFile = new File(basePath, path); in onRestoreFile() local
557 String outPath = outFile.getCanonicalPath(); in onRestoreFile()
560 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/native/opengl/tools/glgen2/registry/
Dreg.py355 self.outFile = None
394 self.outFile = open(self.genOpts.filename, 'w')
396 self.outFile = sys.stdout
401 self.outFile.flush()
402 if (self.outFile != sys.stdout and self.outFile != sys.stderr):
403 self.outFile.close()
513 write('', file=self.outFile)
522 write('#ifndef', headerSym, file=self.outFile)
523 write('#define', headerSym, '1', file=self.outFile)
525 write('#ifdef __cplusplus', file=self.outFile)
[all …]
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DSharedStorageAgent.java70 File outFile = null; in onRestoreFile() local
78 outFile = new File(mVolumes[i].getPath(), relpath.substring(slash + 1)); in onRestoreFile()
79 if (DEBUG) Slog.i(TAG, " => " + outFile.getAbsolutePath()); in onRestoreFile()
89 if (outFile == null) { in onRestoreFile()
93 FullBackup.restoreFile(data, size, type, -1, mtime, outFile); in onRestoreFile()
DObbBackupService.java109 File outFile = Environment.buildExternalStorageAppObbDirs(packageName)[0];
110 if (outFile != null) {
111 outFile = new File(outFile, path);
117 FullBackup.restoreFile(data, fileSize, type, -1, mtime, outFile);
/frameworks/base/core/java/com/android/server/backup/
DSystemBackupAgent.java147 File outFile = null; in onRestoreFile() local
151 outFile = new File(WALLPAPER_INFO); in onRestoreFile()
154 outFile = new File(WALLPAPER_IMAGE); in onRestoreFile()
160 if (outFile == null) { in onRestoreFile()
163 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/packages/Keyguard/scripts/
Dnew_merge.py130 def prepareFileForCompare(inFile, outFile, skip="", replace="", withText=""): argument
132 if (os.path.exists(outFile)):
133 os.remove(outFile)
136 fout = open(outFile, "w")
/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/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java80 int videoFormat, int outFormat, String outFile, boolean videoOnly) { in recordVideo() argument
90 mRecorder.setOutputFile(outFile); in recordVideo()
227 int videoFormat, int outFormat, String outFile, boolean videoOnly) { in recordVideoFromSurface() argument
237 recorder.setOutputFile(outFile); in recordVideoFromSurface()
360 int videoFormat, int outFormat, String outFile, boolean videoOnly) { in invalidRecordSetting() argument
369 mRecorder.setOutputFile(outFile); in invalidRecordSetting()
/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/java/android/webkit/
DCacheManager.java68 File outFile; field in CacheManager.CacheResult
/frameworks/native/opengl/tools/glgen2/
Dglgen.py122 file=self.outFile)
225 file=self.outFile)
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java293 Uri getInstallablePackage(int fileResId, File outFile) { in getInstallablePackage() argument
301 FileUtils.setPermissions(outFile.getPath(), in getInstallablePackage()
304 assertTrue(FileUtils.copyToFile(is, outFile)); in getInstallablePackage()
305 FileUtils.setPermissions(outFile.getPath(), in getInstallablePackage()
308 return Uri.fromFile(outFile); in getInstallablePackage()
700 File outFile = new File(filesDir, outFileName); in getParsedPackage() local
701 Uri packageURI = getInstallablePackage(rawResId, outFile); in getParsedPackage()
1349 File outFile = new File(ip.pkg.codePath); in cleanUpInstall() local
1350 if (outFile != null && outFile.exists()) { in cleanUpInstall()
1351 outFile.delete(); in cleanUpInstall()
[all …]
/frameworks/support/tests/java/android/support/v4/content/
DFileProviderTest.java160 File outFile = new File(mContext.getFilesDir(), "/foo/bar"); in testStrategyExtraSeparators() local
165 assertEquals(outFile.getPath(), in testStrategyExtraSeparators()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java223 int outFormat, String outFile, boolean videoOnly) { in stressVideoRecord() argument
236 mRecorder.setOutputFile(outFile); in stressVideoRecord()
/frameworks/rs/
Drsg_generator.c651 const char* outFile = argv[2]; in main() local
665 FILE *f = fopen(outFile, "w"); in main()
/frameworks/base/tools/aapt/
DResource.cpp1051 const sp<ApkSplit>& split, sp<AaptFile>& outFile, ResourceTable* table) { in generateAndroidManifestForSplit() argument
1091 int err = compileXmlFile(bundle, assets, String16(), root, outFile, table); in generateAndroidManifestForSplit()
1095 outFile->setCompressionMethod(ZipEntry::kCompressDeflated); in generateAndroidManifestForSplit()