/packages/modules/GeoTZ/validation/geonames/src/main/java/com/android/timezone/location/validation/ |
D | GeonamesComparison.java | 149 private static void outputKnownDifferences(File outputFile, in outputKnownDifferences() argument 152 try (Writer writer = new OutputStreamWriter(new FileOutputStream(outputFile), in outputKnownDifferences() 159 File outputFile, List<KnownDifferenceMismatch> knownDifferenceMismatches) in outputKnownDifferenceMismatches() argument 162 try (Writer writer = new OutputStreamWriter(new FileOutputStream(outputFile), in outputKnownDifferenceMismatches() 269 File outputFile = new File(outputDir, "new_diffs.prototxt"); in outputKnownDifferencesProtos() local 270 outputKnownDifferences(outputFile, newKnownDifferences); in outputKnownDifferencesProtos() 271 System.out.println("New differences: " + outputFile + " (investigate these)"); in outputKnownDifferencesProtos() 276 File outputFile = new File(outputDir, "incorrect_diffs.prototxt"); in outputKnownDifferencesProtos() local 277 outputKnownDifferenceMismatches(outputFile, incorrectKnownDifferences); in outputKnownDifferencesProtos() 279 "Incorrect known differences: " + outputFile + " (investigate these)"); in outputKnownDifferencesProtos() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/persistentlog/ |
D | PersistentLogFileHandler.java | 75 private File outputFile; field in PersistentLogFileHandler 109 if (outputFile == null) { in writeLogs() 112 outputFile.createNewFile(); in writeLogs() 114 new DataOutputStream(new FileOutputStream(outputFile, true))) { in writeLogs() 122 if (outputFile.length() > fileSizeLimit) { in writeLogs() 129 if (outputFile == null) { in writeRawLogsForTest() 132 outputFile.createNewFile(); in writeRawLogsForTest() 134 new DataOutputStream(new FileOutputStream(outputFile, true))) { in writeRawLogsForTest() 137 if (outputFile.length() > fileSizeLimit) { in writeRawLogsForTest() 201 outputFile = new File(logDirectory, String.valueOf(getAndIncrementNextFileIndex())); in selectNextFileToWrite() [all …]
|
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/ |
D | CreateTzS2ProtoDataFile.java | 53 File inputFile, ProtoStorageFormat inputProtoFormat, File outputFile, in CreateTzS2ProtoDataFile() argument 57 this.mOutputFile = Objects.requireNonNull(outputFile); in CreateTzS2ProtoDataFile() 72 public File outputFile; field in CreateTzS2ProtoDataFile.Arguments 93 File outputFile = arguments.outputFile; in main() local 97 outputFile.getParentFile().mkdirs(); in main() 100 inputFile, inputStorageFormat, outputFile, outputStorageFormat); in main()
|
D | Types.java | 68 public void store(Message message, File outputFile, License license) throws IOException { in store() argument 70 license.checkLicensePresentInDir(outputFile.getParentFile()); in store() 73 storeProtoAsText(message, outputFile, license); in store() 75 storeProtoAsBinary(message, outputFile); in store() 114 private static void storeProtoAsText(Message message, File outputFile, License license) in storeProtoAsText() argument 116 try (FileWriter writer = new FileWriter(outputFile)) { in storeProtoAsText() 124 private static void storeProtoAsBinary(Message message, File outputFile) in storeProtoAsBinary() argument 126 try (FileOutputStream fileOutputStream = new FileOutputStream(outputFile)) { in storeProtoAsBinary() 238 public static void store(TzS2Polygons tzPolygons, File outputFile, in store() argument 261 storageFormat.store(s2PolygonsProto, outputFile, license); in store() [all …]
|
D | MergeTzS2Ranges.java | 64 File inputDir, ExecutorService executorService, File workingDir, File outputFile, in MergeTzS2Ranges() argument 69 this.mOutputFile = Objects.requireNonNull(outputFile); in MergeTzS2Ranges() 96 public File outputFile; field in MergeTzS2Ranges.Arguments 111 File outputFile = arguments.outputFile; in main() local 117 inputDir, executorService, workingDir, outputFile, protoStorageFormat); in main() 213 private File mergeRangeLists(File leftFile, File rightFile, File outputFile) in mergeRangeLists() argument 293 TzS2Ranges.store(outputRanges, outputFile, mProtoStorageFormat, License.ODBL); in mergeRangeLists() 294 return outputFile; in mergeRangeLists()
|
D | CanonicalizeTzS2Polygons.java | 195 File outputFile = TzIds.createFile(mOutputDir, canonicalTzId, fileSuffix); in processFile() local 197 if (outputFile.exists()) { in processFile() 198 System.out.println("Extending " + outputFile); in processFile() 199 TzS2Polygons oldOutputPolygons = TzS2Polygons.load(outputFile, mProtoFormat); in processFile() 205 System.out.println("Creating " + outputFile); in processFile() 208 TzS2Polygons.store(tzS2Polygons, outputFile, mProtoFormat, LicenseSupport.License.ODBL); in processFile()
|
D | TzS2PolygonsToTzS2CellUnions.java | 170 File outputFile = TzIds.createFile( in processFile() local 172 TzS2CellUnion.store(tzS2CellUnion, outputFile, mProtoStorageFormat, License.ODBL); in processFile() 173 return new Pair<>(tzS2Polygons.tzId, outputFile); in processFile()
|
D | TzS2CellUnionsToTzS2Ranges.java | 168 File outputFile = TzIds.createFile( in processFile() local 170 TzS2Ranges.store(tzS2Ranges, outputFile, mProtoStorageFormat, License.ODBL); in processFile() 171 return new Pair<>(tzS2CellUnion.tzId, outputFile); in processFile()
|
D | GeoJsonTzToTzS2Polygons.java | 192 File outputFile = TzIds.createFile(mOutputDir, tzPolygons.tzId, fileSuffix); in execute() local 193 TzS2Polygons.store(tzPolygons, outputFile, mProtoStorageFormat, License.ODBL); in execute()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/ |
D | Utils.java | 56 public static void runCommand(File outputFile, Logger logger, String... commands) in runCommand() argument 59 if (outputFile != null && outputFile.exists() && outputFile.canWrite()) { in runCommand() 60 pb.redirectOutput(outputFile); in runCommand() 96 File outputFile = File.createTempFile("statsdret", ".bin"); in getReportList() local 97 outputFile.deleteOnExit(); in getReportList() 99 outputFile, in getReportList() 112 ConfigMetricsReportList.parseFrom(new FileInputStream(outputFile)); in getReportList()
|
/packages/modules/GeoTZ/s2storage/tools/src/java/com/android/timezone/location/tools/ |
D | CreateTzS2File.java | 56 public File outputFile; field in CreateTzS2File.Arguments 74 File outputFile = arguments.outputFile; in main() local 78 LicenseSupport.copyLicenseFile(inputFile.getParentFile(), outputFile.getParentFile()); in main() 88 try (TzS2RangeFileWriter writer = TzS2RangeFileWriter.open(outputFile, fileFormat)) { in main()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | ScreenRecordRule.java | 59 File outputFile = new File(inst.getTargetContext().getFilesDir(), in apply() local 63 automation.executeShellCommand("screenrecord " + outputFile); in apply() 71 Log.e(TAG, "Screenrecord captured at: " + outputFile); in apply() 74 automation.executeShellCommand("rm " + outputFile); in apply()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | StoreUtils.java | 177 public static boolean copyUriIntoFile(ContentResolver cr, Uri uri, File outputFile) { in copyUriIntoFile() argument 179 try (final FileOutputStream out = new FileOutputStream(outputFile)) { in copyUriIntoFile() 182 ProvisionLogger.logi("Successfully copy from uri " + uri + " to " + outputFile); in copyUriIntoFile() 186 + outputFile, e); in copyUriIntoFile() 188 outputFile.delete(); in copyUriIntoFile()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryFileDumper.java | 266 File outputFile = null; in installWordListToStaging() local 277 outputFile = new File(tempFileName); in installWordListToStaging() 280 outputFile.delete(); in installWordListToStaging() 309 bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(outputFile)); in installWordListToStaging() 316 new BufferedInputStream(new FileInputStream(outputFile))); in installWordListToStaging() 327 if (!FileUtils.renameTo(outputFile, finalFile)) { in installWordListToStaging() 329 outputFile.getAbsoluteFile(), finalFile.getAbsoluteFile())); in installWordListToStaging() 344 if (null != outputFile) { in installWordListToStaging() 348 outputFile.delete(); in installWordListToStaging()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | LicenseHtmlGeneratorFromXml.java | 107 public static boolean generateHtml(List<File> xmlFiles, File outputFile) { in generateHtml() argument 109 return genertor.generateHtml(outputFile); in generateHtml() 112 private boolean generateHtml(File outputFile) { in generateHtml() argument 123 writer = new PrintWriter(outputFile); in generateHtml() 131 LOG.e("Failed to generate " + outputFile, e); in generateHtml()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | CopyAndResizeImageWorker.java | 69 File outputFile = DialerUtils.createShareableFile(context); in doInBackground() local 70 try (OutputStream outputStream = new FileOutputStream(outputFile)) { in doInBackground() 73 return new Pair<>(outputFile, MIME_TYPE); in doInBackground()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
D | DisclaimersParserImpl.java | 102 File outputFile = new File(mDisclaimerDir, filename); in saveDisclaimerContentIntoFile() local 105 outputFile); in saveDisclaimerContentIntoFile() 106 return success ? outputFile : null; in saveDisclaimerContentIntoFile()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | ImagePersistWorker.java | 90 File outputFile = DialerUtils.createShareableFile(context); in doInBackground() local 92 try (OutputStream outputStream = new FileOutputStream(outputFile)) { in doInBackground() 99 context, Constants.get().getFileProviderAuthority(), outputFile)) in doInBackground()
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | PerformanceTest.java | 428 File outputFile = File.createTempFile("drop_cache_script", ".sh", outputDir); in executeDropCachesImpl() local 429 outputFile.setWritable(true); in executeDropCachesImpl() 430 outputFile.setExecutable(true, /*ownersOnly*/false); in executeDropCachesImpl() 432 String dropCacheScriptPath = outputFile.toString(); in executeDropCachesImpl() 444 outputFile.delete(); in executeDropCachesImpl()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | DeviceBloomfilterGenerator.java | 197 File outputFile = new File(filePath); in generateDefaultBloomfilter() local 198 outputFile.createNewFile(); // if file already exists will do nothing in generateDefaultBloomfilter()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | DictionaryMaker.java | 289 final File outputFile = new File(outputFilename); in writeBinaryDictionary() local 294 dictEncoder = new Ver4DictEncoder(outputFile); in writeBinaryDictionary() 296 dictEncoder = new Ver2DictEncoder(outputFile, codePointTableMode); in writeBinaryDictionary()
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | MoreKeysResources.java | 122 final File outputFile = new File(outPackage, in writeToJava() local 125 ps = new PrintStream(outputFile, "UTF-8"); in writeToJava()
|
/packages/apps/Car/systemlibs/tools/rro/ |
D | generate-overlays.py | 61 generate_overlays_file(resources, args.outputFile)
|
D | generate-overlayable.py | 58 generate_overlayable_file(resources, args.targetName, args.policyType, args.outputFile)
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ImageUtils.java | 493 final File outputFile = MediaScratchFileProvider.getFileFromUri(tmpUri); in resizeGifImage() local 494 final String outputFilePath = outputFile.getAbsolutePath(); in resizeGifImage() 500 bytesToReturn = Files.toByteArray(outputFile); in resizeGifImage()
|