Lines Matching refs:line
167 AString line;
169 line.setTo(&data[offset], offsetLF - offset - 1);
171 line.setTo(&data[offset], offsetLF - offset);
174 // ALOGI("#%s#", line.c_str());
176 if (line.empty()) {
181 if (lineNo == 0 && line == "#EXTM3U") {
188 if (line.startsWith("#EXT-X-TARGETDURATION")) {
192 err = parseMetaData(line, &mMeta, "target-duration");
193 } else if (line.startsWith("#EXT-X-MEDIA-SEQUENCE")) {
197 err = parseMetaData(line, &mMeta, "media-sequence");
198 } else if (line.startsWith("#EXT-X-KEY")) {
202 err = parseCipherInfo(line, &itemMeta, mBaseURI);
203 } else if (line.startsWith("#EXT-X-ENDLIST")) {
205 } else if (line.startsWith("#EXT-X-PLAYLIST-TYPE:EVENT")) {
207 } else if (line.startsWith("#EXTINF")) {
211 err = parseMetaDataDuration(line, &itemMeta, "durationUs");
212 } else if (line.startsWith("#EXT-X-DISCONTINUITY")) {
220 } else if (line.startsWith("#EXT-X-STREAM-INF")) {
225 err = parseStreamInf(line, &itemMeta);
226 } else if (line.startsWith("#EXT-X-BYTERANGE")) {
232 err = parseByteRange(line, segmentRangeOffset, &length, &offset);
251 if (!line.startsWith("#")) {
263 CHECK(MakeURL(mBaseURI.c_str(), line.c_str(), &item->mURI));
279 const AString &line, sp<AMessage> *meta, const char *key) {
280 ssize_t colonPos = line.find(":");
287 status_t err = ParseInt32(line.c_str() + colonPos + 1, &x);
303 const AString &line, sp<AMessage> *meta, const char *key) {
304 ssize_t colonPos = line.find(":");
311 status_t err = ParseDouble(line.c_str() + colonPos + 1, &x);
327 const AString &line, sp<AMessage> *meta) {
328 ssize_t colonPos = line.find(":");
336 while (offset < line.size()) {
337 ssize_t end = line.find(",", offset);
339 end = line.size();
342 AString attr(line, offset, end - offset);
384 const AString &line, char what, size_t offset) {
388 while (offset < line.size()) {
389 char c = line.c_str()[offset];
405 const AString &line, sp<AMessage> *meta, const AString &baseURI) {
406 ssize_t colonPos = line.find(":");
414 while (offset < line.size()) {
415 ssize_t end = FindNextUnquoted(line, ',', offset);
417 end = line.size();
420 AString attr(line, offset, end - offset);
474 const AString &line, uint64_t curOffset,
476 ssize_t colonPos = line.find(":");
482 ssize_t atPos = line.find("@", colonPos + 1);
486 lenStr = AString(line, colonPos + 1, line.size() - colonPos - 1);
488 lenStr = AString(line, colonPos + 1, atPos - colonPos - 1);
502 AString offStr = AString(line, atPos + 1, line.size() - atPos - 1);