/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/java/ |
java_doc_comment.cc | 120 vector<string> lines; local 121 SplitStringAllowEmpty(comments, "\n", &lines); 122 while (!lines.empty() && lines.back().empty()) { 123 lines.pop_back(); 129 for (int i = 0; i < lines.size(); i++) { 130 // Most lines should start with a space. Watch out for lines that start 133 if (!lines[i].empty() && lines[i][0] == '/') [all...] |
/external/harfbuzz_ng/test/shaping/ |
hb_test_tools.py | 76 def colorize_lines (self, lines): 77 lines = (l if l else '' for l in lines) 78 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines] 106 lines = [None, None] 112 if lines[i]: 114 for line in self.colorize_lines (lines): 116 lines = [None, None] 117 lines[i] = l[1:] 118 if (all (lines)) [all...] |
/external/kernel-headers/original/asm-generic/ |
xor.h | 21 long lines = bytes / (sizeof (long)) / 8; local 34 } while (--lines > 0); 41 long lines = bytes / (sizeof (long)) / 8; local 55 } while (--lines > 0); 62 long lines = bytes / (sizeof (long)) / 8; local 77 } while (--lines > 0); 84 long lines = bytes / (sizeof (long)) / 8; local 100 } while (--lines > 0); 106 long lines = bytes / (sizeof (long)) / 8; local 136 } while (--lines > 0) 143 long lines = bytes \/ (sizeof (long)) \/ 8; local 189 long lines = bytes \/ (sizeof (long)) \/ 8; local 244 long lines = bytes \/ (sizeof (long)) \/ 8; local 307 long lines = bytes \/ (sizeof (long)) \/ 8 - 1; local 334 long lines = bytes \/ (sizeof (long)) \/ 8 - 1; local 364 long lines = bytes \/ (sizeof (long)) \/ 8 - 1; local 398 long lines = bytes \/ (sizeof (long)) \/ 8 - 1; local 434 long lines = bytes \/ (sizeof (long)) \/ 8 - 1; local 480 long lines = bytes \/ (sizeof (long)) \/ 8 - 1; local 537 long lines = bytes \/ (sizeof (long)) \/ 8 - 1; local 605 long lines = bytes \/ (sizeof (long)) \/ 8 - 1; local [all...] |
/external/chromium/net/ftp/ |
ftp_directory_listing_parser_windows.cc | 78 const std::vector<string16>& lines, 80 for (size_t i = 0; i < lines.size(); i++) { 81 if (lines[i].empty()) 85 base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns); 113 entry.name = FtpUtil::GetStringPartAfterColumns(lines[i], 3);
|
ftp_directory_listing_parser.cc | 45 std::vector<string16> lines; local 46 base::SplitString(text, '\n', &lines); 51 if (ParseFtpDirectoryListingLs(lines, current_time, entries)) { 57 if (ParseFtpDirectoryListingWindows(lines, entries)) { 63 if (ParseFtpDirectoryListingVms(lines, entries)) { 69 if (ParseFtpDirectoryListingNetware(lines, current_time, entries)) {
|
ftp_directory_listing_parser_ls.cc | 123 const std::vector<string16>& lines, 130 for (size_t i = 0; i < lines.size(); i++) { 131 if (lines[i].empty()) 135 base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns); 164 if (LooksLikePermissionDeniedError(lines[i])) 203 entry.name = FtpUtil::GetStringPartAfterColumns(lines[i],
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
test_expectations.py | 46 """Processes TestExpectations lines for validating the syntax.""" 77 def check_tabs(self, lines): 78 self._tab_checker.check(lines) 80 def check(self, lines): 81 expectations = '\n'.join(lines) 85 # Warn tabs in lines as well 86 self.check_tabs(lines)
|
/external/skia/tests/ |
PathOpsAngleTest.cpp | 42 static const SkPoint lines[][2] = { variable 67 {lines[0], 2, 0.574070336, 0.388888889, {0, 0}}, 69 {lines[0], 2, 0.574070336, 0.9140625, {0, 0}}, 74 {lines[0], 2, 0.574074074, 0.9140625, {4.44444466f,2.77777767f}}, 79 {lines[0], 2, 0.574074074, 0.388888889, {0, 0}}, 81 {lines[0], 2, 0.574074074, 0.9140625, {0, 0}}, 95 {lines[1], 2, 0.777777778, 1, {0, 0}}, 97 {lines[2], 2, 0, 1, {0, 0}}, 101 {lines[1], 2, 0.777777778, 1, {306,590}}, 103 {lines[2], 2, 0, 1, {306,617}} [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
inspect.py | 375 lines = string.split(string.expandtabs(doc), '\n') 379 # Find minimum indentation of any non-blank lines after first line. 381 for line in lines[1:]: 387 if lines: 388 lines[0] = lines[0].lstrip() 390 for i in range(1, len(lines)): lines[i] = lines[i][margin:] 391 # Remove any trailing or leading blank lines [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
inspect.py | 375 lines = string.split(string.expandtabs(doc), '\n') 379 # Find minimum indentation of any non-blank lines after first line. 381 for line in lines[1:]: 387 if lines: 388 lines[0] = lines[0].lstrip() 390 for i in range(1, len(lines)): lines[i] = lines[i][margin:] 391 # Remove any trailing or leading blank lines [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/ |
diff_parser.py | 78 def get_diff_converter(lines): 79 """Gets a converter function of diff lines. 82 lines: The lines of a diff file. 86 for i, line in enumerate(lines[:-1]): 88 if line[:3] == "+++" and lines[i + 1] == "---": 102 The field "lines" is a list which contains tuples in this format: 113 return [line[1] for line in self.lines if not line[0]] 117 self.lines = [] 120 self.lines.append((0, line_number, line) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
LineBufferTest.java | 49 bufferHelper("two lines\nbut no newline at end", 50 "two lines\n", "but no newline at end"); 54 "three\r", "lines\r", "no newline at end"); 84 final List<String> lines = Lists.newArrayList(); local 87 lines.add(line + end); 98 return lines; 104 List<String> lines = Lists.newArrayList(); local 107 lines.add(line); 110 return lines; 119 List<String> lines = Lists.newArrayList() local [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
Camera3IOStreamBase.cpp | 68 String8 lines; local 69 lines.appendFormat(" State: %d\n", mState); 70 lines.appendFormat(" Dims: %d x %d, format 0x%x\n", 73 lines.appendFormat(" Max size: %d\n", mMaxSize); 74 lines.appendFormat(" Usage: %d, max HAL buffers: %d\n", 76 lines.appendFormat(" Frames produced: %d, last timestamp: %lld ns\n", 78 lines.appendFormat(" Total buffers: %d, currently dequeued: %d\n", 80 write(fd, lines.string(), lines.size());
|
/external/emma/core/java12/com/vladium/emma/data/ |
MethodDescriptor.java | 137 final int [] lines = blockMap [bl]; local 138 if (lines != null) 140 final int lineCount = lines.length; 144 final int line = lines [l]; 158 final int [] lines = lineMap.keys (); local 159 for (int l = 0, lineCount = lines.length; l < lineCount; ++ l) 161 final int line = lines [l]; 203 final int [] lines = m_blockMap [bl]; local 204 for (int l = 0; l < lines.length; ++ l) 207 s.append (lines [l]) 213 final int [] lines = m_lineMap.keys (); local [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
FileSystemUtils.java | 225 List<String> lines = performCommand(cmdAttribs, Integer.MAX_VALUE);
local 227 // now iterate over the lines we just read and find the LAST
231 for (int i = lines.size() - 1; i >= 0; i--) {
232 String line = lines.get(i);
237 // all lines are blank
322 // perform the command, asking for up to 3 lines (header, interesting, overflow)
323 List<String> lines = performCommand(cmdAttribs, 3);
local 324 if (lines.size() < 2) {
328 "for path '" + path + "'- response was " + lines);
330 String line2 = lines.get(1); // the line we're interested in 397 List<String> lines = new ArrayList<String>(20); local [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
FormatParagraph.py | 46 # Reformat the comment lines - convert to text sans header. 47 lines = data.split("\n") 48 lines = map(lambda st, l=len(comment_header): st[l:], lines) 49 data = "\n".join(lines) 58 # lines, but whatever!) Can't think of a clean solution, 107 lines = data.split("\n") 109 n = len(lines) 110 while i < n and is_all_white(lines[i]): 114 indent1 = get_indent(lines[i] [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
FormatParagraph.py | 46 # Reformat the comment lines - convert to text sans header. 47 lines = data.split("\n") 48 lines = map(lambda st, l=len(comment_header): st[l:], lines) 49 data = "\n".join(lines) 58 # lines, but whatever!) Can't think of a clean solution, 107 lines = data.split("\n") 109 n = len(lines) 110 while i < n and is_all_white(lines[i]): 114 indent1 = get_indent(lines[i] [all...] |
/build/core/ |
checktree | 54 lines = fd.readlines() 62 if len(lines) >= 1: 63 lines = filter(filterit, lines) 64 if len(lines) >= 1: 65 return map(matchit, lines)
|
/external/chromium_org/base/debug/ |
proc_maps_linux.cc | 97 std::vector<std::string> lines; local 98 SplitString(input, '\n', &lines); 100 for (size_t i = 0; i < lines.size(); ++i) { 102 if (i == lines.size() - 1) { 103 if (!lines[i].empty()) 109 const char* line = lines[i].c_str();
|
/external/chromium_org/chrome/browser/media/ |
webrtc_log_uploader_unittest.cc | 31 // Verify expected number of lines. Since every line should end with '\n', 33 std::vector<std::string> lines; 34 base::SplitString(contents, '\n', &lines); 35 EXPECT_EQ(expected_lines + 1, static_cast<int>(lines.size())); 36 if (expected_lines + 1 != static_cast<int>(lines.size())) 38 EXPECT_TRUE(lines[expected_lines].empty()); 44 base::SplitString(lines[expected_lines - 1], ',', &line_parts);
|
/external/chromium_org/ui/message_center/views/ |
bounded_label_unittest.cc | 74 BoundedLabelTest& Label(string16 text, int lines) { 75 lines_ = lines; 93 #define TEST_WRAP(expected, text, width, lines) \ 95 Label(ToString(text), lines).GetWrappedText(ToPixels(width))) 97 #define TEST_LINES(expected, text, width, lines) \ 99 Label(ToString(text), lines).GetLinesForWidth(ToPixels(width))) 158 // Multiple spaces between words split across lines: Spaces should be removed 159 // even if lines are wide enough to include those spaces. Test cases for 175 // - Words are split when they are longer than lines 191 // Zero and negative width values should yield zero lines [all...] |
/external/dropbear/libtommath/ |
pretty.build | 21 my $lines = 0; 49 ++$lines while (<SRC>); 63 print "Compiled approximately $filesbuilt files and $lines lines of code.\n";
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_fileinput.py | 18 # Write lines (a list of lines) to temp file number i, and return the 20 def writeTmp(i, lines, mode='w'): # opening in text mode is the default 23 f.writelines(lines) 51 lines = list(fi) 53 self.assertEqual(len(lines), 31) 54 self.assertEqual(lines[4], 'Line 5 of file 1\n') 55 self.assertEqual(lines[30], 'Line 1 of file 4\n') 84 lines = list(fi) 85 self.assertEqual(len(lines), 33 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_fileinput.py | 18 # Write lines (a list of lines) to temp file number i, and return the 20 def writeTmp(i, lines, mode='w'): # opening in text mode is the default 23 f.writelines(lines) 51 lines = list(fi) 53 self.assertEqual(len(lines), 31) 54 self.assertEqual(lines[4], 'Line 5 of file 1\n') 55 self.assertEqual(lines[30], 'Line 1 of file 4\n') 84 lines = list(fi) 85 self.assertEqual(len(lines), 33 [all...] |
/external/chromium/testing/gtest/scripts/ |
pump.py | 163 def StartsWith(lines, pos, string): 164 """Returns True iff the given position in lines starts with 'string'.""" 166 return lines[pos.line][pos.column:].startswith(string) 174 # We found regex in lines 186 def FindFirst(lines, token_table, cursor): 187 """Finds the first occurrence of any string in strings in lines.""" 191 for line in lines[start.line:]: 202 return MakeToken(lines, found_start, found_end, token_type) 204 # We failed to find str in lines 208 def SubString(lines, start, end) [all...] |