/frameworks/base/core/java/android/text/ |
D | Layout.java | 474 private int getLineStartPos(int line, int left, int right) { in getLineStartPos() argument 477 Alignment align = getParagraphAlignment(line); in getLineStartPos() 478 int dir = getParagraphDirection(line); in getLineStartPos() 495 if (mSpannedText && getLineContainsTab(line)) { in getLineStartPos() 497 int start = getLineStart(line); in getLineStartPos() 506 int max = (int)getLineExtent(line, tabStops, false); in getLineStartPos() 615 public int getLineBounds(int line, Rect bounds) { in getLineBounds() argument 618 bounds.top = getLineTop(line); in getLineBounds() 620 bounds.bottom = getLineTop(line + 1); in getLineBounds() 622 return getLineBaseline(line); in getLineBounds() [all …]
|
D | Selection.java | 138 int line = layout.getLineForOffset(end); in moveUp() local 140 if (line > 0) { in moveUp() 143 if (layout.getParagraphDirection(line) == in moveUp() 144 layout.getParagraphDirection(line - 1)) { in moveUp() 146 move = layout.getOffsetForHorizontal(line - 1, h); in moveUp() 148 move = layout.getLineStart(line - 1); in moveUp() 184 int line = layout.getLineForOffset(end); in moveDown() local 186 if (line < layout.getLineCount() - 1) { in moveDown() 189 if (layout.getParagraphDirection(line) == in moveDown() 190 layout.getParagraphDirection(line + 1)) { in moveDown() [all …]
|
D | BoringLayout.java | 207 TextLine line = TextLine.obtain(); in init() local 208 line.set(paint, source, 0, source.length(), Layout.DIR_LEFT_TO_RIGHT, in init() 210 mMax = (int) FloatMath.ceil(line.metrics(null)); in init() 211 TextLine.recycle(line); in init() 301 TextLine line = TextLine.obtain(); in isBoring() local 302 line.set(paint, text, 0, length, Layout.DIR_LEFT_TO_RIGHT, in isBoring() 304 fm.width = (int) FloatMath.ceil(line.metrics(fm)); in isBoring() 305 TextLine.recycle(line); in isBoring() 324 public int getLineTop(int line) { in getLineTop() argument 325 if (line == 0) in getLineTop() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | ParsedMessage.cpp | 106 AString line(&data[offset], lineEndOffset - offset); in parse() local 111 mDict.add(AString("_"), line); in parse() 124 if (line.c_str()[0] == ' ' || line.c_str()[0] == '\t') { in parse() 132 value.append(line); in parse() 139 ssize_t colonPos = line.find(":"); in parse() 141 AString key(line, 0, colonPos); in parse() 145 line.erase(0, colonPos + 1); in parse() 147 lastDictIndex = mDict.add(key, line); in parse() 181 AString line; in getRequestField() local 182 CHECK(findString("_", &line)); in getRequestField() [all …]
|
D | hexdump.cpp | 47 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/av/media/libstagefright/codecs/aacenc/src/ |
D | quantize.c | 109 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 …]
|
/frameworks/base/tools/aapt/ |
D | SourcePos.cpp | 20 int line; member 26 ErrorPos(const String8& file, int line, const String8& error, Level level); 35 :line(-1), level(NOTE) in ErrorPos() 41 line(that.line), in ErrorPos() 49 line(l), in ErrorPos() 59 this->line = rhs.line; in operator =() 82 if (this->line >= 0) { in print() 83 … fprintf(to, "%s:%d: %s%s\n", this->file.string(), this->line, type, this->error.string()); in print() 95 : file(f), line(l) in SourcePos() 100 : file(that.file), line(that.line) in SourcePos() [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ASessionDescription.cpp | 65 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/base/core/java/android/alsa/ |
D | AlsaCardsParser.java | 43 public boolean parse(String line, int lineIndex) { in parse() argument 48 tokenIndex = tokenizer_.nextToken(line, tokenIndex); in parse() 49 delimIndex = tokenizer_.nextDelimiter(line, tokenIndex); in parse() 52 tokenIndex = tokenizer_.nextToken(line, delimIndex); in parse() 53 delimIndex = tokenizer_.nextDelimiter(line, tokenIndex); in parse() 54 mField1 = line.substring(tokenIndex, delimIndex); in parse() 57 tokenIndex = tokenizer_.nextToken(line, delimIndex); in parse() 59 mCardName = line.substring(tokenIndex); in parse() 62 tokenIndex = tokenizer_.nextToken(line, 0); in parse() 64 mCardDescription = line.substring(tokenIndex); in parse() [all …]
|
D | LineTokenizer.java | 32 int nextToken(String line, int startIndex) { in nextToken() argument 33 int len = line.length(); in nextToken() 36 if (mDelimiters.indexOf(line.charAt(offset)) == -1) { in nextToken() 45 int nextDelimiter(String line, int startIndex) { in nextDelimiter() argument 46 int len = line.length(); in nextDelimiter() 49 if (mDelimiters.indexOf(line.charAt(offset)) != -1) { in nextDelimiter()
|
D | AlsaDevicesParser.java | 64 public boolean parse(String line) { in parse() argument 82 tokenOffset = mTokenizer.nextToken(line, delimOffset); in parse() 86 delimOffset = mTokenizer.nextDelimiter(line, tokenOffset); in parse() 88 delimOffset = line.length(); in parse() 90 String token = line.substring(tokenOffset, delimOffset); in parse() 99 if (line.charAt(delimOffset) != '-') { in parse() 182 private boolean isLineDeviceRecord(String line) { in isLineDeviceRecord() argument 183 return line.charAt(kIndex_CardDeviceField) == '['; in isLineDeviceRecord() 259 String line = ""; in scan() local 260 while ((line = bufferedReader.readLine()) != null) { in scan() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | LineVerifierElem.java | 36 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/support/v17/leanback/ |
D | generatev4.py | 33 for line in file: 35 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w)) variable 36 line = line.replace('android.app.Fragment', 'android.support.v4.app.Fragment') variable 37 line = line.replace('android.app.Activity', 'android.support.v4.app.FragmentActivity') variable 38 outfile.write(line)
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardParserImpl_V21.java | 71 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 …]
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SimpleSessionDescription.java | 86 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/av/media/libstagefright/httplive/ |
D | M3UParser.cpp | 532 AString line; in parse() local 534 line.setTo(&data[offset], offsetLF - offset - 1); in parse() 536 line.setTo(&data[offset], offsetLF - offset); in parse() 541 if (line.empty()) { in parse() 546 if (lineNo == 0 && line == "#EXTM3U") { in parse() 553 if (line.startsWith("#EXT-X-TARGETDURATION")) { in parse() 557 err = parseMetaData(line, &mMeta, "target-duration"); in parse() 558 } else if (line.startsWith("#EXT-X-MEDIA-SEQUENCE")) { in parse() 562 err = parseMetaData(line, &mMeta, "media-sequence"); in parse() 563 } else if (line.startsWith("#EXT-X-KEY")) { in parse() [all …]
|
/frameworks/base/tools/orientationplot/ |
D | orientationplot.py | 267 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/tools/velocityplot/ |
D | velocityplot.py | 181 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/native/opengl/libs/tools/ |
D | glentrygen | 26 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*\(([^\)]+)\);/) {
|
D | glapigen | 26 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*\(([^\)]+)\);/) {
|
D | gltracegen | 26 while (my $line = <>) { 27 next if $line =~ /^\//; 28 next if $line =~ /^#/; 29 next if $line =~ /^\s*$/; 30 if ($line !~ /^GL_ENTRY\(([^,]+), ([^,]+), ([^\)]+)\)/) {
|
/frameworks/base/core/jni/ |
D | android_os_Debug.cpp | 226 char line[1024]; in read_mapinfo() local 249 if(fgets(line, sizeof(line), fp) == 0) return; in read_mapinfo() 259 len = strlen(line); in read_mapinfo() 261 line[--len] = 0; in read_mapinfo() 263 … if (sscanf(line, "%" SCNx64 "-%" SCNx64 " %*s %*x %*x:%*x %*d%n", &start, &end, &name_pos) != 2) { in read_mapinfo() 266 while (isspace(line[name_pos])) { in read_mapinfo() 269 name = line + name_pos; in read_mapinfo() 359 if (fgets(line, 1024, fp) == 0) { in read_mapinfo() 364 if (line[0] == 'S' && sscanf(line, "Size: %d kB", &temp) == 1) { in read_mapinfo() 366 } else if (line[0] == 'R' && sscanf(line, "Rss: %d kB", &temp) == 1) { in read_mapinfo() [all …]
|
/frameworks/base/tools/preload/ |
D | Record.java | 109 Record(String line, int lineNum) { in Record() argument 110 char typeChar = line.charAt(0); in Record() 116 default: throw new AssertionError("Bad line: " + line); in Record() 122 line = line.replace(REPLACE_CLASSES[i], REPLACE_CLASSES[i+1]); in Record() 125 line = line.substring(1); in Record() 126 String[] parts = line.split(":"); in Record()
|
/frameworks/wilhelm/src/ |
D | locks.c | 45 void object_lock_exclusive_(IObject *thiz, const char *file, int line) in object_lock_exclusive_() argument 68 SL_LOGE("%s:%d: recursive lock detected", file, line); in object_lock_exclusive_() 71 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok); in object_lock_exclusive_() 88 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, in object_lock_exclusive_() 108 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, in object_lock_exclusive_() 112 " state by pthread %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), in object_lock_exclusive_() 119 thiz->mLine = line; in object_lock_exclusive_() 136 void object_unlock_exclusive_(IObject *thiz, const char *file, int line) in object_unlock_exclusive_() argument 143 thiz->mLine = line; in object_unlock_exclusive_() 164 const char *file, int line) in object_unlock_exclusive_attributes_() argument [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | HexDump.java | 32 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()
|