Home
last modified time | relevance | path

Searched refs:full_path (Results 1 – 25 of 161) sorted by relevance

1234567

/external/chromium_org/sandbox/win/tests/common/
Dcontroller.cc24 base::string16 full_path(windows_path); in MakePathToSys32() local
25 if (full_path.empty()) in MakePathToSys32()
26 return full_path; in MakePathToSys32()
29 full_path.insert(0, L"\\??\\"); in MakePathToSys32()
31 full_path += L"\\system32\\"; in MakePathToSys32()
32 full_path += name; in MakePathToSys32()
33 return full_path; in MakePathToSys32()
42 base::string16 full_path(windows_path); in MakePathToSysWow64() local
43 if (full_path.empty()) in MakePathToSysWow64()
44 return full_path; in MakePathToSysWow64()
[all …]
/external/chromium_org/content/browser/download/
Dbase_file_unittest.cc68 base::FilePath full_path = base_file_->full_path(); in TearDown() local
73 EXPECT_TRUE(base::ReadFileToString(full_path, &disk_data)); in TearDown()
81 EXPECT_EQ(expect_file_survives_, base::PathExists(full_path)); in TearDown()
153 file_name = file.full_path(); in CreateTestFile()
239 EXPECT_EQ(base::FilePath().value(), base_file_->full_path().value()); in TEST_F()
245 EXPECT_TRUE(base::PathExists(base_file_->full_path())); in TEST_F()
247 EXPECT_FALSE(base::PathExists(base_file_->full_path())); in TEST_F()
248 EXPECT_NE(base::FilePath().value(), base_file_->full_path().value()); in TEST_F()
289 base::FilePath initial_path(base_file_->full_path()); in TEST_F()
398 ASSERT_TRUE(base::CopyFile(base_file_->full_path(), new_file_path)); in TEST_F()
[all …]
Ddownload_file_impl.cc110 const base::FilePath& full_path, in RenameAndUniquify() argument
113 full_path, UNIQUIFY, kMaxRenameRetries, base::TimeTicks(), callback); in RenameAndUniquify()
117 const base::FilePath& full_path, in RenameAndAnnotate() argument
119 RenameWithRetryInternal(full_path, in RenameAndAnnotate()
142 const base::FilePath& full_path, in RenameWithRetryInternal() argument
149 base::FilePath new_path(full_path); in RenameWithRetryInternal()
151 if ((option & UNIQUIFY) && full_path != file_.full_path()) { in RenameWithRetryInternal()
174 full_path, in RenameWithRetryInternal()
224 return file_.full_path(); in FullPath()
/external/chromium_org/chrome/browser/
Dplatform_util_win.cc37 void ShowItemInFolderOnFileThread(const base::FilePath& full_path) { in ShowItemInFolderOnFileThread() argument
39 base::FilePath dir = full_path.DirName().AsEndingWithSeparator(); in ShowItemInFolderOnFileThread()
88 const_cast<wchar_t *>(full_path.value().c_str()), in ShowItemInFolderOnFileThread()
107 << full_path.value() << "\"" in ShowItemInFolderOnFileThread()
162 void OpenItemViaShellInUtilityProcess(const base::FilePath& full_path) { in OpenItemViaShellInUtilityProcess() argument
166 utility_process_host->Send(new ChromeUtilityMsg_OpenItemViaShell(full_path)); in OpenItemViaShellInUtilityProcess()
173 void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) { in ShowItemInFolder() argument
180 base::Bind(&ShowItemInFolderOnFileThread, full_path)); in ShowItemInFolder()
183 void OpenItem(Profile* profile, const base::FilePath& full_path) { in OpenItem() argument
194 base::Bind(&OpenItemViaShellInUtilityProcess, full_path)); in OpenItem()
[all …]
Dplatform_util_linux.cc56 void ShowItemInFolderOnFileThread(const base::FilePath& full_path) { in ShowItemInFolderOnFileThread() argument
57 base::FilePath dir = full_path.DirName(); in ShowItemInFolderOnFileThread()
68 void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) { in ShowItemInFolder() argument
71 base::Bind(&ShowItemInFolderOnFileThread, full_path)); in ShowItemInFolder()
74 void OpenItem(Profile* profile, const base::FilePath& full_path) { in OpenItem() argument
77 base::Bind(&XDGOpen, full_path.value())); in OpenItem()
Dplatform_util_chromeos.cc23 void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) { in ShowItemInFolder() argument
25 file_manager::util::ShowItemInFolder(profile, full_path); in ShowItemInFolder()
28 void OpenItem(Profile* profile, const base::FilePath& full_path) { in OpenItem() argument
30 file_manager::util::OpenItem(profile, full_path); in OpenItem()
/external/chromium_org/components/url_fixer/
Durl_fixer_unittest.cc225 base::FilePath* full_path) { in MakeTempFile() argument
226 *full_path = dir.Append(file_name); in MakeTempFile()
227 return base::WriteFile(*full_path, "", 0) == 0; in MakeTempFile()
456 base::FilePath full_path; in TEST() local
461 ASSERT_TRUE(MakeTempFile(temp_dir_.path(), file_part, &full_path)); in TEST()
462 full_path = base::MakeAbsoluteFilePath(full_path); in TEST()
463 ASSERT_FALSE(full_path.empty()); in TEST()
478 file_part).possibly_invalid_spec(), full_path)); in TEST()
479 EXPECT_TRUE(base::DeleteFile(full_path, false)); in TEST()
498 ASSERT_TRUE(MakeTempFile(new_dir, sub_file, &full_path)); in TEST()
[all …]
/external/chromium_org/content/browser/renderer_host/pepper/
Dpepper_flash_file_message_filter.cc111 base::FilePath full_path = ValidateAndConvertPepperFilePath( in OnOpenFile() local
113 if (full_path.empty()) { in OnOpenFile()
123 base::File file(full_path, platform_file_flags); in OnOpenFile()
167 base::FilePath full_path = in OnDeleteFileOrDir() local
169 if (full_path.empty()) { in OnDeleteFileOrDir()
173 bool result = base::DeleteFile(full_path, recursive); in OnDeleteFileOrDir()
180 base::FilePath full_path = in OnCreateDir() local
182 if (full_path.empty()) { in OnCreateDir()
186 bool result = base::CreateDirectory(full_path); in OnCreateDir()
194 base::FilePath full_path = in OnQueryFile() local
[all …]
/external/chromium_org/storage/browser/database/
Ddatabase_util.cc89 base::FilePath full_path = db_tracker->GetFullDBFilePath( in GetFullFilePathForVfsFile() local
91 if (!full_path.empty() && !sqlite_suffix.empty()) { in GetFullFilePathForVfsFile()
92 DCHECK(full_path.Extension().empty()); in GetFullFilePathForVfsFile()
93 full_path = full_path.InsertBeforeExtensionASCII( in GetFullFilePathForVfsFile()
97 if (full_path.value().find(FILE_PATH_LITERAL("..")) != in GetFullFilePathForVfsFile()
100 return full_path; in GetFullFilePathForVfsFile()
/external/chromium_org/ui/base/win/
Dshell.cc29 bool OpenItemWithExternalApp(const base::string16& full_path) { in OpenItemWithExternalApp() argument
34 sei.lpFile = full_path.c_str(); in OpenItemWithExternalApp()
40 bool OpenAnyViaShell(const base::string16& full_path, in OpenAnyViaShell() argument
47 sei.lpFile = full_path.c_str(); in OpenAnyViaShell()
55 return OpenItemWithExternalApp(full_path); in OpenAnyViaShell()
59 bool OpenItemViaShell(const base::FilePath& full_path) { in OpenItemViaShell() argument
60 return OpenAnyViaShell(full_path.value(), full_path.DirName().value(), in OpenItemViaShell()
/external/chromium_org/chrome/common/extensions/docs/server2/
Dgcs_file_system.py53 full_path = Join(bucket, path)
57 if IsDirectory(full_path):
59 for filename in _ListDir(full_path))
87 full_path = Join(self._bucket, path)
89 (path, full_path))
91 result[path] = _ListDir(full_path)
93 result[path] = _ReadFile(full_path)
Dlocal_file_system.py86 full_path = os.path.join(self._base_path,
89 result[path] = _ListDir(full_path)
92 result[path] = _ReadFile(full_path)
105 full_path = os.path.join(self._base_path,
107 return _CreateStatInfo(full_path)
/external/chromium_org/tools/checkperms/
Dcheckperms.py260 def has_executable_bit(full_path): argument
263 return bool(permission & os.stat(full_path).st_mode)
266 def has_shebang_or_is_elf(full_path): argument
271 with open(full_path, 'rb') as f:
287 full_path = os.path.join(root_path, rel_path)
291 'full_path': full_path,
295 bit = has_executable_bit(full_path)
312 (shebang, elf) = has_shebang_or_is_elf(full_path)
352 full_path = os.path.join(self.root_dir, start_dir, item)
353 rel_path = full_path[len(self.root_dir) + 1:]
[all …]
/external/chromium_org/third_party/android_crazy_linker/src/src/
Dcrazy_linker_library_list.cpp283 String full_path; in LoadLibrary() local
292 full_path = path; in LoadLibrary()
296 full_path = GetCurrentDirectory(); in LoadLibrary()
297 if (full_path.size() && full_path[full_path.size() - 1] != '/') in LoadLibrary()
298 full_path += '/'; in LoadLibrary()
299 full_path += lib_name; in LoadLibrary()
302 full_path = lib_name; in LoadLibrary()
304 LOG("%s: Full library path: %s\n", __FUNCTION__, full_path.c_str()); in LoadLibrary()
305 if (!PathIsFile(full_path.c_str())) { in LoadLibrary()
306 error->Format("Library file doesn't exist: %s", full_path.c_str()); in LoadLibrary()
[all …]
Dcrazy_linker_shared_library.cpp186 uint8_t* ReadPackedRelocations(const char* full_path, in ReadPackedRelocations() argument
191 if (!fd.OpenReadOnly(full_path)) { in ReadPackedRelocations()
192 error->Format("Error opening file '%s'", full_path); in ReadPackedRelocations()
196 error->Format("Error seeking to %d in file '%s'", offset, full_path); in ReadPackedRelocations()
203 error->Format("Error reading %d bytes from file '%s'", bytes, full_path); in ReadPackedRelocations()
228 bool SharedLibrary::Load(const char* full_path, in Load() argument
233 LOG("%s: full path '%s'\n", __FUNCTION__, full_path); in Load()
235 size_t full_path_len = strlen(full_path); in Load()
237 error->Format("Path too long: %s", full_path); in Load()
241 strlcpy(full_path_, full_path, sizeof(full_path_)); in Load()
[all …]
/external/lldb/test/unittest2/
Dloader.py241 def _match_path(self, path, full_path, pattern): argument
250 full_path = os.path.join(start_dir, path)
251 if os.path.isfile(full_path):
255 if not self._match_path(path, full_path, pattern):
258 name = self._get_name_from_path(full_path)
264 mod_file = os.path.abspath(getattr(module, '__file__', full_path))
266 fullpath_noext = os.path.splitext(full_path)[0]
269 mod_name = os.path.splitext(os.path.basename(full_path))[0]
270 expected_dir = os.path.dirname(full_path)
275 elif os.path.isdir(full_path):
[all …]
/external/chromium_org/extensions/common/
Dextension_resource.cc60 base::FilePath full_path = clean_extension_root.Append(relative_path); in GetFilePath() local
90 full_path = base::MakeAbsoluteFilePath(full_path); in GetFilePath()
91 if (base::PathExists(full_path) && in GetFilePath()
93 clean_extension_root.IsParent(full_path))) { in GetFilePath()
94 return full_path; in GetFilePath()
/external/chromium_org/content/browser/
Dsafe_util_win.cc28 bool SetInternetZoneIdentifierDirectly(const base::FilePath& full_path) { in SetInternetZoneIdentifierDirectly() argument
30 std::wstring path = full_path.value() + L":Zone.Identifier"; in SetInternetZoneIdentifierDirectly()
54 HRESULT AVScanFile(const base::FilePath& full_path, in AVScanFile() argument
67 SetInternetZoneIdentifierDirectly(full_path); in AVScanFile()
77 hr = attachment_services->SetLocalPath(full_path.value().c_str()); in AVScanFile()
/external/chromium_org/gpu/gles2_conform_support/
Dgenerate_gles2_embedded_data.py65 full_path = os.path.join(scan_dir, file)
67 base_path = full_path[len(self.scan_dir) + 1:]
68 if os.path.isdir(full_path):
70 sub_dirs.append(full_path)
73 print full_path.replace("\\", "/")
82 data = open(full_path, "r")
/external/chromium_org/tools/telemetry/telemetry/page/
Dprofile_generator.py45 def IsSocket(full_path): argument
48 if stat.S_ISSOCK(os.stat(full_path).st_mode):
57 full_path = os.path.join(directory, path)
59 if os.path.isdir(full_path):
61 if not IsSocket(full_path) and not os.path.islink(full_path):
64 logging.warning('Ignoring pseudo file: %s' % full_path)
/external/chromium_org/third_party/WebKit/Source/bindings/scripts/
Dcompute_interfaces_info_individual.py107 def add_paths_to_partials_dict(partial_interface_name, full_path, this_include_path=None): argument
109 paths_dict['full_paths'].append(full_path)
115 full_path = os.path.realpath(idl_filename)
116 idl_file_contents = get_file_contents(full_path)
126 add_paths_to_partials_dict(partial_interface_name, full_path, this_include_path)
140 'full_path': full_path,
/external/chromium_org/net/tools/crash_cache/
Dcrash_cache.cc92 base::FilePath* full_path) { in CreateTargetFolder() argument
121 *full_path = path.AppendASCII(folders[action]); in CreateTargetFolder()
123 if (base::PathExists(*full_path)) in CreateTargetFolder()
126 return base::CreateDirectory(*full_path); in CreateTargetFolder()
326 base::FilePath full_path; in SlaveCode() local
327 if (!CreateTargetFolder(path, action, &full_path)) { in SlaveCode()
338 return SimpleInsert(full_path, action, &cache_thread); in SlaveCode()
341 return LoadOperations(full_path, action, &cache_thread); in SlaveCode()
344 return SimpleRemove(full_path, action, &cache_thread); in SlaveCode()
347 return HeadRemove(full_path, action, &cache_thread); in SlaveCode()
[all …]
/external/chromium_org/components/search_engines/
Dtemplate_url_parser_unittest.cc97 base::FilePath full_path; in ParseFile() local
98 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &full_path)); in ParseFile()
99 full_path = full_path.AppendASCII("osdd"); in ParseFile()
100 full_path = full_path.AppendASCII(file_name); in ParseFile()
101 ASSERT_TRUE(base::PathExists(full_path)); in ParseFile()
104 ASSERT_TRUE(base::ReadFileToString(full_path, &contents)); in ParseFile()
/external/chromium_org/chrome/test/ispy/common/
Dispy_utils.py78 def UploadImage(self, full_path, image): argument
86 full_path, image_tools.EncodePNG(image), 'image/png')
88 def DownloadImage(self, full_path): argument
100 return image_tools.DecodePNG(self.cloud_bucket.DownloadFile(full_path))
102 def UpdateImage(self, full_path, image): argument
109 self.cloud_bucket.UpdateFile(full_path, image_tools.EncodePNG(image))
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/breakpad/
Ddump_reader_multipart.py104 full_path = self._host.filesystem.join(self._build_dir, binary)
105 if not self._host.filesystem.exists(full_path):
108 _log.error(' at %s' % full_path)
139 full_path = self._host.filesystem.join(self._build_dir, binary)
142 '--binary=%s' % full_path,

1234567