/ndk/sources/host-tools/sed-4.2.1/testsuite/ |
tst-pcre.c | 38 char *line = NULL; local 66 if ((len = getline (&line, &line_len, f)) <= 0 67 || strncmp (line, "# PCRE", 6) != 0) 71 free (line); 77 while ((len = getline (&line, &line_len, f)) > 0) 84 if (line[len - 1] == '\n') 85 line[--len] = '\0'; 87 if (line[0] == '#') 90 if (line[0] == '\0') 99 if (line[0] == '/' [all...] |
/system/core/fastbootd/ |
config.c | 61 static int config_parse_line(char *line) 67 c = strchr(line, '#'); 71 if (strspn(line, " \t") == strlen(line)) 74 c = strchr(line, '='); 78 key = line; 97 char *line = buffer; local 101 for (c = 1; line != NULL; c++) { 102 line = strtok_r(str, "\r\n", &saveptr); 103 if (line != NULL) [all...] |
/bionic/tests/ |
dlfcn_test.cpp | 157 char line[BUFSIZ]; local 160 while (fgets(line, sizeof(line), fp) != NULL) { 161 uintptr_t start = strtoul(line, 0, 16); 162 line[strlen(line) - 1] = '\0'; // Chomp the '\n'. 163 char* path = strchr(line, '/');
|
/bootable/recovery/tools/ota/ |
add-property-tag.c | 30 // Return nonzero if the tag should be added to this line. 31 int should_tag(const char *line, const char *propname) { 32 const char *prop = strstr(line, propname); 37 for (ptr = line; ptr < prop && isspace(*ptr); ++ptr) ; 38 if (ptr != prop) return 0; // Must be at the beginning of the line 44 // Remove existing tags from the line, return the following number (if any) 45 int remove_tag(char *line, const char *tag) { 46 char *pos = strstr(line, tag); 55 // Write line to output with the tag added, adding a number (if >0) 56 void write_tagged(FILE *out, const char *line, const char *tag, int number) 109 char line[4096]; local [all...] |
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
AccessPrivateDataTest.java | 110 String line; local 111 while ((line = qtaguidReader.readLine()) != null) { 112 String tokens[] = line.split(" ");
|
/cts/hostsidetests/monkey/src/com/android/cts/monkey/ |
SeedTest.java | 54 String line = sc.nextLine().trim(); local 55 if (line.startsWith(":Sending")) { 56 return line;
|
/cts/hostsidetests/sample/src/android/sample/cts/ |
SampleHostTest.java | 116 String line = in.nextLine(); local 117 if(line.startsWith("I/"+CLASS)) { 118 testString = line.split(":")[1].trim();
|
/cts/libs/vogar-expect/src/vogar/util/ |
Strings.java | 46 String line; local 47 while ((line = in.readLine()) != null) { 48 result.append(line); 63 String line; local 64 while ((line = in.readLine()) != null) { 65 list.add(line);
|
/cts/tests/tests/gesture/src/android/gesture/cts/ |
GestureStrokeTest.java | 59 * Test {@link GestureStroke#getPath()} when a line is provided. 69 * for a single line, where the given toPath bounds exceeds the expected path. 85 * Verifies method returns expected results for a single line, where the given toPath bounds 107 * Verifies method returns expected results for a single line. 110 GestureStroke line = mHelper.createLineGesture(); local 111 OrientedBoundingBox box = line.computeOrientedBoundingBox(); 120 * a simple straight line gesture 123 GestureStroke line = mHelper.createLineGesture(); local 124 mHelper.assertLineBoundingBox(line.boundingBox);
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
SourcePosition.java | 24 * line number and original bytecode address. 41 * {@code >= -1;} the line number, or {@code -1} if that 44 private final int line; field in class:SourcePosition 53 * @param line {@code >= -1;} original line number or {@code -1} if 56 public SourcePosition(CstUtf8 sourceFile, int address, int line) { 61 if (line < -1) { 62 throw new IllegalArgumentException("line < -1"); 67 this.line = line; [all...] |
/dalvik/dexgen/src/com/android/dexgen/util/ |
HexParser.java | 32 * corresponding to the text. The format is simple: Each line may 36 * is encountered, it and the rest of the line are ignored as a 57 String line; local 59 line = src.substring(at, poundAt); 61 line = src.substring(at, nlAt); 65 int colonAt = line.indexOf(':'); 69 int quoteAt = line.indexOf('\"'); 74 String atStr = line.substring(0, colonAt).trim(); 75 line = line.substring(colonAt + 1) [all...] |
/dalvik/dx/src/com/android/dx/dex/cf/ |
OptimizerOptions.java | 35 * specified on the command line 42 * command line 102 String line; local 104 while (null != (line = bfr.readLine())) { 105 result.add(line);
|
/dalvik/dx/src/com/android/dx/rop/code/ |
SourcePosition.java | 24 * line number and original bytecode address. 41 * {@code >= -1;} the line number, or {@code -1} if that 44 private final int line; field in class:SourcePosition 53 * @param line {@code >= -1;} original line number or {@code -1} if 56 public SourcePosition(CstString sourceFile, int address, int line) { 61 if (line < -1) { 62 throw new IllegalArgumentException("line < -1"); 67 this.line = line; [all...] |
/dalvik/dx/src/com/android/dx/util/ |
HexParser.java | 32 * corresponding to the text. The format is simple: Each line may 36 * is encountered, it and the rest of the line are ignored as a 57 String line; local 59 line = src.substring(at, poundAt); 61 line = src.substring(at, nlAt); 65 int colonAt = line.indexOf(':'); 69 int quoteAt = line.indexOf('\"'); 74 String atStr = line.substring(0, colonAt).trim(); 75 line = line.substring(colonAt + 1) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
ANTLRStringStream.cs | 56 /** <summary>line number 1..n within the input</summary> */ 57 int line = 1; field in class:Antlr.Runtime.ANTLRStringStream 59 /** <summary>The index of the character relative to the beginning of the line 0..n-1</summary> */ 67 * values line, charPositionInLine, and p that can change as you 122 public virtual int Line { 124 return line; 127 line = value; 147 line = 1; 158 System.out.println("newline char found on line: "+line [all...] |
CommonToken.cs | 41 int line; field in class:Antlr.Runtime.CommonToken 88 line = oldToken.Line; 133 public int Line { 135 return line; 138 line = value; 211 return "[@" + TokenIndex + "," + start + ":" + stop + "='" + txt + "',<" + type + ">" + channelStr + "," + line + ":" + CharPositionInLine + "]";
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
ANTLRStringStream.cs | 58 /** <summary>line number 1..n within the input</summary> */ 59 int line = 1; field in class:Antlr.Runtime.ANTLRStringStream 61 /** <summary>The index of the character relative to the beginning of the line 0..n-1</summary> */ 69 * values line, charPositionInLine, and p that can change as you 131 public virtual int Line 135 return line; 139 line = value; 163 line = 1; 177 System.out.println("newline char found on line: "+line [all...] |
CommonToken.cs | 43 int line; field in class:Antlr.Runtime.CommonToken 95 line = oldToken.Line; 146 public int Line 150 return line; 154 line = value; 250 return "[@" + TokenIndex + "," + start + ":" + stop + "='" + txt + "',<" + type + ">" + channelStr + "," + line + ":" + CharPositionInLine + "]";
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/ |
SlimStringStream.cs | 59 /** <summary>line number 1..n within the input</summary> */ 60 protected int line = 1; field in class:Antlr.Runtime.SlimStringStream 62 /** <summary>The index of the character relative to the beginning of the line 0..n-1</summary> */ 71 * values line, charPositionInLine, and p that can change as you 128 public int Line 132 return line; 136 line = value; 151 public int Line 183 line = 1; 199 System.out.println("newline char found on line: "+line [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
ClassicToken.java | 40 protected int line; field in class:ClassicToken 54 line = oldToken.getLine(); 74 public void setLine(int line) { 75 this.line = line; 87 return line; 139 return "[@"+getTokenIndex()+",'"+txt+"',<"+type+">"+channelStr+","+line+":"+getCharPositionInLine()+"]";
|
RecognitionException.java | 55 * knows its state (such as current input symbol and line info) that 58 * perhaps print an entire line of input not just a single token, for example. 83 /** Track the line at which the error occurred in case this is 85 * unexpected char doesn't carry the line info. 87 public int line; field in class:RecognitionException 92 * imaginary nodes w/o line/col info. We now search backwards looking 93 * for most recent token with line/col info, but notify getErrorHeader() 107 this.line = token.getLine(); 115 this.line = ((CharStream)input).getLine(); 131 // imaginary node; no line/pos info; scan backward [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
FASerializer.java | 100 String line = (String) lines.get(i); local 101 buf.append(line);
|
Message.java | 55 public int line = -1; field in class:Message 71 public void setLine(int line) { 72 this.line = line; 100 if (line != -1) { 101 locationST.add("line", line);
|
/external/bison/src/ |
location.c | 60 int line = cur->line; local 72 line += line < INT_MAX; 87 cur->line = line; 92 if (line == INT_MAX && loc->start.line != INT_MAX) 93 warn_at (*loc, _("line number overflow")); 108 if (0 <= loc.start.line) 147 size_t line; member in struct:caret_info [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_sock_util.c | 69 #define asrt(s) if(!(s)) BTIF_TRACE_ERROR3("## %s assert %s failed at line:%d ##",__FUNCTION__, #s, __LINE__) 188 char *line; local 195 line = line_buff; 196 *line++ = ' '; 197 *line++ = ' '; 198 *line++ = ' '; 199 *line++ = ' '; 200 *line++ = ' '; 201 *line++ = ' '; 204 byte2hex((const char*)&j, &line); [all...] |