/external/libvncserver/utils/ |
git2cl.pl | 94 my @lines = split /\n/, $text; 96 $lines[0] =~ s/^$indent1\s+/$indent1/; 98 for @lines[1..$#lines]; 99 my $newtext = join "\n", @lines; 107 my @lines = split (/\n/, $files_list); 108 my $last_line = pop (@lines); 128 my @lines = split (/\n/, $text); 129 while (@lines) # Don't use `foreach' here, it won't work. 131 my $this_line = shift (@lines); [all...] |
/external/protobuf/gtest/scripts/ |
pump.py | 164 def StartsWith(lines, pos, string): 165 """Returns True iff the given position in lines starts with 'string'.""" 167 return lines[pos.line][pos.column:].startswith(string) 175 # We found regex in lines 187 def FindFirst(lines, token_table, cursor): 188 """Finds the first occurrence of any string in strings in lines.""" 192 for line in lines[start.line:]: 203 return MakeToken(lines, found_start, found_end, token_type) 205 # We failed to find str in lines 209 def SubString(lines, start, end) [all...] |
/external/valgrind/auxprogs/ |
nightly-build-summary | 84 my (@lines) = @_; 86 foreach my $line (@lines) { 99 my (@lines, $msgno) = @_; 102 $n = scalar @lines; 108 last if ($lines[$i] =~ /^valgrind revision:/); 115 $line = $lines[$i]; 131 $line = $lines[$i]; 145 $line = $lines[$i]; 156 $line = $lines[$i]; 164 $line = $lines[$i] [all...] |
/art/compiler/ |
cfi_test.h | 40 std::vector<std::string> lines; local 56 ReformatCfi(Objdump(false, "-W"), &lines); local 63 ReformatAsm(&stream, &lines); 65 std::stable_sort(lines.begin(), lines.end(), CompareByAddress); 66 for (const std::string& line : lines) { 80 // Spit to lines and remove raw instruction bytes. 98 // Find interesting parts of objdump output and prefix the lines with address. 99 static void ReformatCfi(const std::vector<std::string>& lines, 102 for (const std::string& line : lines) { [all...] |
/development/scripts/ |
stack | 69 lines = f.readlines() 72 stack_core.ConvertTrace(lines)
|
/external/clang/tools/clang-format/ |
clang-format.py | 46 lines = '%s:%s' % (vim.current.range.start + 1, vim.current.range.end + 1) 62 command = [binary, '-lines', lines, '-style', style, '-cursor', str(cursor)] 80 lines = stdout.split('\n') 81 output = json.loads(lines[0]) 82 lines = lines[1:] 83 sequence = difflib.SequenceMatcher(None, vim.current.buffer, lines) 86 vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
asciiTable.py | 21 lines = strjoin(content).replace("\r", "\n").split("\n") 22 self.data = tobytes("\r".join(lines[1:-1]))
|
/external/icu/icu4c/source/test/perf/dicttrieperf/ |
dicttrieperf.cpp | 50 // Skip comment lines (start with a character below 'A'). 51 if(lines[i].name[0]>=0x41) { 54 int32_t len=lines[i].len; 56 while(len>0 && ((c=lines[i].name[len-1])==0xa || c==0xd)) { 59 lines[i].len=len; 70 const ULine *getCachedLines() const { return lines; } 72 int32_t numTextLines; // excluding comment lines 408 const ULine *lines=perf.getCachedLines(); local 411 // Skip comment lines (start with a character below 'A'). 412 if(lines[i].name[0]<0x41) 441 const ULine *lines=perf.getCachedLines(); local 465 const ULine *lines=perf.getCachedLines(); local 511 const ULine *lines=perf.getCachedLines(); local 590 const ULine *lines=perf.getCachedLines(); local 617 const ULine *lines=perf.getCachedLines(); local [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
HttpPutRequestTest.java | 37 List<String> lines = readLinesFromFile(reader); local 38 assertLinesOfText(expectedInputToServeMethodViaFile, lines);
|
/external/skia/tests/ |
PathOpsCubicIntersectionTestData.h | 14 extern const SkDCubic lines[];
|
/external/valgrind/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 ]
|
/external/vixl/tools/ |
util.py | 50 lines = text.split('\n') 51 last = lines[-1].split('\r')
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
XmlEditor.java | 70 ArrayList<String> lines = new ArrayList<>(); local 71 lines.addAll(FileUtils.readLines(f, "utf-8")); 74 replace(lines, toPosition(it.getStart()), toEndPosition(it.getStop()), ""); 88 recurseReplace(layoutNode, lines, noTag, newTag, 0); 93 replace(lines, rootStartTag, rootEndTag, ""); 96 ImmutablePair<Position, Position> endLayoutPositions = findTerminalPositions(root, lines); 97 replace(lines, endLayoutPositions.left, endLayoutPositions.right, ""); 139 fixPosition(lines, endTagPosition); 140 String line = lines.get(endTagPosition.line); 143 lines.set(endTagPosition.line, newLine) [all...] |
/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/deqp/scripts/khr_util/ |
format.py | 47 def indentLines (lines): 51 lineColumns = [line.split("\t") for line in lines if line is not None] 73 def writeLines (filename, lines): 75 for line in lines:
|
/external/lldb/test/lang/c/blocks/ |
TestBlocks.py | 12 lines = [] variable in class:AnonymousTestCase 30 self.lines.append(line_number('main.c', '// Set breakpoint 0 here.')) 31 self.lines.append(line_number('main.c', '// Set breakpoint 1 here.')) 40 for line in self.lines:
|
/external/toybox/toys/posix/ |
sort.c | 1 /* sort.c - put input lines into order 15 Sort all lines of text from input files (or stdin) to stdout. 18 -u unique lines only 69 char **lines; 286 if (TT.lines && compare_keys((void *)&TT.lines, &line)>j) 288 free(TT.lines); 289 TT.lines = (char **)line; 292 TT.lines = xrealloc(TT.lines, sizeof(char *)*(TT.linecount+64)) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
NgramContextUtils.java | 62 final String[] lines = NEWLINE_REGEX.split(prev); 63 if (lines.length == 0) { 66 final String[] w = SPACE_REGEX.split(lines[lines.length - 1]);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Method/ |
LineTableTest.java | 65 int lines = reply.getNextValueAsInt(); local 66 logWriter.println("lines = "+lines); 68 for (int j = 0; j < lines; j++) {
|
/external/chromium-trace/trace-viewer/tracing/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/lldb/test/lang/objc/foundation/ |
TestObjCMethods2.py | 94 self.lines = [] 95 self.lines.append(line_number('main.m', '// Break here for selector: tests')) 96 self.lines.append(line_number('main.m', '// Break here for NSArray tests')) 97 self.lines.append(line_number('main.m', '// Break here for NSString tests')) 98 self.lines.append(line_number('main.m', '// Break here for description test')) 99 self.lines.append(line_number('main.m', '// Set break point at this line')) 107 for line in self.lines: 143 line = self.lines[1] 169 line = self.lines[2] 195 line = self.lines[4 [all...] |