Searched refs:path (Results 1 - 25 of 61) 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.cpp44 ScopedUtfChars path(env, javaPath);
45 if (path.c_str() == NULL) {
50 if (!readlink(path.c_str(), result)) {
58 ScopedUtfChars path(env, javaPath);
59 if (path.c_str() == NULL) {
63 extern bool realpath(const char* path, std::string& resolved);
65 if (!realpath(path.c_str(), result)) {
73 ScopedUtfChars path(env, javaPath);
74 if (path.c_str() == NULL) {
80 if (stat(path
94 ScopedReaddir(const char* path) argument
[all...]
H A Drealpath.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 realpath(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.cpp77 char path[PATH_MAX]; local
78 properties.push_back(std::string("user.dir=") + getcwd(path, sizeof(path)));
/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...]
H A DFileURLConnection.java199 String path = filename;
201 path = path.replace('/', File.separatorChar);
203 permission = new FilePermission(path, "read");
/libcore/luni/src/main/java/java/io/
H A DFile.java85 * <p>This field is initialized from the system property "path.separator".
97 * The path we return from getPath. This is almost the path we were
100 * path may be the empty string.
104 private String path; field in class:File
108 pathSeparatorChar = System.getProperty("path.separator", ":").charAt(0);
128 * Constructs a new file using the specified path.
130 * @param path
131 * the path to be used for the file.
133 public File(String path) { argument
421 realpath(String path) argument
422 readlink(String path) argument
606 setLastModifiedImpl(String path, long time) argument
752 listImpl(String path) argument
[all...]
H A DFilePermission.java26 public FilePermission(String path, String actions) { super(""); } argument
H A DFileOutputStream.java111 * Constructs a new {@code FileOutputStream} that writes to {@code path}. The file will be
116 public FileOutputStream(String path) throws FileNotFoundException { argument
117 this(path, false);
121 * Constructs a new {@code FileOutputStream} that writes to {@code path}.
127 public FileOutputStream(String path, boolean append) throws FileNotFoundException { argument
128 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/libcore/io/
H A DIoUtils.java99 * Returns the contents of 'path' as a byte array.
101 public static byte[] readFileAsByteArray(String path) throws IOException { argument
102 return readFileAsBytes(path).toByteArray();
106 * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8.
108 public static String readFileAsString(String path) throws IOException { argument
109 return readFileAsBytes(path).toString(Charsets.UTF_8);
112 private static UnsafeByteSequence readFileAsBytes(String path) throws IOException { argument
115 f = new RandomAccessFile(path, "r");
H A DMemoryMappedFile.java50 public static MemoryMappedFile mmapRO(String path) throws ErrnoException { argument
51 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0);
H A DForwardingOs.java39 public boolean access(String path, int mode) throws ErrnoException { return os.access(path, mode); } argument
41 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } argument
42 public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid); } argument
82 public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid); } argument
85 public StructStat lstat(String path) throws ErrnoException { return os.lstat(path); } argument
87 mkdir(String path, int mode) argument
93 open(String path, int flags, int mode) argument
105 remove(String path) argument
125 stat(String path) argument
126 statfs(String path) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DURLStreamHandler.java98 String path;
139 path = null;
152 path = url.getPath();
158 * Extract the path, query and fragment. Each part has its own leading
161 * / path ? query # fragment
178 path = relativePath(path, spec.substring(pos, nextPos));
186 if (path == null) {
187 path = "";
190 path
198 relativePath(String base, String path) argument
241 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
1046 normalize(String path, boolean discardRelativePrefix) argument
[all...]
H A DHttpCookie.java74 RESERVED_NAMES.add("path"); // Netscape RFC 2109 RFC 2965
132 * to the cookie's path. Cookies match by directory prefix: URI "/foo" matches cookies "/foo",
162 * Returns a non-null path ending in "/".
164 private static String matchablePath(String path) { argument
165 if (path == null) {
167 } else if (path.endsWith("/")) {
168 return path;
170 return path + "/";
271 * enter with input either exhausted or prefixed with ';' or ',' as in ";path=/"
289 continue; // for empty attribute as in "Set-Cookie: foo=Foo;;path
430 private String path; field in class:HttpCookie
621 setPath(String path) argument
[all...]
/libcore/luni/src/main/java/java/util/prefs/
H A DFilePreferencesImpl.java45 //file path for this preferences node
46 private String path; field in class:FilePreferencesImpl
76 path = userNode ? USER_HOME : SYSTEM_HOME;
85 path = ((FilePreferencesImpl) parent).path + File.separator + name;
90 dir = new File(path);
92 prefsFile = new File(path + File.separator + PREFS_FILE_NAME);
100 return new File(path + File.separator + name).isDirectory();
105 + " (path is " + path
[all...]
/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/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java31 * One of the lists is a dex/resource path &mdash; typically referred
32 * to as a "class path" &mdash; list, and the other names directories
33 * containing native code libraries. Class path entries may be any of:
51 /** list of dex/resource (class path) elements */
62 * @param dexPath list of dex/resource path elements, separated by
64 * @param libraryPath list of native library directory path elements,
102 * Splits the given dex path string into elements using the path
107 private static ArrayList<File> splitDexPath(String path) { argument
108 return splitPaths(path, nul
118 splitLibraryPath(String path) argument
157 splitAndAdd(String path, boolean wantDirectories, ArrayList<File> resultList) argument
259 optimizedPathFor(File path, File optimizedDirectory) argument
[all...]
/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.java101 private Support_TestWebData(String path, String type) { argument
102 File file = new File(path);
138 public static void initDynamicTestWebData(String path, String type) { argument
139 test0Params = new Support_TestWebData(path, type);
/libcore/luni/src/test/java/libcore/dalvik/system/
H A DPathClassLoaderTest.java28 * Make sure we're searching the application library path first.
38 System.setProperty("java.library.path", systemLibPath.toString());
42 String path = pathClassLoader.findLibrary("duplicated");
43 assertEquals(applicationLib.toString(), path);

Completed in 439 milliseconds

123