/libcore/luni/src/test/java/libcore/io/ |
StrictLineReaderTest.java | 40 String line = lineReader.readLine(); local 41 if (!refLine.equals(line)) { 42 fail("line (\""+line+"\") differs from expected (\""+refLine+"\")."); 45 fail("line reader threw EOFException too early."); 50 fail("line reader didn't throw the expected EOFException."); 67 "12 byte line\n18 byte line......\n" + 77 "line ending with CRLF\r\n" + 78 "this is a long line with embedded CR \r ending with CRLF and having more than " [all...] |
/ndk/sources/android/crazy_linker/src/ |
crazy_linker_line_reader.cpp | 43 // Eat previous line. 54 // Find the end of the current line in the current buffer. 55 const char* line = buff_ + line_start_; local 57 ::memchr(line, '\n', buff_size_ - line_start_)); 60 line_len_ = static_cast<size_t>(line_end + 1 - line); 61 LLOG("%s: LINE line_start=%d line_len=%d '%.*s'\n", 80 // If there is a last line that isn't terminated by a newline, and 82 // the line. 93 // Otherwise, ignore the last line. 132 const char* LineReader::line() const { return buff_ + line_start_; function in class:crazy::LineReader [all...] |
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
BugReportParser.java | 30 String line = null; local 31 while ((line = reader.readLine()) != null) { 35 if (line.startsWith(SECTION_HEADER) || (numLines > MAX_LINES)) { 38 sb.append(line); 41 } else if (line.startsWith(sectionWithHeader)) { 42 sb.append(line);
|
/system/core/adb/ |
adb_utils.cpp | 71 std::string line; local 73 android::base::StringAppendF(&line, "%02x", p[i]); 75 line.push_back(' '); 82 line.push_back(c); 85 DR("%s\n", line.c_str());
|
/system/core/init/ |
parser.h | 28 int line; member in struct:parse_state
|
/system/core/libbacktrace/ |
BacktraceMap.cpp | 48 bool BacktraceMap::ParseLine(const char* line, backtrace_map_t* map) { 59 if (sscanf(line, "%*21c %lx-%lx [%*13c] %3c/%*3c SM=%*3c %n", 66 if (sscanf(line, "%lx-%lx %4s %*x %*x:%*x %*d%n", 85 while (isspace(line[name_pos])) { 88 map->name = line+name_pos; 105 char line[1024]; local 120 while(fgets(line, sizeof(line), fp)) { 122 if (ParseLine(line, &map)) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
BidiTest.java | 787 Bidi line = bd.createLineBidi(2, 7); local 788 assertFalse(line.baseIsLeftToRight()); 789 assertEquals(1, line.getBaseLevel()); 790 assertEquals(5, line.getLength()); 791 assertEquals(2, line.getLevelAt(0)); 792 assertEquals(3, line.getLevelAt(1)); 793 assertEquals(3, line.getLevelAt(2)); 794 assertEquals(3, line.getLevelAt(3)); 795 assertEquals(2, line.getLevelAt(4)); 796 assertEquals(1, line.getLevelAt(1000)) 855 Bidi line = bd.createLineBidi(1, 4); local [all...] |
/libcore/luni/src/main/java/java/io/ |
DataInputStream.java | 113 StringBuilder line = new StringBuilder(80); // Typical line length local 119 if (line.length() == 0 && !foundTerminator) { 122 return line.toString(); 126 return line.toString(); 135 return line.toString(); 139 return line.toString(); 141 line.append((char) nextByte);
|
/art/compiler/dwarf/ |
dwarf_test.cc | 205 DW_CHECK("Line Number Statements"); 215 DW_CHECK_NEXT("Advance Line by 2 to 3"); 244 // DWARF has special one byte codes which advance PC and line at the same time. 249 int line = 1; local 253 DW_CHECK("Line Number Statements:"); 257 DW_CHECK("Line number Starting address"); 261 line += line_delta; 262 opcodes.AddRow(pc, line); 265 ASSERT_EQ(opcodes.CurrentLine(), line); 267 sprintf(expected, "%i 0x%x", line, pc) [all...] |
/bionic/tests/ |
utils.h | 52 char line[BUFSIZ]; local 53 while (fgets(line, sizeof(line), fp) != nullptr) { 58 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %4s %" SCNxPTR " %x:%x %lu %s",
|
/bootable/recovery/tools/ota/ |
check-lost+found.c | 127 char *saveptr, *line; local 129 for (line = strtok_r(dmesg, "\n", &saveptr); line != NULL; 130 line = strtok_r(NULL, "\n", &saveptr)) { 131 if (strstr(line, "yaffs: dev is")) in_yaffs = 1; 134 strstr(line, "yaffs") || 135 strstr(line, "mtd") || 136 strstr(line, "msm_nand")) { 137 fprintf(out, "%s\n", line); 140 if (strstr(line, "yaffs_read_super: isCheckpointed")) in_yaffs = 0 [all...] |
/bootable/recovery/updater/ |
updater.c | 148 char* line = strtok(state.errmsg, "\n"); local 149 while (line) { 150 fprintf(cmd_pipe, "ui_print %s\n", line); 151 line = strtok(NULL, "\n");
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoReadLogsPermissionTest.java | 56 String line; local 57 while ((line = reader.readLine()) != null) { 58 if (!line.startsWith("--------- beginning of ")) { 64 // Logcat returns only one line:
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
ClassicToken.cs | 47 int line; field in class:Antlr.Runtime.ClassicToken 61 line = oldToken.Line; 96 public int Line { 98 return line; 101 line = value; 171 return "[@" + TokenIndex + ",'" + txt + "',<" + type + ">" + channelStr + "," + line + ":" + CharPositionInLine + "]";
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
ClassicToken.cs | 49 int line; field in class:Antlr.Runtime.ClassicToken 65 line = oldToken.Line; 108 public int Line 112 return line; 116 line = value; 209 return "[@" + TokenIndex + ",'" + txt + "',<" + type + ">" + channelStr + "," + line + ":" + CharPositionInLine + "]";
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRCommonToken.h | 36 NSUInteger line; variable 121 @property (assign, getter = line, setter = setLine:) NSUInteger line; variable
|
ANTLRToken.h | 54 @property (assign) NSUInteger line; variable 69 // ANTLR v3 provides automatic line and position tracking. Subclasses do not need to 70 // override these, if they do not want to store line/pos tracking information 71 - (NSUInteger)line;
|
/external/bison/examples/calc++/ |
position.hh | 55 /* Line 36 of location.cc */ 56 #line 57 "../../../../examples/calc++/position.hh" 67 , line (l) 79 line = l; 83 /** \name Line and Column related manipulators 85 /// (line related) Advance to the COUNT next lines. 89 line += count; 101 /// Current line number. 102 unsigned int line; member in class:yy::position 141 return (pos1.line == pos2.lin [all...] |
/external/boringssl/src/crypto/err/ |
err_test.cc | 56 int peeked_line, line, peeked_flags, flags; local 61 uint32_t packed_error = ERR_get_error_line_data(&file, &line, &data, &flags); 72 line != 4 ||
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
PEMUtil.java | 53 String line; local 56 while ((line = readLine(in)) != null) 58 if (line.startsWith(_header1) || line.startsWith(_header2)) 64 while ((line = readLine(in)) != null) 66 if (line.startsWith(_footer1) || line.startsWith(_footer2)) 71 pemBuf.append(line);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
PEMUtil.java | 60 String line; local 63 while ((line = readLine(in)) != null) 65 if (line.startsWith(_header1) || line.startsWith(_header2)) 71 while ((line = readLine(in)) != null) 73 if (line.startsWith(_footer1) || line.startsWith(_footer2)) 78 pemBuf.append(line);
|
/external/clang/tools/libclang/ |
CXLoadedDiagnostic.h | 66 /// \brief Decode the CXSourceLocation into file, line, column, and offset. 69 unsigned *line, 75 unsigned line; member in struct:clang::CXLoadedDiagnostic::Location 79 Location() : line(0), column(0), offset(0) {}
|
/external/doclava/src/com/google/doclava/ |
SourcePositionInfo.java | 22 public SourcePositionInfo(String file, int line, int column) { 24 this.line = line; 30 this.line = that.line; 44 int line = that.line; local 49 line++; 53 return new SourcePositionInfo(that.file, line, 0); 60 int line = that.line - 1; // -1 because, well, it seems to wor local 101 public int line; field in class:SourcePositionInfo [all...] |
/external/elfutils/src/libdw/ |
dwarf_getsrc_file.c | 1 /* Find line information for given file/line/column triple. 67 /* Get the line number information for this file. */ 80 /* Search through all the line number records for a matching 81 file and line/column number. If any of the numbers is zero, 87 Dwarf_Line *line = &lines->info[cnt]; local 89 if (lastfile != line->file) 91 lastfile = line->file; 92 if (lastfile >= line->files->nfiles) 99 const char *fname2 = line->files->info[lastfile].name [all...] |
/external/elfutils/src/libdwfl/ |
dwfl_module_getsrc_file.c | 61 inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line) 63 return line->files->info[line->file].name; 65 inline Dwarf_Line *dwfl_line (const Dwfl_Line *line) 67 return &dwfl_linecu (line)->die.cu->lines->info[line->idx]; 69 inline const char *dwfl_line_file (const Dwfl_Line *line) 71 return INTUSE(dwarf_line_file) (dwfl_line (line)); 74 /* Search through all the line number records for a matching 75 file and line/column number. If any of the numbers is zero 81 Dwarf_Line *line = &cu->die.cu->lines->info[cnt]; local [all...] |