/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
jsonchecker.py | 30 """Processes JSON lines for checking style.""" 38 def check(self, lines): 40 json.loads('\n'.join(lines) + '\n')
|
xml.py | 31 """Processes XML lines for checking style.""" 37 def check(self, lines): 40 for line in lines:
|
/external/markdown/markdown/extensions/ |
footnotes.py | 153 def run(self, lines): 154 lines = self._handleFootnoteDefinitions(lines) 155 text = "\n".join(lines) 158 def _handleFootnoteDefinitions(self, lines): 160 Recursively find all footnote definitions in lines. 164 * lines: A list of lines of text 166 Return: A list of lines with footnote definitions removed. 169 i, id, footnote = self._findFootnoteDefinition(lines) [all...] |
meta.py | 27 >>> text = ' Some Code - not extra lines of meta data.' 30 u'<pre><code>Some Code - not extra lines of meta data.\\n</code></pre>' 61 def run(self, lines): 66 line = lines.pop(0) 79 lines.insert(0, line) 82 return lines
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
SMSDispatcherTest.java | 40 String[] lines = new String[2]; local 42 lines[0] = "+CMT: ,158"; 43 lines[1] = "07914140279510F6440A8111110301003BF56080426101748A8C0B05040B" 50 sms = SmsMessage.newFromCMT(lines); 70 String[] lines = new String[2]; local 72 lines[0] = "+CMT: ,77"; 73 lines[1] = "07914140279510F6440A8111110301003BF56080426101848A3B0B05040B8423F" 77 sms = SmsMessage.newFromCMT(lines);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
data.py | 16 * lines: a dict mapping filenames to sorted lists of line numbers 51 self.lines = {} 74 self.lines, self.arcs = self._read_file(self.filename) 76 self.lines, self.arcs = {}, {} 98 self.lines = {} 104 [(f, self.sorted(lmap.keys())) for f, lmap in self.lines.items()] 119 data['lines'] = self.line_data() 136 self.lines, self.arcs = self._read_file(filename) 150 Returns two values, suitable for assigning to `self.lines` and 154 lines = { [all...] |
/frameworks/native/opengl/libs/GLES_trace/tools/ |
genapi.py | 348 lines = open(apiEntryFile).readlines() 351 for i in range(0, len(lines)/3): 352 apis.append(ApiCall(prefix, lines[i*3], lines[i*3+1])) 380 lines = [] 381 lines.append(HEADER_LICENSE) 382 lines.append(HEADER_NAMESPACE_START) 386 lines.append("\n// Declarations for %s APIs\n\n" % api.prefix) 388 lines.append(api.genDeclaration()) 389 lines.append("\n" [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
WrappedGTestResultParser.java | 56 public void processNewLines(String[] lines) { 61 String[] gtestOutput = parseInstrumentation(lines); 69 * @param lines the raw instrumentation output 72 public String[] parseInstrumentation(String[] lines) { 75 for (String line : lines) {
|
/external/chromium_org/chrome/test/chromedriver/ |
cpp_source.py | 57 lines = [] 59 lines = [' "%s"' % EscapeLine(contents)] 62 lines += [' "%s\\n"' % EscapeLine(line)] 63 definitions += ['const char %s[] =\n%s;' % (name, '\n'.join(lines))]
|
/external/chromium_org/net/ftp/ |
ftp_directory_listing_parser_ls.h | 23 const std::vector<base::string16>& lines,
|
ftp_directory_listing_parser_netware.h | 23 const std::vector<base::string16>& lines,
|
ftp_directory_listing_parser.cc | 50 std::vector<base::string16> lines; local 51 base::SplitStringUsingSubstr(text, newline_separator, &lines); 58 base::Bind(&ParseFtpDirectoryListingLs, lines, current_time, entries), 62 base::Bind(&ParseFtpDirectoryListingWindows, lines, entries), 66 base::Bind(&ParseFtpDirectoryListingVms, lines, entries), 71 lines, current_time, entries), 75 base::Bind(&ParseFtpDirectoryListingOS2, lines, entries),
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/ |
StyleDeprecatedFlexibleBoxData.h | 51 unsigned lines : 1; // EBoxLines
|
/external/chromium_org/third_party/skia/include/core/ |
SkLineClipper.h | 27 of those segments sequentially in lines as follows: 28 1st segment: lines[0]..lines[1] 29 2nd segment: lines[1]..lines[2] 30 3rd segment: lines[2]..lines[3] 33 SkPoint lines[kMaxPoints]);
|
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/ |
xml_formatted_writer.py | 71 lines = xml[1:len(xml) - 1].split('><') 75 for i, line in enumerate(lines): 80 lines[i] = indent + '<' + line + '>' 86 # Reconstruct XML text from the lines. 87 return '\n'.join(lines)
|
/external/chromium_org/tools/ |
include_tracer.py | 176 lines = open(resolved_filename).readlines() 179 lines = [] 180 for line in lines: 192 return total_bytes + len("".join(lines))
|
/external/chromium_org/tools/telemetry/telemetry/page/ |
block_page_measurement_results_unittest.py | 37 def lines(self): member in class:BlockPageMeasurementResultsTest 38 lines = StringIO.StringIO(self._output.getvalue()).readlines() 39 return [line.strip() for line in lines] 43 return [line.split(': ', 1) for line in self.lines]
|
/external/guava/guava/src/com/google/common/io/ |
LineReader.java | 29 * A class for reading lines of text. Provides the same functionality 43 private final Queue<String> lines = new LinkedList<String>(); field in class:LineReader 46 lines.add(line); 51 * Creates a new instance that will read lines from the given 72 while (lines.peek() == null) { 85 return lines.poll();
|
/external/harfbuzz_ng/src/ |
check-header-guards.sh | 18 lines=`grep "\<$tag\>" "$x" | wc -l | sed 's/[ ]*//g'` 19 if test "x$lines" != x3; then
|
/external/skia/include/core/ |
SkLineClipper.h | 27 of those segments sequentially in lines as follows: 28 1st segment: lines[0]..lines[1] 29 2nd segment: lines[1]..lines[2] 30 3rd segment: lines[2]..lines[3] 33 SkPoint lines[kMaxPoints]);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
keyword.py | 64 lines = [] 69 lines.append(" '" + match.group(1) + "',\n") 71 lines.sort() 78 # insert the lines of keywords 82 format[start:end] = lines
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
keyword.py | 64 lines = [] 69 lines.append(" '" + match.group(1) + "',\n") 71 lines.sort() 78 # insert the lines of keywords 82 format[start:end] = lines
|
/build/tools/ |
product_debug.py | 35 lines = text.split() 36 lines.sort() 37 return "\n".join(lines) 39 def parse_variables(lines): 40 return [split_line(line) for line in lines if line.strip()] 79 lines = sys.stdin.readlines() 80 variables = parse_variables(lines)
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
FASerializer.java | 86 List lines = new ArrayList(); local 88 walkSerializingFA(lines, s); 93 lines.add(s0+"\n"); 96 // sort lines to normalize; makes states come out ordered 98 Collections.sort(lines); 99 for (int i = 0; i < lines.size(); i++) { 100 String line = (String) lines.get(i); 135 protected void walkSerializingFA(List lines, State s) { 188 lines.add(buf.toString()); 191 walkSerializingFA(lines, edge.target) [all...] |
/external/chromium/chrome/browser/chromeos/ |
version_loader.cc | 91 // The file contains lines such as: 94 // Split the lines and look for the one that starts with prefix. The version 96 std::vector<std::string> lines; local 97 base::SplitString(contents, '\n', &lines); 98 for (size_t i = 0; i < lines.size(); ++i) { 99 if (StartsWithASCII(lines[i], prefix, false)) { 100 std::string version = lines[i].substr(std::string(prefix).size()); 114 // The file contains lines such as: 122 std::vector<std::string> lines; local 123 base::SplitString(contents, '\n', &lines); [all...] |