Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp170 AString line; in parse() local
172 line.setTo(&data[offset], offsetLF - offset - 1); in parse()
174 line.setTo(&data[offset], offsetLF - offset); in parse()
179 if (line.empty()) { in parse()
184 if (lineNo == 0 && line == "#EXTM3U") { in parse()
191 if (line.startsWith("#EXT-X-TARGETDURATION")) { in parse()
195 err = parseMetaData(line, &mMeta, "target-duration"); in parse()
196 } else if (line.startsWith("#EXT-X-MEDIA-SEQUENCE")) { in parse()
200 err = parseMetaData(line, &mMeta, "media-sequence"); in parse()
201 } else if (line.startsWith("#EXT-X-KEY")) { in parse()
[all …]
/frameworks/opt/telephony/src/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/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DVisualDiffUtils.java69 String line = ""; in generateExpectedResultLines() local
79 line = processDiff(diff, lineNums, lines, line, i, delSpan, isLastDiff); in generateExpectedResultLines()
80 if (line.equals("")) { in generateExpectedResultLines()
89 lineNums.add(line.equals("") ? DONT_PRINT_LINE_NUMBER : i++); in generateExpectedResultLines()
90 lines.add(line); in generateExpectedResultLines()
91 line = ""; in generateExpectedResultLines()
96 line = processDiff(diff, lineNums, lines, line, i, eqlSpan, isLastDiff); in generateExpectedResultLines()
97 if (line.equals("")) { in generateExpectedResultLines()
110 String line = ""; in generateActualResultLines() local
120 line = processDiff(diff, lineNums, lines, line, i, insSpan, isLastDiff); in generateActualResultLines()
[all …]
/frameworks/base/core/java/android/text/
DLayout.java472 private int getLineStartPos(int line, int left, int right) { in getLineStartPos() argument
475 Alignment align = getParagraphAlignment(line); in getLineStartPos()
476 int dir = getParagraphDirection(line); in getLineStartPos()
493 if (mSpannedText && getLineContainsTab(line)) { in getLineStartPos()
495 int start = getLineStart(line); in getLineStartPos()
504 int max = (int)getLineExtent(line, tabStops, false); in getLineStartPos()
613 public int getLineBounds(int line, Rect bounds) { in getLineBounds() argument
616 bounds.top = getLineTop(line); in getLineBounds()
618 bounds.bottom = getLineTop(line + 1); in getLineBounds()
620 return getLineBaseline(line); in getLineBounds()
[all …]
DSelection.java137 int line = layout.getLineForOffset(end); in moveUp() local
139 if (line > 0) { in moveUp()
142 if (layout.getParagraphDirection(line) == in moveUp()
143 layout.getParagraphDirection(line - 1)) { in moveUp()
145 move = layout.getOffsetForHorizontal(line - 1, h); in moveUp()
147 move = layout.getLineStart(line - 1); in moveUp()
178 int line = layout.getLineForOffset(end); in moveDown() local
180 if (line < layout.getLineCount() - 1) { in moveDown()
183 if (layout.getParagraphDirection(line) == in moveDown()
184 layout.getParagraphDirection(line + 1)) { in moveDown()
[all …]
DBoringLayout.java211 TextLine line = TextLine.obtain(); in init() local
212 line.set(paint, source, 0, source.length(), Layout.DIR_LEFT_TO_RIGHT, in init()
214 mMax = (int) FloatMath.ceil(line.metrics(null)); in init()
215 TextLine.recycle(line); in init()
305 TextLine line = TextLine.obtain(); in isBoring() local
306 line.set(paint, text, 0, length, Layout.DIR_LEFT_TO_RIGHT, in isBoring()
308 fm.width = (int) FloatMath.ceil(line.metrics(fm)); in isBoring()
309 TextLine.recycle(line); in isBoring()
328 public int getLineTop(int line) { in getLineTop() argument
329 if (line == 0) in getLineTop()
[all …]
/frameworks/av/media/libstagefright/wifi-display/
DParsedMessage.cpp104 AString line(&data[offset], lineEndOffset - offset); in parse() local
109 mDict.add(AString("_"), line); in parse()
120 if (line.c_str()[0] == ' ' || line.c_str()[0] == '\t') { in parse()
128 value.append(line); in parse()
135 ssize_t colonPos = line.find(":"); in parse()
137 AString key(line, 0, colonPos); in parse()
141 line.erase(0, colonPos + 1); in parse()
143 lastDictIndex = mDict.add(key, line); in parse()
172 AString line; in getRequestField() local
173 CHECK(findString("_", &line)); in getRequestField()
[all …]
/frameworks/av/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/av/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 ALOGI("%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/av/media/libstagefright/foundation/
Dhexdump.cpp47 AString line; in hexdump() local
49 appendIndent(&line, indent); in hexdump()
54 line.append(tmp); in hexdump()
58 line.append(' '); in hexdump()
61 line.append(" "); in hexdump()
64 line.append(tmp); in hexdump()
68 line.append(' '); in hexdump()
76 line.append((char)data[offset + i]); in hexdump()
78 line.append('.'); in hexdump()
83 appendTo->append(line); in hexdump()
[all …]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DLineVerifierElem.java36 public LineVerifierElem addExpected(final String line) { in addExpected() argument
37 if (!TextUtils.isEmpty(line)) { in addExpected()
38 mExpectedLineList.add(line); in addExpected()
51 final String line = lineArray[i]; in verify() local
52 if (TextUtils.isEmpty(line)) { in verify()
56 if ("BEGIN:VCARD".equalsIgnoreCase(line)) { in verify()
63 } else if ("END:VCARD".equalsIgnoreCase(line)) { in verify()
72 "VERSION:4.0")).equalsIgnoreCase(line)) { in verify()
82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify()
84 TestCase.fail("Property other than END came after END property: " + line); in verify()
[all …]
/frameworks/opt/vcard/java/com/android/vcard/
DVCardParserImpl_V21.java71 final String line = super.readLine(); in readLine() local
74 return line; in readLine()
83 final String line = super.readLine(); in peekLine() local
87 mNextLine = line; in peekLine()
195 String line; in getNonEmptyLine() local
197 line = getLine(); in getNonEmptyLine()
198 if (line == null) { in getNonEmptyLine()
200 } else if (line.trim().length() > 0) { in getNonEmptyLine()
201 return line; in getNonEmptyLine()
240 String line; in readBeginVCard() local
[all …]
DVCardParserImpl_V30.java79 String line; in getNonEmptyLine() local
82 line = mReader.readLine(); in getNonEmptyLine()
83 if (line == null) { in getNonEmptyLine()
92 } else if (line.length() == 0) { in getNonEmptyLine()
100 } else if (line.charAt(0) == ' ' || line.charAt(0) == '\t') { in getNonEmptyLine()
117 builder.append(line.substring(1)); in getNonEmptyLine()
122 builder.append(line.substring(1)); in getNonEmptyLine()
128 mPreviousLine = line; in getNonEmptyLine()
134 mPreviousLine = line; in getNonEmptyLine()
326 final String line = getLine(); in getBase64() local
[all …]
/frameworks/base/tools/orientationplot/
Dorientationplot.py267 line = self.adbout.readline()
271 if line is None:
273 print line
276 timestamp = self._parse_timestamp(line)
284 if line.find('Raw acceleration vector:') != -1:
285 self.parse_raw_acceleration_x = self._get_following_number(line, 'x=')
286 self.parse_raw_acceleration_y = self._get_following_number(line, 'y=')
287 self.parse_raw_acceleration_z = self._get_following_number(line, 'z=')
288 self.parse_raw_acceleration_magnitude = self._get_following_number(line, 'magnitude=')
290 if line.find('Filtered acceleration vector:') != -1:
[all …]
/frameworks/base/voip/java/android/net/sip/
DSimpleSessionDescription.java86 for (String line : lines) { in SimpleSessionDescription()
88 if (line.charAt(1) != '=') { in SimpleSessionDescription()
91 if (line.charAt(0) == 'm') { in SimpleSessionDescription()
92 String[] parts = line.substring(2).split(" ", 4); in SimpleSessionDescription()
102 fields.parse(line); in SimpleSessionDescription()
105 throw new IllegalArgumentException("Invalid SDP: " + line); in SimpleSessionDescription()
516 for (String line : mLines) { in write()
517 if (line.charAt(0) == type) { in write()
518 buffer.append(line).append("\r\n"); in write()
527 private void parse(String line) { in parse() argument
[all …]
/frameworks/base/core/jni/
Dandroid_os_Debug.cpp122 char line[1024]; in read_mapinfo() local
141 if(fgets(line, sizeof(line), fp) == 0) return; in read_mapinfo()
149 len = strlen(line); in read_mapinfo()
151 line[--len] = 0; in read_mapinfo()
153 if (sscanf(line, "%lx-%lx %*s %*x %*x:%*x %*d%n", &start, &end, &name_pos) != 2) { in read_mapinfo()
156 while (isspace(line[name_pos])) { in read_mapinfo()
159 name = line + name_pos; in read_mapinfo()
194 if (fgets(line, 1024, fp) == 0) { in read_mapinfo()
199 if (sscanf(line, "Size: %d kB", &temp) == 1) { in read_mapinfo()
201 } else if (sscanf(line, "Rss: %d kB", &temp) == 1) { in read_mapinfo()
[all …]
/frameworks/base/tools/velocityplot/
Dvelocityplot.py181 line = self.adbout.readline()
185 if line is None:
187 print line
190 timestamp = self._parse_timestamp(line)
198 if line.find(': position') != -1:
199 self.parse_velocity_x = self._get_following_number(line, 'vx=')
200 self.parse_velocity_y = self._get_following_number(line, 'vy=')
201 self.parse_velocity_magnitude = self._get_following_number(line, 'speed=')
206 if line.find(': OLD') != -1:
207 self.parse_old_velocity_x = self._get_following_number(line, 'vx=')
[all …]
/frameworks/base/tools/preload/
DRecord.java99 Record(String line, int lineNum) { in Record() argument
100 char typeChar = line.charAt(0); in Record()
106 default: throw new AssertionError("Bad line: " + line); in Record()
112 line = line.replace(REPLACE_CLASSES[i], REPLACE_CLASSES[i+1]); in Record()
115 line = line.substring(1); in Record()
116 String[] parts = line.split(":"); in Record()
/frameworks/native/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/wilhelm/src/
Dlocks.c34 void object_lock_exclusive_(IObject *thiz, const char *file, int line) in object_lock_exclusive_() argument
54 SL_LOGE("%s:%d: recursive lock detected", file, line); in object_lock_exclusive_()
57 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok); in object_lock_exclusive_()
74 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, in object_lock_exclusive_()
94 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, in object_lock_exclusive_()
98 " state by pthread %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), in object_lock_exclusive_()
105 thiz->mLine = line; in object_lock_exclusive_()
122 void object_unlock_exclusive_(IObject *thiz, const char *file, int line) in object_unlock_exclusive_() argument
129 thiz->mLine = line; in object_unlock_exclusive_()
150 const char *file, int line) in object_unlock_exclusive_attributes_() argument
[all …]
/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/opt/calendar/src/com/android/calendarcommon2/
DICalendar.java396 public String line; // TODO: just point to original text field in ICalendar.ParserState
439 for (String line : lines) { in parseComponentImpl()
441 current = parseLine(line, state, current); in parseComponentImpl()
450 Log.v(TAG, "Cannot parse " + line, fe); in parseComponentImpl()
466 private static Component parseLine(String line, ParserState state, in parseLine() argument
469 state.line = line; in parseLine()
470 int len = state.line.length(); in parseLine()
475 c = line.charAt(state.index); in parseLine()
480 String name = line.substring(0, state.index); in parseLine()
527 String line = state.line; in extractValue() local
[all …]

12345678910>>...14