Home
last modified time | relevance | path

Searched refs:substring (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java192 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/Dialer/java/com/android/contacts/common/util/
DSearchUtil.java32 public static MatchedLine findMatchingLine(String contents, String substring) { in findMatchingLine() argument
37 final int index = SearchUtil.contains(contents, substring); in findMatchingLine()
54 matched.line = contents.substring(start + 1, end); in findMatchingLine()
74 static int contains(String value, String substring) { in contains() argument
75 if (value.length() < substring.length()) { in contains()
83 final int[] substringCodePoints = new int[substring.length()]; in contains()
85 for (int i = 0; i < substring.length(); ) { in contains()
86 final int codePoint = Character.codePointAt(substring, i); in contains()
185 return query.substring(start, end + 1); in cleanStartAndEndOfSearchQuery()
/packages/apps/Contacts/src/com/android/contacts/util/
DSearchUtil.java49 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/html/parser/
DHtmlParser.java343 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), "&lt;"); 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/modules/NetworkStack/tests/unit/src/android/net/apf/
DBpf2Apf.java43 final long val_long = Long.parseLong(arg.substring(3), 16); in parseImm()
60 int label = Integer.parseInt(line.substring(1, 4)); in convertLine()
62 String opcode = line.substring(6, 10).trim(); in convertLine()
63 String arg = line.substring(15, Math.min(32, line.length())).trim(); in convertLine()
97 int memory_slot = Integer.parseInt(arg.substring(2, arg.length() - 1)); in convertLine()
109 int offset = Integer.parseInt(arg.substring(5, arg.length() - 1)); in convertLine()
125 int offset = Integer.parseInt(arg.substring(1, arg.length() - 1)); in convertLine()
148 int memory_slot = Integer.parseInt(arg.substring(2, arg.length() - 1)); in convertLine()
210 String true_label = line.substring(jt_offset + 2, jf_offset).trim(); in convertLine()
211 String false_label = line.substring(jf_offset + 2).trim(); in convertLine()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
DTextUtilities.java346 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/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java195 key = string.substring(start); in parse()
197 key = string.substring(start, offset - 1); in parse()
211 key = string.substring(start); in parse()
213 key = string.substring(start, offset - 1); in parse()
231 rawContactId = string.substring(start, dash); in parse()
235 key = string.substring(start); in parse()
237 key = string.substring(start, offset - 1); in parse()
DNameSplitter.java441 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/
DJarUtils.java46 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/Nfc/src/com/android/nfc/cardemulation/
DRegisteredAidCache.java159 String shortestAidMatch = aid.substring(0, 10); // Minimum AID length is 5 bytes in resolveAid()
172 String entryAid = (isPrefix || isSubset) ? entry.getKey().substring(0, in resolveAid()
416 String prefix = prefixAid.substring(0, prefixAid.length() - 1); in generateServiceMapLocked()
434 String plainSubset = subsetAid.substring(0, subsetAid.length() - 1); in generateServiceMapLocked()
499 String plainSubsetAid = subsetAid.substring(0, subsetAid.length() - 1); in findPrefixConflictForSubsetAid()
503 String plainPrefix= prefixAid.substring(0, prefixAid.length() - 1); in findPrefixConflictForSubsetAid()
520 plainSubsetAid.equalsIgnoreCase(minPrefix.substring(0, minPrefix.length() - 1))) in findPrefixConflictForSubsetAid()
527 String plainAid = prefixAid.substring(0, prefixAid.length() - 1); // Cut off "*" in findConflictsForPrefixLocked()
549 String lastPlainAid = subsetAid.substring(0, subsetAid.length() - 1); in findConflictsForSubsetAidLocked()
551 String plainSubsetAid = subsetAid.substring(0, subsetAid.length() - 1); in findConflictsForSubsetAidLocked()
[all …]
DAidRoutingManager.java148 aid = aid.substring(0, aid.length() - 1); in clearNfcRoutingTableLocked()
151 aid = aid.substring(0, aid.length() - 1); in clearNfcRoutingTableLocked()
164 aid = aid.substring(0, aid.length() - 1); in clearNfcRoutingTableLocked()
184 int index = Integer.parseInt(se.substring(3)); in getRouteForSecureElement()
189 int index = Integer.parseInt(se.substring(3)); in getRouteForSecureElement()
306 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting()
311 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting()
324 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DStringUtil.java295 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/
DHelpers.java273 prefix = name.substring(0, dotIndex); in generateSaveFile()
274 suffix = name.substring(dotIndex); in generateSaveFile()
283 prefix = name.substring(0, dotIndex); in generateSaveFile()
310 filename = hint.substring(index);
325 filename = filename.substring(index);
341 filename = decodedContentLocation.substring(index);
358 filename = decodedUrl.substring(index);
423 filename.substring(lastDotIndex + 1)); in chooseExtensionFromFilename()
441 extension = filename.substring(lastDotIndex); in chooseExtensionFromFilename()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java125 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()
DKeyboardTextsSet.java105 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/UnifiedEmail/src/org/apache/commons/io/
DFilenameUtils.java630 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/DocumentsUI/src/com/android/documentsui/archives/
DArchiveId.java44 final String archiveUriPart = documentId.substring(0, delimiterPosition); in fromDocumentId()
45 final String accessModePart = documentId.substring(delimiterPosition + 1, in fromDocumentId()
48 final String pathPart = documentId.substring(secondDelimiterPosition + 1); in fromDocumentId()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DBodyDescriptor.java108 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/UnifiedEmail/src/com/android/emailcommon/mail/
DAddress.java113 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()
DPackedString.java101 value = packed.substring(elementStartIndex, elementEndIndex); in explode()
104 value = packed.substring(elementStartIndex, tagEndIndex); in explode()
105 tag = packed.substring(tagEndIndex + 1, elementEndIndex); in explode()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DAddress.java102 simplifiedName = (atSign != -1) ? address.substring(0, atSign) : ""; in getSimplifiedName()
111 simplifiedName = (end < 1) ? personal : personal.substring(0, end); in getSimplifiedName()
479 address = new Address(addressList.substring(pairStartIndex, pairEndIndex), null); in fromHeader()
483 addressList.substring(pairStartIndex, addressEndIndex), in fromHeader()
484 addressList.substring(addressEndIndex + 1, pairEndIndex)); in fromHeader()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSqlTokenFinder.java76 final String token = sql.substring(start, end); in findTokens()
103 final String tokenUnquoted = sql.substring(quoteStart + 1, quoteEnd); in findTokens()
130 final String token = sql.substring(quoteStart + 1, quoteEnd); in findTokens()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfo.java164 extension = filename.substring(dotIndex); in generateFileInfo()
165 filename = filename.substring(0, dotIndex); in generateFileInfo()
213 String displayName = fullfilename.substring(index); in generateFileInfo()
309 filename = hint.substring(index); in choosefilename()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogGroupBuilder.java229 userinfo1 = number1.substring(0, index1); in compareSipAddresses()
230 rest1 = number1.substring(index1); in compareSipAddresses()
240 userinfo2 = number2.substring(0, index2); in compareSipAddresses()
241 rest2 = number2.substring(index2); in compareSipAddresses()
/packages/providers/TvProvider/src/com/android/providers/tv/util/
DSqliteTokenFinder.java88 final String token = sql.substring(start, end); in findTokens()
114 String token = sql.substring(quoteStart + 1, quoteEnd); in findTokens()
146 final String token = sql.substring(quoteStart + 1, quoteEnd); in findTokens()

12345678910>>...14