Searched refs:path (Results 1 - 25 of 67) sorted by relevance

123

/libcore/luni/src/main/native/
H A Dreadlink.h20 * Fills 'result' with the contents of the symbolic link 'path'. Sets errno and returns false on
25 bool readlink(const char* path, std::string& result);
H A Dreadlink.cpp23 bool readlink(const char* path, std::string& result) { argument
29 ssize_t len = readlink(path, &buf[0], buf.size());
H A Djava_io_File.cpp42 ScopedUtfChars path(env, javaPath);
43 if (path.c_str() == NULL) {
47 extern bool canonicalize_path(const char* path, std::string& resolved);
49 if (!canonicalize_path(path.c_str(), result)) {
57 ScopedUtfChars path(env, javaPath);
58 if (path.c_str() == NULL) {
64 if (stat(path.c_str(), &sb) == -1) {
72 return (utime(path.c_str(), &times) == 0);
78 ScopedReaddir(const char* path) { argument
79 mDirStream = opendir(path);
[all...]
H A Dcanonicalize_path.cpp39 * This differs from realpath(3) mainly in its behavior when a path element does not exist or can
41 * behavior where we just assume the path element was not a symbolic link. This leads to a textual
42 * treatment of ".." from that point in the path, which may actually lead us back to a path we
48 bool canonicalize_path(const char* path, std::string& resolved) { argument
49 // 'path' must be an absolute path.
50 if (path[0] != '/') {
56 if (path[1] == '\0') {
60 // Iterate over path component
[all...]
H A Djava_lang_System.cpp83 char path[PATH_MAX]; local
84 properties.push_back(std::string("user.dir=") + getcwd(path, sizeof(path)));
96 android_get_LD_LIBRARY_PATH(path, sizeof(path));
97 library_path = path;
103 properties.push_back(std::string("java.library.path=") + library_path);
/libcore/luni/src/main/java/java/net/
H A DInetUnixAddress.java29 * Constructs an AF_UNIX InetAddress for the given path.
31 public InetUnixAddress(String path) { argument
32 this(path.getBytes(StandardCharsets.UTF_8));
36 * Constructs an AF_UNIX InetAddress for the given path.
38 public InetUnixAddress(byte[] path) { argument
39 super(AF_UNIX, path, null);
H A DURLStreamHandler.java98 String path;
141 path = null;
154 path = url.getPath();
160 * Extract the path, query and fragment. Each part has its own leading
163 * / path ? query # fragment
180 path = relativePath(path, spec.substring(pos, nextPos));
188 if (path == null) {
189 path = "";
192 path
200 relativePath(String base, String path) argument
243 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
[all...]
H A DURI.java88 * has an authority, user info, host, port, path or query. An opaque URIs may
98 * have a non-null path, though that path may be the empty string.
187 private transient String path; field in class:URI
235 public URI(String scheme, String userInfo, String host, int port, String path, String query, argument
237 if (scheme == null && userInfo == null && host == null && path == null
239 this.path = "";
243 if (scheme != null && path != null && !path.isEmpty() && path
297 URI(String scheme, String host, String path, String fragment) argument
306 URI(String scheme, String authority, String path, String query, String fragment) argument
1070 normalize(String path, boolean discardRelativePrefix) argument
[all...]
H A DHttpCookie.java77 RESERVED_NAMES.add("path"); // Netscape RFC 2109 RFC 2965 RFC 6265
135 * to the cookie's path. Cookies match by directory prefix: URI "/foo" matches cookies "/foo",
165 * Returns a non-null path ending in "/".
167 private static String matchablePath(String path) { argument
168 if (path == null) {
170 } else if (path.endsWith("/")) {
171 return path;
173 return path + "/";
274 * enter with input either exhausted or prefixed with ';' or ',' as in ";path=/"
292 continue; // for empty attribute as in "Set-Cookie: foo=Foo;;path
445 private String path; field in class:HttpCookie
637 setPath(String path) argument
[all...]
H A DURL.java92 private transient String path; field in class:URL
293 path = file.substring(0, index);
296 path = file;
553 path = file.substring(0, index);
555 path = file;
637 * Returns the path part of this URL.
640 return path;
664 String path, String query, String ref) {
665 String file = path;
672 this.path
663 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
[all...]
/libcore/luni/src/main/java/libcore/net/url/
H A DUrlUtils.java26 * Returns the path will relative path segments like ".." and "." resolved.
27 * The returned path will not necessarily start with a "/" character. This
28 * handles ".." and "." segments at both the beginning and end of the path.
31 * the path. This is appropriate for paths that are known to be
34 public static String canonicalizePath(String path, boolean discardRelativePrefix) { argument
35 // the first character of the current path segment
41 for (int i = 0; i <= path.length(); ) {
43 if (i == path.length()) {
45 } else if (path
89 authoritySafePath(String authority, String path) argument
[all...]
/libcore/luni/src/main/java/java/io/
H A DFile.java79 * <p>This field is initialized from the system property "path.separator".
91 * The path we return from getPath. This is almost the path we were
94 * path may be the empty string.
98 private String path; field in class:File
102 pathSeparatorChar = System.getProperty("path.separator", ":").charAt(0);
122 * Constructs a new file using the specified path.
124 * @param path
125 * the path to be used for the file.
127 * if {@code path} i
129 File(String path) argument
415 canonicalizePath(String path) argument
597 setLastModifiedImpl(String path, long time) argument
743 listImpl(String path) argument
[all...]
H A DFilePermission.java26 public FilePermission(String path, String actions) { super(""); } argument
H A DFileOutputStream.java110 * Constructs a new {@code FileOutputStream} that writes to {@code path}. The file will be
115 public FileOutputStream(String path) throws FileNotFoundException { argument
116 this(path, false);
120 * Constructs a new {@code FileOutputStream} that writes to {@code path}.
126 public FileOutputStream(String path, boolean append) throws FileNotFoundException { argument
127 this(new File(path), append);
/libcore/luni/src/test/java/tests/security/
H A DCertPathBuilderTest.java40 public abstract void validateCertPath(CertPath path); argument
48 CertPath path = builderResult.getCertPath();
50 assertNotNull("built path is null", path);
52 validateCertPath(path);
/libcore/luni/src/main/java/javax/xml/parsers/
H A DFilePathToURI.java52 // To escape a file path to a URI, by using %HH to represent
55 public static String filepath2URI(String path){ argument
56 // return null if path is null.
57 if (path == null)
61 path = path.replace(separator, '/');
63 int len = path.length(), ch;
67 if (len >= 2 && path.charAt(1) == ':') {
68 ch = Character.toUpperCase(path.charAt(0));
74 // for each character in the path
[all...]
/libcore/luni/src/main/java/javax/xml/transform/stream/
H A DFilePathToURI.java52 // To escape a file path to a URI, by using %HH to represent
55 public static String filepath2URI(String path){ argument
56 // return null if path is null.
57 if (path == null)
61 path = path.replace(separator, '/');
63 int len = path.length(), ch;
67 if (len >= 2 && path.charAt(1) == ':') {
68 ch = Character.toUpperCase(path.charAt(0));
74 // for each character in the path
[all...]
/libcore/luni/src/main/java/java/util/prefs/
H A DFilePreferencesImpl.java40 //file path for this preferences node
41 private final String path; field in class:FilePreferencesImpl
66 * at the given path.
70 public FilePreferencesImpl(String path, boolean isUserNode) { argument
72 this.path = path;
82 path = ((FilePreferencesImpl) parent).path + File.separator + name;
87 dir = new File(path);
89 prefsFile = new File(path
[all...]
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java38 * One of the lists is a dex/resource path &mdash; typically referred
39 * to as a "class path" &mdash; list, and the other names directories
40 * containing native code libraries. Class path entries may be any of:
57 * List of dex/resource (class path) elements.
63 /** List of native library path elements. */
82 * @param dexPath list of dex/resource path elements, separated by
84 * @param libraryPath list of native library directory path elements,
126 // 1. This class loader's library path for application libraries (libraryPath):
129 // 2. The VM's library path from the system property for system libraries
130 // also known as java.library.path
175 splitDexPath(String path) argument
290 optimizedPathFor(File path, File optimizedDirectory) argument
475 isZipEntryExistsAndStored(ZipFile zipFile, String path) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java66 @Override public boolean access(String path, int mode) throws ErrnoException { argument
68 return os.access(path, mode);
71 @Override public void chmod(String path, int mode) throws ErrnoException { argument
73 os.chmod(path, mode);
76 @Override public void chown(String path, int uid, int gid) throws ErrnoException { argument
78 os.chown(path, uid, gid);
151 @Override public void lchown(String path, int uid, int gid) throws ErrnoException { argument
153 os.lchown(path, uid, gid);
166 @Override public StructStat lstat(String path) throws ErrnoException { argument
168 return os.lstat(path);
171 mkdir(String path, int mode) argument
176 mkfifo(String path, int mode) argument
181 open(String path, int flags, int mode) argument
233 readlink(String path) argument
253 remove(String path) argument
291 stat(String path) argument
296 statvfs(String path) argument
[all...]
H A DOs.java45 public boolean access(String path, int mode) throws ErrnoException; argument
49 public void chmod(String path, int mode) throws ErrnoException; argument
50 public void chown(String path, int uid, int gid) throws ErrnoException; argument
91 public int getxattr(String path, String name, byte[] outValue) throws ErrnoException; argument
98 public void lchown(String path, int uid, int gid) throws ErrnoException; argument
102 public StructStat lstat(String path) throws ErrnoException; argument
104 public void mkdir(String path, int mode) throws ErrnoException; argument
105 public void mkfifo(String path, int mode) throws ErrnoException; argument
111 public FileDescriptor open(String path, int flags, int mode) throws ErrnoException; argument
123 public String readlink(String path) throw argument
127 remove(String path) argument
128 removexattr(String path, String name) argument
151 setxattr(String path, String name, byte[] value, int flags) argument
155 stat(String path) argument
156 statvfs(String path) argument
[all...]
H A DMemoryMappedFile.java50 public static MemoryMappedFile mmapRO(String path) throws ErrnoException { argument
51 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0);
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidURITest.java26 construct("http://www.google.com/this/is-the/path?query#fragment",
27 "www.google.com", "/this/is-the/path", true);
30 private static void construct(String str, String host, String path, boolean absolute) argument
34 assertEquals(path, uri.getPath());
/libcore/luni/src/test/java/tests/targets/security/cert/
H A DCertificateTest.java629 CertPath path = certificateFactory.generateCertPath(getCertList(true, false));
634 CertPathValidatorResult res = certPathValidator.validate(path, params);
643 path = certificateFactory.generateCertPath(getCertList(true, true));
649 res = certPathValidator.validate(path, params);
657 certPathValidator.validate(path, params);
668 CertPath path = certificateFactory.generateCertPath(getCertList(false, false));
673 CertPathValidatorResult res = certPathValidator.validate(path, params);
682 path = certificateFactory.generateCertPath(getCertList(false, true));
687 res = certPathValidator.validate(path, params);
/libcore/support/src/test/java/tests/support/
H A DSupport_TestWebData.java109 private Support_TestWebData(String path, String type) { argument
110 File file = new File(path);
146 public static void initDynamicTestWebData(String path, String type) { argument
147 test0Params = new Support_TestWebData(path, type);

Completed in 2198 milliseconds

123