Searched defs:path (Results 1 - 25 of 71) sorted by relevance

123

/libcore/luni/src/main/native/
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 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...]
/libcore/ojluni/src/main/java/java/io/
H A DFileNotFoundException.java76 private FileNotFoundException(String path, String reason) { argument
77 super(path + ((reason == null)
H A DFilePermission.java36 public FilePermission(String path, String actions) { super(""); } argument
H A DFileInputStream.java60 /* The path of the referenced file (null if the stream is created with a file descriptor) */
61 private final String path; field in class:FileInputStream
74 * the file named by the path name <code>name</code>
112 * with the path represented by the <code>file</code>
139 throw new FileNotFoundException("Invalid file path");
143 this.path = name;
181 path = null;
199 Object traceContext = IoTrace.fileReadBegin(path);
249 Object traceContext = IoTrace.fileReadBegin(path);
398 channel = FileChannelImpl.open(fd, path, tru
[all...]
H A DFileOutputStream.java66 * The path of the referenced file (null if the stream is created with a file descriptor)
68 private final String path; field in class:FileOutputStream
150 * method is called with the path represented by the <code>file</code>
180 * method is called with the path represented by the <code>file</code>
213 throw new FileNotFoundException("Invalid file path");
217 this.path = name;
264 this.path = null;
313 Object traceContext = IoTrace.fileWriteBegin(path);
396 channel = FileChannelImpl.open(fd, path, false, true, append, this);
/libcore/ojluni/src/main/java/sun/misc/
H A DFileURLMapper.java46 String path; field in class:FileURLMapper
53 * @returns the platform specific path corresponding to the URL
58 if (path != null) {
59 return path;
63 path = url.getFile();
64 path = ParseUtil.decode (path);
66 return path;
H A DIoTrace.java128 * @param path
129 * the path of the file
132 public static Object fileReadBegin(String path) { argument
151 * @param path
152 * the path of the file
155 public static Object fileWriteBegin(String path) { argument
/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/libcore/io/
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 DIoUtils.java104 * Returns the contents of 'path' as a byte array.
111 * Returns the contents of 'path' as a string. The contents are assumed to be UTF-8.
154 * Checks whether {@code path} can be opened read-only. Similar to File.exists, but doesn't
160 public static boolean canOpenReadOnly(String path) { argument
163 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0);
189 * <b>Note that an absolute path must be supplied. Expect your reads to fail
/libcore/luni/src/test/java/libcore/java/io/
H A DOldObjectOutputStreamPutFieldTest.java120 private byte[] getRefContent(String path) throws Exception { argument
127 refStream = getClass().getResourceAsStream(path);
H A DFileInputStreamTest.java248 private static List<Integer> getOpenFdsForPrefix(String path) throws Exception { argument
254 if (fdPath.getName().startsWith(path)) {
/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/test/java/tests/targets/security/cert/
H A DCertPathBuilderTestPKIX.java69 public void validateCertPath(CertPath path) { argument
70 List<? extends Certificate> certificates = path.getCertificates();
72 // CertPath should not include the Trust Anchor, so the path should be:
/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/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/ojluni/src/main/native/
H A DFileOutputStream_md.c56 jstring path, jboolean append) {
57 fileOpen(env, this, path, fos_fd,
55 FileOutputStream_open(JNIEnv *env, jobject this, jstring path, jboolean append) argument
H A DFileInputStream.c66 FileInputStream_open(JNIEnv *env, jobject this, jstring path) { argument
67 fileOpen(env, this, path, fis_fd, O_RDONLY);
H A Dio_util_md.c66 fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags) argument
68 WITH_PLATFORM_STRING(env, path, ps) {
88 throwFileNotFoundException(env, path);
94 throwFileNotFoundException(env, path);
H A DInheritedChannel.c126 Java_sun_nio_ch_InheritedChannel_open0(JNIEnv *env, jclass cla, jstring path, jint oflag) argument
147 str = JNU_GetStringPlatformChars(env, path, NULL);
155 JNU_ReleaseStringPlatformChars(env, path, str);
H A Dcanonicalize_md.c121 /* Collapse "." and ".." names in the given path wherever possible.
128 collapse(char *path) argument
130 char *names = (path[0] == '/') ? path + 1 : path; /* Preserve first '/' */
184 /* Convert a pathname to canonical form. The input path is assumed to contain
202 /* First try realpath() on the entire path */
209 /* Something's bogus in the original path, so remove names from the end
212 char path[PATH_MAX + 1]; local
214 strncpy(path, origina
[all...]
H A Dio_util.c215 throwFileNotFoundException(JNIEnv *env, jstring path) argument
229 path, why);
/libcore/ojluni/src/main/java/java/net/
H A DCookieManager.java215 // apply path-matches rule (RFC 2965 sec. 3.3.4)
289 // If no path is specified, then by default
290 // the path is the directory of the page/doc
291 String path = uri.getPath();
292 if (!path.endsWith("/")) {
293 int i = path.lastIndexOf("/");
295 path = path.substring(0, i + 1);
297 path = "/";
300 cookie.setPath(path);
397 normalizePath(String path) argument
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DParseBenchmark.java104 private static String resourceToString(String path) throws Exception { argument
105 InputStream in = ParseBenchmark.class.getResourceAsStream(path);
107 throw new IllegalArgumentException("No such file: " + path);

Completed in 428 milliseconds

123