/libcore/luni/src/main/native/ |
H A D | readlink.cpp | 23 bool readlink(const char* path, std::string& result) { argument 29 ssize_t len = readlink(path, &buf[0], buf.size());
|
H A D | canonicalize_path.cpp | 39 * 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 D | FileNotFoundException.java | 76 private FileNotFoundException(String path, String reason) { argument 77 super(path + ((reason == null)
|
H A D | FilePermission.java | 36 public FilePermission(String path, String actions) { super(""); } argument
|
H A D | FileInputStream.java | 60 /* 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 D | FileOutputStream.java | 66 * 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 D | FileURLMapper.java | 46 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 D | IoTrace.java | 128 * @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 D | FilePathToURI.java | 52 // 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 D | MemoryMappedFile.java | 50 public static MemoryMappedFile mmapRO(String path) throws ErrnoException { argument 51 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0);
|
H A D | IoUtils.java | 104 * 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 D | OldObjectOutputStreamPutFieldTest.java | 120 private byte[] getRefContent(String path) throws Exception { argument 127 refStream = getClass().getResourceAsStream(path);
|
H A D | FileInputStreamTest.java | 248 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 D | CertPathBuilderTest.java | 40 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 D | CertPathBuilderTestPKIX.java | 69 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 D | FilePathToURI.java | 52 // 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 D | OldAndroidURITest.java | 26 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 D | FileOutputStream_md.c | 56 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 D | FileInputStream.c | 66 FileInputStream_open(JNIEnv *env, jobject this, jstring path) { argument 67 fileOpen(env, this, path, fis_fd, O_RDONLY);
|
H A D | io_util_md.c | 66 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 D | InheritedChannel.c | 126 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 D | canonicalize_md.c | 121 /* 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 D | io_util.c | 215 throwFileNotFoundException(JNIEnv *env, jstring path) argument 229 path, why);
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | CookieManager.java | 215 // 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 D | ParseBenchmark.java | 104 private static String resourceToString(String path) throws Exception { argument 105 InputStream in = ParseBenchmark.class.getResourceAsStream(path); 107 throw new IllegalArgumentException("No such file: " + path);
|