Searched refs:lines (Results 1 - 25 of 337) sorted by relevance

1234567891011>>

/external/openssh/regress/
H A Dyes-head.sh7 lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | _POSIX2_VERSION=199209 head -2000"' | (sleep 3 ; wc -l)`
10 lines = 0;
12 if [ $lines -ne 2000 ]; then
13 fail "yes|head returns $lines lines instead of 2000"
/external/webkit/Tools/Scripts/webkitpy/style/checkers/
H A Dcommon.py43 def check(self, lines):
44 """Check for and strip trailing carriage returns from lines."""
45 for line_number in range(len(lines)):
46 if not lines[line_number].endswith("\r"):
55 lines[line_number] = lines[line_number].rstrip("\r")
57 return lines
68 def check(self, lines):
70 for line_number, line in enumerate(lines):
H A Dtext.py36 """Processes text lines for checking style."""
43 def check(self, lines):
44 self._tab_checker.check(lines)
48 def process_file_data(filename, lines, error):
50 checker.check(lines)
/external/webkit/Tools/Scripts/webkitpy/common/checkout/
H A Ddiff_parser_unittest.py45 unsigned lines : 1; // EBoxLines
95 self.assertEquals(7, len(diff.lines))
96 # The first two unchaged lines.
97 self.assertEquals((47, 47), diff.lines[0][0:2])
98 self.assertEquals('', diff.lines[0][2])
99 self.assertEquals((48, 48), diff.lines[1][0:2])
100 self.assertEquals(' unsigned align : 3; // EBoxAlignment', diff.lines[1][2])
102 self.assertEquals((50, 0), diff.lines[3][0:2])
103 self.assertEquals(' unsigned orient: 1; // EBoxOrient', diff.lines[3][2])
109 self.assertEquals(7 + 7 + 9, len(diff.lines))
[all...]
/external/chromium/net/ftp/
H A Dftp_directory_listing_parser_vms_unittest.cc54 std::vector<string16> lines(GetSingleLineTestCase(good_cases[i].input));
57 lines.insert(lines.begin(),
61 lines.insert(lines.end(),
65 EXPECT_TRUE(ParseFtpDirectoryListingVms(lines,
108 std::vector<string16> lines(GetSingleLineTestCase(bad_cases[i]));
111 lines.insert(lines.begin(),
115 lines
[all...]
H A Dftp_directory_listing_parser_netware_unittest.cc32 std::vector<string16> lines(GetSingleLineTestCase(good_cases[i].input));
35 lines.insert(lines.begin(), ASCIIToUTF16("total 1"));
38 EXPECT_TRUE(ParseFtpDirectoryListingNetware(lines,
59 std::vector<string16> lines(GetSingleLineTestCase(bad_cases[i]));
62 lines.insert(lines.begin(), ASCIIToUTF16("total 1"));
65 EXPECT_FALSE(ParseFtpDirectoryListingNetware(lines,
H A Dftp_directory_listing_parser_unittest.cc99 std::vector<std::string> lines; local
102 lines.push_back(tokenizer.token());
104 ASSERT_EQ(8 * entries.size(), lines.size());
106 for (size_t i = 0; i < lines.size() / 8; i++) {
107 std::string type(lines[8 * i]);
108 std::string name(lines[8 * i + 1]);
110 base::StringToInt64(lines[8 * i + 2], &size);
115 base::StringToInt(lines[8 * i + 3], &year);
116 base::StringToInt(lines[8 * i + 4], &month);
117 base::StringToInt(lines[
[all...]
H A Dftp_directory_listing_parser_vms.h19 const std::vector<string16>& lines,
H A Dftp_directory_listing_parser_windows.h19 const std::vector<string16>& lines,
/external/elfutils/libdw/
H A Ddwarf_onesrcline.c1 /* Return one of the sources lines of a CU.
59 dwarf_onesrcline (Dwarf_Lines *lines, size_t idx) argument
61 if (lines == NULL)
64 if (idx >= lines->nlines)
70 return &lines->info[idx];
H A Ddwarf_getsrc_die.c62 Dwarf_Lines *lines; local
65 if (INTUSE(dwarf_getsrclines) (cudie, &lines, &nlines) != 0)
68 /* The lines are sorted by address, so we can use binary search. */
73 if (addr < lines->info[idx].addr)
75 else if (addr > lines->info[idx].addr || lines->info[idx].end_sequence)
78 return &lines->info[idx];
82 assert (lines->info[nlines - 1].end_sequence);
89 if (u > 0 && u < nlines && addr > lines->info[u - 1].addr)
91 while (lines
[all...]
H A Ddwarf_decl_file.c79 if (cu->lines == NULL)
81 Dwarf_Lines *lines; local
86 (void) INTUSE(dwarf_getsrclines) (&CUDIE (cu), &lines, &nlines); local
87 assert (cu->lines != NULL);
90 if (cu->lines == (void *) -1l)
/external/elfutils/libdwfl/
H A Dlines.c57 if (cu->lines == NULL)
59 Dwarf_Lines *lines; local
61 if (INTUSE(dwarf_getsrclines) (&cu->die, &lines, &nlines) != 0)
64 cu->lines = malloc (offsetof (struct Dwfl_Lines, idx[nlines]));
65 if (cu->lines == NULL)
67 cu->lines->cu = cu;
69 cu->lines->idx[i].idx = i;
H A Ddwfl_module_getsrc.c69 /* The lines are sorted by address, so we can use binary search. */
70 size_t l = 0, u = cu->die.cu->lines->nlines;
74 if (addr < cu->die.cu->lines->info[idx].addr)
76 else if (addr > cu->die.cu->lines->info[idx].addr)
79 return &cu->lines->idx[idx];
82 if (cu->die.cu->lines->nlines > 0)
83 assert (cu->die.cu->lines->info
84 [cu->die.cu->lines->nlines - 1].end_sequence);
89 if (u > 0 && u < cu->die.cu->lines->nlines
90 && addr > cu->die.cu->lines
[all...]
H A Ddwfl_onesrcline.c1 /* Return one of the sources lines of a CU.
60 if (cu->lines == NULL)
70 if (idx >= cu->die.cu->lines->nlines)
76 return &cu->lines->idx[idx];
H A Ddwfl_getsrclines.c57 if (cu->lines == NULL)
67 *nlines = cu->die.cu->lines->nlines;
/external/llvm/utils/lint/
H A Dgeneric_lint.py12 def RunOnFile(self, filename, lines):
13 common_lint.VerifyLineLength(filename, lines,
15 common_lint.VerifyTrailingWhitespace(filename, lines)
H A Dcommon_lint.py7 def VerifyLineLength(filename, lines, max_length):
8 """Checks to make sure the file has no lines with lines exceeding the length
13 lines: contents of the file as string array
22 for line in lines:
30 def VerifyTabs(filename, lines):
35 lines: contents of the file as string array
44 for line in lines:
51 def VerifyTrailingWhitespace(filename, lines):
52 """Checks to make sure the file has no lines wit
[all...]
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/
H A Dtest_results_uploader.py58 lines = []
61 lines.append('--' + BOUNDARY)
62 lines.append('Content-Disposition: form-data; name="%s"' % key)
63 lines.append('')
66 lines.append(value)
69 lines.append('--' + BOUNDARY)
70 lines.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename))
71 lines.append('Content-Type: %s' % get_mime_type(filename))
72 lines.append('')
75 lines
[all...]
/external/v8/tools/
H A Djs2c.py39 def ToCAsciiArray(lines):
41 for chr in lines:
48 def ToCArray(lines):
50 for chr in lines:
55 def RemoveCommentsAndTrailingWhitespace(lines):
56 lines = re.sub(r'//.*\n', '\n', lines) # end-of-line comments
57 lines = re.sub(re.compile(r'/\*.*?\*/', re.DOTALL), '', lines) # comments.
58 lines
[all...]
/external/v8/test/mjsunit/
H A Ddebug-sourceslice.js29 // Source lines for test.
30 var lines = [ 'function a() { b(); };\n', variable
42 // Build source by putting all lines together
44 for (var i = 0; i < lines.length; i++) {
45 source += lines[i];
61 for (var slice_size = 0; slice_size < lines.length; slice_size++) {
62 for (var n = 0; n < lines.length - slice_size; n++) {
70 expected += lines[n + i];
/external/webkit/Source/WebCore/rendering/style/
H A DStyleFlexibleBoxData.cpp36 , lines(RenderStyle::initialBoxLines())
48 , lines(o.lines)
56 pack == o.pack && orient == o.orient && lines == o.lines;
/external/webkit/Tools/iExploder/iexploder-1.7.2/src/
H A Dscanner.rb49 lines = []
56 lines << (offset + line_offset)
58 if lines[-1] >= total_lines - 1
91 return [width, new_offsets, lines]
121 lines = []
125 puts "Find lines: #{find_lines.join(',')}"
126 while not find_lines.all? { |x| lines.include?(x) }
127 (width, offset, lines) = seq_combo_creator(line_count, width, offset)
130 puts "Sequential found #{find_lines.join(',')} in #{attempts} attempts with #{lines.length} total lines
[all...]
/external/chromium/chrome/browser/importer/
H A Dnss_decryptor.cc117 // Splits the file content into lines.
118 std::vector<std::string> lines; local
119 base::SplitString(content, '\n', &lines);
122 if (lines.empty())
125 if (lines[0] == "#2c")
127 else if (lines[0] == "#2d")
129 else if (lines[0] == "#2e")
142 for (i = 1; i < lines.size() && lines[i].compare(".") != 0; ++i) {
144 form.origin = GURL(lines[
[all...]
/external/chromium/testing/gmock/scripts/generator/cpp/
H A Dgmock_class.py107 lines = []
117 lines.extend(['namespace %s {' % n for n in class_node.namespace]) # }
118 lines.append('')
121 lines.append('class Mock%s : public %s {' % (class_name, class_name)) # }
122 lines.append('%spublic:' % (' ' * (_INDENT // 2)))
125 _GenerateMethods(lines, source, class_node)
128 if lines:
130 if len(lines) == 2:
131 del lines[-1]
134 lines
[all...]

Completed in 407 milliseconds

1234567891011>>