Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 25 of 44) sorted by relevance

12

/external/chromium_org/third_party/webrtc/base/
Dfileutils.h159 virtual bool MoveFolder(const Pathname &old_path,
167 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0;
171 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) { in MoveFileOrFolder() argument
172 if (IsFile(old_path)) { in MoveFileOrFolder()
173 return MoveFile(old_path, new_path); in MoveFileOrFolder()
175 return MoveFolder(old_path, new_path); in MoveFileOrFolder()
182 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0;
185 bool CopyFolder(const Pathname &old_path, const Pathname &new_path);
187 bool CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) { in CopyFileOrFolder() argument
188 if (IsFile(old_path)) in CopyFileOrFolder()
[all …]
Dunixfilesystem.cc221 bool UnixFilesystem::MoveFile(const Pathname &old_path, in MoveFile() argument
223 if (!IsFile(old_path)) { in MoveFile()
224 ASSERT(IsFile(old_path)); in MoveFile()
227 LOG(LS_VERBOSE) << "Moving " << old_path.pathname() in MoveFile()
229 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { in MoveFile()
232 if (!CopyFile(old_path, new_path)) in MoveFile()
234 if (!DeleteFile(old_path)) in MoveFile()
240 bool UnixFilesystem::MoveFolder(const Pathname &old_path, in MoveFolder() argument
242 if (!IsFolder(old_path)) { in MoveFolder()
243 ASSERT(IsFolder(old_path)); in MoveFolder()
[all …]
Dwin32filesystem.cc230 bool Win32Filesystem::MoveFile(const Pathname &old_path, in MoveFile() argument
232 if (!IsFile(old_path)) { in MoveFile()
233 ASSERT(IsFile(old_path)); in MoveFile()
236 LOG(LS_INFO) << "Moving " << old_path.pathname() in MoveFile()
238 return ::MoveFile(ToUtf16(old_path.pathname()).c_str(), in MoveFile()
242 bool Win32Filesystem::MoveFolder(const Pathname &old_path, in MoveFolder() argument
244 if (!IsFolder(old_path)) { in MoveFolder()
245 ASSERT(IsFolder(old_path)); in MoveFolder()
248 LOG(LS_INFO) << "Moving " << old_path.pathname() in MoveFolder()
250 if (::MoveFile(ToUtf16(old_path.pathname()).c_str(), in MoveFolder()
[all …]
Dwin32filesystem.h46 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path);
51 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path);
55 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
Dunixfilesystem.h67 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path);
68 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path);
73 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
Dfileutils_mock.h177 bool MoveFolder(const Pathname &old_path, const Pathname &new_path) { in MoveFolder() argument
181 bool MoveFile(const Pathname &old_path, const Pathname &new_path) { in MoveFile() argument
185 bool CopyFile(const Pathname &old_path, const Pathname &new_path) { in CopyFile() argument
Dfileutils.cc151 bool FilesystemInterface::CopyFolder(const Pathname &old_path, in DirectoryIterator() argument
154 VERIFY(IsFolder(old_path)); in DirectoryIterator()
158 old_dir.SetFolder(old_path.pathname()); in DirectoryIterator()
/external/chromium_org/ui/resources/
DPRESUBMIT.py34 old_path = sys.path
37 sys.path = [resources] + old_path
44 sys.path = old_path
/external/chromium_org/ash/resources/
DPRESUBMIT.py35 old_path = sys.path
38 sys.path = [resources] + old_path
45 sys.path = old_path
/external/chromium_org/chrome/app/theme/
DPRESUBMIT.py35 old_path = sys.path
38 sys.path = [resources] + old_path
45 sys.path = old_path
/external/chromium_org/mojo/spy/
DPRESUBMIT.py20 old_path = sys.path
23 sys.path = prepended_path + old_path
26 sys.path = old_path
/external/chromium_org/net/test/
Dpython_utils.cc21 std::string old_path; in AppendToPythonPath() local
28 if (!env->GetVar(kPythonPathEnv, &old_path)) { in AppendToPythonPath()
30 } else if (old_path.find(dir_path) == std::string::npos) { in AppendToPythonPath()
31 std::string new_path(old_path); in AppendToPythonPath()
/external/chromium_org/tools/telemetry/
DPRESUBMIT.py39 old_path = sys.path
42 sys.path = prepended_path + old_path
45 sys.path = old_path
/external/chromium_org/chrome/browser/chromeos/file_manager/
Dpath_util.cc51 const base::FilePath& old_path, in MigratePathFromOldFormat() argument
94 if (old_path == old_base || in MigratePathFromOldFormat()
95 old_base.AppendRelativePath(old_path, &relative)) { in MigratePathFromOldFormat()
97 return old_path != *new_path; in MigratePathFromOldFormat()
Dpath_util.h51 const base::FilePath& old_path,
/external/chromium_org/chrome/browser/
DPRESUBMIT.py47 old_path = sys.path
50 sys.path = [cwd] + old_path
73 sys.path = old_path
/external/chromium-trace/trace-viewer/
DPRESUBMIT.py66 old_path = sys.path
69 sys.path = prepended_path + old_path
72 sys.path = old_path
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
Dexec_cmd.c84 const char *old_path = getenv("PATH"); in setup_path() local
90 if (old_path) in setup_path()
91 strbuf_addstr(&new_path, old_path); in setup_path()
/external/chromium_org/tools/valgrind/drmemory/
DPRESUBMIT.py17 old_path = sys.path
23 sys.path = old_path
/external/chromium_org/chrome/browser/media/
Dwv_test_license_server_config.cc81 std::string old_path; in GetServerCommandLine() local
82 if (env->GetVar(kLibraryPathEnvVarName, &old_path)) in GetServerCommandLine()
83 library_paths.append(":").append(old_path); in GetServerCommandLine()
/external/chromium_org/third_party/android_crazy_linker/src/src/
Dcrazy_linker_proc_maps.cpp152 const char* old_path = entry.path; in Open() local
153 if (old_path) { in Open()
155 ::memcpy(new_path, old_path, entry.path_len); in Open()
/external/chromium_org/media/tools/layout_tests/
Dtest_expectations_history.py103 old_path = TestExpectationsHistory.GetTestExpectationsPathForRevision(
107 url_or_path=old_path,
/external/chromium_org/tools/git/
Dmove_source_file.py128 def UpdateIncludeGuard(old_path, new_path): argument
135 old_guard = MakeIncludeGuardName(old_path)
/external/chromium_org/tools/perf_expectations/tests/
Dperf_expectations_unittest.py22 old_path = sys.path
59 sys.path = old_path
/external/linux-tools-perf/perf-3.12.0/tools/perf/
Dbuiltin-help.c313 const char *old_path = getenv("MANPATH"); in setup_man_path() local
321 if (old_path) in setup_man_path()
322 strbuf_addstr(&new_path, old_path); in setup_man_path()

12