/external/openssh/regress/ |
yes-head.sh | 7 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/chromium/net/ftp/ |
ftp_directory_listing_parser_vms_unittest.cc | 54 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.insert(lines.end() [all...] |
ftp_directory_listing_parser_netware_unittest.cc | 32 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,
|
ftp_directory_listing_parser_unittest.cc | 99 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[8 * i + 5], &day_of_month) [all...] |
ftp_directory_listing_parser_ls.h | 22 bool ParseFtpDirectoryListingLs(const std::vector<string16>& lines,
|
ftp_directory_listing_parser_netware.h | 23 const std::vector<string16>& lines,
|
/external/elfutils/libdw/ |
dwarf_onesrcline.c | 1 /* Return one of the sources lines of a CU. 59 dwarf_onesrcline (Dwarf_Lines *lines, size_t idx) 61 if (lines == NULL) 64 if (idx >= lines->nlines) 70 return &lines->info[idx];
|
dwarf_getsrc_die.c | 62 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->info[u - 1].end_sequence && u > 0 [all...] |
dwarf_decl_file.c | 79 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/ |
lines.c | 57 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;
|
dwfl_module_getsrc.c | 69 /* 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->info[u - 1].addr [all...] |
dwfl_onesrcline.c | 1 /* 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];
|
dwfl_getsrclines.c | 57 if (cu->lines == NULL) 67 *nlines = cu->die.cu->lines->nlines;
|
/external/webkit/Tools/Scripts/webkitpy/style/checkers/ |
common.py | 43 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):
|
text.py | 36 """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/ |
diff_parser_unittest.py | 45 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...] |
/packages/apps/Calendar/src/com/android/calendar/ |
ColorChipView.java | 116 float[] lines = new float[16]; local 118 lines [ptr++] = 0; 119 lines [ptr++] = top; 120 lines [ptr++] = right; 121 lines [ptr++] = top; 122 lines [ptr++] = 0; 123 lines [ptr++] = bottom - halfBorderWidth; 124 lines [ptr++] = right; 125 lines [ptr++] = bottom - halfBorderWidth; 126 lines [ptr++] = left [all...] |
/external/v8/tools/ |
js2c.py | 39 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 = re.sub(r'\s+\n+', '\n', lines) # trailing whitespac [all...] |
/external/llvm/utils/lint/ |
generic_lint.py | 12 def RunOnFile(self, filename, lines): 13 common_lint.VerifyLineLength(filename, lines, 15 common_lint.VerifyTrailingWhitespace(filename, lines)
|
common_lint.py | 7 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 with trailing whitespace [all...] |
/build/tools/ |
post_process_props.py | 40 def __init__(self, lines): 41 self.lines = [s[:-1] for s in lines] 45 for line in self.lines: 52 for i in range(0,len(self.lines)): 53 if self.lines[i].startswith(key): 54 self.lines[i] = key + value 56 self.lines.append(key + value) 59 f.write("\n".join(self.lines)) 65 lines = f.readlines( [all...] |
/external/webkit/Source/WebCore/rendering/style/ |
StyleFlexibleBoxData.cpp | 36 , lines(RenderStyle::initialBoxLines()) 48 , lines(o.lines) 56 pack == o.pack && orient == o.orient && lines == o.lines;
|
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/ |
test_results_uploader.py | 58 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.append(value [all...] |
/external/webkit/Tools/iExploder/iexploder-1.7.2/src/ |
scanner.rb | 39 # puts "Asked: Total Lines: #{total_lines} Line Count: #{width} Offsets: #{offsets.join(',')}" 49 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/ |
nss_decryptor.cc | 117 // 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[i]).ReplaceComponents(rep) [all...] |