/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
LoggingPrintStreamTest.java | 46 String[] lines = sout.toString().split("\\n"); local 47 assertEquals(Arrays.asList(lines), out.lines); 56 assertEquals(Arrays.asList("4" + o + "2"), out.lines); 65 assertEquals(Arrays.asList("4" + o, "2"), out.lines); 70 assertEquals(Arrays.asList("Name: Bob"), out.lines); 72 assertEquals(Arrays.asList("Name: Bob", "Employer: Google"), out.lines); 78 assertTrue(out.lines.isEmpty()); 80 assertEquals(Collections.singletonList("42"), out.lines); 86 assertEquals(Arrays.asList("4", "2"), out.lines); 182 final List<String> lines = new ArrayList<String>(); field in class:LoggingPrintStreamTest.TestPrintStream [all...] |
/external/elfutils/libdw/ |
dwarf_entry_breakpoints.c | 91 Dwarf_Lines *lines; local 93 if (INTUSE(dwarf_getsrclines) (&cudie, &lines, &nlines) < 0) 112 if (lines->info[idx].addr < low) 114 else if (lines->info[idx].addr > low) 116 else if (lines->info[idx].end_sequence) 127 for (size_t i = l; i < u && lines->info[i].addr < high; ++i) 128 if (lines->info[i].prologue_end 129 && add_bkpt (lines->info[i].addr) < 0) 132 while (++l < nlines && lines->info[l].addr < high) 133 if (!lines->info[l].end_sequence [all...] |
dwarf_getsrcfiles.c | 71 if (cu->lines == NULL) 73 Dwarf_Lines *lines; local 78 res = INTUSE(dwarf_getsrclines) (cudie, &lines, &nlines);
|
/external/chromium/net/ftp/ |
ftp_directory_listing_parser_netware.cc | 39 const std::vector<string16>& lines, 42 if (!lines.empty() && !StartsWith(lines[0], ASCIIToUTF16("total "), true)) 45 for (size_t i = 1U; i < lines.size(); i++) { 46 if (lines[i].empty()) 50 base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns);
|
ftp_ctrl_response_buffer_unittest.cc | 32 ASSERT_EQ(1U, response.lines.size()); 33 EXPECT_EQ("Status Text", response.lines[0]); 51 ASSERT_EQ(1U, response.lines.size()); 52 EXPECT_EQ("Status Text", response.lines[0]); 68 ASSERT_EQ(3U, response.lines.size()); 69 EXPECT_EQ("FirstLine", response.lines[0]); 70 EXPECT_EQ("SecondLine", response.lines[1]); 71 EXPECT_EQ("LastLine", response.lines[2]); 93 ASSERT_EQ(3U, response.lines.size()); 94 EXPECT_EQ("FirstLineContinued", response.lines[0]) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
text_unittest.py | 39 def assertNoError(self, lines): 40 """Asserts that the specified lines has no errors.""" 47 text_style.process_file_data('', lines, error_for_test) 48 self.assertFalse(self.had_error, '%s should not have any errors.' % lines) 50 def assertError(self, lines, expected_line_number): 51 """Asserts that the specified lines has an error.""" 60 text_style.process_file_data('', lines, error_for_test) 61 self.assertTrue(self.had_error, '%s should have an error [whitespace/tab].' % lines)
|
xcodeproj_unittest.py | 46 def assert_no_error(self, lines): 52 checker.check(lines) 54 def assert_error(self, lines, expected_message): 62 checker.check(lines) 63 self.assertTrue(self.had_error, '%s should have error: %s.' % (lines, expected_message))
|
xcodeproj.py | 31 """Processes Xcode project file lines for checking style.""" 50 def check(self, lines): 52 for line_index, line in enumerate(lines): 57 self.handle_style_error(len(lines),
|
/external/harfbuzz_ng/util/ |
view-cairo.hh | 45 lines = g_array_new (false, false, sizeof (helper_cairo_line_t)); 72 g_array_append_val (lines, l); 78 for (unsigned int i = 0; i < lines->len; i++) { 79 helper_cairo_line_t &line = g_array_index (lines, helper_cairo_line_t, i); 82 g_array_unref (lines); 95 GArray *lines; member in struct:view_cairo_t
|
/external/chromium_org/ui/message_center/views/ |
bounded_label.cc | 42 gfx::Size GetSizeForWidthAndLines(int width, int lines); 43 std::vector<string16> GetWrappedText(int width, int lines); 55 void SetCachedLines(int width, int lines); 92 int lines = GetCachedLines(width); local 93 if (lines == std::numeric_limits<int>::max()) { 95 lines = GetWrappedText(text_width, lines).size(); 96 SetCachedLines(width, lines); 98 return (limit < 0 || lines <= limit) ? lines : limit 172 int lines = owner_->GetLineLimit(); local 217 int lines = std::numeric_limits<int>::max(); local [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
linecache.py | 1 """Cache lines from files. 3 This is intended to read lines from modules imported -- hence if a filename 14 lines = getlines(filename, module_globals) 15 if 1 <= lineno <= len(lines): 16 return lines[lineno-1] 34 """Get the lines for a file from the cache. 56 size, mtime, lines, fullname = cache[filename] 69 """Update a cache entry and return its list of lines. 128 lines = fp.readlines() 131 if lines and not lines[-1].endswith('\n') [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
linecache.py | 1 """Cache lines from files. 3 This is intended to read lines from modules imported -- hence if a filename 14 lines = getlines(filename, module_globals) 15 if 1 <= lineno <= len(lines): 16 return lines[lineno-1] 34 """Get the lines for a file from the cache. 56 size, mtime, lines, fullname = cache[filename] 69 """Update a cache entry and return its list of lines. 128 lines = fp.readlines() 131 if lines and not lines[-1].endswith('\n') [all...] |
/external/llvm/utils/lint/ |
cpp_lint.py | 13 def VerifyIncludes(filename, lines): 19 lines: contents of the file as string array 34 for line in lines: 76 def RunOnFile(self, filename, lines): 78 lint.extend(VerifyIncludes(filename, lines)) 79 lint.extend(common_lint.VerifyLineLength(filename, lines, 81 lint.extend(common_lint.VerifyTabs(filename, lines)) 82 lint.extend(common_lint.VerifyTrailingWhitespace(filename, lines))
|
/external/chromium_org/net/ftp/ |
ftp_ctrl_response_buffer_unittest.cc | 36 ASSERT_EQ(1U, response.lines.size()); 37 EXPECT_EQ("Status Text", response.lines[0]); 55 ASSERT_EQ(1U, response.lines.size()); 56 EXPECT_EQ("Status Text", response.lines[0]); 72 ASSERT_EQ(3U, response.lines.size()); 73 EXPECT_EQ("FirstLine", response.lines[0]); 74 EXPECT_EQ("SecondLine", response.lines[1]); 75 EXPECT_EQ("LastLine", response.lines[2]); 97 ASSERT_EQ(3U, response.lines.size()); 98 EXPECT_EQ("FirstLineContinued", response.lines[0]) [all...] |
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/ |
adm_writer.py | 22 '''Utility class for building text with indented lines.''' 25 self.lines = [] 29 '''Appends a string with indentation and a linebreak to |self.lines|. 41 self.lines.append(self.indent + string) 43 self.lines.append('') 48 '''Appends the content of another |IndentedStringBuilder| to |self.lines|. 49 Indentation of the added lines will be the sum of |self.indent| and 53 other: The buffer from which lines are copied. 55 for line in other.lines: 59 '''Returns |self.lines| as text string.'' [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
DOMSyntaxHighlighter.js | 54 var lines = node.textContent.split("\n"); 78 for (var i = lines[0].length ? 0 : 1; i < lines.length; ++i) { 79 var line = lines[i]; 86 if (i < lines.length - 1)
|
/external/chromium_org/native_client_sdk/src/tools/tests/ |
fix_deps_test.py | 51 lines = contents.splitlines() 52 self.assertEqual(len(lines), 5) 53 self.assertTrue('foo.c:' in lines) 54 self.assertTrue('foo.h:' in lines) 55 self.assertTrue('bar.h:' in lines) 64 lines = contents.splitlines() 65 self.assertEqual(len(lines), 3) 66 self.assertEqual(lines[2], 'foo\\ bar.h:') 75 lines = contents.splitlines() 76 self.assertEqual(len(lines), 5 [all...] |
/external/chromium_org/tools/telemetry/telemetry/page/ |
block_page_measurement_results.py | 20 lines = ['name: %s' % 24 lines.append('%s (%s): %s' % 28 for line in lines:
|
/external/chromium_org/ui/base/l10n/ |
l10n_font_util.cc | 26 double lines = 0; local 27 base::StringToDouble(l10n_util::GetStringUTF8(row_resource_id), &lines); local 28 int height = static_cast<int>(font.GetHeight() * lines);
|
/build/tools/ |
compare_fileslist.py | 37 lines = f.readlines() 39 lines = map(string.split, lines) 40 lines = map(lambda (x,y): (y,int(x)), lines) 41 for fn,sz in lines:
|
/external/chromium_org/chrome/browser/resources/ |
test_presubmit.py | 52 lines = [ 64 for line in lines: 68 lines = [ 95 for line in lines: 113 lines = [ 117 for line in lines: 121 lines = [ 127 for line in lines: 147 lines = [ 153 for line in lines [all...] |
/external/chromium_org/content/renderer/media/ |
cache_util_unittest.cc | 36 std::vector<std::string> lines; local 37 Tokenize(test.headers, "\n", &lines); 38 for (size_t i = 0; i < lines.size(); ++i) { 39 size_t colon = lines[i].find(": "); 41 WebString::fromUTF8(lines[i].substr(0, colon)), 42 WebString::fromUTF8(lines[i].substr(colon + 2)));
|
/external/chromium_org/tools/gyp/tools/ |
pretty_gyp.py | 64 lines (lines that matche the double_*_brace re's above) before 67 These are used to split lines which have multiple braces on them, so 115 def prettyprint_input(lines): 120 for line in lines: 147 lines = split_double_braces(data) 150 prettyprint_input(lines)
|
/external/llvm/utils/ |
sort_includes.py | 3 """Script to sort the top-most block of #include lines. 15 """Sort the #include lines of a specific file.""" 25 lines = f.readlines() 34 for (i, l) in enumerate(lines): 72 lines = lines[:headers_begin] + header_lines + lines[headers_end + 1:] 76 f.writelines(lines)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
parse-malloc-history | 62 my @lines = (); 65 push(@lines, <FILE>); 72 for (my $i = 0; $i < @lines; $i++) { 73 my $line = $lines[$i]; 91 $line = $lines[$i]; 104 $line = $lines[++$i]; 106 while ($lines[$i+1] !~ /^(?:-|\d)/) { 112 $line = $lines[++$i];
|