/external/skia/tools/ |
H A D | jsondiff.py | 49 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 D | icon_loader_auralinux.cc | 14 const base::FilePath& filepath) { 15 return base::nix::GetFileMimeType(filepath); 13 ReadGroupIDFromFilepath( const base::FilePath& filepath) argument
|
/external/chromium_org/net/base/ |
H A D | filename_util_unsafe.cc | 40 base::FilePath filepath = local 48 return filepath.Extension();
|
/external/chromium_org/tools/json_schema_compiler/ |
H A D | schema_loader.py | 58 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 D | cpp_util.py | 142 def ClassName(filepath): 143 return CamelCase(os.path.split(filepath)[1])
|
/external/pdfium/core/src/fpdfdoc/ |
H A D | doc_basic.cpp | 267 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 D | fpdf_parser_fdf.cpp | 168 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 D | setup.py | 124 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 D | gen-charmap.py | 164 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 D | qemu-tcpdump.c | 73 qemu_tcpdump_start( const char* filepath ) 82 if (filepath == NULL) 85 capture_file = fopen(filepath, "wb");
|
/external/chromium_org/components/metrics/serialization/ |
H A D | serialization_utils_unittest.cc | 24 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 D | rtp_file_reader_unittest.cc | 24 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 D | setup.py | 92 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 D | filter_fuzz_stub.cc | 16 base::FilePath filepath = base::FilePath::FromUTF8Unsafe(filename); local 18 if (!base::ReadFileToString(filepath, ipc_filter_message)) {
|
/external/chromium_org/url/ |
H A D | url_parse_internal.h | 67 Component* filepath, 72 Component* filepath,
|
/external/llvm/utils/lit/lit/formats/ |
H A D | googletest.py | 75 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 D | imagediffdb.py | 348 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 D | ini.c | 259 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 D | component_updater_utils.h | 82 bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath);
|
/external/chromium_org/components/policy/resources/ |
H A D | PRESUBMIT.py | 30 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 D | writable_expectations.py | 99 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 D | display_json_results.py | 75 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 D | display_json_results.py | 75 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 D | chrome_html.py | 94 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 D | build-webapp.py | 35 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:
|