Searched refs:filepath (Results 26 - 50 of 115) sorted by relevance

12345

/external/skia/tools/
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/chromium_org/chrome/browser/
H A Dicon_loader_auralinux.cc14 const base::FilePath& filepath) {
15 return base::nix::GetFileMimeType(filepath);
13 ReadGroupIDFromFilepath( const base::FilePath& filepath) argument
/external/chromium_org/net/base/
H A Dfilename_util_unsafe.cc40 base::FilePath filepath = local
48 return filepath.Extension();
/external/chromium_org/tools/json_schema_compiler/
H A Dschema_loader.py58 filepath = os.path.join(path, filename);
59 if os.path.exists(os.path.join(self._root, filepath)):
61 self.LoadSchema(filepath)[0],
62 filepath,
H A Dcpp_util.py142 def ClassName(filepath):
143 return CamelCase(os.path.split(filepath)[1])
/external/pdfium/core/src/fpdfdoc/
H A Ddoc_basic.cpp267 static CFX_WideString FILESPEC_DecodeFileName(FX_WSTR filepath) argument
269 if (filepath.GetLength() <= 1) {
273 if (filepath.Left(sizeof("/Mac") - 1) == CFX_WideStringC(L"/Mac")) {
274 return ChangeSlashToPlatform(filepath.GetPtr() + 1);
276 return ChangeSlashToPlatform(filepath.GetPtr());
278 if (filepath.GetAt(0) != '/') {
279 return ChangeSlashToPlatform(filepath.GetPtr());
281 if (filepath.GetAt(1) == '/') {
282 return ChangeSlashToPlatform(filepath.GetPtr() + 1);
284 if (filepath
360 FILESPEC_EncodeFileName(FX_WSTR filepath) argument
[all...]
/external/pdfium/core/src/fpdfapi/fpdf_parser/
H A Dfpdf_parser_fdf.cpp168 void FPDF_FileSpec_SetWin32Path(CPDF_Object* pFileSpec, const CFX_WideString& filepath) argument
171 if (filepath.GetLength() > 1 && filepath[1] == ':') {
173 result += filepath[0];
174 if (filepath[2] != '\\') {
177 result += ChangeSlash((FX_LPCWSTR)filepath + 2);
178 } else if (filepath.GetLength() > 1 && filepath[0] == '\\' && filepath[1] == '\\') {
179 result = ChangeSlash((FX_LPCWSTR)filepath
[all...]
/external/chromium_org/third_party/protobuf/python/
H A Dsetup.py124 filepath = os.path.join(dirpath, filename)
125 if filepath.endswith("_pb2.py") or filepath.endswith(".pyc") or \
126 filepath.endswith(".so") or filepath.endswith(".o") or \
127 filepath.endswith('google/protobuf/compiler/__init__.py'):
128 os.remove(filepath)
/external/qemu/
H A Dgen-charmap.py164 for filepath in sys.argv[1:]:
165 m = re_mapname.match(filepath)
167 print "%s is not a keyboard charmap name" % filepath
173 for filepath in sys.argv[1:]:
174 m = re_mapname.match(filepath)
176 result = process_file( filepath )
/external/qemu/android/
H A Dqemu-tcpdump.c73 qemu_tcpdump_start( const char* filepath )
82 if (filepath == NULL)
85 capture_file = fopen(filepath, "wb");
/external/chromium_org/components/metrics/serialization/
H A Dserialization_utils_unittest.cc24 filepath = base::FilePath(filename);
29 base::DeleteFile(filepath, false);
43 base::FilePath filepath; member in class:metrics::__anon6593::SerializationUtilsTest
78 ASSERT_TRUE(!PathExists(filepath) || base::GetFileSize(filepath, &size));
94 ASSERT_TRUE(base::GetFileSize(filepath, &size));
112 ASSERT_TRUE(base::GetFileSize(filepath, &size));
117 base::File test_file(filepath,
165 ASSERT_TRUE(base::GetFileSize(filepath, &size));
/external/chromium_org/third_party/webrtc/test/
H A Drtp_file_reader_unittest.cc24 std::string filepath = local
27 test::RtpFileReader::Create(test::RtpFileReader::kRtpDump, filepath));
53 std::string filepath = local
56 test::RtpFileReader::Create(test::RtpFileReader::kPcap, filepath));
/external/protobuf/python/
H A Dsetup.py92 filepath = os.path.join(dirpath, filename) variable
93 if filepath.endswith("_pb2.py") or filepath.endswith(".pyc"):
94 os.remove(filepath)
/external/chromium_org/skia/tools/filter_fuzz_stub/
H A Dfilter_fuzz_stub.cc16 base::FilePath filepath = base::FilePath::FromUTF8Unsafe(filename); local
18 if (!base::ReadFileToString(filepath, ipc_filter_message)) {
/external/chromium_org/url/
H A Durl_parse_internal.h67 Component* filepath,
72 Component* filepath,
/external/llvm/utils/lit/lit/formats/
H A Dgoogletest.py75 filepath = os.path.join(source_path, filename)
76 if os.path.isdir(filepath):
81 for subfilename in os.listdir(filepath):
82 execpath = os.path.join(filepath, subfilename)
89 testSuite, path_in_suite, filepath,
/external/skia/gm/rebaseline_server/
H A Dimagediffdb.py348 def _open_image(filepath):
349 """Wrapper for Image.open(filepath) that yields more useful error messages.
352 filepath: path on local disk to load image from
357 return Image.open(filepath)
361 logging.error('IOError loading image file %s ; deleting it.' % filepath)
362 os.remove(filepath)
366 def _save_image(image, filepath, format='PNG'):
371 filepath: path on local disk to write image to
375 _mkdir_unless_exists(os.path.dirname(filepath))
376 image.save(filepath, forma
[all...]
/external/qemu/android/utils/
H A Dini.c259 iniFile_newFromFile( const char* filepath )
261 FILE* fp = fopen(filepath, "rt");
269 filepath, strerror(errno));
284 filepath, size);
293 ini = iniFile_newFromMemory(text, filepath);
304 * filepath - Path to a file where to save the instance.
312 iniFile_saveToFileCommon( IniFile* f, const char* filepath, int strip ) argument
314 FILE* fp = fopen(filepath, "wt");
321 filepath, strerror(errno));
341 iniFile_saveToFile( IniFile* f, const char* filepath )
[all...]
/external/chromium_org/components/component_updater/
H A Dcomponent_updater_utils.h82 bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath);
/external/chromium_org/components/policy/resources/
H A DPRESUBMIT.py30 filepath = input_api.os_path.join(local_path, 'policy_templates.json')
31 if any(f.AbsoluteLocalPath() == filepath
41 if checker.Run([], filepath) > 0:
43 [filepath])]
/external/chromium_org/third_party/skia/gm/rebaseline_server/
H A Dwritable_expectations.py99 filepath=modification[imagepair.KEY__IMAGEPAIRS__IMAGE_B_URL])
169 def _add_image_info_to_expectations(expectations, filepath):
173 can be derived from the filepath, which is currently true but may not always
178 filepath: relative path to the image file
180 (checksum_algorithm, checksum_value) = FILEPATH_RE.match(filepath).groups()
183 expectations[gm_json.JSONKEY_IMAGE_FILEPATH] = filepath
/external/chromium_org/third_party/skia/gm/
H A Ddisplay_json_results.py75 def Display(filepath):
78 filepath: (string) path to JSON file"""
97 json_dict = gm_json.LoadFromFile(filepath)
113 raise Exception('usage: %s <input-json-filepath>' % sys.argv[0])
/external/skia/gm/
H A Ddisplay_json_results.py75 def Display(filepath):
78 filepath: (string) path to JSON file"""
97 json_dict = gm_json.LoadFromFile(filepath)
113 raise Exception('usage: %s <input-json-filepath>' % sys.argv[0])
/external/chromium_org/tools/grit/grit/gather/
H A Dchrome_html.py94 filepath = os.path.join(base_path, filename)
211 filepath, text, scale_factors, distribution,
220 m, filepath, scale_factors, distribution,
224 m, filepath, scale_factors, distribution,
259 filepath, text, scale_factors, distribution,
268 filepath,
/external/chromium_org/remoting/webapp/
H A Dbuild-webapp.py35 def findAndReplace(filepath, findString, replaceString):
37 oldFilename = os.path.basename(filepath) + '.old'
38 oldFilepath = os.path.join(os.path.dirname(filepath), oldFilename)
39 os.rename(filepath, oldFilepath)
41 with open(filepath, 'w') as output:

Completed in 1844 milliseconds

12345