Searched refs:newPath (Results 1 - 7 of 7) sorted by relevance

/libcore/luni/src/main/java/java/io/
H A DFile.java183 char[] newPath = origPath.toCharArray();
184 int length = newPath.length;
187 char ch = newPath[i];
190 newPath[newLength++] = separatorChar;
194 newPath[newLength++] = ch;
203 return (newLength != length) ? new String(newPath, 0, newLength) : origPath;
1009 * Renames this file to {@code newPath}. This operation is supported for both
1024 * @param newPath the new path.
1027 public boolean renameTo(File newPath) { argument
1029 Libcore.os.rename(path, newPath
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java156 @Override public void link(String oldPath, String newPath) throws ErrnoException { argument
158 os.link(oldPath, newPath);
258 @Override public void rename(String oldPath, String newPath) throws ErrnoException { argument
260 os.rename(oldPath, newPath);
301 @Override public void symlink(String oldPath, String newPath) throws ErrnoException { argument
303 os.symlink(oldPath, newPath);
H A DOs.java99 public void link(String oldPath, String newPath) throws ErrnoException; argument
129 public void rename(String oldPath, String newPath) throws ErrnoException; argument
159 public void symlink(String oldPath, String newPath) throws ErrnoException; argument
H A DForwardingOs.java107 public void link(String oldPath, String newPath) throws ErrnoException { os.link(oldPath, newPath); } argument
136 public void rename(String oldPath, String newPath) throws ErrnoException { os.rename(oldPath, newPath); } argument
166 public void symlink(String oldPath, String newPath) throws ErrnoException { os.symlink(oldPath, newPath); } argument
H A DPosix.java101 public native void link(String oldPath, String newPath) throws ErrnoException; argument
194 public native void rename(String oldPath, String newPath) throws ErrnoException; argument
243 public native void symlink(String oldPath, String newPath) throws ErrnoException; argument
/libcore/luni/src/main/java/android/system/
H A DOs.java251 public static void link(String oldPath, String newPath) throws ErrnoException { Libcore.os.link(oldPath, newPath); } argument
399 public static void rename(String oldPath, String newPath) throws ErrnoException { Libcore.os.rename(oldPath, newPath); } argument
515 public static void symlink(String oldPath, String newPath) throws ErrnoException { Libcore.os.symlink(oldPath, newPath); } argument
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp1159 ScopedUtfChars newPath(env, javaNewPath);
1160 if (newPath.c_str() == NULL) {
1163 throwIfMinusOne(env, "link", TEMP_FAILURE_RETRY(link(oldPath.c_str(), newPath.c_str())));
1471 ScopedUtfChars newPath(env, javaNewPath);
1472 if (newPath.c_str() == NULL) {
1475 throwIfMinusOne(env, "rename", TEMP_FAILURE_RETRY(rename(oldPath.c_str(), newPath.c_str())));
1782 ScopedUtfChars newPath(env, javaNewPath);
1783 if (newPath.c_str() == NULL) {
1786 throwIfMinusOne(env, "symlink", TEMP_FAILURE_RETRY(symlink(oldPath.c_str(), newPath.c_str())));

Completed in 1082 milliseconds