Searched refs:path (Results 126 - 150 of 7568) sorted by relevance

1234567891011>>

/external/chromium_org/chrome/test/chromedriver/
H A Dchrome_paths.py10 _THIS_DIR = os.path.abspath(os.path.dirname(__file__))
14 """Returns the path to the root src directory."""
15 return os.path.abspath(os.path.join(_THIS_DIR, os.pardir, os.pardir,
20 """Returns the path to the src/chrome/test/data directory."""
21 return os.path.join(GetSrc(), 'chrome', 'test', 'data')
27 rel_dirs = [os.path.join(x, 'Release') for x in dirs]
28 debug_dirs = [os.path.join(x, 'Debug') for x in dirs]
29 full_dirs = [os.path
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/
H A DFileMetadata.cpp40 bool getFileSize(const String& path, long long& result) argument
43 if (!getFileMetadata(path, metadata))
49 bool getFileModificationTime(const String& path, time_t& result) argument
52 if (!getFileMetadata(path, metadata))
58 bool getFileMetadata(const String& path, FileMetadata& metadata) argument
61 if (!blink::Platform::current()->fileUtilities()->getFileInfo(path, webFileInfo))
69 String directoryName(const String& path) argument
71 return blink::Platform::current()->fileUtilities()->directoryName(path);
74 KURL filePathToURL(const String& path) argument
76 return blink::Platform::current()->fileUtilities()->filePathToURL(path);
[all...]
/external/chromium_org/ui/webui/resources/js/
H A Dmedia_common.js5 function pathIsVideoFile(path) {
6 return /\.(3gp|asf|avi|di?vx|f4v|fbr|mov|mp4|m4v|mpe?g4?|ogm|ogv|ogx|webm|wmv?|xvid)$/i.test(path);
9 function pathIsAudioFile(path) {
10 return /\.(aac|aiff|atrac|cda|flac|m4a|mp3|pcm|oga|ogg|raw|wav)$/i.test(path);
13 function pathIsImageFile(path) {
14 return /\.(bmp|gif|jpe?g|ico|png|webp)$/i.test(path);
17 function pathIsHtmlFile(path) {
18 return /\.(htm|html|txt)$/i.test(path);
21 function pathIsPdfFile(path) {
22 return /\.(pdf)$/i.test(path);
[all...]
/external/chromium_org/tools/perf/benchmarks/
H A Dblink_perf.py14 BLINK_PERF_BASE_DIR = os.path.join(util.GetChromiumSrcDir(),
16 SKIPPED_FILE = os.path.join(BLINK_PERF_BASE_DIR, 'Skipped')
19 def _CreatePageSetFromPath(path, skipped_file):
20 assert os.path.exists(path)
25 def _AddPage(path):
26 if not path.endswith('.html'):
28 if '../' in open(path, 'r').read():
30 serving_dirs.add(os.path.dirname(os.path
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dfilesystem_mock.py35 from webkitpy.common.system import path namespace
68 def _raise_not_found(self, path):
69 raise IOError(errno.ENOENT, path, os.strerror(errno.ENOENT))
71 def _split(self, path):
72 # This is not quite a full implementation of os.path.split
73 # http://docs.python.org/library/os.path.html#os.path.split
74 if self.sep in path:
75 return path.rsplit(self.sep, 1)
76 return ('', path)
[all...]
/external/chromium_org/build/android/pylib/device/
H A Ddevice_list.py26 path = os.path.dirname(file_name)
27 if not os.path.exists(path):
28 os.makedirs(path)
/external/chromium_org/chrome/browser/resources/chromeos/braille_ime/
H A DPRESUBMIT.py8 def FileFilter(path):
9 return path.endswith('.js') or path.endswith('check_braille_ime.py')
15 sys.path.insert(0, input_api.PresubmitLocalPath())
19 sys.path.pop(0)
/external/chromium_org/content/test/gpu/
H A Drun_gpu_test.py9 sys.path.append(os.path.join(os.path.dirname(__file__),
17 base_dir = os.path.dirname(os.path.realpath(__file__))
/external/chromium_org/mojo/tools/
H A Drun_mojo_python_tests.py9 _script_dir = os.path.dirname(os.path.abspath(__file__))
10 sys.path.insert(0, os.path.join(_script_dir, "pylib"))
16 runner = MojoPythonTestRunner(os.path.join('mojo', 'public', 'tools',
/external/chromium_org/ppapi/shared_impl/
H A Dfile_ref_util.h20 const std::string& path);
22 const base::FilePath& path);
24 // Determines whether an internal file path is valid.
25 PPAPI_SHARED_EXPORT bool IsValidInternalPath(const std::string& path);
27 // Determines whether an external file path is valid.
28 PPAPI_SHARED_EXPORT bool IsValidExternalPath(const base::FilePath& path);
30 // If path ends with a slash, normalize it away unless it's the root path.
31 PPAPI_SHARED_EXPORT void NormalizeInternalPath(std::string* path);
/external/chromium_org/tools/telemetry/telemetry/util/
H A Dpath_unittest.py10 from telemetry.util import path namespace
15 self.assertFalse(path.IsExecutable('nonexistent_file'))
16 self.assertTrue(path.IsExecutable(sys.executable))
20 self.assertTrue(path.FindInstalledWindowsApplication(os.path.join(
/external/chromium_org/tools/win/split_link/
H A Dinstall_split_link.py12 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
16 return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
20 fpath, _ = os.path.split(program)
25 for path in os.environ['PATH'].split(os.pathsep):
26 path = path.strip('"')
27 exe_file = os.path.join(path, program)
28 if not path o
[all...]
/external/chromium_org/webkit/tools/layout_tests/
H A Drun_webkit_tests.py13 src_dir = os.path.abspath(os.path.join(sys.path[0], '..', '..', '..'))
14 script_dir=os.path.join(src_dir, "third_party", "WebKit", "Tools",
16 script = os.path.join(script_dir, 'run-webkit-tests')
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/tools/
H A Dgenerate_deps.py17 _SCRIPT_DIR = os.path.realpath(os.path.dirname(__file__))
18 _CHROME_SOURCE = os.path.realpath(
19 os.path.join(_SCRIPT_DIR, *[os.path.pardir] * 6))
20 sys.path.insert(0, os.path.join(
30 help=('Two path prefixes, separated by colons ' +
31 'specifying that a file whose (relative) path ' +
34 'form a path relativ
[all...]
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
H A DPath2D.h49 static PassRefPtrWillBeRawPtr<Path2D> create(Path2D* path) { return adoptRefWillBeNoop(new Path2D(path)); } argument
51 static PassRefPtrWillBeRawPtr<Path2D> create(const Path& path) { return adoptRefWillBeNoop(new Path2D(path)); } argument
53 const Path& path() const { return m_path; } function in class:blink::FINAL
55 void addPath(Path2D* path) argument
57 addPath(path, 0);
60 void addPath(Path2D* path, SVGMatrixTearOff* transform) argument
62 Path src = path->path();
72 Path2D(const Path& path) argument
75 Path2D(Path2D* path) argument
[all...]
/external/chromium_org/third_party/skia/platform_tools/android/gyp_gen/
H A Dandroid_framework_gyp.py15 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
20 SKIA_DIR = os.path.normpath(os.path.join(SCRIPT_DIR, os.pardir, os.pardir,
26 gyp_source_dir = os.path.join(SKIA_DIR, 'third_party', 'externals', 'gyp')
27 if not os.path.exists(gyp_source_dir):
30 gyp_source_dir = os.path.join(SKIA_DIR, os.pardir, 'chromium_org', 'tools',
33 assert os.path.exists(gyp_source_dir)
37 sys.path.insert(0, os.path
[all...]
/external/chromium_org/ui/base/webui/
H A Dweb_ui_util_unittest.cc11 std::string path; local
15 webui::ParsePathAndScale(url, &path, &factor);
16 EXPECT_EQ("random/username@email/and/more", path);
21 webui::ParsePathAndScale(url2, &path, &factor);
22 EXPECT_EQ("random/username/and/more", path);
27 webui::ParsePathAndScale(url3, &path, &factor);
28 EXPECT_EQ("random/username/and/more@2ax", path);
33 webui::ParsePathAndScale(url4, &path, &factor);
34 EXPECT_EQ("random/username/and/more@x", path);
39 webui::ParsePathAndScale(url5, &path,
[all...]
/external/skia/platform_tools/android/gyp_gen/
H A Dandroid_framework_gyp.py15 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
20 SKIA_DIR = os.path.normpath(os.path.join(SCRIPT_DIR, os.pardir, os.pardir,
26 gyp_source_dir = os.path.join(SKIA_DIR, 'third_party', 'externals', 'gyp')
27 if not os.path.exists(gyp_source_dir):
30 gyp_source_dir = os.path.join(SKIA_DIR, os.pardir, 'chromium_org', 'tools',
33 assert os.path.exists(gyp_source_dir)
37 sys.path.insert(0, os.path
[all...]
/external/chromium_org/net/base/
H A Dfilename_util.cc27 GURL FilePathToFileURL(const base::FilePath& path) { argument
29 // "file://///server/path" for UNC. The URL canonicalizer will fix up the
30 // latter case to be the canonical UNC form: "file://server/path"
32 if (!path.IsAbsolute()) {
38 url_string.append(path.value());
77 std::string path;
80 // URL contains no host, the path is the filename. In this case, the path
83 path = url.path();
[all...]
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/
H A DPRESUBMIT.py10 def ShouldCheckFile(path):
11 return path.endswith('.js') or path.endswith('.py')
13 def ScriptFilter(path):
14 return (path.endswith('check_chromevox.py') or
15 path.endswith('jscompilerwrapper.py') or
16 path.endswith('jsbundler.py'))
32 sys.path.insert(0, input_api.os_path.join(
37 sys.path.pop(0)
/external/chromium_org/content/child/
H A Dwebfileutilities_impl.cc28 bool WebFileUtilitiesImpl::getFileInfo(const WebString& path, argument
35 if (!base::GetFileInfo(base::FilePath::FromUTF16Unsafe(path),
40 web_file_info.platformPath = path;
44 WebString WebFileUtilitiesImpl::directoryName(const WebString& path) { argument
45 return base::FilePath::FromUTF16Unsafe(path).DirName().AsUTF16Unsafe();
48 WebString WebFileUtilitiesImpl::baseName(const WebString& path) { argument
49 return base::FilePath::FromUTF16Unsafe(path).BaseName().AsUTF16Unsafe();
52 blink::WebURL WebFileUtilitiesImpl::filePathToURL(const WebString& path) { argument
53 return net::FilePathToFileURL(base::FilePath::FromUTF16Unsafe(path));
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom_tests/parse/
H A Drun_translate.py9 import os.path namespace
12 sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
13 os.path.pardir, os.path.pardir))
28 os.path.splitext(os.path.basename(filename))[0])
/external/chromium_org/tools/perf/clear_system_cache/
H A Dclear_system_cache_main.cc19 void ClearCacheForFile(const base::FilePath& path) { argument
20 VLOG(1) << "Clearing " << path.MaybeAsASCII();
21 base::EvictFileFromSystemCache(path);
36 base::FilePath path(args[i]);
37 if (!base::PathExists(path)) {
38 LOG(ERROR) << "Couldn't find " << path.MaybeAsASCII();
42 if (base::DirectoryExists(path)) {
43 base::FileEnumerator enumerator(path, should_recurse,
50 ClearCacheForFile(path);
/external/deqp/scripts/
H A Dcppcheck.py120 fullDstFile = os.path.realpath(dstFile)
126 for path in INCLUDE_DIRS:
127 command += " -I %s" % path
129 for path in SRC_DIRS:
130 command += " %s" % path
143 srcDir = os.path.realpath(os.path.normpath(os.path.join(os.path.dirname(__file__), "..", "..")))
/external/fonttools/Lib/fontTools/pens/
H A DcocoaPen.py11 def __init__(self, glyphSet, path=None):
13 if path is None:
15 path = NSBezierPath.bezierPath()
16 self.path = path
19 self.path.moveToPoint_(p)
22 self.path.lineToPoint_(p)
25 self.path.curveToPoint_controlPoint1_controlPoint2_(p3, p1, p2)
28 self.path.closePath()

Completed in 1799 milliseconds

1234567891011>>