/external/chromium_org/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...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/ |
mock_code_generator.cc | 83 vector<string> lines; local 84 SplitStringUsing(content, "\n", &lines); 86 while (!lines.empty() && lines.back().empty()) { 87 lines.pop_back(); 89 for (int i = 0; i < lines.size(); i++) { 90 lines[i] += "\n"; 98 ASSERT_EQ(lines.size(), 3 + insertion_list.size() * 2); 101 lines[0]); local 103 EXPECT_EQ(kFirstInsertionPoint, lines[1 + insertion_list.size()]) 109 lines[1 + i]); local [all...] |
/external/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...] |
/external/protobuf/src/google/protobuf/compiler/ |
mock_code_generator.cc | 71 vector<string> lines; local 72 SplitStringUsing(content, "\n", &lines); 74 while (!lines.empty() && lines.back().empty()) { 75 lines.pop_back(); 77 for (int i = 0; i < lines.size(); i++) { 78 lines[i] += "\n"; 86 ASSERT_EQ(lines.size(), 3 + insertion_list.size() * 2); 88 lines[0]); local 90 EXPECT_EQ(kFirstInsertionPoint, lines[1 + insertion_list.size()]) 96 lines[1 + i]); local [all...] |
/development/scripts/ |
stack | 69 lines = f.readlines() 73 stack_core.ConvertTrace(lines)
|
/external/chromium_org/tools/checkdeps/ |
results.py | 78 lines = [] 79 lines.append('\nERROR in %s' % dependee_status.dependee_path) 81 lines.append(self.FormatViolation(violation, self.verbose)) 82 self.results.append('\n'.join(lines)) 86 lines = [] 88 lines.append(' For %s' % violation.rules) 89 lines.append( 92 return '\n'.join(lines)
|
/external/chromium_org/tools/deep_memory_profiler/visualizer/static/ |
graph-view_unittest.js | 31 var lines = GraphView.prototype.generateLines_(models); 32 lines.forEach(function(line) { 35 inspect(lines, 'lines generated by graph view:\n');
|
/external/icu4c/test/perf/dicttrieperf/ |
dicttrieperf.cpp | 51 // Skip comment lines (start with a character below 'A'). 52 if(lines[i].name[0]>=0x41) { 55 int32_t len=lines[i].len; 57 while(len>0 && ((c=lines[i].name[len-1])==0xa || c==0xd)) { 60 lines[i].len=len; 71 const ULine *getCachedLines() const { return lines; } 73 int32_t numTextLines; // excluding comment lines 409 const ULine *lines=perf.getCachedLines(); local 412 // Skip comment lines (start with a character below 'A'). 413 if(lines[i].name[0]<0x41) 442 const ULine *lines=perf.getCachedLines(); local 466 const ULine *lines=perf.getCachedLines(); local 512 const ULine *lines=perf.getCachedLines(); local 591 const ULine *lines=perf.getCachedLines(); local 618 const ULine *lines=perf.getCachedLines(); local [all...] |
/external/skia/tests/ |
PathOpsCubicIntersectionTestData.h | 14 extern const SkDCubic lines[];
|
/external/valgrind/main/nightly/conf/ |
cellbuzz-cross.conf | 20 while [ `qstat "${jobid}" 2>/dev/null | wc --lines` -gt 0 ]
|
cellbuzz-native.conf | 18 while [ `qstat "${jobid}" 2>/dev/null | wc --lines` -gt 0 ]
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_multifile.py | 54 lines = mf.readlines() 55 linecount += len(lines)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_multifile.py | 54 lines = mf.readlines() 55 linecount += len(lines)
|
/build/tools/ |
filter-product-graph.py | 36 lines = sys.stdin.readlines() 37 lines = [line.strip() for line in lines] 39 for line in lines:
|
parsedeps.py | 22 self.lines = {} 27 t = self.lines.get(tgt) 30 self.lines[tgt] = t 31 p = self.lines.get(prereq) 34 self.lines[prereq] = p 39 t = self.lines.get(tgt) 42 self.lines[tgt] = t 46 if self.lines.has_key(tgt): 47 return self.lines[tgt] 52 return self.lines.iteritems( [all...] |
/external/chromium/testing/gmock/scripts/generator/cpp/ |
gmock_class_test.py | 37 def StripLeadingWhitespace(self, lines): 38 """Strip leading whitespace in each line in 'lines'.""" 39 return '\n'.join([s.lstrip() for s in lines.split('\n')]) 41 def assertEqualIgnoreLeadingWhitespace(self, expected_lines, lines): 43 self.assertEqual(expected_lines, self.StripLeadingWhitespace(lines)) 49 """Convert C++ source to Google Mock output source lines.""" 163 lines = gmock_class._GenerateMocks(filename, cpp_source, ast_list, None) 164 return '\n'.join(lines)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/ |
filereader.py | 52 the files don't have any modified lines 71 """Read the file at a path, and return its lines. 86 # lines contain trailing "\r" characters if we are reading 96 lines = contents.split('\n') 97 return lines 124 lines = self._read_lines(file_path) 130 self._processor.process(lines, file_path, **kwargs) 148 """Count up files that contains only deleted lines. 150 Files which has no modified or newly-added lines don't need
|
/external/oprofile/ |
opev.py | 67 lines = [s.strip() for s in all_lines if s.strip()] # strip blanks 68 lines = [s for s in lines if not s.startswith('#')] # strip comments 69 eventlist = [parse_event(line,ovf) for line in lines]
|
/external/chromium/net/ftp/ |
ftp_directory_listing_parser_unittest.h | 35 std::vector<string16> lines; local 36 lines.push_back(UTF8ToUTF16(text)); 37 return lines;
|
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
requireprovidesorter_test.py | 38 """Tests that blank lines are omitted in sorted goog.require statements.""" 62 """Returns an array of lines based on the specified token stream.""" 63 lines = [] 68 lines.append(line) 71 return lines
|
/external/chromium_org/gpu/gles2_conform_support/ |
generate_gles2_conform_tests.py | 13 """Reads a file, removing blank lines and lines that start with #""" 17 lines = [] 21 lines.append(line) 22 return lines
|
/external/chromium_org/net/ftp/ |
ftp_directory_listing_parser_unittest.h | 34 std::vector<base::string16> lines; local 35 lines.push_back(UTF8ToUTF16(text)); 36 return lines;
|
ftp_directory_listing_parser_vms.cc | 197 const std::vector<base::string16>& lines, 209 for (size_t i = 0; i < lines.size(); i++) { 210 if (lines[i].empty()) 213 if (StartsWith(lines[i], ASCIIToUTF16("Total of "), true)) { 214 // After the "total" line, all following lines must be empty. 215 for (size_t j = i + 1; j < lines.size(); j++) 216 if (!lines[j].empty()) 227 if (LooksLikeVMSError(lines[i])) { 233 base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns); 237 if (i == lines.size() - 1 [all...] |
/external/chromium_org/third_party/closure_linter/closure_linter/ |
requireprovidesorter_test.py | 38 """Tests that blank lines are omitted in sorted goog.require statements.""" 62 """Returns an array of lines based on the specified token stream.""" 63 lines = [] 68 lines.append(line) 71 return lines
|
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/ |
inspector_console_unittest.py | 27 lines = [l for l in stream.getvalue().split('\n') if len(l)] 29 self.assertTrue(len(lines) >= 1) 30 for line in lines:
|