/external/linux-tools-perf/util/ |
exec_cmd.c | 85 struct strbuf new_path = STRBUF_INIT; local 87 add_path(&new_path, perf_exec_path()); 88 add_path(&new_path, argv0_path); 91 strbuf_addstr(&new_path, old_path); 93 strbuf_addstr(&new_path, "/usr/local/bin:/usr/bin:/bin"); 95 setenv("PATH", new_path.buf, 1); 97 strbuf_release(&new_path);
|
/external/chromium/chrome/browser/download/ |
base_file_unittest.cc | 130 FilePath new_path(temp_dir_.path().AppendASCII("NewFile")); 131 EXPECT_FALSE(file_util::PathExists(new_path)); 135 EXPECT_TRUE(base_file_->Rename(new_path)); 137 EXPECT_TRUE(file_util::PathExists(new_path)); 197 FilePath new_path(temp_dir_.path().AppendASCII("NewFile")); 198 EXPECT_FALSE(file_util::PathExists(new_path)); 202 EXPECT_TRUE(base_file_->Rename(new_path)); 204 EXPECT_TRUE(file_util::PathExists(new_path)); 215 FilePath new_path(temp_dir_.path().AppendASCII("NewFile")); 216 EXPECT_FALSE(file_util::PathExists(new_path)); [all...] |
base_file.cc | 87 bool BaseFile::Rename(const FilePath& new_path) { 96 if (new_path == full_path_) { 106 file_util::CreateDirectory(new_path.DirName()); 112 if (!file_util::RenameFileAndResetSecurityDescriptor(full_path_, new_path)) 117 // 600 to |new_path|. Here, we try to fix up the destination file with 122 if (!file_util::PathExists(new_path)) 123 file_util::WriteFile(new_path, "", 0); 124 bool stat_succeeded = (stat(new_path.value().c_str(), &st) == 0); 128 if (!file_util::Move(full_path_, new_path)) 132 chmod(new_path.value().c_str(), st.st_mode) [all...] |
download_manager_unittest.cc | 354 FilePath new_path(kDownloadRenameCases[i].suggested_path); 365 EXPECT_CALL(*download_file, Rename(new_path)).WillOnce(Return(true)); 368 FilePath crdownload(download_util::GetCrDownloadPath(new_path)); 375 2, new_path)))); 382 FileSelected(new_path, i, info); 384 FileSelected(new_path, i, info); 409 const FilePath new_path(FILE_PATH_LITERAL("foo.zip")); 410 const FilePath cr_path(download_util::GetCrDownloadPath(new_path)); 432 info->path = new_path; 475 const FilePath new_path(FILE_PATH_LITERAL("foo.zip")) [all...] |
download_history.h | 41 // Updates the download path for |download_item| to |new_path|. 43 const FilePath& new_path);
|
download_history.cc | 85 const FilePath& new_path) { 93 hs->UpdateDownloadPath(new_path, download_item->db_handle());
|
download_util.cc | 776 FilePath new_path; 778 new_path = FilePath(path); 779 AppendNumberToPath(&new_path, count); 781 if (!file_util::PathExists(new_path)) 838 FilePath new_path; 840 new_path = FilePath(path); 841 AppendNumberToPath(&new_path, count); 843 if (!file_util::PathExists(new_path) && 844 !file_util::PathExists(GetCrDownloadPath(new_path))) 855 FilePath new_path(path) [all...] |
download_file_manager.cc | 350 FilePath new_path = full_path; local 359 uniquifier = download_util::GetUniquePathNumber(new_path); 361 download_util::AppendNumberToPath(&new_path, uniquifier); 366 if (!download->Rename(new_path)) { 383 new_path, uniquifier));
|
/external/chromium/net/base/ |
net_util_posix.cc | 46 std::string new_path; local 48 new_path = old_path; 49 ReplaceSubstringsAfterOffset(&new_path, 0, "//", "/"); 50 old_path.swap(new_path); 51 } while (new_path != old_path);
|
/external/chromium/third_party/libjingle/source/talk/base/ |
fileutils.h | 169 // This moves a file from old_path to new_path, where "old_path" is a 175 const Pathname &new_path) = 0; 177 // This moves a directory from old_path to new_path, where "old_path" is a 182 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0; 184 // This attempts to move whatever is located at old_path to new_path, 186 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) { 188 return MoveFile(old_path, new_path); 190 return MoveFolder(old_path, new_path); 194 // This copies a file from old_path to new_path. This method ASSERTs and 197 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0 [all...] |
win32filesystem.h | 59 // This moves a file from old_path to new_path. If the new path is on a 63 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 65 // Moves a folder from old_path to new_path. If the new path is on a different 68 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path); 72 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
|
unixfilesystem.cc | 221 const Pathname &new_path) { 227 << " to " << new_path.pathname(); 228 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { 231 if (!CopyFile(old_path, new_path)) 240 const Pathname &new_path) { 246 << " to " << new_path.pathname(); 247 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { 250 if (!CopyFolder(old_path, new_path)) 266 const Pathname &new_path) { 268 << " to " << new_path.pathname() [all...] |
unixfilesystem.h | 60 // This moves a file from old_path to new_path, where "file" can be a plain file 63 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 64 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path); 69 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
|
win32filesystem.cc | 248 const Pathname &new_path) { 254 << " to " << new_path.pathname(); 256 ToUtf16(new_path.pathname()).c_str()) != 0; 260 const Pathname &new_path) { 266 << " to " << new_path.pathname(); 268 ToUtf16(new_path.pathname()).c_str()) == 0) { 273 if (!CopyFolder(old_path, new_path)) 308 const Pathname &new_path) { 310 ToUtf16(new_path.pathname()).c_str(), TRUE) != 0;
|
fileutils.cc | 169 const Pathname &new_path) { 172 new_dir.SetFolder(new_path.pathname()); 185 dest.SetFolder(new_path.pathname());
|
/external/chromium/net/test/ |
python_utils.cc | 30 std::string new_path(old_path); 32 new_path.append(";"); 34 new_path.append(":"); 36 new_path.append(dir_path.c_str()); 37 env->SetVar(kPythonPathEnv, new_path);
|
/external/chromium/net/url_request/ |
url_request_file_job.cc | 234 std::string new_path = request_->url().path(); local 235 new_path.push_back('/'); 237 replacements.SetPathStr(new_path); 250 FilePath new_path = file_path_; 252 resolved = file_util::ResolveShortcut(&new_path); 258 *location = FilePathToFileURL(new_path);
|
/external/linux-tools-perf/ |
builtin-help.c | 322 struct strbuf new_path = STRBUF_INIT; local 329 strbuf_addstr(&new_path, system_path(PERF_MAN_PATH)); 330 strbuf_addch(&new_path, ':'); 332 strbuf_addstr(&new_path, old_path); 334 setenv("MANPATH", new_path.buf, 1); 336 strbuf_release(&new_path);
|
/external/chromium/base/ |
file_path.cc | 296 FilePath new_path(path_); 297 new_path.StripTrailingSeparatorsInternal(); 303 StringType::size_type letter = FindDriveLetter(new_path.path_); 306 new_path.path_.find_last_of(kSeparators, StringType::npos, 310 new_path.path_.resize(letter + 1); 313 new_path.path_.resize(letter + 2); 315 IsSeparator(new_path.path_[letter + 1])) { 318 new_path.path_.resize(letter + 3); 321 new_path.path_.resize(last_separator); 324 new_path.StripTrailingSeparatorsInternal() [all...] |
/system/vold/ |
DirectVolume.h | 60 int updateDeviceInfo(char *new_path, int new_major, int new_minor);
|
Volume.h | 89 virtual int updateDeviceInfo(char *new_path, int new_major, int new_minor) = 0;
|
/external/ipsec-tools/src/racoon/ |
remoteconf.c | 640 vchar_t *new_path; local 652 if ((new_path = vmalloc(len)) == NULL) { 658 new_path->v[0] = '\0'; 659 (void)strlcat(new_path->v, script_dir, len); 660 (void)strlcat(new_path->v, "/", len); 661 (void)strlcat(new_path->v, path->v, len); 664 path = new_path;
|
/bootable/recovery/ |
recovery.cpp | 606 char new_path[PATH_MAX]; local 607 strlcpy(new_path, path, PATH_MAX); 608 strlcat(new_path, "/", PATH_MAX); 609 strlcat(new_path, item, PATH_MAX); 610 new_path[strlen(new_path)-1] = '\0'; // truncate the trailing '/' 611 result = update_directory(new_path, unmount_when_done, wipe_cache, device); 616 char new_path[PATH_MAX]; local 617 strlcpy(new_path, path, PATH_MAX); 618 strlcat(new_path, "/", PATH_MAX) [all...] |
/external/opencv/otherlibs/highgui/ |
loadsave.cpp | 129 char* new_path = new char[new_size]; 133 memcpy( new_path, m_path, m_len ); 137 m_path = new_path;
|
/external/chromium/net/tools/dump_cache/ |
cache_dumper.cc | 75 std::string new_path = local 77 entry_path_ = FilePath(ASCIIToWide(new_path));
|