/external/downloader/src/test/java/com/google/android/downloader/ |
D | ProtoFileDownloadDestinationTest.java | 40 File targetFile = new File("/does/not/exist"); in numExistingBytes_fileDoesNotExist() local 41 File metadataFile = new File(targetFile.getParent(), targetFile.getName() + ".meta"); in numExistingBytes_fileDoesNotExist() 43 new ProtoFileDownloadDestination(targetFile, metadataFile); in numExistingBytes_fileDoesNotExist() 51 File targetFile = temporaryFolder.newFile(); in numExistingBytes_fileEmpty() local 52 File metadataFile = new File(targetFile.getParent(), targetFile.getName() + ".meta"); in numExistingBytes_fileEmpty() 54 new ProtoFileDownloadDestination(targetFile, metadataFile); in numExistingBytes_fileEmpty() 60 File targetFile = temporaryFolder.newFile(); in numExistingBytes_fileNonEmpty() local 61 File metadataFile = new File(targetFile.getParent(), targetFile.getName() + ".meta"); in numExistingBytes_fileNonEmpty() 63 new ProtoFileDownloadDestination(targetFile, metadataFile); in numExistingBytes_fileNonEmpty() 64 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in numExistingBytes_fileNonEmpty() [all …]
|
D | SimpleFileDownloadDestinationTest.java | 40 File targetFile = new File("/does/not/exist"); in numExistingBytes_fileDoesNotExist() local 41 File metadataFile = new File(targetFile.getParent(), targetFile.getName() + ".meta"); in numExistingBytes_fileDoesNotExist() 43 new SimpleFileDownloadDestination(targetFile, metadataFile); in numExistingBytes_fileDoesNotExist() 51 File targetFile = temporaryFolder.newFile(); in numExistingBytes_fileEmpty() local 52 File metadataFile = new File(targetFile.getParent(), targetFile.getName() + ".meta"); in numExistingBytes_fileEmpty() 54 new SimpleFileDownloadDestination(targetFile, metadataFile); in numExistingBytes_fileEmpty() 60 File targetFile = temporaryFolder.newFile(); in numExistingBytes_fileNonEmpty() local 61 File metadataFile = new File(targetFile.getParent(), targetFile.getName() + ".meta"); in numExistingBytes_fileNonEmpty() 63 new SimpleFileDownloadDestination(targetFile, metadataFile); in numExistingBytes_fileNonEmpty() 64 Files.asCharSink(targetFile, UTF_8).write("Hello world"); in numExistingBytes_fileNonEmpty() [all …]
|
D | PlatformUrlEngineTest.java | 122 File targetFile = temporaryFolder.newFile(); in executeRequest_fileUrl() local 123 FileChannel channel = FileChannel.open(targetFile.toPath(), StandardOpenOption.WRITE); in executeRequest_fileUrl() 130 assertThat(Files.asCharSource(targetFile, UTF_8).read()).isEqualTo(message); in executeRequest_fileUrl()
|
/external/downloader/src/main/java/com/google/android/downloader/ |
D | ProtoFileDownloadDestination.java | 35 private final File targetFile; field in ProtoFileDownloadDestination 38 public ProtoFileDownloadDestination(File targetFile, File metadataFile) { in ProtoFileDownloadDestination() argument 39 this.targetFile = targetFile; in ProtoFileDownloadDestination() 45 return targetFile.length(); in numExistingBytes() 59 offsetBytes <= targetFile.length(), in openByteChannel() 62 FileChannel fileChannel = new RandomAccessFile(targetFile, "rw").getChannel(); in openByteChannel() 70 if (targetFile.exists() && !targetFile.delete()) { in clear() 77 return targetFile.toString(); in toString()
|
D | SimpleFileDownloadDestination.java | 39 private final File targetFile; field in SimpleFileDownloadDestination 42 public SimpleFileDownloadDestination(File targetFile, File metadataFile) { in SimpleFileDownloadDestination() argument 43 this.targetFile = targetFile; in SimpleFileDownloadDestination() 49 return targetFile.length(); in numExistingBytes() 63 offsetBytes <= targetFile.length(), in openByteChannel() 66 FileChannel fileChannel = new RandomAccessFile(targetFile, "rw").getChannel(); in openByteChannel() 74 if (targetFile.exists() && !targetFile.delete()) { in clear() 81 return targetFile.toString(); in toString()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/changes/ |
D | Change.java | 31 private final String targetFile; // entry name to delete field in Change 53 this.targetFile = pFilename; in Change() 73 targetFile = null; in Change() 85 String targetFile() { in targetFile() method in Change 86 return targetFile; in targetFile()
|
D | ChangeSetPerformer.java | 138 if (name.equals(change.targetFile())) { in perform() 146 if (name.startsWith(change.targetFile() + "/")) { // NOPMD in perform() 193 final String target = change.targetFile(); in isDeletedLater()
|
D | ChangeSet.java | 130 pChange.targetFile() == null) { in addDeletion() 133 final String source = pChange.targetFile(); in addDeletion()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | ToolUtilities.java | 47 …public void generateBat(String sourceDir, String sourceFile, String targetDir, String targetFile) { in generateBat() argument 48 …generateBat(sourceDir, sourceFile, targetDir, targetFile, new CldrUtility.SimpleLineComparator(0)); in generateBat() 51 …c public void generateBat(String sourceDir, String sourceFile, String targetDir, String targetFile, in generateBat() argument 55 String batName = targetFile + ".bat"; in generateBat() 59 String fullTarget = targetDir + File.separator + targetFile; in generateBat()
|
D | MakeTransliterator.java | 69 String targetFile = cldrDataDir + "en-IPA.txt"; in main() local 348 PrintWriter out = FileUtilities.openUTF8Writer("", targetFile); in main()
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | AtraceScriptsWriter.java | 66 private static void copyResToFile(Context ctx, int resId, String targetFile) in copyResToFile() argument 69 OutputStream outputStream = new FileOutputStream(targetFile); in copyResToFile()
|
/external/libtextclassifier/java/src/com/android/textclassifier/common/ |
D | ModelFileManager.java | 156 private final File targetFile; field in ModelFileManager.RegularFileFullMatchLister 165 @ModelTypeDef String modelType, File targetFile, Supplier<Boolean> isEnabled) { in RegularFileFullMatchLister() argument 167 this.targetFile = Preconditions.checkNotNull(targetFile); in RegularFileFullMatchLister() 179 if (!targetFile.exists()) { in list() 183 return ImmutableList.of(ModelFile.createFromRegularFile(targetFile, modelType)); in list() 186 TAG, "Failed to call createFromRegularFile with: " + targetFile.getAbsolutePath(), e); in list()
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/ |
D | Demo.java | 596 String targetFile = sourceFile.getCanonicalPath(); in genTestFile() local 597 int dotPos = targetFile.lastIndexOf('.'); in genTestFile() 598 if (dotPos >= 0) targetFile = targetFile.substring(0,dotPos); in genTestFile() 599 targetFile += variant; in genTestFile() 601 File outFile = new File(targetFile + ".html"); in genTestFile() 715 outFile = new File(targetFile + "_Sets.html"); in genTestFile() 1024 static void printNames(UnicodeSet s, String targetFile) { in printNames() argument 1026 File outFile = new File(targetFile); in printNames()
|
/external/antlr/antlr-ant/main/antlr3-task/antlr3-src/org/apache/tools/ant/antlr/ |
D | ANTLR3.java | 132 public void setTarget(File targetFile) { in setTarget() argument 133 log("Setting target to: " + targetFile.toString(), Project.MSG_VERBOSE); in setTarget() 134 this.target = targetFile; in setTarget()
|