/external/chromium_org/chrome/tools/ |
inconsistent-eol.py | 76 for filename in filelist: 77 filename = filename.strip() 78 logging.debug(filename) 81 text = open(filename, 'rb').read() 85 logging.warning('File %s not found.' % filename) 94 print '%s: forcing to LF' % filename 96 FixEndings(filename, 0, 0, 1) 101 print '%s: mostly %s' % (filename, PrevailingEOLName(crlf, cr, lf)) 102 FixEndings(filename, crlf, cr, lf [all...] |
/external/chromium_org/native_client_sdk/src/tools/ |
genhttpfs.py | 26 usage='Usage: %prog [options] <filename>...') 55 for filename in filelist: 56 if os.path.isfile(filename): 57 fileset |= set([filename]) 59 if os.path.isdir(filename) and options.recursive: 60 for root, _, files in os.walk(filename): 63 raise Error('Can not handle path "%s".\n' % filename) 67 for filename in sorted(fileset): 68 relname = os.path.abspath(filename) 70 raise Error('%s is not relative to CWD %s.\n' % filename, cwd [all...] |
/external/chromium_org/net/tools/dump_cache/ |
url_to_filename_encoder.h | 5 // URL filename encoder goals: 55 // empty and non-reserved filename). 89 // Helper class for converting a URL into a filename. 92 // Given a |url| and a |base_path|, returns a filename which represents this 99 std::string filename; local 102 EncodeSegment(base_path, url_no_scheme, '/', &filename); 104 ReplaceAll(&filename, "/", "\\"); 112 filename.append(base_path); 113 filename.append(host); 115 filename.append("\\") [all...] |
/external/chromium_org/third_party/tlslite/tlslite/ |
basedb.py | 17 def __init__(self, filename, type): 19 self.filename = filename 20 if self.filename: 31 if self.filename: 32 self.db = anydbm.open(self.filename, "n") #raises anydbm.error 44 if not self.filename: 46 self.db = anydbm.open(self.filename, "w") #raises anydbm.error 74 if self.filename: 86 if self.filename [all...] |
/external/chromium_org/tools/deep_memory_profiler/subcommands/ |
upload.py | 43 for filename in dump_files: 44 file_zip.write(filename, os.path.basename(os.path.abspath(filename))) 45 for filename in bucket_files: 46 file_zip.write(filename, os.path.basename(os.path.abspath(filename))) 49 for filename in os.listdir(symbol_path): 50 if not filename.startswith('.'): 51 file_zip.write(os.path.join(symbol_path, filename), 53 os.path.abspath(filename)))) [all...] |
/external/libpng/contrib/examples/ |
iccfrompng.c | 87 extract_one_file(const char *filename) 90 FILE *fp = fopen(filename, "rb"); 103 const char *ep = strrchr(filename, '.'); 106 len = ep-filename; 109 len = strlen(filename); 117 memcpy(output, filename, len); 128 printf("%s -> %s\n", filename, output); 148 fprintf(stderr, "%s: OOM allocating string!\n", filename); 154 printf("%s has no profile\n", filename); 158 fprintf(stderr, "%s: could not open file\n", filename); [all...] |
/external/openfst/src/lib/ |
symbol-table-ops.cc | 100 SymbolTable *FstReadSymbols(const string &filename, bool input_symbols) { 101 ifstream in(filename.c_str(), ifstream::in | ifstream::binary); 103 LOG(ERROR) << "FstReadSymbols: Can't open file " << filename; 107 if (!hdr.Read(in, filename)) { 108 LOG(ERROR) << "FstReadSymbols: Couldn't read header from " << filename; 112 SymbolTable *isymbols = SymbolTable::Read(in, filename); 115 << filename; 124 SymbolTable *osymbols = SymbolTable::Read(in, filename); 127 << filename; 135 LOG(ERROR) << "FstReadSymbols: The file " << filename [all...] |
/external/chromium_org/third_party/icu/source/tools/gensprep/ |
gensprep.c | 56 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode); 59 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode); 138 char* filename = NULL; local 204 filename = (char* ) uprv_malloc(uprv_strlen(srcDir) + 300); /* hopefully this should be enough */ 206 /* prepare the filename beginning with the source dir */ 208 filename[0] = '.'; 209 filename[1] = U_FILE_SEP_CHAR; 210 uprv_strcpy(filename+2,srcDir); 212 uprv_strcpy(filename, srcDir); 215 basename=filename+uprv_strlen(filename) 349 const char* filename = (const char*) context; local [all...] |
/external/icu/icu4c/source/tools/gensprep/ |
gensprep.c | 56 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode); 59 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode); 138 char* filename = NULL; local 204 filename = (char* ) uprv_malloc(uprv_strlen(srcDir) + 300); /* hopefully this should be enough */ 206 /* prepare the filename beginning with the source dir */ 208 filename[0] = '.'; 209 filename[1] = U_FILE_SEP_CHAR; 210 uprv_strcpy(filename+2,srcDir); 212 uprv_strcpy(filename, srcDir); 215 basename=filename+uprv_strlen(filename) 349 const char* filename = (const char*) context; local [all...] |
/external/opencv/otherlibs/highgui/ |
loadsave.cpp | 64 static int Preprocess( const char* filename, char* buffer ); 76 const char* Find( const char* filename, char* buffer ) const; 186 const char* CvFilePath::Find( const char* filename, char* buffer ) const 189 int len = Preprocess( filename, path0 ); 224 filename = 0; 228 filename = (const char*)buffer; 232 return filename; 282 GrFmtReader* FindReader( const char* filename ) const; 283 GrFmtWriter* FindWriter( const char* filename ) const; 324 GrFmtReader* CvImageFilters::FindReader( const char* filename ) cons [all...] |
/art/tools/ |
cpplint.py | 360 def ParseNolintSuppressions(filename, raw_line, linenum, error): 368 filename: str, the name of the input file. 385 error(filename, linenum, 'readability/nolint', 5, 430 filename and line number on which that file was included. 700 def Check(self, error, filename, linenum): 705 filename: The name of the current file. 723 error(filename, linenum, 'readability/fn_size', error_level, 746 def __init__(self, filename): 747 self._filename = filename 859 def Error(filename, linenum, category, confidence, message) [all...] |
/external/compiler-rt/lib/sanitizer_common/scripts/ |
cpplint.py | 360 def ParseNolintSuppressions(filename, raw_line, linenum, error): 368 filename: str, the name of the input file. 385 error(filename, linenum, 'readability/nolint', 5, 430 filename and line number on which that file was included. 700 def Check(self, error, filename, linenum): 705 filename: The name of the current file. 719 error(filename, linenum, 'readability/fn_size', error_level, 742 def __init__(self, filename): 743 self._filename = filename 852 def Error(filename, linenum, category, confidence, message) [all...] |
/build/tools/ |
generate-notice-files.py | 64 def md5sum(filename): 65 """Calculate an MD5 of the file given by FILENAME, 69 f = open(filename, "rb") 98 # Set up a filename to row id table (anchors inside tables don't work in 103 for filename in value: 104 id_table[filename] = id_count 122 for filename in sorted_filenames: 123 stripped_filename = SRC_DIR_STRIP_RE.sub(r"\1", filename) 124 print >> output_file, '<li><a href="#id%d">%s</a></li>' % (id_table.get(filename), stripped_filename) 134 for filename in sorted(value) [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/ |
generate_devtools_grd.py | 45 <output filename="grit/devtools_resources.h" type="rc_header"> 48 <output filename="grit/devtools_resources_map.cc" type="resource_file_map_source" /> 49 <output filename="grit/devtools_resources_map.h" type="resource_map_header" /> 51 <output filename="devtools_resources.pak" type="data_package" /> 78 def make_name_from_filename(filename): 79 return (filename.replace('/', '_') 96 def build_relative_filename(relative_path_dirs, filename): 98 index = filename.find(relative_path_dir) 100 return filename[len(relative_path_dir) + 1:] 101 return os.path.basename(filename) [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/ |
ResourceLoaderAdaptor.java | 133 * @param filename the name of the file. 136 File locateFile(List<String> loadPaths, String filename) { 137 if (filename == null) { 138 throw new NullPointerException("No filename provided"); 144 File file = newFile(path, filename); 156 File newFile(String filename) { 157 return new File(filename); 160 File newFile(String path, String filename) { 161 return new File(path, filename); 170 public Object getKey(String filename) { [all...] |
LoadPathToFileCache.java | 42 * Lookup in the cache to see if we have a mapping from the given loadpaths and filename to an 46 * @param filename the name of the file. 49 public String lookup(List<String> loadPaths, String filename) { 50 String filePathMapKey = makeCacheKey(loadPaths, filename); 63 * @param filename the name of the file. 66 public void add(List<String> loadPaths, String filename, String filePath) { 67 String filePathMapKey = makeCacheKey(loadPaths, filename); 76 public static String makeCacheKey(List<String> loadPaths, String filename) { 80 if (filename == null) { 81 throw new NullPointerException("Filename cannot be null") [all...] |
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/ |
filetestcase.py | 44 def __init__(self, filename, runner, converter): 48 filename: Filename to test. 54 self._filename = filename 66 filename = self._filename 67 stream = open(filename) 73 got = self._ProcessFileAndGetMessages(filename) 98 def _ProcessFileAndGetMessages(self, filename): 101 self._runner.Run([filename], errors)
|
/external/chromium_org/gpu/command_buffer/service/ |
error_state.h | 75 const char* filename, 81 const char* filename, 87 const char* filename, 94 const char* filename, 104 const char* filename, int line, const char* function_name) = 0; 111 const char* filename, int line, const char* function_name) = 0; 116 const char* filename, int line, const char* function_name) = 0;
|
/external/chromium_org/third_party/closure_linter/closure_linter/common/ |
filetestcase.py | 43 def __init__(self, filename, lint_callable, converter): 47 filename: Filename to test. 53 self._filename = filename 65 filename = self._filename 66 stream = open(filename) 72 got = self._ProcessFileAndGetMessages(filename) 97 def _ProcessFileAndGetMessages(self, filename): 100 self._lint_callable(filename, error_accumulator)
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/ |
sp_flush.c | 90 static char filename[256]; 91 util_snprintf(filename, sizeof(filename), "cbuf_%u.bmp", frame_no); 92 debug_dump_surface_bmp(softpipe, filename, softpipe->framebuffer.cbufs[0]); 93 util_snprintf(filename, sizeof(filename), "zsbuf_%u.bmp", frame_no); 94 debug_dump_surface_bmp(softpipe, filename, softpipe->framebuffer.zsbuf);
|
/external/chromium_org/tools/gyp/tools/ |
graphviz.py | 18 filename, _, target = target.partition(':') 19 return filename, target, suffix 22 def LoadEdges(filename, targets): 60 for filename, targets in files.items(): 66 print ' "%s" [shape=box, label="%s\\n%s"]' % (target, filename, 70 print ' subgraph "cluster_%s" {' % filename 71 print ' label = "%s"' % filename
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_flush.c | 90 static char filename[256]; 91 util_snprintf(filename, sizeof(filename), "cbuf_%u.bmp", frame_no); 92 debug_dump_surface_bmp(softpipe, filename, softpipe->framebuffer.cbufs[0]); 93 util_snprintf(filename, sizeof(filename), "zsbuf_%u.bmp", frame_no); 94 debug_dump_surface_bmp(softpipe, filename, softpipe->framebuffer.zsbuf);
|
/external/chromium_org/native_client_sdk/src/tools/lib/ |
get_shared_deps.py | 76 A dict with key=filename and value=architecture. The architecture will be 116 for filename, arch in all_files.items(): 117 name = os.path.basename(filename) 119 del all_files[filename] 139 input_info: A dict with key=filename and value=architecture. The 148 for filename in files: 149 if os.path.exists(filename): 150 full_paths.add(filename) 152 for path in _FindLibsInPath(filename, lib_path): 175 filename = matched.group(1 [all...] |
/external/chromium_org/third_party/google_appengine_cloudstorage/cloudstorage/ |
cloudstorage_api.py | 40 def open(filename, 50 filename: A Google Cloud Storage filename of form '/bucket/filename'. 80 common.validate_file_path(filename) 83 filename = api_utils._quote_filename(filename) 87 return storage_api.StreamingBuffer(api, filename, content_type, options) 93 filename, 99 def delete(filename, retry_params=None, _account_id=None) [all...] |
/external/chromium_org/third_party/lcov/bin/ |
mcov | 56 print "mcov: output filename is $output_filename\n"; 102 my ($filename) = @_; 103 print("Processing $filename ...\n"); 106 my $base_name; # data filename without ".da/.gcda" extension 116 ($base_dir, $base_name) = split_filename(canonical_path($filename)); 211 my ($filename) = @_; 212 return (File::Spec::Functions::canonpath($filename)); 219 # splits the file path into path and filename (with no extension). 221 my ($filename) = @_; 222 my ($base, $path, $ext) = File::Basename::fileparse($filename, '\.[^\.]*') [all...] |