Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 217) sorted by relevance

123456789

/frameworks/base/telephony/java/com/android/internal/telephony/
DATResponseParser.java26 private String line; field in ATResponseParser
33 ATResponseParser (String line) in ATResponseParser() argument
35 this.line = line; in ATResponseParser()
49 char c = line.charAt(tokStart); in nextBoolean()
67 char c = line.charAt(i); in nextInt()
86 return line.substring(tokStart, tokEnd); in nextString()
92 return next < line.length(); in hasMore()
98 int len = line.length(); in nextTok()
111 char c = line.charAt(next++); in nextTok()
120 c = line.charAt(next++); in nextTok()
[all …]
/frameworks/base/tools/aapt/
DSourcePos.cpp14 int line; member
20 ErrorPos(const String8& file, int line, const String8& error, bool fatal);
32 :line(-1), fatal(false) in ErrorPos()
38 line(that.line), in ErrorPos()
46 line(l), in ErrorPos()
61 if (this->line < rhs.line) return true; in operator <()
62 if (this->line == rhs.line) { in operator <()
73 && this->line == rhs.line in operator ==()
81 this->line = rhs.line; in operator =()
91 if (this->line >= 0) { in print()
[all …]
/frameworks/base/tools/localize/
DSourcePos.cpp17 int line; member
22 ErrorPos(const string& file, int line, const string& error);
39 line(that.line), in ErrorPos()
46 line(l), in ErrorPos()
60 if (this->line < rhs.line) return true; in operator <()
61 if (this->line == rhs.line) { in operator <()
72 && this->line == rhs.line in operator ==()
80 this->line = rhs.line; in operator =()
88 if (this->line >= 0) { in Print()
89 fprintf(to, "%s:%d: %s\n", this->file.c_str(), this->line, this->error.c_str()); in Print()
[all …]
/frameworks/base/core/jni/
Dandroid_os_Debug.cpp93 char line[1024]; in read_mapinfo() local
107 if(fgets(line, 1024, fp) == 0) return; in read_mapinfo()
115 len = strlen(line); in read_mapinfo()
117 line[--len] = 0; in read_mapinfo()
120 if (len > 18 && line[17] == '-') skip = true; in read_mapinfo()
122 start = strtoul(line, 0, 16); in read_mapinfo()
124 if (strstr(line, "[heap]")) { in read_mapinfo()
126 } else if (strstr(line, "/dalvik-LinearAlloc")) { in read_mapinfo()
128 } else if (strstr(line, "/mspace/dalvik-heap")) { in read_mapinfo()
130 } else if (strstr(line, "/dalvik-heap-bitmap/")) { in read_mapinfo()
[all …]
Dandroid_database_SQLiteDebug.cpp97 char line[1024]; in read_mapinfo() local
112 if(fgets(line, 1024, fp) == 0) return 0; in read_mapinfo()
114 len = strlen(line); in read_mapinfo()
116 line[--len] = 0; in read_mapinfo()
119 if (line[18] == '-') skip = 1; in read_mapinfo()
121 start = strtoul(line, 0, 16); in read_mapinfo()
123 if (len > 50 && !strncmp(line + 49, "/tmp/sqlite-heap", strlen("/tmp/sqlite-heap"))) { in read_mapinfo()
127 if (fgets(line, 1024, fp) == 0) return 0; in read_mapinfo()
128 if (sscanf(line, "Size: %d kB", &size) != 1) return 0; in read_mapinfo()
129 if (fgets(line, 1024, fp) == 0) return 0; in read_mapinfo()
[all …]
/frameworks/base/media/libstagefright/httplive/
DM3UParser.cpp130 AString line; in parse() local
132 line.setTo(&data[offset], offsetLF - offset - 1); in parse()
134 line.setTo(&data[offset], offsetLF - offset); in parse()
139 if (line.empty()) { in parse()
144 if (lineNo == 0 && line == "#EXTM3U") { in parse()
151 if (line.startsWith("#EXT-X-TARGETDURATION")) { in parse()
155 err = parseMetaData(line, &mMeta, "target-duration"); in parse()
156 } else if (line.startsWith("#EXT-X-MEDIA-SEQUENCE")) { in parse()
160 err = parseMetaData(line, &mMeta, "media-sequence"); in parse()
161 } else if (line.startsWith("#EXT-X-ENDLIST")) { in parse()
[all …]
/frameworks/base/media/libstagefright/codecs/aacenc/src/
Dquantize.c109 Word32 line; in quantizeLines() local
122 for (line=0; line<noOfLines; line++) { in quantizeLines()
126 mdctSpeL = mdctSpectrum[line]; in quantizeLines()
165 quaSpectrum[line] = qua ; in quantizeLines()
170 for (line=0; line<noOfLines; line++) { in quantizeLines()
174 mdctSpeL = mdctSpectrum[line]; in quantizeLines()
212 quaSpectrum[line] = qua ; in quantizeLines()
235 Word32 line; in iquantizeLines() local
240 for (line=0; line<noOfLines; line++) { in iquantizeLines()
242 if( quantSpectrum[line] != 0 ) { in iquantizeLines()
[all …]
Dgrp_data.c51 Word32 line; in groupShortData() local
65 for (line=(sfbOffset[sfb + 1] - 1); line>=sfbOffset[sfb]; line--) { in groupShortData()
67 if (mdctSpectrum[wnd*FRAME_LEN_SHORT+line] != 0) break; in groupShortData()
70 if (line >= sfbOffset[sfb]) break; in groupShortData()
172 for (line = lineOffset + sfbOffset[sfb]; line < lineOffset + sfbOffset[sfb+1]; line++) { in groupShortData()
173 tmpSpectrum[i] = mdctSpectrum[line]; in groupShortData()
/frameworks/base/core/java/android/text/
DSelection.java135 int line = layout.getLineForOffset(end); in moveUp() local
137 if (line > 0) { in moveUp()
140 if (layout.getParagraphDirection(line) == in moveUp()
141 layout.getParagraphDirection(line - 1)) { in moveUp()
143 move = layout.getOffsetForHorizontal(line - 1, h); in moveUp()
145 move = layout.getLineStart(line - 1); in moveUp()
176 int line = layout.getLineForOffset(end); in moveDown() local
178 if (line < layout.getLineCount() - 1) { in moveDown()
181 if (layout.getParagraphDirection(line) == in moveDown()
182 layout.getParagraphDirection(line + 1)) { in moveDown()
[all …]
DLayout.java462 public int getLineBounds(int line, Rect bounds) { in getLineBounds() argument
465 bounds.top = getLineTop(line); in getLineBounds()
467 bounds.bottom = getLineTop(line + 1); in getLineBounds()
469 return getLineBaseline(line); in getLineBounds()
478 public abstract int getLineTop(int line); in getLineTop() argument
483 public abstract int getLineDescent(int line); in getLineDescent() argument
490 public abstract int getLineStart(int line); in getLineStart() argument
497 public abstract int getParagraphDirection(int line); in getParagraphDirection() argument
504 public abstract boolean getLineContainsTab(int line); in getLineContainsTab() argument
513 public abstract Directions getLineDirections(int line); in getLineDirections() argument
[all …]
/frameworks/base/media/libstagefright/rtsp/
DASessionDescription.cpp65 AString line; in parse() local
69 line.setTo(desc, i, eolPos - i - 1); in parse()
71 line.setTo(desc, i, eolPos - i); in parse()
74 if (line.empty()) { in parse()
79 if (line.size() < 2 || line.c_str()[1] != '=') { in parse()
83 LOGI("%s", line.c_str()); in parse()
85 switch (line.c_str()[0]) { in parse()
88 if (strcmp(line.c_str(), "v=0")) { in parse()
99 ssize_t colonPos = line.find(":", 2); in parse()
101 key = line; in parse()
[all …]
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
DLineVerifierElem.java35 public LineVerifierElem addExpected(final String line) { in addExpected() argument
36 if (!TextUtils.isEmpty(line)) { in addExpected()
37 mExpectedLineList.add(line); in addExpected()
50 final String line = lineArray[i]; in verify() local
51 if (TextUtils.isEmpty(line)) { in verify()
55 if ("BEGIN:VCARD".equalsIgnoreCase(line)) { in verify()
62 } else if ("END:VCARD".equalsIgnoreCase(line)) { in verify()
71 "VERSION:4.0")).equalsIgnoreCase(line)) { in verify()
81 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify()
83 TestCase.fail("Property other than END came after END property: " + line); in verify()
[all …]
/frameworks/base/media/libstagefright/foundation/
Dhexdump.cpp37 AString line; in hexdump() local
42 line.append(tmp); in hexdump()
46 line.append(' '); in hexdump()
49 line.append(" "); in hexdump()
52 line.append(tmp); in hexdump()
56 line.append(' '); in hexdump()
64 line.append((char)data[offset + i]); in hexdump()
66 line.append('.'); in hexdump()
70 LOGI("%s", line.c_str()); in hexdump()
/frameworks/base/core/java/android/pim/vcard/
DVCardParserImpl_V21.java105 final String line = super.readLine(); in readLine() local
108 return line; in readLine()
117 final String line = super.readLine(); in peekLine() local
121 mNextLine = line; in peekLine()
274 String line; in getNonEmptyLine() local
276 line = getLine(); in getNonEmptyLine()
277 if (line == null) { in getNonEmptyLine()
279 } else if (line.trim().length() > 0) { in getNonEmptyLine()
280 return line; in getNonEmptyLine()
328 String line; in readBeginVCard() local
[all …]
DVCardParserImpl_V30.java78 String line; in getNonEmptyLine() local
81 line = mReader.readLine(); in getNonEmptyLine()
82 if (line == null) { in getNonEmptyLine()
91 } else if (line.length() == 0) { in getNonEmptyLine()
99 } else if (line.charAt(0) == ' ' || line.charAt(0) == '\t') { in getNonEmptyLine()
116 builder.append(line.substring(1)); in getNonEmptyLine()
121 builder.append(line.substring(1)); in getNonEmptyLine()
127 mPreviousLine = line; in getNonEmptyLine()
133 mPreviousLine = line; in getNonEmptyLine()
324 final String line = getLine(); in getBase64() local
[all …]
/frameworks/base/voip/java/android/net/sip/
DSimpleSessionDescription.java85 for (String line : lines) { in SimpleSessionDescription()
87 if (line.charAt(1) != '=') { in SimpleSessionDescription()
90 if (line.charAt(0) == 'm') { in SimpleSessionDescription()
91 String[] parts = line.substring(2).split(" ", 4); in SimpleSessionDescription()
101 fields.parse(line); in SimpleSessionDescription()
104 throw new IllegalArgumentException("Invalid SDP: " + line); in SimpleSessionDescription()
515 for (String line : mLines) { in write()
516 if (line.charAt(0) == type) { in write()
517 buffer.append(line).append("\r\n"); in write()
526 private void parse(String line) { in parse() argument
[all …]
/frameworks/base/opengl/libs/tools/
Dglentrygen26 while (my $line = <>) {
27 next if $line =~ /^\//;
28 next if $line =~ /^#/;
29 next if $line =~ /^\s*$/;
30 if ($line !~ /^GL_API(CALL)?\s+(.+)\s+GL_APIENTRY\s+([\w]+)\s*\(([^\)]+)\);/) {
Dglapigen26 while (my $line = <>) {
27 next if $line =~ /^\//;
28 next if $line =~ /^#/;
29 next if $line =~ /^\s*$/;
30 if ($line !~ /^GL_API(CALL)?\s+(.+)\s+GL_APIENTRY\s+([\w]+)\s*\(([^\)]+)\);/) {
/frameworks/base/media/libstagefright/
DHTTPStream.cpp331 status_t HTTPStream::receive_line(char *line, size_t size) { in receive_line() argument
356 line[saw_CR ? length - 1 : length] = '\0'; in receive_line()
363 line[length - 1] = '\0'; in receive_line()
373 line[length++] = c; in receive_line()
381 char line[2048]; in receive_header() local
382 status_t err = receive_line(line, sizeof(line)); in receive_header()
387 mHeaders.add(string(kStatusKey), string(line)); in receive_header()
389 char *spacePos = strchr(line, ' '); in receive_header()
406 memmove(line, status_start, status_end - status_start); in receive_header()
407 line[status_end - status_start] = '\0'; in receive_header()
[all …]
DNuHTTPDataSource.cpp284 char line[1024]; in internalRead() local
285 status_t err = mHTTP.receive_line(line, sizeof(line)); in internalRead()
291 LOGV("line = '%s'", line); in internalRead()
294 unsigned long n = strtoul(line, &end, 16); in internalRead()
296 if (end == line || (*end != ';' && *end != '\0')) { in internalRead()
297 LOGE("malformed HTTP chunk '%s'", line); in internalRead()
325 char line[1024]; in internalRead() local
326 status_t err = mHTTP.receive_line(line, sizeof(line)); in internalRead()
332 if (line[0] != '\0') { in internalRead()
433 String8 line; in MakeFullHeaders() local
[all …]
/frameworks/base/tools/preload/
DRecord.java79 Record(String line, int lineNum) { in Record() argument
80 char typeChar = line.charAt(0); in Record()
86 default: throw new AssertionError("Bad line: " + line); in Record()
92 line = line.replace(REPLACE_CLASSES[i], REPLACE_CLASSES[i+1]); in Record()
95 line = line.substring(1); in Record()
96 String[] parts = line.split(":"); in Record()
DCompile.java46 String line; in main() local
48 while ((line = in.readLine()) != null) { in main()
50 if (line.startsWith("I/PRELOAD")) { in main()
52 String clipped = line.substring(19); in main()
56 "Exception while recording line " + lineNumber + ": " + line, e); in main()
/frameworks/base/core/java/com/android/internal/util/
DHexDump.java32 byte[] line = new byte[16]; in dumpHexString()
46 if (line[j] > ' ' && line[j] < '~') in dumpHexString()
48 result.append(new String(line, j, 1)); in dumpHexString()
66 line[lineIndex++] = b; in dumpHexString()
80 if (line[i] > ' ' && line[i] < '~') in dumpHexString()
82 result.append(new String(line, i, 1)); in dumpHexString()
/frameworks/base/core/java/android/text/method/
DScrollingMovementMethod.java98 int line = layout.getLineForVertical(areatop); in up() local
99 int linetop = layout.getLineTop(line); in up()
104 line--; in up()
106 if (line >= 0) { in up()
108 widget.getScrollX(), layout.getLineTop(line)); in up()
125 int line = layout.getLineForVertical(areabot); in down() local
127 if (layout.getLineTop(line+1) < areabot + 1) { in down()
132 line++; in down()
135 if (line <= layout.getLineCount() - 1) { in down()
136 widget.scrollTo(widget.getScrollX(), layout.getLineTop(line+1) - in down()
[all …]
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java562 String line; in waitControllerLocked()
575 line = in.readLine(); in waitControllerLocked()
576 if (line == null) { in waitControllerLocked()
579 System.out.println("GDB: " + line); in waitControllerLocked()
658 String line; in run() local
660 while ((line = in.readLine()) != null) { in run()
662 if (line.length() <= 0) { in run()
664 } else if ("q".equals(line) || "quit".equals(line)) { in run()
668 if ("c".equals(line) || "continue".equals(line)) { in run()
670 } else if ("k".equals(line) || "kill".equals(line)) { in run()
[all …]

123456789