/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
D | HtmlParser.java | 343 String htmlTail = this.html.substring(start, finalPos); in scanText() 358 htmlTail = htmlTail.substring(0, matchStart); in scanText() 424 tagName = html.substring(startNamePos, endNamePos); in getTagName() 576 name = html.substring(startNamePos, endNamePos); in getName() 583 value = html.substring(startValuePos, endValuePos); in getValue() 757 String textNodeContent = html.substring(start, end); in scanTag() 765 CharMatcher.is('<').replaceFrom(html.substring(start, end), "<"); in scanTag() 854 String beforeAttrs = html.substring(startPos, startAttributesPos); 855 String afterAttrs = html.substring(endAttributesPos, endPos); 869 String tagName = html.substring(startPos + 1, startAttributesPos); [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
D | DecoderUtil.java | 192 String sep = body.substring(previousEnd, begin); in decodeEncodedWords() 197 sb.append(body.substring(begin, end)); in decodeEncodedWords() 212 sb.append(body.substring(previousEnd)); in decodeEncodedWords() 227 String mimeCharset = body.substring(begin + 2, qm1); in decodeEncodedWord() 228 String encoding = body.substring(qm1 + 1, qm2); in decodeEncodedWord() 229 String encodedText = body.substring(qm2 + 1, end - 2); in decodeEncodedWord() 235 + body.substring(begin, end) + "' doesn't have a " in decodeEncodedWord() 243 + "' in encoded word '" + body.substring(begin, end) in decodeEncodedWord() 252 + body.substring(begin, end) + "'"); in decodeEncodedWord() 265 + body.substring(begin, end) + "'"); in decodeEncodedWord() [all …]
|
/packages/services/Telephony/src/org/apache/james/mime4j/decoder/ |
D | DecoderUtil.java | 192 String sep = body.substring(previousEnd, begin); in decodeEncodedWords() 197 sb.append(body.substring(begin, end)); in decodeEncodedWords() 212 sb.append(body.substring(previousEnd)); in decodeEncodedWords() 227 String mimeCharset = body.substring(begin + 2, qm1); in decodeEncodedWord() 228 String encoding = body.substring(qm1 + 1, qm2); in decodeEncodedWord() 229 String encodedText = body.substring(qm2 + 1, end - 2); in decodeEncodedWord() 235 + body.substring(begin, end) + "' doesn't have a " in decodeEncodedWord() 243 + "' in encoded word '" + body.substring(begin, end) in decodeEncodedWord() 252 + body.substring(begin, end) + "'"); in decodeEncodedWord() 265 + body.substring(begin, end) + "'"); in decodeEncodedWord() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/ |
D | TextUtilities.java | 346 tag = tag.substring(0, tag.length() - 1); in findTagEnd() 393 String tag = text.substring(i + 1, i + MAX_STRIP_TAG_LENGTH + 1); in makeSnippetFromText() 399 tag = tag.substring(0, stripTag.length()); in makeSnippetFromText() 470 entity = text.substring(pos, i); in stripHtmlEntity() 490 i = Integer.parseInt(entity.substring(3), 16); in stripHtmlEntity() 492 i = Integer.parseInt(entity.substring(2)); in stripHtmlEntity() 603 String tag = text.substring(i + 1, i + MAX_STRIP_TAG_LENGTH + 1); in highlightTerms() 609 tag = tag.substring(0, stripTag.length()); in highlightTerms() 617 sb.append(text.substring(i)); in highlightTerms() 620 sb.append(text.substring(i, endTagPosition - 1)); in highlightTerms() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | SearchUtil.java | 49 public static MatchedLine findMatchingLine(String contents, String substring) { in findMatchingLine() argument 54 final int index = SearchUtil.contains(contents, substring); in findMatchingLine() 71 matched.line = contents.substring(start + 1, end); in findMatchingLine() 91 static int contains(String value, String substring) { in contains() argument 92 if (value.length() < substring.length()) { in contains() 100 final int[] substringCodePoints = new int[substring.length()]; in contains() 102 for (int i = 0; i < substring.length(); ) { in contains() 103 final int codePoint = Character.codePointAt(substring, i); in contains() 202 return query.substring(start, end + 1); in cleanStartAndEndOfSearchQuery()
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | StringUtil.java | 295 return s.substring(trimCount); in trimStart() 336 return s.substring(0, s.length() - trimCount); in trimEnd() 603 ? str.substring(prefix.length()) in stripPrefix() 619 ? str.substring(prefix.length()) in stripPrefixIgnoreCase() 635 ? str.substring(0, str.length() - suffix.length()) in stripSuffix() 652 ? str.substring(0, str.length() - suffix.length()) in stripSuffixIgnoreCase() 835 sb.append(s.substring(len)); in maskLeft() 1721 (char) Integer.parseInt(s.substring(i, i + nOctalDigits), 8)); in javaScriptUnescapeHelper() 1729 hexCode = s.substring(i, i + nHexDigits); in javaScriptUnescapeHelper() 1732 "Invalid unicode sequence [" + s.substring(i) + "] at index " + i in javaScriptUnescapeHelper() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 124 prefix = name.substring(0, dotIndex); in generateSaveFile() 125 suffix = name.substring(dotIndex); in generateSaveFile() 134 prefix = name.substring(0, dotIndex); in generateSaveFile() 161 filename = hint.substring(index); 176 filename = filename.substring(index); 192 filename = decodedContentLocation.substring(index); 209 filename = decodedUrl.substring(index); 274 filename.substring(lastDotIndex + 1)); in chooseExtensionFromFilename() 292 extension = filename.substring(lastDotIndex); in chooseExtensionFromFilename() 661 String word = mSelection.substring(startOffset, mOffset); in advance()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 194 key = string.substring(start); in parse() 196 key = string.substring(start, offset - 1); in parse() 210 key = string.substring(start); in parse() 212 key = string.substring(start, offset - 1); in parse() 230 rawContactId = string.substring(start, dash); in parse() 234 key = string.substring(start); in parse() 236 key = string.substring(start, offset - 1); in parse()
|
D | NameSplitter.java | 441 name.familyName = fullName.substring(0, 1); in splitChineseName() 442 name.givenNames = fullName.substring(1); in splitChineseName() 444 name.familyName = fullName.substring(0, 1); in splitChineseName() 445 name.middleName = fullName.substring(1, 2); in splitChineseName() 446 name.givenNames = fullName.substring(2); in splitChineseName() 448 name.familyName = fullName.substring(0, 2); in splitChineseName() 449 name.middleName = fullName.substring(2, 3); in splitChineseName() 450 name.givenNames = fullName.substring(3); in splitChineseName() 511 name.familyName = fullName.substring(0, familyNameLength); in splitKoreanName() 513 name.givenNames = fullName.substring(familyNameLength); in splitKoreanName()
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | JarUtils.java | 46 final String jarPath = path.substring("file:".length(), path.indexOf('!')); in getJarFile() 70 final String dirName = (pos >= 0) ? path.substring(0, pos) : ""; in getEntryNameListing() 71 final String name = (pos >= 0) ? path.substring(pos + 1) : path; in getEntryNameListing() 93 final String dirName = jarEntryName.substring(0, jarEntryName.lastIndexOf('/')); 95 final String parentName = (pos >= 0) ? dirName.substring(pos + 1) : dirName; 101 final String localeStr = parentName.substring(localePos + 1);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | FilenameUtils.java | 630 return filename.substring(0, len); in getPrefix() 705 return filename.substring(prefix, index + separatorAdd); in doGetPath() 791 return filename.substring(0, prefix); in doGetFullPath() 794 return filename.substring(0, end); in doGetFullPath() 819 return filename.substring(index + 1); in getName() 868 return filename.substring(index + 1); in getExtension() 898 return filename.substring(0, index); in removeExtension()
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | Evaluator.java | 408 String truncatedWholePart = mResultString.substring(0, dotIndex); in onPostExecute() 464 if (!newDigs.substring(newLen - precDiff).equals(repeat('0', precDiff))) { in unflipZeroes() 680 return negativeSign + cache.substring(msdIndex, lsdIndex + 1); in getShortString() 684 + cache.substring(msdIndex + 1, lsdIndex + 1) + "E" + exponent; in getShortString() 689 return negativeSign + cache.substring(msdIndex, in getShortString() 694 + cache.substring(msdIndex + 1, msdIndex + SHORT_TARGET_LENGTH - negative - 4) in getShortString() 820 String result = mResultString.substring(startIndex, endIndex); in getString() 897 final String truncatedWholePart = mResultString.substring(0, dotIndex); in requireResult()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | OpenWnnClauseConverterJAJP.java | 190 String key = input.substring(start, end); in consecutiveClauseConvert() 275 String str = input.substring(split); in singleClauseConvert() 282 str = input.substring(0, split); in singleClauseConvert() 415 String key = input.substring(start); in getAncillaryPattern() 434 ArrayList<WnnWord> followFzks = fzkPat.get(input.substring(end)); in getAncillaryPattern() 438 …rchWord(WnnDictionary.SEARCH_EXACT, WnnDictionary.ORDER_BY_FREQUENCY, input.substring(start, end)); in getAncillaryPattern()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeySpecParser.java | 125 return (labelEnd < 0) ? keySpec : keySpec.substring(0, labelEnd); in getBeforeLabelEnd() 130 return keySpec.substring(labelEnd + /* VERTICAL_BAR */1); in getAfterLabelEnd() 228 return KeyboardCodesSet.getCode(text.substring(KeyboardCodesSet.PREFIX_CODE.length())); in parseCode() 233 return Integer.parseInt(text.substring(PREFIX_HEX.length()), 16); in parseCode() 248 .substring(KeyboardIconsSet.PREFIX_ICON.length()); in getIconId()
|
D | KeyboardTextsSet.java | 105 sb = new StringBuilder(text.substring(0, pos)); in resolveTextReference() 110 sb = new StringBuilder(text.substring(0, pos)); in resolveTextReference() 116 sb.append(text.substring(pos, Math.min(pos + 2, size))); in resolveTextReference() 135 final String name = text.substring(pos + prefixLength, end); in expandReference()
|
/packages/apps/Browser/src/com/android/browser/ |
D | Performance.java | 119 newUrl = newUrl.substring(11); in onPageFinished() 121 newUrl = newUrl.substring(7); in onPageFinished() 123 newUrl = newUrl.substring(12); in onPageFinished() 125 newUrl = newUrl.substring(8); in onPageFinished()
|
D | DataUri.java | 45 String contentType = uri.substring(DATA_URI_PREFIX.length(), in DataUri() 47 mData = uri.substring(commaIndex + 1).getBytes(); in DataUri() 53 mMimeType = contentType.substring(0, semiIndex); in DataUri()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | Address.java | 113 mSimplifiedName = (atSign != -1) ? mAddress.substring(0, atSign) : ""; in getSimplifiedName() 122 mSimplifiedName = (end < 1) ? mPersonal : mPersonal.substring(0, end); in getSimplifiedName() 505 address = new Address(addressList.substring(pairStartIndex, pairEndIndex), null); in fromHeader() 507 address = new Address(addressList.substring(pairStartIndex, addressEndIndex), in fromHeader() 508 addressList.substring(addressEndIndex + 1, pairEndIndex)); in fromHeader()
|
/packages/services/Telephony/src/com/android/phone/common/mail/ |
D | Address.java | 112 mSimplifiedName = (atSign != -1) ? mAddress.substring(0, atSign) : ""; in getSimplifiedName() 121 mSimplifiedName = (end < 1) ? mPersonal : mPersonal.substring(0, end); in getSimplifiedName() 504 address = new Address(addressList.substring(pairStartIndex, pairEndIndex), null); in fromHeader() 506 address = new Address(addressList.substring(pairStartIndex, addressEndIndex), in fromHeader() 507 addressList.substring(addressEndIndex + 1, pairEndIndex)); in fromHeader()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallLogGroupBuilder.java | 228 userinfo1 = number1.substring(0, index1); in compareSipAddresses() 229 rest1 = number1.substring(index1); in compareSipAddresses() 239 userinfo2 = number2.substring(0, index2); in compareSipAddresses() 240 rest2 = number2.substring(index2); in compareSipAddresses()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
D | BodyDescriptor.java | 108 String type = main.substring(0, index).trim(); in addField() 109 String subtype = main.substring(index + 1).trim(); in addField() 161 main = headerValue.substring(0, headerValue.indexOf(";")); in getHeaderParams() 162 rest = headerValue.substring(main.length() + 1); in getHeaderParams()
|
/packages/services/Telephony/src/org/apache/james/mime4j/ |
D | BodyDescriptor.java | 108 String type = main.substring(0, index).trim(); in addField() 109 String subtype = main.substring(index + 1).trim(); in addField() 161 main = headerValue.substring(0, headerValue.indexOf(";")); in getHeaderParams() 162 rest = headerValue.substring(main.length() + 1); in getHeaderParams()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 153 extension = filename.substring(dotIndex); in generateFileInfo() 154 filename = filename.substring(0, dotIndex); in generateFileInfo() 172 String displayName = fullfilename.substring(index); in generateFileInfo() 260 filename = hint.substring(index); in choosefilename()
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | StringUtils.java | 209 return s.substring(0, cutoff).toUpperCase(getLocaleUsedForToTitleCase(locale)) in capitalizeFirstCodePoint() 210 + s.substring(cutoff); in capitalizeFirstCodePoint() 227 return s.substring(0, cutoff).toUpperCase(getLocaleUsedForToTitleCase(locale)) in capitalizeFirstAndDowncaseRest() 228 + s.substring(cutoff).toLowerCase(locale); in capitalizeFirstAndDowncaseRest() 410 final String nextChar = text.substring(i, text.offsetByCodePoints(i, 1)); in capitalizeEachWord()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ResourceUtils.java | 137 final String condition = conditionConstant.substring(0, posComma); in findConstantForKeyValuePairs() 146 foundValue = conditionConstant.substring(posComma + 1); in findConstantForKeyValuePairs() 167 final String key = pattern.substring(0, posEqual); in fulfillsCondition() 172 final String patternRegexpValue = pattern.substring(posEqual + 1); in fulfillsCondition()
|