/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
parse-malloc-history | 30 # based on total number of bytes allocated, and filtering based on command-line 73 my $line = $lines[$i]; 78 ($callCount, $byteCount) = ($line =~ /(\d+) calls for (\d+) bytes/); 86 ($byteCount) = ($line =~ /Leak: [x[:xdigit:]]* size=(\d+)/); 89 while (!($line =~ "Call stack: ")) { 91 $line = $lines[$i]; 102 ($byteCount) = ($line =~ /Key: (?:\d+), (\d+) bytes/); 104 $line = $lines[++$i]; 107 if ($line =~ /\): (.*)$/) { 112 $line = $lines[++$i] [all...] |
/external/chromium_org/third_party/npapi/npspy/ |
analyze_streams.py | 21 # sample line: 'NPP_NewStream(0x645c898, 0x56ba900("application/x-shockwave-flash"), 0x64bb3b0 (http://weeklyad.target.com/target/flash/target/target.swf?ver=090326), TRUE, NP_NORMAL)'
23 def __init__(self, line):
24 split = line.split(', ')
35 print 'parsing error on ' + line
39 print 'line got unexpected type: ' + line
52 for line in file.splitlines():
53 if line.startswith('NPP_NewStream('):
54 if line.count('(') < 3:
55 print 'unknown format for line: ' + line [all...] |
/external/skia/tools/ |
sanitize_source_files.py | 20 """Sanitizes source files with the specified file and line modifiers. 27 line_modifiers: list - line-modification methods which should be applied to 46 line_number = 0 # Keeps track of line numbers in the source file. 49 # Run the line modifiers for each line in this file. 50 for line in lines: 51 original_line = line 55 line = modifier(line, full_item_path, line_number) 56 if original_line != line [all...] |
/build/tools/ |
check_radio_versions.py | 30 for line in f: 31 line = line.strip() variable 32 if line.startswith("require"): 33 key, value = line.split()[1].split("=", 1) 59 for line in f: 60 line = line.strip() variable 61 if not line or line.startswith("#"): continu [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/parsers/gas/ |
gas-parse-intel.c | 51 unsigned char *line; local 70 if (&stok[length] == slim && parser_gas->line) { 71 line = yasm_xmalloc(length + parser_gas->lineleft + 1); 72 memcpy(line, parser_gas->s.tok, length); 73 memcpy(line + length, parser_gas->linepos, parser_gas->lineleft); 75 if (line[length - 1] == '\n') length--; 77 line = yasm_xmalloc(length + 1); 78 memcpy(line, parser_gas->s.tok, length); 80 line[length] = '\0'; 82 bc = gas_intel_syntax_parse_instr(&parser_nasm, line); [all...] |
/external/chromium_org/tools/gyp/tools/ |
pretty_gyp.py | 18 # NOTE: It does not handle quotes that span more than one line, or 31 return [search_re.sub(comment_replace, line) for line in input] 44 return [search_re.sub(quote_replace, line) for line in input] 50 for (line, masked_line) in zip(input, masked_input): 54 line = line[:split] + r'\n' + line[split:] 57 output.extend(line.split(r'\n') [all...] |
/external/chromium_org/tools/memory_watcher/scripts/ |
memtrace.pl | 43 my $line = $_; 44 #print "$line"; 45 chomp($line); 46 if ($line =~ m/([0-9]*) bytes, ([0-9]*) allocs/) { 67 elsif ($line =~ m/Total Bytes:[ ]*([0-9]*)/) { 70 elsif ($line =~ m/LoadLibrary/) { 75 elsif ($line =~ m/=============/) { 78 elsif ($line =~ m/Untracking untracked/) { 81 elsif ($line =~ m/[ ]*([a-z]:\\[a-z]*\\[a-zA-Z_\\0-9\.]*) /) { 105 # use this to blame the line [all...] |
/external/harfbuzz/contrib/tables/ |
unicode_parse_common.py | 4 def cut_comment(line): 5 first_hash = line.find('#') 7 return line 8 return line[:first_hash] 12 def line_split(line): 13 '''Split a line based on a semicolon separator.''' 16 return [normalise(x) for x in line.split(';')] 36 for line in tokens: 37 if len(line) == 2: 38 codepoints = codepoints_parse(line[0] [all...] |
/external/markdown/markdown/extensions/ |
imagelinks.py | 51 for line in lines: 53 if line.startswith("<~~~~~~~"): 60 new_lines.append(line) 64 line = line.strip() 66 if line.endswith("~~~~~~>") or not line: 98 elif line[1:6] == "~~~~~" : 101 parts = line.split() 102 line = parts[0 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
poplib.py | 30 # Line terminators (we always output CRLF, but accept any of CRLF, LFCR, LF) 69 POP is a line-based protocol, which means large mail 71 line-by-line. 89 def _putline(self, line): 90 if self._debugging > 1: print '*put*', repr(line) 91 self.sock.sendall('%s%s' % (line, CRLF)) 96 def _putcmd(self, line): 97 if self._debugging: print '*cmd*', repr(line) 98 self._putline(line) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
poplib.py | 30 # Line terminators (we always output CRLF, but accept any of CRLF, LFCR, LF) 69 POP is a line-based protocol, which means large mail 71 line-by-line. 89 def _putline(self, line): 90 if self._debugging > 1: print '*put*', repr(line) 91 self.sock.sendall('%s%s' % (line, CRLF)) 96 def _putcmd(self, line): 97 if self._debugging: print '*cmd*', repr(line) 98 self._putline(line) [all...] |
/external/chromium_org/tools/flakiness/ |
find_flakiness.py | 44 for line in data_file: 45 if line: 46 split_line = line.split(' -> ') 61 line = proc.stderr.readline() 62 if not line: 66 print line.rstrip() 68 line = line.rstrip() 69 if line in failed_tests: 70 failed_tests[line] += [all...] |
/external/chromium_org/tools/gn/ |
standard_out.cc | 124 void PrintShortHelp(const std::string& line) { 125 size_t colon_offset = line.find(':'); 128 OutputString(" " + line.substr(0, colon_offset), DECORATION_YELLOW); 134 line.size() > first_normal + 2 && 135 line[first_normal + 1] == ' ' && line[first_normal + 2] == '[') { 138 first_normal = line.find(']', begin_bracket); 140 first_normal = line.size(); 143 OutputString(line.substr(begin_bracket, first_normal - begin_bracket), 147 OutputString(line.substr(first_normal) + "\n") 155 const std::string& line = lines[i]; local [all...] |
/external/qemu/android/utils/ |
lineinput.c | 18 char* line; member in struct:LineInput 31 /* Error codes returned by the internal line reading function(s) */ 44 input->line = input->line0; 60 /* Grow the line buffer a bit */ 64 char* line; local 67 line = input->line; 68 if (line == input->line0) 69 line = NULL; 71 AARRAY_RENEW(line, input->line_size) [all...] |
/external/skia/tests/ |
PathOpsQuadLineIntersectionThreadedTest.cpp | 14 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, 18 if (line[0].fX == line[1].fX) { 19 double top = line[0].fY; 20 double bottom = line[1].fY; 25 result = intersections.vertical(quad, top, bottom, line[0].fX, flipped); 26 } else if (line[0].fY == line[1].fY) { 27 double left = line[0].fX; 28 double right = line[1].fX 100 SkDLine line = {{{x - h, y - v}, {x, y}}}; local [all...] |
/external/chromium/chrome/browser/importer/ |
mork_reader.cc | 121 std::string line; 122 if (!ReadLine(&line) || 123 line.compare("// <!-- <mdb:mork:z v=\"1.4\"/> -->") != 0) 127 while (ReadLine(&line)) { 130 size_t len = line.size(); 131 while (idx < len && line[idx] == ' ') 136 // Look at the line to figure out what section type this is 137 if (StartsWithASCII(&line[idx], "< <(a=c)>", true)) { 140 ParseMap(line, idx, &column_name_map); 155 } else if (StartsWithASCII(&line[idx], "<(", true)) [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRCharStreamState.h | 37 NSUInteger line; variable 42 @property (assign) NSUInteger line; variable
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/tool/templates/messages/formats/ |
antlr.stg | 36 location(file, line, column) ::= "<file>:<line>:<column>:"
|
gnu.stg | 36 location(file, line, column) ::= "<file>:<line>:"
|
vs2005.stg | 36 location(file, line, column) ::= "<file>(<line>,<column>)"
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
PEMUtil.java | 58 String line; local 61 while ((line = readLine(in)) != null) 63 if (line.startsWith(_header1) || line.startsWith(_header2)) 69 while ((line = readLine(in)) != null) 71 if (line.startsWith(_footer1) || line.startsWith(_footer2)) 76 pemBuf.append(line);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
PEMUtil.java | 60 String line; local 63 while ((line = readLine(in)) != null) 65 if (line.startsWith(_header1) || line.startsWith(_header2)) 71 while ((line = readLine(in)) != null) 73 if (line.startsWith(_footer1) || line.startsWith(_footer2)) 78 pemBuf.append(line);
|
/external/chromium/third_party/libjingle/source/talk/base/ |
checks.cc | 35 void Fatal(const char* file, int line, const char* format, ...) { 44 << ", line " << line << "\n#" << msg
|
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/ |
memorizingfile.py | 74 """Override file.readline and memorize the line read. 77 the whole line will be read out from underlying file object by 82 line = self._buffered_line 85 line = self._file.readline() 86 if line and len(self._memorized_lines) < self._max_memorized_lines: 87 self._memorized_lines.append(line) 88 if size >= 0 and size < len(line): 90 self._buffered_line = line[size:] 91 return line[:size] 92 return line [all...] |
/external/chromium_org/base/mac/ |
mac_logging.cc | 16 int line, 19 : LogMessage(file_path, line, severity),
|