/aosp12/packages/services/Car/cpp/evs/sampleDriver/ |
H A D | ConfigManager.cpp | 819 fstream outFile; in writeConfigDataToBinary() local 824 if (!outFile) { in writeConfigDataToBinary() 834 outFile.write(reinterpret_cast<const char *>(&sz), in writeConfigDataToBinary() 845 outFile.write(reinterpret_cast<const char *>(&sz), in writeConfigDataToBinary() 860 outFile.write(reinterpret_cast<const char *>(&sz), in writeConfigDataToBinary() 893 outFile.close(); in writeConfigDataToBinary() 936 outFile.write(reinterpret_cast<const char *>(&sz), in writeConfigDataToBinary() 947 outFile.write(reinterpret_cast<const char *>(&sz), in writeConfigDataToBinary() 962 outFile.write(reinterpret_cast<const char *>(&sz), in writeConfigDataToBinary() 991 outFile.close(); in writeConfigDataToBinary() [all …]
|
/aosp12/frameworks/native/opengl/tools/glgen2/registry/ |
H A D | reg.py | 355 self.outFile = None 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) 527 write('#endif', file=self.outFile) 533 write(s, file=self.outFile) 547 write(' */', file=self.outFile) 553 write('}', file=self.outFile) [all …]
|
/aosp12/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarDebugActivity.java | 105 File outFile = new File(Environment.getExternalStorageDirectory(), OUT_FILE); in cleanup() local 106 outFile.delete(); in cleanup() 125 File outFile = new File(path, OUT_FILE); in doInBackground() local 126 outFile.delete(); in doInBackground() 127 Log.i(TAG, "Outfile=" + outFile.getAbsolutePath()); in doInBackground() 132 os = new ZipOutputStream(new FileOutputStream(outFile)); in doInBackground() 155 outFile.toString() in doInBackground() 159 return outFile; in doInBackground() 182 protected void onPostExecute(File outFile) { in onPostExecute() argument 183 if (outFile != null) { in onPostExecute() [all …]
|
/aosp12/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ |
H A D | SharedStorageAgent.java | 72 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()
|
H A D | ObbBackupService.java | 109 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);
|
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
H A D | TypefaceCreatePerfTest.java | 108 File outFile = null; in testCreate_fromFile() local 110 outFile = File.createTempFile("example", "ttf", context.getCacheDir()); in testCreate_fromFile() 116 OutputStream out = new FileOutputStream(outFile)) { in testCreate_fromFile() 127 Typeface face = Typeface.createFromFile(outFile); in testCreate_fromFile() 130 outFile.delete(); in testCreate_fromFile()
|
/aosp12/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/util/ |
H A D | FileDownloaderTest.java | 69 File outFile = Paths in download_downloadsChunkOfZip() local 72 Files.deleteIfExists(outFile.toPath()); in download_downloadsChunkOfZip() 74 FileDownloader downloader = new FileDownloader(url, 1674, 12, outFile); in download_downloadsChunkOfZip() 76 String downloadedContent = String.join("\n", Files.readAllLines(outFile.toPath())); in download_downloadsChunkOfZip()
|
/aosp12/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
H A D | DecoderTest.java | 162 File outFile = new File(mOutputFilePath + "decoder.out"); in testDecoder() local 163 if (outFile.exists()) { in testDecoder() 164 assertTrue(" Unable to delete existing file" + outFile.toString(), in testDecoder() 165 outFile.delete()); in testDecoder() 167 assertTrue("Unable to create file: " + outFile.toString(), in testDecoder() 168 outFile.createNewFile()); in testDecoder() 169 decodeOutputStream = new FileOutputStream(outFile); in testDecoder()
|
/aosp12/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
H A D | DownloadService.java | 111 String displayName, Uri outFile, Context context) { in DownloadTask() argument 117 this.mOutFile = outFile; in DownloadTask() 153 String userAgent, String url, String displayName, Uri outFile) { in makeDownloadIntent() argument 159 intent.putExtra(ARG_OUTFILE, outFile); in makeDownloadIntent() 209 final Uri outFile = intent.getParcelableExtra(ARG_OUTFILE); in onStartCommand() local 212 || outFile == null) { in onStartCommand() 214 + "filename: %s, outFile: %s", network, userAgent, url, filename, outFile)); in onStartCommand() 220 network.getPrivateDnsBypassingCopy(), userAgent, url, filename, outFile, this); in onStartCommand() 425 @NonNull Uri outFile) { in makeDoneNotification() argument 429 .setData(outFile) in makeDoneNotification()
|
/aosp12/frameworks/base/services/core/java/com/android/server/backup/ |
H A D | SystemBackupAgent.java | 149 File outFile = null; in onRestoreFile() local 153 outFile = new File(WALLPAPER_INFO); in onRestoreFile() 156 outFile = new File(WALLPAPER_IMAGE); in onRestoreFile() 162 if (outFile == null) { in onRestoreFile() 165 FullBackup.restoreFile(data, size, type, mode, mtime, outFile); in onRestoreFile()
|
/aosp12/packages/apps/Traceur/src/com/android/traceur/ |
H A D | AtraceUtils.java | 96 public boolean traceDump(File outFile) { in traceDump() argument 97 String cmd = "atrace --async_stop -z -c -o " + outFile; in traceDump() 111 ps.getInputStream(), new FileOutputStream(outFile, true /* append */)); in traceDump() 119 outFile.setReadable(true, false); // (readable, ownerOnly) in traceDump() 120 outFile.setWritable(true, false); // (readable, ownerOnly) in traceDump()
|
H A D | PerfettoUtils.java | 286 public boolean traceDump(File outFile) { in traceDump() argument 295 Log.v(TAG, "Saving perfetto trace to " + outFile); in traceDump() 298 Os.rename(TEMP_TRACE_LOCATION, outFile.getCanonicalPath()); in traceDump() 303 outFile.setReadable(true, false); // (readable, ownerOnly) in traceDump() 304 outFile.setWritable(true, false); // (readable, ownerOnly) in traceDump()
|
H A D | TraceUtils.java | 63 public boolean traceDump(File outFile); in traceDump() argument 82 public static boolean traceDump(File outFile) { in traceDump() argument 83 return mTraceEngine.traceDump(outFile); in traceDump()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
H A D | DumpDatabaseAction.java | 63 final File outFile = DebugUtils.getDebugFile(DUMP_NAME, true); in executeAction() local 64 if (outFile != null) { in executeAction() 67 bos = new BufferedOutputStream(new FileOutputStream(outFile)); in executeAction() 95 DebugUtils.ensureReadable(outFile); in executeAction()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
H A D | PackageParserLegacyCoreTest.java | 342 File outFile = null; in copyRawResourceToFile() local 344 outFile = new File(context.getFilesDir(), baseName); in copyRawResourceToFile() 345 assertTrue(FileUtils.copyToFile(is, outFile)); in copyRawResourceToFile() 346 return outFile; in copyRawResourceToFile() 348 if (outFile != null) { in copyRawResourceToFile() 349 outFile.delete(); in copyRawResourceToFile() 367 File outFile = null; in parsePackage() local 369 outFile = copyRawResourceToFile(apkFileName, apkResourceId); in parsePackage() 371 .parsePackage(outFile, 0 /* flags */, false)); in parsePackage() 373 if (outFile != null) { in parsePackage() [all …]
|
/aosp12/system/tools/aidl/build/ |
H A D | aidl_gen_rule.go | 119 outFile, headers := g.generateBuildActionsForSingleAidl(ctx, src) 120 g.genOutputs = append(g.genOutputs, outFile) 155 outFile := android.PathForModuleGen(ctx, pathtools.ReplaceExtension(relPath, ext)) 187 Output: outFile, 199 Output: outFile, 243 Output: outFile, 255 return outFile, headers.Paths()
|
/aosp12/build/soong/cc/ |
H A D | gen.go | 69 outFile android.ModuleGenPath, props *YaccProperties) (headerFiles android.Paths) { 82 rule.Command().Text(sedCmd).Input(outFile) 90 locationHeader := outFile.InSameDir(ctx, "location.hh") 96 positionHeader := outFile.InSameDir(ctx, "position.hh") 109 Flag("-o").Output(outFile).Input(yaccFile) 164 func genLex(ctx android.ModuleContext, lexFile android.Path, outFile android.ModuleGenPath, props *… 173 Output: outFile,
|
/aosp12/frameworks/base/packages/SystemUI/scripts/ |
H A D | new_merge.py | 130 def prepareFileForCompare(inFile, outFile, skip="", replace="", withText=""): argument 132 if (os.path.exists(outFile)): 133 os.remove(outFile) 136 fout = open(outFile, "w")
|
/aosp12/frameworks/base/core/java/android/app/backup/ |
H A D | FullBackup.java | 216 long size, int type, long mode, long mtime, File outFile) throws IOException { in restoreFile() argument 221 if (outFile != null) outFile.mkdirs(); in restoreFile() 227 if (outFile != null) { in restoreFile() 228 File parent = outFile.getParentFile(); in restoreFile() 236 out = new FileOutputStream(outFile); in restoreFile() 239 Log.e(TAG, "Unable to create/open file " + outFile.getPath(), e); in restoreFile() 259 Log.e(TAG, "Unable to write to file " + outFile.getPath(), e); in restoreFile() 262 outFile.delete(); in restoreFile() 271 if (mode >= 0 && outFile != null) { in restoreFile() 275 Os.chmod(outFile.getPath(), (int)mode); in restoreFile() [all …]
|
/aosp12/build/soong/android/ |
H A D | rule_builder_test.go | 671 outFile := "out/soong/.intermediates/foo/gen/foo" 676 "cp in "+outFile+" @"+rspFile+" @"+rspFile2, 677 outFile, outFile+".d", rspFile, rspFile2, true, nil, nil) 681 outFile := filepath.Join(outDir, "gen/foo_sbox") 693 cmd, outFile, depFile, rspFile, rspFile2, false, []string{manifest}, []string{sbox}) 697 outFile := filepath.Join(outDir, "gen/foo_sbox_inputs") 710 cmd, outFile, depFile, rspFile, rspFile2, false, []string{manifest}, []string{sbox}) 713 outFile := filepath.Join("out/soong/singleton/gen/baz") 718 "cp in "+outFile+" @"+rspFile+" @"+rspFile2, 719 outFile, outFile+".d", rspFile, rspFile2, true, nil, nil)
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerStressTest.java | 163 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()
|
/aosp12/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/ |
H A D | Utils.java | 215 File outFile = File.createTempFile("device_serial", "tmp"); in getDeviceSerials() local 216 outFile.deleteOnExit(); in getDeviceSerials() 217 Utils.runCommand(outFile, logger, "adb", "devices"); in getDeviceSerials() 218 List<String> outputLines = Files.readLines(outFile, Charset.defaultCharset()); in getDeviceSerials()
|
/aosp12/frameworks/base/tools/sdkparcelables/src/com/android/sdkparcelables/ |
H A D | Main.kt | 55 val outFile = File(aidlFileName) regex 56 val outWriter = outFile.bufferedWriter()
|
/aosp12/build/soong/cmd/extract_apks/ |
H A D | main.go | 421 func (apkSet *ApkSet) extractAndCopySingle(selected SelectionResult, outFile *os.File) error { 430 _, err := io.Copy(outFile, inputReader) 536 outFile, err := os.Create(*outputFile) 540 defer outFile.Close() 543 err = apkSet.extractAndCopySingle(sel, outFile) 545 writer := zip.NewWriter(outFile)
|
/aosp12/frameworks/compile/libbcc/bcinfo/tools/ |
H A D | main.cpp | 53 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()
|