Searched refs:filepath (Results 1 - 25 of 115) sorted by relevance

12345

/external/chromium_org/third_party/skia/platform_tools/android/bin/
H A Ddownload_toolchains.py12 filepath = sys.argv[2] variable
15 download_utils.SyncURL(url, filepath)
/external/skia/platform_tools/android/bin/
H A Ddownload_toolchains.py12 filepath = sys.argv[2] variable
15 download_utils.SyncURL(url, filepath)
/external/chromium_org/third_party/skia/tools/copyright/
H A Dmain.py36 for filepath in filepaths:
37 parser = fileparser.CreateParser(filepath)
40 filepath)
42 old_file_contents = ReadFileIntoString(filepath)
46 filepath)
49 ReportWarning('cannot find copyright block in file %s' % filepath)
54 holder, filepath))
62 WriteStringToFile(new_file_contents, filepath)
85 def ReadFileIntoString(filepath):
88 with open(filepath, '
[all...]
H A Dfileparser.py11 def CreateParser(filepath):
12 """Returns a Parser as appropriate for the file at this filepath.
14 if (filepath.endswith('.cpp') or
15 filepath.endswith('.h') or
16 filepath.endswith('.c')):
/external/skia/tools/copyright/
H A Dmain.py36 for filepath in filepaths:
37 parser = fileparser.CreateParser(filepath)
40 filepath)
42 old_file_contents = ReadFileIntoString(filepath)
46 filepath)
49 ReportWarning('cannot find copyright block in file %s' % filepath)
54 holder, filepath))
62 WriteStringToFile(new_file_contents, filepath)
85 def ReadFileIntoString(filepath):
88 with open(filepath, '
[all...]
H A Dfileparser.py11 def CreateParser(filepath):
12 """Returns a Parser as appropriate for the file at this filepath.
14 if (filepath.endswith('.cpp') or
15 filepath.endswith('.h') or
16 filepath.endswith('.c')):
/external/chromium_org/testing/gtest/test/
H A Dgtest_premature_exit_test.cc54 static bool FileExists(const char* filepath) { argument
56 return Stat(filepath, &stat) == 0;
106 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); local
107 ASSERT_TRUE(filepath != NULL);
108 ASSERT_NE(*filepath, '\0');
132 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); local
133 if (filepath != NULL && *filepath != '\0') {
134 if (PrematureExitTest::FileExists(filepath)) {
137 filepath);
[all...]
/external/gtest/test/
H A Dgtest_premature_exit_test.cc54 static bool FileExists(const char* filepath) { argument
56 return Stat(filepath, &stat) == 0;
104 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); local
105 ASSERT_TRUE(filepath != NULL);
106 ASSERT_NE(*filepath, '\0');
130 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); local
131 if (filepath != NULL && *filepath != '\0') {
132 if (PrematureExitTest::FileExists(filepath)) {
135 filepath);
[all...]
/external/e2fsprogs/util/
H A Dlibecho.c43 char filepath[256]; local
52 strcpy(filepath, f);
54 slash = strrchr(filepath, '\\');
60 filepath[0] = '\0';
70 printf("%s%s%s\n", prefix, filepath, fdt.name);
75 printf("%s%s%s\n", prefix, filepath, fdt.name);
/external/libcap-ng/libcap-ng-0.7/
H A Dpy-compile114 filetrans="filepath = path"
116 filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)"
128 if not os.path.exists(filepath) or not (len(filepath) >= 3
129 and filepath[-3:] == '.py'):
133 py_compile.compile(filepath, filepath + 'c', path)
145 if not os.path.exists(filepath) or not (len(filepath) >= 3
146 and filepath[
[all...]
/external/skia/tools/pyutils/
H A Durl_utils.py22 def create_filepath_url(filepath):
23 """ Returns a file:/// URL pointing at the given filepath on local disk.
26 filepath: string; path to a file on local disk (may be absolute or relative,
30 A file:/// URL pointing at the file. Regardless of whether filepath was
35 An Exception, if filepath is already a URL.
37 if urlparse.urlparse(filepath).scheme:
38 raise Exception('"%s" is already a URL' % filepath)
40 'file:', urllib.pathname2url(os.path.abspath(filepath)))
45 filepath 'dest_path'.
49 dest_path: string; complete filepath t
[all...]
/external/chromium_org/chrome/browser/
H A Dicon_loader_win.cc21 const base::FilePath& filepath) {
22 if (!IsIconMutableFromFilepath(filepath))
23 return filepath.Extension();
24 return filepath.value();
28 bool IconLoader::IsIconMutableFromFilepath(const base::FilePath& filepath) { argument
29 return filepath.MatchesExtension(L".exe") ||
30 filepath.MatchesExtension(L".dll") ||
31 filepath.MatchesExtension(L".ico");
20 ReadGroupIDFromFilepath( const base::FilePath& filepath) argument
H A Dicon_loader_android.cc10 const base::FilePath& filepath) {
9 ReadGroupIDFromFilepath( const base::FilePath& filepath) argument
/external/chromium_org/base/nix/
H A Dmime_util_xdg.cc24 std::string GetFileMimeType(const FilePath& filepath) { argument
25 if (filepath.empty())
29 return xdg_mime_get_mime_type_from_file_name(filepath.value().c_str());
H A Dmime_util_xdg.h23 BASE_EXPORT std::string GetFileMimeType(const FilePath& filepath);
/external/qemu/include/android/
H A Dtcpdump.h22 extern int qemu_tcpdump_start( const char* filepath );
/external/chromium_org/third_party/skia/tools/
H A Dretrieve_from_googlesource.py18 def get(repo_url, filepath):
23 filepath: string; path of the file within the repository.
28 base64_url = '/'.join((repo_url, '+', 'master', filepath)) + '?format=TEXT'
35 print >> sys.stderr, 'Usage: %s <repo_url> <filepath>' % sys.argv[0]
H A Djsondiff.py49 def _GetFileContentsAsString(self, filepath):
53 if filepath is None:
55 elif filepath.startswith('http:') or filepath.startswith('https:'):
56 return urllib2.urlopen(filepath).read()
58 return open(filepath, 'r').read()
186 'the "old" side of the diff. This can be a filepath on ' +
193 'filepath on local storage, or a URL.')
/external/skia/tools/
H A Dretrieve_from_googlesource.py18 def get(repo_url, filepath):
23 filepath: string; path of the file within the repository.
28 base64_url = '/'.join((repo_url, '+', 'master', filepath)) + '?format=TEXT'
35 print >> sys.stderr, 'Usage: %s <repo_url> <filepath>' % sys.argv[0]
/external/chromium_org/build/
H A Dfind_isolated_tests.py26 def hash_file(filepath):
29 with open(filepath, 'rb') as f:
59 for filepath in sorted(glob.glob(pattern)):
60 test_name = os.path.splitext(os.path.basename(filepath))[0]
67 sha1_hash = hash_file(filepath)
68 os.remove(filepath)
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/test/
H A Dbwe_test_baselinefile.cc44 BaseLineFileVerify(const std::string& filepath, bool allow_missing_file) argument
48 reader.reset(ResourceFileReader::Create(filepath, "bin"));
51 filepath.c_str());
61 filepath.c_str());
102 BaseLineFileUpdate(const std::string& filepath, argument
106 filepath_(filepath) {
154 std::string filepath = filename; local
155 std::replace(filepath.begin(), filepath.end(), '/', '_');
156 filepath
[all...]
H A Dbwe_test_fileutils.cc56 std::string filepath = webrtc::test::ResourcePath(filename, extension); local
57 FILE* file = fopen(filepath.c_str(), "rb");
60 BWE_TEST_LOGGING_LOG1("Create", "Can't read file: %s", filepath.c_str());
84 std::string filepath = webrtc::test::OutputPath() + filename + "." + local
86 FILE* file = fopen(filepath.c_str(), "wb");
89 BWE_TEST_LOGGING_LOG1("Create", "Can't write file: %s", filepath.c_str());
/external/chromium_org/tools/grit/grit/format/
H A Dhtml_inline.py103 filepath = os.path.normpath(os.path.join(base_path, filename))
104 inlined_files.add(filepath)
113 inline_data = base64.standard_b64encode(util.ReadFile(filepath, util.BINARY))
143 rewrite_function: function(filepath, text, distribution) which will be
159 def SrcReplace(src_match, filepath=input_filepath,
163 src_match, filepath, distribution, inlined_files, names_only=names_only,
221 filepath = GetFilepath(src_match)
222 if filepath is None:
224 inlined_files.add(filepath)
228 filepath,
[all...]
/external/chromium_org/tools/crx_id/
H A Dcrx_id.py78 def GetPublicKeyFromPath(filepath, is_win_path=False):
83 if (len(filepath) >= 2 and
84 filepath[0].islower() and
85 filepath[1] == ':'):
86 filepath = filepath[0].upper() + filepath[1:]
93 filepath = filepath.encode('utf-16le')
95 return filepath
[all...]
/external/chromium_org/tools/resources/
H A Dfind_unused_resources.py85 A list of pairs of [resource_id, filepath] for the unused resources.
105 filepath = result.group(2)
106 filename = os.path.basename(filepath)
128 unused_resources.append([resource_id, filepath])
183 # |unused_resources| stores pairs of [resource_id, filepath] for resource ids
193 for resource_id, filepath in unused_resources:
198 for resource_id, filepath in unused_resources:
200 print 'git rm ' + os.path.join(directory, filepath)

Completed in 2076 milliseconds

12345