Home
last modified time | relevance | path

Searched refs:separatorChar (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DFilePermissionTest.java129 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
131 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
135 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
140 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
142 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
148 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
150 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
154 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
156 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
160 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
[all …]
DFileTest.java62 if (File.separatorChar == path.charAt(path.length() - 1)) { in addTrailingSlash()
124 if (File.separatorChar == '\\') { in test_ConstructorLjava_io_FileLjava_lang_String4()
226 if (File.separatorChar == '\\') { in test_Constructor_String_String_112270()
250 if (File.separatorChar == '\\') { in test_Constructor_File_String_112270()
681 boolean onWindows = File.separatorChar == '\\'; in test_equalsLjava_lang_Object()
682 boolean onUnix = File.separatorChar == '/'; in test_equalsLjava_lang_Object()
787 boolean onWindows = File.separatorChar == '\\'; in test_getCanonicalFile()
865 boolean onWindows = (File.separatorChar == '\\'); in test_getCanonicalPath()
951 if (File.separatorChar == '\\' && new File("d:/").isAbsolute()) { in test_getParent()
1069 if (File.separatorChar == '\\') { in test_isAbsolute()
[all …]
/libcore/luni/src/test/java/tests/api/java/io/
DFilePermissionTest.java154 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
156 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
160 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
165 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
167 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
173 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
175 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
179 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
181 File.separatorChar), "write"); in test_impliesLjava_security_Permission()
185 File.separatorChar), "read,write"); in test_impliesLjava_security_Permission()
[all …]
DFileTest.java729 boolean onWindows = File.separatorChar == '\\'; in test_equalsLjava_lang_Object()
730 boolean onUnix = File.separatorChar == '/'; in test_equalsLjava_lang_Object()
872 boolean onWindows = File.separatorChar == '\\'; in test_getCanonicalFile()
1034 if (File.separatorChar == '\\' && new File("d:/").isAbsolute()) { in test_getParent()
1124 if (File.separatorChar == '\\') { in test_isAbsolute()
1203 boolean onUnix = File.separatorChar == '/'; in test_isHidden()
1474 boolean onUnix = File.separatorChar == '/'; in test_listFiles()
1475 boolean onWindows = File.separatorChar == '\\'; in test_listFiles()
1912 boolean onUnix = File.separatorChar == '/'; in test_listRoots()
1913 boolean onWindows = File.separatorChar == '\\'; in test_listRoots()
[all …]
/libcore/luni/src/main/java/java/io/
DFile.java73 public static final char separatorChar; field in File
112 separatorChar = System.getProperty("file.separator", "/").charAt(0);
114 separator = String.valueOf(separatorChar);
190 boolean isAbsolute = cleanPath.length() > 0 && cleanPath.charAt(0) == separatorChar; in init()
212 newPath[newLength++] = separatorChar; in fixSlashes()
231 boolean haveSlash = (prefixLength > 0 && prefix.charAt(prefixLength - 1) == separatorChar); in join()
233 haveSlash = (suffix.length() > 0 && suffix.charAt(0) == separatorChar); in join()
235 return haveSlash ? (prefix + suffix) : (prefix + separatorChar + suffix); in join()
487 if (separatorChar == '/') { in getCanonicalPath()
495 if (result.charAt(i) == separatorChar) { in getCanonicalPath()
[all …]
DFilePermission.java325 if (pChar == File.separatorChar) { in impliesMask()
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/
DSerializationTest.java160 String path = name.substring(0, dot).replace('.', File.separatorChar); in getDataFile()
177 String goldenPath = outputPath + File.separatorChar in produceGoldenFiles()
178 + getClass().getName().replace('.', File.separatorChar) in produceGoldenFiles()
521 path.append(File.separatorChar); in getObject()
522 path.append(test.getClass().getName().replace('.', File.separatorChar)); in getObject()
553 File.separatorChar) in createGoldenFile()
557 goldenPath = root + File.separatorChar + goldenPath; in createGoldenFile()
/libcore/junit/src/test/java/junit/runner/
DClassPathTestCollector.java52 gatherFiles(classRoot, classFileName+File.separatorChar+contents[i], result); in gatherFiles()
75 String s2= s.replace(File.separatorChar, '.'); in classNameFromFile()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DPermissions2Test.java72 char s = File.separatorChar; in test_addLjava_security_Permission()
121 char s = File.separatorChar; in test_elements()
160 char s = File.separatorChar; in test_impliesLjava_security_Permission()
DPolicyTest.java222 char s = File.separatorChar; in test_implies()
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/file/
DFileURLConnection.java199 if (File.separatorChar != '/') { in getPermission()
200 path = path.replace('/', File.separatorChar); in getPermission()
/libcore/dalvik/src/main/java/dalvik/system/
DTouchDex.java115 outPath.append(File.separatorChar); in expandDirectories()
/libcore/luni/src/main/java/javax/xml/parsers/
DFilePathToURI.java60 char separator = java.io.File.separatorChar; in filepath2URI()
/libcore/luni/src/main/java/javax/xml/transform/stream/
DFilePathToURI.java60 char separator = java.io.File.separatorChar; in filepath2URI()
/libcore/luni/src/main/java/org/apache/harmony/security/fortress/
DPolicyUtils.java283 return expand(str, properties).replace(File.separatorChar, '/'); in expandURL()
326 path = path.replace(File.separatorChar, '/'); in filePathToURI()
/libcore/luni/src/main/java/java/net/
DURLClassLoader.java186 parentFile = parentFile.replace(File.separatorChar, '/'); in getParentURL()
755 if (File.separatorChar != '/') { in getPermissions()
756 path = path.replace('/', File.separatorChar); in getPermissions()
/libcore/luni/src/test/java/tests/api/java/security/
DAccessControlContextTest.java155 char s = File.separatorChar; in test_checkPermission()
/libcore/luni/src/main/java/java/util/logging/
DFileHandler.java285 pattern = pattern.replace('/', File.separatorChar);
/libcore/luni/src/main/java/org/apache/xalan/transformer/
DTransformerImpl.java569 base = base + java.io.File.separatorChar in transform()