/external/autotest/client/site_tests/touch_UpdateErrors/ |
touch_UpdateErrors.py | 48 lines, dates = [], [] 50 lines.append(entry[:entry.find(':')]) 53 start_line = lines[-1] 58 for i in xrange(len(lines)-1, -1, -1): 61 start_line = lines[i] 73 if start_line_index >= len(lines): 77 start_line = lines[start_line_index] 104 # Remove lines that match ignore_terms.
|
/frameworks/base/core/tests/coretests/src/android/util/ |
LocalLogTest.java | 33 String[] lines = { local 38 String[] want = lines; 39 testcase(new LocalLog(10), lines, want); 43 String[] lines = { local 49 testcase(new LocalLog(0), lines, want); 53 String[] lines = { local 69 testcase(new LocalLog(3), lines, want);
|
/system/media/audio_utils/include/audio_utils/ |
SimpleLog.h | 49 * \param maxLogLines the maximum number of log lines. 151 * \param lines maximum number of lines to output (0 disables). 155 std::string dumpToString(const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const 157 if (lines == 0) { 158 lines = mLog.size(); 165 // Note: this restricts the lines before checking the time constraint. 166 if (mLog.size() > lines) { 167 it += (mLog.size() - lines); 184 * \param lines maximum number of lines to output (0 disables) [all...] |
ErrorLog.h | 94 * \param lines maximum number of lines to output (0 disables). 98 std::string dumpToString(const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const 106 if (lines == 0) { 107 lines = SIZE_MAX; 111 if (mErrors == 0 || lines <= headerLines) { 115 lines = std::min(lines - headerLines, numberOfEntries); 118 for (offset = 0; offset < (ssize_t)lines; ++offset) { 146 * \param lines maximum number of lines to output (0 disables) [all...] |
/development/tools/bugreport/src/com/android/bugreport/stacks/ |
ProcessSnapshotParser.java | 20 import com.android.bugreport.util.Lines; 50 * Parse the given Lines until the beginning of the next process section, or until 53 public ProcessSnapshot parse(Lines<? extends Line> lines) { 71 while (lines.hasNext()) { 72 final Line line = lines.next(); 79 lines.rewind(); 83 lines.rewind(); 87 lines.rewind(); 102 while (lines.hasNext()) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/ |
bgenOutput.py | 65 format expansion contains embedded newlines. Exception: lines
67 C preprprocessor lines.
72 lines = text.split('\n')
73 for i in range(len(lines)):
74 if lines[i] and lines[i][0] != '#':
75 lines[i] = indent + lines[i]
76 text = '\n'.join(lines)
148 first nonblank line of the string will be subtracted from all lines. [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
FASerializer.java | 86 List lines = new ArrayList(); local 88 walkSerializingFA(lines, s); 93 lines.add(s0+"\n"); 96 // sort lines to normalize; makes states come out ordered 98 Collections.sort(lines); 99 for (int i = 0; i < lines.size(); i++) { 100 String line = (String) lines.get(i); 135 protected void walkSerializingFA(List lines, State s) { 188 lines.add(buf.toString()); 191 walkSerializingFA(lines, edge.target) [all...] |
/external/python/cpython2/Tools/bgen/bgen/ |
bgenOutput.py | 65 format expansion contains embedded newlines. Exception: lines 67 C preprprocessor lines. 72 lines = text.split('\n') 73 for i in range(len(lines)): 74 if lines[i] and lines[i][0] != '#': 75 lines[i] = indent + lines[i] 76 text = '\n'.join(lines) 148 first nonblank line of the string will be subtracted from all lines [all...] |
/external/python/cpython3/Lib/ |
linecache.py | 1 """Cache lines from Python source files. 3 This is intended to read lines from modules imported -- hence if a filename 16 lines = getlines(filename, module_globals) 17 if 1 <= lineno <= len(lines): 18 return lines[lineno-1] 26 # or a tuple (size, mtime, lines, fullname) once loaded. 38 """Get the lines for a Python source file from the cache. 70 size, mtime, lines, fullname = entry 83 """Update a cache entry and return its list of lines. 137 lines = fp.readlines( [all...] |
/external/python/cpython3/Lib/test/ |
mock_socket.py | 22 def __init__(self, lines): 23 self.lines = lines 25 result = self.lines.pop(0) + b'\r\n' 28 self.lines.insert(0, result[limit:-2]) 42 self.lines = [] 44 self.lines.append(_reply_data) 50 self.lines.append(line) 53 data = self.lines.pop(0) + b'\r\n' 91 handle = MockFile(self.lines) [all...] |
test_symbol.py | 18 lines = fp.readlines() 20 fp.writelines(lines[:lines.index("#--start constants--\n") + 1]) 21 fp.writelines(lines[lines.index("#--end constants--\n"):])
|
/external/syslinux/gpxe/src/util/ |
get-pci-ids | 89 my @lines; 111 # Push the vendor and device id to @lines if this line is not empty. 114 push @lines, "$vendor_id $device_id\n" if($vendor_id && $device_id); 125 @lines = sort @lines; 127 foreach(@lines) {
|
/prebuilts/go/darwin-x86/src/cmd/asm/internal/lex/ |
lex_test.go | 33 lines( 66 lines( 75 lines( 87 lines( 99 lines( 110 lines( 125 lines( 136 lines( 146 lines( 159 lines( 272 func lines(a ...string) string { func [all...] |
/prebuilts/go/linux-x86/src/cmd/asm/internal/lex/ |
lex_test.go | 33 lines( 66 lines( 75 lines( 87 lines( 99 lines( 110 lines( 125 lines( 136 lines( 146 lines( 159 lines( 272 func lines(a ...string) string { func [all...] |
/prebuilts/go/darwin-x86/src/go/token/ |
position_test.go | 43 lines []int 55 func linecol(lines []int, offs int) (int, int) { 57 for line, lineOffs := range lines { 63 return len(lines), offs - prevLineOffs + 1 66 func verifyPositions(t *testing.T, fset *FileSet, f *File, lines []int) { 73 line, col := linecol(lines, offs) 80 func makeTestSource(size int, lines []int) []byte { 82 for _, offs := range lines { 111 // add lines individually and verify all positions 112 for i, offset := range test.lines { [all...] |
/prebuilts/go/linux-x86/src/go/token/ |
position_test.go | 43 lines []int 55 func linecol(lines []int, offs int) (int, int) { 57 for line, lineOffs := range lines { 63 return len(lines), offs - prevLineOffs + 1 66 func verifyPositions(t *testing.T, fset *FileSet, f *File, lines []int) { 73 line, col := linecol(lines, offs) 80 func makeTestSource(size int, lines []int) []byte { 82 for _, offs := range lines { 111 // add lines individually and verify all positions 112 for i, offset := range test.lines { [all...] |
/development/tools/bugreport/src/com/android/bugreport/logcat/ |
LogcatParser.java | 20 import com.android.bugreport.util.Lines; 47 * Parse the logcat lines, returning a Logcat object. 49 public Logcat parse(Lines<? extends Line> lines) { 55 while (lines.hasNext()) { 56 final Line line = lines.next(); 67 result.lines.add(ll); 82 result.lines.add(ll);
|
/external/autotest/client/site_tests/video_ChromeRTCHWEncodeUsed/ |
video_ChromeRTCHWEncodeUsed.py | 64 lines = tab.EvaluateJavaScript( 66 lines = [line for line in lines if line.strip()] 68 logging.info(lines) 70 for line in lines:
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
IndentingAppendable.java | 43 Iterator<CharSequence> lines = lines(csq, start, end); local 44 while (lines.hasNext()) { 45 CharSequence line = lines.next(); 72 private static Iterator<CharSequence> lines( method in class:IndentingAppendable
|
/external/guava/guava/src/com/google/common/io/ |
CharSink.java | 106 * Writes the given lines of text to this sink with each line (including the last) terminated with 108 * {@code writeLines(lines, System.getProperty("line.separator"))}. 112 public void writeLines(Iterable<? extends CharSequence> lines) throws IOException { 113 writeLines(lines, System.getProperty("line.separator")); 117 * Writes the given lines of text to this sink with each line (including the last) terminated with 122 public void writeLines(Iterable<? extends CharSequence> lines, String lineSeparator) 124 checkNotNull(lines); 130 for (CharSequence line : lines) {
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/ |
Source.java | 53 private final List<String> lines = new ArrayList<String>(); field in class:Source 72 lines.add(l); 76 if (tags.put(tag, Integer.valueOf(lines.size())) != null) { 83 * Returns all lines of the source file as a list. 85 * @return all lines of the source file 88 return Collections.unmodifiableList(lines); 99 return lines.get(nr - 1);
|
/external/python/cpython3/Lib/test/test_email/ |
test_inversion.py | 17 lines = bstr.splitlines() 18 if not lines[0].strip(): 20 stripamt = len(lines[0]) - len(lines[0].lstrip()) 23 for x in lines])
|
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/ |
CrashCheckBase.java | 83 * Truncate the text to at most the specified number of lines, and append a marker at the end 90 String[] lines = text.split("\\r?\\n"); local 92 for (int i = 0; i < maxLines && i < lines.length; i++) { 93 ret.append(lines[i]); 96 if (lines.length > maxLines) { 98 ret.append(lines.length - maxLines); 99 ret.append(" more lines truncated ...\n");
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
AppVersionFetcher.java | 86 String[] lines = packageInfo.split("\\r?\\n"); local 87 if (lines.length > 1) { 88 CLog.i("There are two versions:\n%s\nThe first one is picked.", Arrays.toString(lines)); 90 Matcher matcher = pattern.matcher(lines[0]); 92 throw new IllegalStateException("Invalid app version string: " + lines[0]);
|
/external/tensorflow/tensorflow/python/debug/cli/ |
cli_shared_test.py | 125 self.assertTrue(run_start_intro.lines[1].endswith("run() call #12:")) 128 const_a_name_line = run_start_intro.lines[4] 132 feeds_line = run_start_intro.lines[7] 135 # Verify lines about possible commands and their font attributes. 136 self.assertEqual("run:", run_start_intro.lines[11][2:]) 147 self.assertEqual("run -t <T>:", run_start_intro.lines[15][2:]) 149 self.assertEqual("run -f <filter_name>:", run_start_intro.lines[17][2:]) 173 self.assertEqual(str(self.sparse_d), run_start_intro.lines[7].strip()) 182 self.assertEqual(str(self.sparse_d), run_start_intro.lines[4].strip()) 188 const_a_name_line = run_start_intro.lines[4 [all...] |