/libcore/luni/src/main/java/libcore/timezone/ |
D | TimeZoneDataFiles.java | 48 public static String[] getTimeZoneFilePaths(String fileName) { in getTimeZoneFilePaths() argument 50 getDataTimeZoneFile(fileName), in getTimeZoneFilePaths() 51 getTimeZoneModuleFile("tz/" + fileName), in getTimeZoneFilePaths() 52 getRuntimeModuleFile("tz/" + fileName), in getTimeZoneFilePaths() 53 getSystemTimeZoneFile(fileName) in getTimeZoneFilePaths() 64 public static String getDataTimeZoneFile(String fileName) { in getDataTimeZoneFile() argument 65 return getDataTimeZoneRootDir() + "current/" + fileName; in getDataTimeZoneFile() 68 public static String getTimeZoneModuleFile(String fileName) { in getTimeZoneModuleFile() argument 69 return System.getenv(ANDROID_TZDATA_ROOT_ENV) + "/etc/" + fileName; in getTimeZoneModuleFile() 78 public static String getRuntimeModuleFile(String fileName) { in getRuntimeModuleFile() argument [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileInputStreamTest.java | 36 private String fileName; field in FileInputStreamTest 106 fileName = f.getAbsolutePath(); in setUp() 113 java.io.File f = new File(fileName); in test_ConstructorLjava_io_File() 122 FileOutputStream fos = new FileOutputStream(fileName); in test_ConstructorLjava_io_FileDescriptor() 132 is = new FileInputStream(fileName); in test_ConstructorLjava_lang_String() 167 is = new FileInputStream(fileName); in test_available() 178 is = new FileInputStream(fileName); in test_close() 189 FileInputStream fis1 = new FileInputStream(fileName); in test_close_shared_fd() 208 FileInputStream fis = new FileInputStream(fileName); in test_getFD() 218 InputStreamReader isr = new InputStreamReader(new FileInputStream(fileName)); in test_read() [all …]
|
D | RandomAccessFileTest.java | 38 public String fileName; field in RandomAccessFileTest 98 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_ConstructorLjava_lang_StringLjava_lang_String() 102 raf = new java.io.RandomAccessFile(fileName, "rwd"); in test_ConstructorLjava_lang_StringLjava_lang_String() 106 raf = new java.io.RandomAccessFile(fileName, "rws"); in test_ConstructorLjava_lang_StringLjava_lang_String() 160 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_close() 175 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_getFD() 187 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_getFilePointer() 199 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_length() 211 FileOutputStream fos = new java.io.FileOutputStream(fileName); in test_read() 215 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); in test_read() [all …]
|
D | OpenRandomFileTest.java | 44 String fileName = file.getCanonicalPath(); in testOpenNonEmptyFile() local 45 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenNonEmptyFile() 54 String fileName = file.getCanonicalPath(); in testOpenEmptyFile() local 55 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); in testOpenEmptyFile()
|
D | FilterInputStreamTest.java | 37 private String fileName; field in FilterInputStreamTest 100 fileName = temp.getAbsolutePath(); in setUp() 104 is = new MyFilterInputStream(new java.io.FileInputStream(fileName)); in setUp() 118 new File(fileName).delete(); in tearDown()
|
D | FileTest.java | 133 String fileName = "input.tst"; in test_ConstructorLjava_io_FileLjava_lang_String5() local 137 File f = new File(d, fileName); in test_ConstructorLjava_io_FileLjava_lang_String5() 139 dirName += fileName; in test_ConstructorLjava_io_FileLjava_lang_String5() 163 String fileName = null; in test_ConstructorLjava_lang_String() local 165 new File(fileName); in test_ConstructorLjava_lang_String() 171 fileName = addTrailingSlash(tempDirectory.getPath()); in test_ConstructorLjava_lang_String() 172 fileName += "input.tst"; in test_ConstructorLjava_lang_String() 174 File f = new File(fileName); in test_ConstructorLjava_lang_String() 175 assertEquals("Created incorrect File", fileName, f.getPath()); in test_ConstructorLjava_lang_String() 183 String fileName = "input.tst"; in test_ConstructorLjava_lang_StringLjava_lang_String() local [all …]
|
D | FileOutputStreamTest.java | 82 String fileName = f.getAbsolutePath(); in test_ConstructorLjava_io_FileDescriptor() local 83 fos = new FileOutputStream(fileName); in test_ConstructorLjava_io_FileDescriptor() 86 fis = new FileInputStream(fileName); in test_ConstructorLjava_io_FileDescriptor() 97 String fileName = f.getAbsolutePath(); in test_ConstructorLjava_lang_String() local 98 fos = new FileOutputStream(fileName); in test_ConstructorLjava_lang_String() 172 String fileName = f.getAbsolutePath(); in test_getFD() local
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StackTraceElement.java | 46 private String fileName; field in StackTraceElement 70 String fileName, int lineNumber) { in StackTraceElement() argument 73 this.fileName = fileName; in StackTraceElement() 90 return fileName; in getFileName() 192 } else if (fileName != null) { in toString() 194 result.append("(").append(fileName).append(":").append(lineNumber).append(")"); in toString() 196 result.append("(").append(fileName).append(")"); in toString() 238 Objects.equals(fileName, e.fileName); in equals() 246 result = 31*result + Objects.hashCode(fileName); in hashCode()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | JarIndex.java | 173 public LinkedList<String> get(String fileName) { in get() argument 175 if ((jarFiles = indexMap.get(fileName)) == null) { in get() 178 if((pos = fileName.lastIndexOf("/")) != -1) { in get() 179 jarFiles = indexMap.get(fileName.substring(0, pos)); in get() 198 public void add(String fileName, String jarName) { in add() argument 201 if((pos = fileName.lastIndexOf("/")) != -1) { in add() 202 packageName = fileName.substring(0, pos); in add() 204 packageName = fileName; in add() 242 String fileName = entry.getName(); in parseJars() local 246 if (fileName.equals("META-INF/") || in parseJars() [all …]
|
/libcore/support/src/test/java/tests/util/ |
D | SerializationTester.java | 91 public static boolean assertCompabilitySame(Object obj, String fileName) in assertCompabilitySame() argument 93 return obj == readObject(obj, fileName); in assertCompabilitySame() 105 public static boolean assertCompabilityEquals(Object obj, String fileName) in assertCompabilityEquals() argument 107 return obj.equals(readObject(obj, fileName)); in assertCompabilityEquals() 118 public static Object readObject(Object obj, String fileName) in readObject() argument 122 URL url = SerializationTester.class.getClassLoader().getResource(fileName); in readObject() 125 writeObject(obj, new File(fileName).getName()); in readObject() 158 public static void writeObject(Object obj, String fileName) in writeObject() argument 172 output = new FileOutputStream(fileName); in writeObject()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldRandomAccessFileTest.java | 33 public String fileName; field in OldRandomAccessFileTest 54 File tmpFile = new File(fileName); in test_ConstructorLjava_io_FileLjava_lang_String() 108 File tmpFile = new File(fileName); in test_ConstructorLjava_lang_StringLjava_lang_String() 111 raf = new java.io.RandomAccessFile(fileName, "r"); in test_ConstructorLjava_lang_StringLjava_lang_String() 122 raf = new java.io.RandomAccessFile(fileName, "rwd"); in test_ConstructorLjava_lang_StringLjava_lang_String() 128 raf = new java.io.RandomAccessFile(fileName, "rws"); in test_ConstructorLjava_lang_StringLjava_lang_String() 134 raf = new java.io.RandomAccessFile(fileName, "rw"); in test_ConstructorLjava_lang_StringLjava_lang_String() 142 raf = new java.io.RandomAccessFile(fileName, "i"); in test_ConstructorLjava_lang_StringLjava_lang_String() 149 raf = new java.io.RandomAccessFile(fileName, "r"); in test_ConstructorLjava_lang_StringLjava_lang_String() 171 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); in test_close() [all …]
|
D | OldFileTest.java | 76 String fileName = null; in test_ConstructorLjava_io_FileLjava_lang_String() local 78 f = new File(d, fileName); in test_ConstructorLjava_io_FileLjava_lang_String() 100 String fileName = "input.tst"; in test_ConstructorLjava_lang_StringLjava_lang_String() local 101 File f = new File(tmpDir, fileName); in test_ConstructorLjava_lang_StringLjava_lang_String() 106 fileName = null; in test_ConstructorLjava_lang_StringLjava_lang_String() 108 f = new File(dirName, fileName); in test_ConstructorLjava_lang_StringLjava_lang_String() 114 fileName = "input.tst"; in test_ConstructorLjava_lang_StringLjava_lang_String() 115 f = new File(dirName, fileName); in test_ConstructorLjava_lang_StringLjava_lang_String()
|
D | OldFilterInputStreamTest.java | 35 private String fileName; field in OldFilterInputStreamTest 116 new java.io.FileInputStream(fileName), 100)); in test_markI() 137 new java.io.FileInputStream(fileName), 100)); in test_markSupported() 250 new java.io.FileInputStream(fileName), 100)); in test_reset() 295 fileName = f.getAbsolutePath(); in setUp() 296 java.io.OutputStream fos = new java.io.FileOutputStream(fileName); in setUp() 299 is = new MyFilterInputStream(new java.io.FileInputStream(fileName)); in setUp()
|
/libcore/ojluni/src/main/java/java/io/ |
D | FileWriter.java | 62 public FileWriter(String fileName) throws IOException { in FileWriter() argument 63 super(new FileOutputStream(fileName)); in FileWriter() 77 public FileWriter(String fileName, boolean append) throws IOException { in FileWriter() argument 78 super(new FileOutputStream(fileName, append)); in FileWriter()
|
D | FileReader.java | 57 public FileReader(String fileName) throws FileNotFoundException { in FileReader() argument 58 super(new FileInputStream(fileName)); in FileReader()
|
D | PrintWriter.java | 183 public PrintWriter(String fileName) throws FileNotFoundException { in PrintWriter() argument 184 this(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileName))), in PrintWriter() 229 public PrintWriter(String fileName, String csn) in PrintWriter() argument 232 this(toCharset(csn), new File(fileName)); in PrintWriter()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexFile.java | 91 public DexFile(String fileName) throws IOException { in DexFile() argument 92 this(fileName, null, null); in DexFile() 105 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument 107 mCookie = openDexFile(fileName, null, 0, loader, elements); in DexFile() 109 mFileName = fileName; in DexFile() 455 public static native boolean isDexOptNeeded(String fileName) in isDexOptNeeded() argument 506 public static int getDexOptNeeded(String fileName, in getDexOptNeeded() argument 510 fileName, instructionSet, compilerFilter, null, newProfile, downgrade); in getDexOptNeeded() 542 public static native int getDexOptNeeded(String fileName, in getDexOptNeeded() argument 555 public static native String getDexFileStatus(String fileName, String instructionSet) in getDexFileStatus() argument [all …]
|
D | DexPathList.java | 469 String fileName = path.getName(); in optimizedPathFor() local 470 if (!fileName.endsWith(DEX_SUFFIX)) { in optimizedPathFor() 471 int lastDot = fileName.lastIndexOf("."); in optimizedPathFor() 473 fileName += DEX_SUFFIX; in optimizedPathFor() 476 sb.append(fileName, 0, lastDot); in optimizedPathFor() 478 fileName = sb.toString(); in optimizedPathFor() 482 File result = new File(optimizedDirectory, fileName); in optimizedPathFor() 597 String fileName = System.mapLibraryName(libraryName); in findLibrary() local 600 String path = element.findNativeLibrary(fileName); in findLibrary()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | ClassPathURLStreamHandlerTest.java | 69 String fileName = jarFile.getPath(); in testConstructor() local 70 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testConstructor() 75 String fileName = jarFile.getPath(); in testGetEntryOrNull() local 76 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testGetEntryOrNull() 108 String fileName = jarFile.getPath(); in checkGetEntryUrlOrNull() local 111 assertEquals("jar:file:" + fileName + "!/" + expectedJarRelativeURI, in checkGetEntryUrlOrNull() 120 String fileName = jarFile.getPath(); in testIsEntryStored() local 121 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testIsEntryStored() 136 String fileName = jarFile.getPath(); in testOpenConnection() local 137 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); in testOpenConnection()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | StandardCharsetsEncoderTest.java | 80 String fileName = createFileName(charset); in testCharset() local 83 try (BufferedReader reader = createAsciiReader(openResource(fileName))) { in testCharset() 103 private static InputStream openResource(String fileName) { in openResource() argument 104 InputStream is = StandardCharsetsEncoderTest.class.getResourceAsStream(fileName); in openResource() 106 fail("No resource found: " + fileName); in openResource() 140 private static void dumpEncodings(CharsetEncoder encoder, String fileName) in dumpEncodings() argument 145 try (BufferedWriter writer = createAsciiWriter(new FileOutputStream(fileName))) { in dumpEncodings()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidZipFileTest.java | 100 static void scanZip(String fileName) throws IOException { in scanZip() argument 101 ZipFile zipFile = new ZipFile(fileName); in scanZip() 123 static void read2(String fileName) throws IOException { in read2() argument 131 zipFile = new ZipFile(fileName); in read2()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldJarFileTest.java | 59 String fileName = (new File(resources, jarName)).getCanonicalPath(); in test_ConstructorLjava_lang_String() local 60 new JarFile(fileName); in test_ConstructorLjava_lang_String() 71 String fileName = (new File(resources, jarName)).getCanonicalPath(); in test_ConstructorLjava_lang_StringZ() local 72 new JarFile(fileName, true); in test_ConstructorLjava_lang_StringZ()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | StackTraceElement.java | 36 java.lang.String fileName, in StackTraceElement() argument 77 private java.lang.String fileName; field in StackTraceElement
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | TimeZoneIntegrationTest.java | 336 private static boolean fileExists(String fileName) { in fileExists() argument 337 return new File(fileName).exists(); in fileExists() 340 private static void assertFileDoesNotExist(String fileName) { in assertFileDoesNotExist() argument 341 assertFalse(fileName + " must not exist", fileExists(fileName)); in assertFileDoesNotExist() 344 private static void assertFileExists(String fileName) { in assertFileExists() argument 345 assertTrue(fileName + " must exist", fileExists(fileName)); in assertFileExists()
|
/libcore/ojluni/src/main/java/java/net/ |
D | FileNameMap.java | 43 public String getContentTypeFor(String fileName); in getContentTypeFor() argument
|