/libcore/ojluni/src/main/native/ |
D | UnixFileSystem_md.c | 57 jfieldID path; member 69 ids.path = (*env)->GetFieldID(env, fileClass, in Java_java_io_UnixFileSystem_initIDs() 75 extern int canonicalize(char *path, const char *out, int len); 83 WITH_PLATFORM_STRING(env, pathname, path) { in Java_java_io_UnixFileSystem_canonicalize0() 85 if (canonicalize(JVM_NativePath((char *)path), in Java_java_io_UnixFileSystem_canonicalize0() 95 } END_PLATFORM_STRING(env, path); in Java_java_io_UnixFileSystem_canonicalize0() 104 statMode(const char *path, int *mode) in statMode() argument 107 if (stat64(path, &sb) == 0) { in statMode() 123 WITH_PLATFORM_STRING(env, abspath, path) { in Java_java_io_UnixFileSystem_getBooleanAttributes0() 126 if (statMode(path, &mode)) { in Java_java_io_UnixFileSystem_getBooleanAttributes0() [all …]
|
D | canonicalize_md.c | 128 collapse(char *path) in collapse() argument 130 char *names = (path[0] == '/') ? path + 1 : path; /* Preserve first '/' */ in collapse() 212 char path[PATH_MAX + 1]; in canonicalize() local 214 strncpy(path, original, sizeof(path)); in canonicalize() 215 if (path[PATH_MAX] != '\0') { in canonicalize() 219 end = path + strlen(path); in canonicalize() 221 for (p = end; p > path;) { in canonicalize() 224 while ((--p > path) && (*p != '/')); in canonicalize() 225 if (p == path) break; in canonicalize() 229 r = realpath(path, resolved); in canonicalize() [all …]
|
D | java_util_zip_ZipFile.c | 91 const char *path = JNU_GetStringPlatformChars(env, name, 0); in ZipFile_open() local 101 if (path != 0) { in ZipFile_open() 102 zip = ZIP_Get_From_Cache(path, &msg, lastModified); in ZipFile_open() 112 zfd = JVM_Open(path, flag, 0); in ZipFile_open() 118 zip = ZIP_Put_In_Cache0(path, zfd, &msg, lastModified, usemmap); in ZipFile_open() 132 JNU_ReleaseStringPlatformChars(env, name, path); in ZipFile_open() 166 char buf[MAXNAME+2], *path; in ZipFile_getEntry() local 170 path = malloc(ulen + 2); in ZipFile_getEntry() 171 if (path == 0) { in ZipFile_getEntry() 176 path = buf; in ZipFile_getEntry() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLStreamHandler.java | 130 String path = u.getPath(); in parseURL() local 251 path = null; in parseURL() 265 path = spec.substring(start, limit); in parseURL() 266 } else if (path != null && path.length() > 0) { in parseURL() 268 int ind = path.lastIndexOf('/'); in parseURL() 272 path = path.substring(0, ind + 1) + seperator + in parseURL() 277 path = seperator + spec.substring(start, limit); in parseURL() 288 if (path == null) in parseURL() 289 path = ""; in parseURL() 296 while ((i = path.indexOf("/./")) >= 0) { in parseURL() [all …]
|
D | URI.java | 491 private transient String path; // null ==> opaque field in URI 667 String path, String query, String fragment) in URI() argument 672 path, query, fragment); in URI() 673 checkPath(s, scheme, path); in URI() 740 String path, String query, String fragment) in URI() argument 745 path, query, fragment); in URI() 746 checkPath(s, scheme, path); in URI() 772 public URI(String scheme, String host, String path, String fragment) in URI() argument 775 this(scheme, null, host, -1, path, null, fragment); in URI() 1134 return path == null; in isOpaque() [all …]
|
D | URL.java | 193 private transient String path; field in URL 403 path = parts.getPath(); in URL() 407 this.file = path + "?" + query; in URL() 409 this.file = path; in URL() 573 if (context.path != null && context.path.startsWith("/")) in URL() 583 path = context.path; in URL() 683 path = file.substring(0, q); in set() 685 path = file; in set() 705 String authority, String userInfo, String path, in set() argument 711 this.file = (query == null || query.isEmpty()) ? path : path + "?" + query; in set() [all …]
|
D | CookieManager.java | 291 String path = uri.getPath(); in put() local 292 if (!path.endsWith("/")) { in put() 293 int i = path.lastIndexOf("/"); in put() 295 path = path.substring(0, i + 1); in put() 297 path = "/"; in put() 300 cookie.setPath(path); in put() 397 private static String normalizePath(String path) { in normalizePath() argument 398 if (path == null) { in normalizePath() 399 path = ""; in normalizePath() 402 if (!path.endsWith("/")) { in normalizePath() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | File.java | 150 private String path; field in File 172 status = (this.path.indexOf('\u0000') < 0) ? PathStatus.CHECKED in isInvalid() 235 this.path = pathname; in File() 245 assert parent.path != null; in File() 246 assert (!parent.path.equals("")); in File() 247 this.path = fs.resolve(parent.path, child); in File() 264 this.path = fs.normalize(pathname); in File() 265 this.prefixLength = fs.prefixLength(this.path); in File() 305 this.path = fs.resolve(fs.normalize(parent), in File() 308 this.path = fs.normalize(child); in File() [all …]
|
D | UnixFileSystem.java | 112 public String fromURIPath(String path) { in fromURIPath() argument 113 String p = path; in fromURIPath() 145 public String canonicalize(String path) throws IOException { in canonicalize() argument 147 return canonicalize0(path); in canonicalize() 149 String res = cache.get(path); in canonicalize() 157 dir = parentOrNull(path); in canonicalize() 162 String filename = path.substring(1 + dir.length()); in canonicalize() 170 res = canonicalize0(path); in canonicalize() 171 cache.put(path, res); in canonicalize() 191 private native String canonicalize0(String path) throws IOException; in canonicalize0() argument [all …]
|
D | FileInputStream.java | 61 private final String path; field in FileInputStream 143 this.path = name; in FileInputStream() 181 path = null; in FileInputStream() 199 Object traceContext = IoTrace.fileReadBegin(path); in read() 249 Object traceContext = IoTrace.fileReadBegin(path); in read() 398 channel = FileChannelImpl.open(fd, path, true, false, this); in getChannel()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FileURLMapper.java | 46 String path; field in FileURLMapper 58 if (path != null) { in getPath() 59 return path; in getPath() 63 path = url.getFile(); in getPath() 64 path = ParseUtil.decode (path); in getPath() 66 return path; in getPath()
|
/libcore/luni/src/main/java/javax/xml/transform/stream/ |
D | FilePathToURI.java | 55 public static String filepath2URI(String path){ in filepath2URI() argument 57 if (path == null) in filepath2URI() 61 path = path.replace(separator, '/'); in filepath2URI() 63 int len = path.length(), ch; in filepath2URI() 67 if (len >= 2 && path.charAt(1) == ':') { in filepath2URI() 68 ch = Character.toUpperCase(path.charAt(0)); in filepath2URI() 77 ch = path.charAt(i); in filepath2URI() 98 bytes = path.substring(i).getBytes("UTF-8"); in filepath2URI() 101 return path; in filepath2URI()
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
D | FilePathToURI.java | 55 public static String filepath2URI(String path){ in filepath2URI() argument 57 if (path == null) in filepath2URI() 61 path = path.replace(separator, '/'); in filepath2URI() 63 int len = path.length(), ch; in filepath2URI() 67 if (len >= 2 && path.charAt(1) == ':') { in filepath2URI() 68 ch = Character.toUpperCase(path.charAt(0)); in filepath2URI() 77 ch = path.charAt(i); in filepath2URI() 98 bytes = path.substring(i).getBytes("UTF-8"); in filepath2URI() 101 return path; in filepath2URI()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
D | FtpURLConnection.java | 326 private void decodePath(String path) { in decodePath() argument 327 int i = path.indexOf(";type="); in decodePath() 329 String s1 = path.substring(i + 6, path.length()); in decodePath() 339 path = path.substring(0, i); in decodePath() 341 if (path != null && path.length() > 1 && in decodePath() 342 path.charAt(0) == '/') { in decodePath() 343 path = path.substring(1); in decodePath() 345 if (path == null || path.length() == 0) { in decodePath() 346 path = "./"; in decodePath() 348 if (!path.endsWith("/")) { in decodePath() [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | ParseUtil.java | 96 public static String encodePath(String path) { in encodePath() argument 97 return encodePath(path, true); in encodePath() 104 public static String encodePath(String path, boolean flag) { in encodePath() argument 105 char[] retCC = new char[path.length() * 2 + 16]; in encodePath() 107 char[] pathCC = path.toCharArray(); in encodePath() 109 int n = path.length(); in encodePath() 264 String path = file.getAbsolutePath(); in fileToEncodedURL() local 265 path = ParseUtil.encodePath(path); in fileToEncodedURL() 266 if (!path.startsWith("/")) { in fileToEncodedURL() 267 path = "/" + path; in fileToEncodedURL() [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 67 @Override public boolean access(String path, int mode) throws ErrnoException { in access() argument 69 return os.access(path, mode); in access() 72 @Override public void chmod(String path, int mode) throws ErrnoException { in chmod() argument 74 os.chmod(path, mode); in chmod() 77 @Override public void chown(String path, int uid, int gid) throws ErrnoException { in chown() argument 79 os.chown(path, uid, gid); in chown() 152 @Override public void lchown(String path, int uid, int gid) throws ErrnoException { in lchown() argument 154 os.lchown(path, uid, gid); in lchown() 167 @Override public StructStat lstat(String path) throws ErrnoException { in lstat() argument 169 return os.lstat(path); in lstat() [all …]
|
D | ForwardingOs.java | 54 …public boolean access(String path, int mode) throws ErrnoException { return os.access(path, mode);… in access() argument 58 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } in chmod() argument 59 …public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid);… in chown() argument 99 …public int getxattr(String path, String name, byte[] outValue) throws ErrnoException { return os.g… in getxattr() argument 106 …public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid… in lchown() argument 110 public StructStat lstat(String path) throws ErrnoException { return os.lstat(path); } in lstat() argument 112 public void mkdir(String path, int mode) throws ErrnoException { os.mkdir(path, mode); } in mkdir() argument 113 public void mkfifo(String path, int mode) throws ErrnoException { os.mkfifo(path, mode); } in mkfifo() argument 119 …public FileDescriptor open(String path, int flags, int mode) throws ErrnoException { return os.ope… in open() argument 130 public String readlink(String path) throws ErrnoException { return os.readlink(path); } in readlink() argument [all …]
|
D | Os.java | 45 public boolean access(String path, int mode) throws ErrnoException; in access() argument 49 public void chmod(String path, int mode) throws ErrnoException; in chmod() argument 50 public void chown(String path, int uid, int gid) throws ErrnoException; in chown() argument 91 public int getxattr(String path, String name, byte[] outValue) throws ErrnoException; in getxattr() argument 98 public void lchown(String path, int uid, int gid) throws ErrnoException; in lchown() argument 102 public StructStat lstat(String path) throws ErrnoException; in lstat() argument 104 public void mkdir(String path, int mode) throws ErrnoException; in mkdir() argument 105 public void mkfifo(String path, int mode) throws ErrnoException; in mkfifo() argument 111 public FileDescriptor open(String path, int flags, int mode) throws ErrnoException; in open() argument 123 public String readlink(String path) throws ErrnoException; in readlink() argument [all …]
|
/libcore/luni/src/main/java/android/system/ |
D | UnixSocketAddress.java | 62 byte[] path = new byte[nameBytes.length + 1]; in createAbstract() 63 System.arraycopy(nameBytes, 0, path, 1, nameBytes.length); in createAbstract() 64 return new UnixSocketAddress(path); in createAbstract() 73 byte[] path = new byte[pathNameBytes.length + 1]; in createFileSystem() 74 System.arraycopy(pathNameBytes, 0, path, 0, pathNameBytes.length); in createFileSystem() 75 return new UnixSocketAddress(path); in createFileSystem()
|
D | Os.java | 54 …public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.acce… in access() argument 68 …public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mod… in chmod() argument 73 …public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(p… in chown() argument 224 …lic static int getxattr(String path, String name, byte[] outValue) throws ErrnoException { return … in getxattr() argument 252 …public static void lchown(String path, int uid, int gid) throws ErrnoException { Libcore.os.lchown… in lchown() argument 272 …public static StructStat lstat(String path) throws ErrnoException { return Libcore.os.lstat(path);… in lstat() argument 282 …public static void mkdir(String path, int mode) throws ErrnoException { Libcore.os.mkdir(path, mod… in mkdir() argument 287 …public static void mkfifo(String path, int mode) throws ErrnoException { Libcore.os.mkfifo(path, m… in mkfifo() argument 317 …ic static FileDescriptor open(String path, int flags, int mode) throws ErrnoException { return Lib… in open() argument 378 …public static String readlink(String path) throws ErrnoException { return Libcore.os.readlink(path… in readlink() argument [all …]
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | AbstractPreferences.java | 802 public Preferences node(String path) { in node() argument 806 if (path.equals("")) in node() 808 if (path.equals("/")) in node() 810 if (path.charAt(0) != '/') in node() 811 return node(new StringTokenizer(path, "/", true)); in node() 815 return root.node(new StringTokenizer(path.substring(1), "/", true)); in node() 821 private Preferences node(StringTokenizer path) { in node() argument 822 String token = path.nextToken(); in node() 836 if (!path.hasMoreTokens()) in node() 838 path.nextToken(); // Consume slash in node() [all …]
|
/libcore/luni/src/test/java/tests/security/ |
D | CertPathBuilderTest.java | 40 public abstract void validateCertPath(CertPath path); in validateCertPath() argument 48 CertPath path = builderResult.getCertPath(); in testCertPathBuilder() local 50 assertNotNull("built path is null", path); in testCertPathBuilder() 52 validateCertPath(path); in testCertPathBuilder()
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
D | CertificateTest.java | 627 CertPath path = certificateFactory.generateCertPath(getCertList(true, false)); in testVerifyMD2_chain() local 632 CertPathValidatorResult res = certPathValidator.validate(path, params); in testVerifyMD2_chain() 641 path = certificateFactory.generateCertPath(getCertList(true, true)); in testVerifyMD2_chain() 647 res = certPathValidator.validate(path, params); in testVerifyMD2_chain() 655 certPathValidator.validate(path, params); in testVerifyMD2_chain() 666 CertPath path = certificateFactory.generateCertPath(getCertList(false, false)); in testVerifyMD5_chain() local 671 CertPathValidatorResult res = certPathValidator.validate(path, params); in testVerifyMD5_chain() 680 path = certificateFactory.generateCertPath(getCertList(false, true)); in testVerifyMD5_chain() 685 res = certPathValidator.validate(path, params); in testVerifyMD5_chain()
|
/libcore/luni/src/main/native/ |
D | canonicalize_path.cpp | 48 bool canonicalize_path(const char* path, std::string& resolved) { in canonicalize_path() argument 50 if (path[0] != '/') { in canonicalize_path() 56 if (path[1] == '\0') { in canonicalize_path() 62 std::string left(path + 1); in canonicalize_path()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexPathList.java | 221 private static List<File> splitDexPath(String path) { in splitDexPath() argument 222 return splitPaths(path, false); in splitDexPath() 238 for (String path : searchPath.split(File.pathSeparator)) { in splitPaths() 241 StructStat sb = Libcore.os.stat(path); in splitPaths() 249 result.add(new File(path)); in splitPaths() 298 String path = file.getPath(); in makeElements() local 301 if (path.contains(zipSeparator)) { in makeElements() 302 String split[] = path.split(zipSeparator, 2); in makeElements() 370 private static String optimizedPathFor(File path, in optimizedPathFor() argument 384 String fileName = path.getName(); in optimizedPathFor() [all …]
|