Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java105 final File outFile = new File(filesDir, name); in getFilePath() local
106 return outFile; in getFilePath()
109 private void copyRawToFile(int rawResId, File outFile) { in copyRawToFile() argument
117 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
119 assertTrue(FileUtils.copyToFile(is, outFile)); in copyRawToFile()
120 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
202 final File outFile = getFilePath("test1.obb"); in testMountAndUnmountObbNormal() local
204 mountObb(sm, R.raw.test1, outFile, OnObbStateChangeListener.MOUNTED); in testMountAndUnmountObbNormal()
206 mountObb(sm, R.raw.test1, outFile, OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in testMountAndUnmountObbNormal()
208 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/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceCreatePerfTest.java82 File outFile = null; in testCreate_fromFile() local
84 outFile = File.createTempFile("example", "ttf", context.getCacheDir()); in testCreate_fromFile()
90 OutputStream out = new FileOutputStream(outFile)) { in testCreate_fromFile()
101 Typeface face = Typeface.createFromFile(outFile); in testCreate_fromFile()
104 outFile.delete(); in testCreate_fromFile()
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DSharedStorageAgent.java72 File outFile = null; in onRestoreFile() local
80 outFile = new File(mVolumes[i].getPath(), relpath.substring(slash + 1)); in onRestoreFile()
81 if (DEBUG) Slog.i(TAG, " => " + outFile.getAbsolutePath()); in onRestoreFile()
91 if (outFile == null) { in onRestoreFile()
95 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/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/java/com/android/server/backup/
DSystemBackupAgent.java148 File outFile = null; in onRestoreFile() local
152 outFile = new File(WALLPAPER_INFO); in onRestoreFile()
155 outFile = new File(WALLPAPER_IMAGE); in onRestoreFile()
161 if (outFile == null) { in onRestoreFile()
164 FullBackup.restoreFile(data, size, type, mode, mtime, outFile); in onRestoreFile()
/frameworks/base/core/java/android/app/backup/
DFullBackup.java142 long size, int type, long mode, long mtime, File outFile) throws IOException { in restoreFile() argument
147 if (outFile != null) outFile.mkdirs(); in restoreFile()
153 if (outFile != null) { in restoreFile()
154 File parent = outFile.getParentFile(); in restoreFile()
162 out = new FileOutputStream(outFile); in restoreFile()
165 Log.e(TAG, "Unable to create/open file " + outFile.getPath(), e); in restoreFile()
185 Log.e(TAG, "Unable to write to file " + outFile.getPath(), e); in restoreFile()
188 outFile.delete(); in restoreFile()
197 if (mode >= 0 && outFile != null) { in restoreFile()
201 Os.chmod(outFile.getPath(), (int)mode); in restoreFile()
[all …]
DBackupAgent.java843 File outFile = new File(basePath, path); in onRestoreFile() local
844 String outPath = outFile.getCanonicalPath(); in onRestoreFile()
847 onRestoreFile(data, size, outFile, type, mode, mtime); in onRestoreFile()
/frameworks/base/packages/SystemUI/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.java162 File outFile = File.createTempFile("DM_TEST", null, new File(CACHE_DIR)); in testDownloadToCacheWithAlmostFullCache() local
176 fo = new FileOutputStream(outFile); in testDownloadToCacheWithAlmostFullCache()
201 if (outFile != null) { in testDownloadToCacheWithAlmostFullCache()
202 outFile.delete(); in testDownloadToCacheWithAlmostFullCache()
/frameworks/rs/rsov/compiler/
Drs2spirv.cpp86 llvm::StringRef outFile(OutputFile); in convertLLVMToSPIRV() local
88 llvm::raw_fd_ostream OFS(outFile, EC, llvm::sys::fs::F_None); in convertLLVMToSPIRV()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/
DLayoutXmlProcessor.java202 final File outFile = convertToOutFile(file); in processResources()
204 FileUtils.copyDirectory(file, outFile); in processResources()
206 FileUtils.copyFile(file, outFile); in processResources()
212 final File outFile = convertToOutFile(file); in processResources()
213 FileUtils.deleteQuietly(outFile); in processResources()
/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()
375 new llvm::tool_output_file(outFile.c_str(), ec, 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.java82 int videoFormat, int outFormat, String outFile, boolean videoOnly) { in recordVideo() argument
92 mRecorder.setOutputFile(outFile); in recordVideo()
229 int videoFormat, int outFormat, String outFile, boolean videoOnly, in recordVideoFromSurface() argument
241 recorder.setOutputFile(outFile); in recordVideoFromSurface()
375 int videoFormat, int outFormat, String outFile, boolean videoOnly) { in invalidRecordSetting() argument
384 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/media/java/android/media/
DUtils.java336 File outFile = null;
339 outFile = FileUtils.buildUniqueFile(externalStorage, mimeType, fileName);
345 return outFile;
DRingtoneManager.java957 final File outFile = Utils.getUniqueExternalFile(mContext, subdirectory, in addCustomExternalRingtone() local
962 final OutputStream output = new FileOutputStream(outFile)) { in addCustomExternalRingtone()
967 try (NewRingtoneScanner scanner = new NewRingtoneScanner(outFile)) { in addCustomExternalRingtone()
/frameworks/native/opengl/tools/glgen2/
Dglgen.py132 file=self.outFile)
215 file=self.outFile)
/frameworks/base/core/java/android/webkit/
DCacheManager.java68 File outFile; field in CacheManager.CacheResult
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java298 Uri getInstallablePackage(int fileResId, File outFile) { in getInstallablePackage() argument
306 FileUtils.setPermissions(outFile.getPath(), in getInstallablePackage()
309 assertTrue(FileUtils.copyToFile(is, outFile)); in getInstallablePackage()
310 FileUtils.setPermissions(outFile.getPath(), in getInstallablePackage()
313 return Uri.fromFile(outFile); in getInstallablePackage()
695 File outFile = new File(filesDir, outFileName); in getParsedPackage() local
696 Uri packageURI = getInstallablePackage(rawResId, outFile); in getParsedPackage()
1323 File outFile = new File(ip.pkg.codePath); in cleanUpInstall() local
1324 if (outFile != null && outFile.exists()) { in cleanUpInstall()
1325 outFile.delete(); in cleanUpInstall()
[all …]
/frameworks/support/core-utils/tests/java/android/support/v4/content/
DFileProviderTest.java183 File outFile = new File(expectedRoot, "/foo/bar"); in testStrategyExtraSeparators() local
188 assertEquals(outFile.getPath(), in testStrategyExtraSeparators()
/frameworks/rs/
Drsg_generator.c474 const char* outFile = argv[2]; in main() local
488 FILE *f = fopen(outFile, "w"); in main()
/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()

12