Home
last modified time | relevance | path

Searched refs:outFile (Results 1 – 25 of 35) 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/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/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceCreatePerfTest.java86 File outFile = null; in testCreate_fromFile() local
88 outFile = File.createTempFile("example", "ttf", context.getCacheDir()); in testCreate_fromFile()
94 OutputStream out = new FileOutputStream(outFile)) { in testCreate_fromFile()
105 Typeface face = Typeface.createFromFile(outFile); in testCreate_fromFile()
108 outFile.delete(); in testCreate_fromFile()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java315 File outFile = null; in copyRawResourceToFile() local
317 outFile = new File(context.getFilesDir(), baseName); in copyRawResourceToFile()
318 assertTrue(FileUtils.copyToFile(is, outFile)); in copyRawResourceToFile()
319 return outFile; in copyRawResourceToFile()
321 if (outFile != null) { in copyRawResourceToFile()
322 outFile.delete(); in copyRawResourceToFile()
340 File outFile = null; in parsePackage() local
342 outFile = copyRawResourceToFile(apkFileName, apkResourceId); in parsePackage()
343 return converter.apply(new PackageParser().parsePackage(outFile, 0 /* flags */)); in parsePackage()
345 if (outFile != null) { in parsePackage()
[all …]
/frameworks/base/core/java/com/android/server/backup/
DSystemBackupAgent.java145 File outFile = null; in onRestoreFile() local
149 outFile = new File(WALLPAPER_INFO); in onRestoreFile()
152 outFile = new File(WALLPAPER_IMAGE); in onRestoreFile()
158 if (outFile == null) { in onRestoreFile()
161 FullBackup.restoreFile(data, size, type, mode, mtime, outFile); in onRestoreFile()
/frameworks/opt/gamesdk/src/tuningfork/tools/validation/src/main/java/com/google/tuningfork/validation/
DExternalProtoCompiler.java43 public FileDescriptor compile(File file, Optional<File> outFile) in compile() argument
46 FileDescriptor descriptor = buildAndRunCompilerProcess(file, outFile); in compile()
63 private FileDescriptor buildAndRunCompilerProcess(File file, Optional<File> outFile) in buildAndRunCompilerProcess() argument
70 if (outFile.isPresent()) { in buildAndRunCompilerProcess()
71 Files.write(fileSet.toByteArray(), outFile.get()); in buildAndRunCompilerProcess()
DDeveloperTuningforkParser.java111 File outFile = new File(folder, FolderConfig.TUNINGFORK_SETTINGS_BINARY); in saveBinarySettings() local
113 Files.write(settings.toByteArray(), outFile); in saveBinarySettings() local
/frameworks/base/core/java/android/app/backup/
DFullBackup.java149 long size, int type, long mode, long mtime, File outFile) throws IOException { in restoreFile() argument
154 if (outFile != null) outFile.mkdirs(); in restoreFile()
160 if (outFile != null) { in restoreFile()
161 File parent = outFile.getParentFile(); in restoreFile()
169 out = new FileOutputStream(outFile); in restoreFile()
172 Log.e(TAG, "Unable to create/open file " + outFile.getPath(), e); in restoreFile()
192 Log.e(TAG, "Unable to write to file " + outFile.getPath(), e); in restoreFile()
195 outFile.delete(); in restoreFile()
204 if (mode >= 0 && outFile != null) { in restoreFile()
208 Os.chmod(outFile.getPath(), (int)mode); in restoreFile()
[all …]
/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.java163 File outFile = File.createTempFile("DM_TEST", null, new File(CACHE_DIR)); in testDownloadToCacheWithAlmostFullCache() local
177 fo = new FileOutputStream(outFile); in testDownloadToCacheWithAlmostFullCache()
202 if (outFile != null) { in testDownloadToCacheWithAlmostFullCache()
203 outFile.delete(); in testDownloadToCacheWithAlmostFullCache()
/frameworks/base/tools/sdkparcelables/src/com/android/sdkparcelables/
DMain.kt55 val outFile = File(aidlFileName) in main() constant
56 val outWriter = outFile.bufferedWriter() in main()
/frameworks/opt/gamesdk/src/tuningfork/tools/validation/src/test/java/com/google/tuningfork/validation/
DExternalProtoCompilerTest.java83 File outFile = new File(tempFolder.getRoot(), "compile_valid.descriptor"); in compareDescriptors() local
85 FileDescriptor stdoutDescriptor = compiler.compile(file, Optional.of(outFile)); in compareDescriptors()
89 FileDescriptorSet fileSet = FileDescriptorSet.parseFrom(Files.toByteArray(outFile)); in compareDescriptors()
96 assertThat(outFile).isNotNull(); in compareDescriptors()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DReportEncoderTests.java96 private static void copyWatchlistConfigXml(Context context, String xmlAsset, File outFile) in copyWatchlistConfigXml() argument
98 writeToFile(outFile, readAsset(context, xmlAsset)); in copyWatchlistConfigXml()
DWatchlistSettingsTests.java111 private static void copyWatchlistSettingsXml(Context context, String xmlAsset, File outFile) in copyWatchlistSettingsXml() argument
113 writeToFile(outFile, readAsset(context, xmlAsset)); in copyWatchlistSettingsXml()
DWatchlistConfigTests.java138 private static void copyWatchlistConfigXml(Context context, String xmlAsset, File outFile) in copyWatchlistConfigXml() argument
140 writeToFile(outFile, readAsset(context, xmlAsset)); in copyWatchlistConfigXml()
/frameworks/rs/rsov/compiler/
Drs2spirv.cpp128 llvm::StringRef outFile(OutputFile); in convertLLVMToSPIRV() local
129 llvm::raw_fd_ostream OFS(outFile, EC, llvm::sys::fs::F_None); in convertLLVMToSPIRV()
/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/ml/nn/tools/test_generator/
Dspec_visualizer.py397 specFile, varName, outFile = ParseCmdLine() variable
400 with SmartOpen(outFile) as fd:
407 print("Output HTML file: %s" % outFile)
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java137 final File outFile = new File(mContext.getObbDir(), name); in createObbFile() local
138 outFile.delete(); in createObbFile()
141 OutputStream out = new FileOutputStream(outFile)) { in createObbFile()
145 return outFile; in createObbFile()
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/
DDexMetadataHelperTest.java94 File outFile = new File(mTmpDir, apkFileName); in copyApkToToTmpDir() local
96 FileUtils.copyToFileOrThrow(is, outFile); in copyApkToToTmpDir()
98 return outFile; in copyApkToToTmpDir()
/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.java70 File outFile = new File(extStorage, outputFile); in dumpResult() local
71 FileWriter writer = new FileWriter(outFile, true); in dumpResult()

12