/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 | realpath.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 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 D | java_lang_System.cpp | 77 char path[PATH_MAX]; local 78 properties.push_back(std::string("user.dir=") + getcwd(path, sizeof(path)));
|
H A D | java_io_File.cpp | 44 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...] |
/libcore/luni/src/main/java/java/io/ |
H A D | FilePermission.java | 26 public FilePermission(String path, String actions) { super(""); } argument
|
H A D | FileInputStream.java | 102 * Equivalent to {@code new FileInputStream(new File(path))}. 104 public FileInputStream(String path) throws FileNotFoundException { argument 105 this(new File(path));
|
H A D | FileOutputStream.java | 111 * 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/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 | 99 * 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");
|
/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);
|
/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 | 76 public void validateCertPath(CertPath path) { argument 77 List<? extends Certificate> certificates = path.getCertificates();
|
/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/luni/src/test/java/tests/api/java/io/ |
H A D | ComputeSerialVersionUIDTest.java | 8 private String path = "/serialization/tests/api/java/io/"; field in class:ComputeSerialVersionUIDTest 12 .getResourceAsStream(path + "testComputeSUIDClass.ser")); 30 .getResourceAsStream(path + "testComputeSUIDInterfaces.ser")); 62 .getResourceAsStream(path + "testComputeSUIDFields.ser")); 100 .getResourceAsStream(path + "testComputeSUIDConstructors.ser")); 122 .getResourceAsStream(path + "testComputeSUIDMethods.ser"));
|
/libcore/luni/src/main/java/java/net/ |
H A D | CookieManager.java | 172 // if the cookie doesn't have a path, set one. If it does, validate it. 194 * Returns a cookie-safe path by truncating everything after the last "/". 195 * When request path like "/foo/bar.html" yields a cookie, that cookie's 196 * default path is "/foo/". 198 static String pathToCookiePath(String path) { argument 199 if (path == null) { 202 int lastSlash = path.lastIndexOf('/'); // -1 yields the empty string 203 return path.substring(0, lastSlash + 1);
|
H A D | URLStreamHandler.java | 98 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...] |
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | UrlUtils.java | 26 * 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/util/prefs/ |
H A D | FilePreferencesImpl.java | 45 //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/support/src/test/java/tests/support/resource/ |
H A D | Support_Resources.java | 39 String path = RESOURCE_PACKAGE + name; 40 InputStream result = Support_Resources.class.getResourceAsStream(path); 47 File resource = new File(ANDROID_BUILD_TOP + "/libcore/support/src/test/java" + path); 56 throw new IllegalArgumentException("No such resource: " + path); 184 public static File resourceToTempFile(String path) throws IOException { argument 189 InputStream xml = Support_Resources.class.getResourceAsStream(path);
|
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DexPathList.java | 31 * One of the lists is a dex/resource path — typically referred 32 * to as a "class path" — 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/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestInnerClass.java | 133 public void assertURIEquals(String assertID, String scheme, String path, argument 137 test.assertURIEquals(assertID, scheme, path, host, file, name, query,
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | CertPinManager.java | 54 public CertPinManager(String path, TrustedCertificateStore store) throws PinManagerException { argument 55 if (path == null) { 56 throw new NullPointerException("path == null"); 58 pinFile = new File(path);
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | DOMTestCase.java | 102 public void assertURIEquals(String assertID, String scheme, String path, argument 150 if (path != null) { 151 assertEquals(assertID, path, actualPath); 185 // Jar URL's will have any actual path like file:/c:/somedrive...
|