/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | SearchUtil.java | 32 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/ |
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/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | Bpf2Apf.java | 43 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/modules/Connectivity/framework/src/android/net/ |
D | NetworkUtils.java | 309 pieces[0] = pieces[0].substring(1, pieces[0].length() - 1); in legacyParseIpAndMask() 337 addrHexString.substring(0,4), addrHexString.substring(4,8), in hexToInet6Address() 338 addrHexString.substring(8,12), addrHexString.substring(12,16), in hexToInet6Address() 339 addrHexString.substring(16,20), addrHexString.substring(20,24), in hexToInet6Address() 340 addrHexString.substring(24,28), addrHexString.substring(28,32))); in hexToInet6Address()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 195 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()
|
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/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiBackupRestore.java | 279 majorVersion = Integer.parseInt(versionStr.substring(0, separatorPos)); in retrieveConfigurationsFromBackupData() 280 minorVersion = Integer.parseInt(versionStr.substring(separatorPos + 1)); in retrieveConfigurationsFromBackupData() 623 configuration.SSID = mParsedSSIDLine.substring(mParsedSSIDLine.indexOf('=') + 1); in createWifiConfiguration() 628 Integer.parseInt(mParsedHiddenLine.substring( in createWifiConfiguration() 639 mParsedKeyMgmtLine.substring(mParsedKeyMgmtLine.indexOf('=') + 1); in createWifiConfiguration() 680 mParsedPskLine.substring(mParsedPskLine.indexOf('=') + 1); in createWifiConfiguration() 684 mParsedWepKeyLines[0].substring(mParsedWepKeyLines[0].indexOf('=') + 1); in createWifiConfiguration() 688 mParsedWepKeyLines[1].substring(mParsedWepKeyLines[1].indexOf('=') + 1); in createWifiConfiguration() 692 mParsedWepKeyLines[2].substring(mParsedWepKeyLines[2].indexOf('=') + 1); in createWifiConfiguration() 696 mParsedWepKeyLines[3].substring(mParsedWepKeyLines[3].indexOf('=') + 1); in createWifiConfiguration() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 279 prefix = name.substring(0, dotIndex); in generateSaveFile() 280 suffix = name.substring(dotIndex); in generateSaveFile() 289 prefix = name.substring(0, dotIndex); in generateSaveFile() 316 filename = hint.substring(index); 331 filename = filename.substring(index); 347 filename = decodedContentLocation.substring(index); 364 filename = decodedUrl.substring(index); 429 filename.substring(lastDotIndex + 1)); in chooseExtensionFromFilename() 447 extension = filename.substring(lastDotIndex); in chooseExtensionFromFilename() 673 return data.substring(matcher.end(), lastSlash + 1); in extractRelativePath() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | AidRoutingManager.java | 148 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() 309 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting() 314 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting() 327 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting()
|
D | RegisteredAidCache.java | 174 String shortestAidMatch = aid.substring(0, 10); // Minimum AID length is 5 bytes in resolveAid() 187 String entryAid = (isPrefix || isSubset) ? entry.getKey().substring(0, in resolveAid() 431 String prefix = prefixAid.substring(0, prefixAid.length() - 1); in generateServiceMapLocked() 449 String plainSubset = subsetAid.substring(0, subsetAid.length() - 1); in generateServiceMapLocked() 514 String plainSubsetAid = subsetAid.substring(0, subsetAid.length() - 1); in findPrefixConflictForSubsetAid() 518 String plainPrefix= prefixAid.substring(0, prefixAid.length() - 1); in findPrefixConflictForSubsetAid() 535 plainSubsetAid.equalsIgnoreCase(minPrefix.substring(0, minPrefix.length() - 1))) in findPrefixConflictForSubsetAid() 542 String plainAid = prefixAid.substring(0, prefixAid.length() - 1); // Cut off "*" in findConflictsForPrefixLocked() 564 String lastPlainAid = subsetAid.substring(0, subsetAid.length() - 1); in findConflictsForSubsetAidLocked() 566 String plainSubsetAid = subsetAid.substring(0, subsetAid.length() - 1); in findConflictsForSubsetAidLocked() [all …]
|
/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/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | VendorCommandResponseProcessor.java | 99 commandWord = atCommand.substring(0, indexOfEqual + 1); in sendCommand() 101 commandWord = atCommand.substring(0, indexOfQuestionMark + 1); in sendCommand() 137 eventCode = atString.substring(0, indexOfEqual + 1); in processEvent() 139 eventCode = atString.substring(0, indexOfColon + 1); in processEvent()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | ArchiveId.java | 44 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/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pDevice.java | 235 wfdInfo = new WifiP2pWfdInfo(parseHex(str.substring(0,4)), in WifiP2pDevice() 236 parseHex(str.substring(4,8)), in WifiP2pDevice() 237 parseHex(str.substring(8,12))); in WifiP2pDevice() 241 wfdInfo.setR2DeviceType(parseHex(r2str.substring(0, 4))); in WifiP2pDevice() 434 hexString = hexString.substring(2); in parseHex()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | Utils.java | 32 domain = domain.substring(0, domain.length() - 1); in splitDomain() 35 domain = domain.substring(at + 1); in splitDomain() 94 String prefix = domain.get(2).substring(3) + domain.get(3).substring(3); in getMccMnc() 284 return s.substring(1, s.length()-1); in unquote()
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | HostnameTransliterator.java | 80 result = result.substring(0, result.length() - 1); in maybeRemoveRedundantSymbols() 95 ? deviceName.substring(0, MAX_DNS_LABEL_LENGTH) : deviceName; in transliterate() 101 ? hostname.substring(0, MAX_DNS_LABEL_LENGTH) : hostname; in transliterate()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | FileUtils.java | 689 name = displayName.substring(0, lastDot); 690 ext = displayName.substring(lastDot + 1); 717 name = displayName.substring(0, lastDot); 718 ext = displayName.substring(lastDot + 1); 770 data = data.substring(0, data.length() - 1); 772 return data.substring(data.lastIndexOf('/') + 1); 783 return data.substring(0, lastDot); 795 return data.substring(lastDot + 1); 1069 return data.substring(0, matcher.end()); 1100 return data.substring(matcher.end(), lastSlash + 1); [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | Address.java | 102 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()
|
D | PackedString.java | 101 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/providers/TvProvider/src/com/android/providers/tv/util/ |
D | SqliteTokenFinder.java | 88 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()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogGroupBuilder.java | 229 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/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()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactDropdownLayouter.java | 72 final int position, AdapterType type, final String substring, in bindView() argument 81 return super.bindView(convertView, parent, entry, position, type, substring, in bindView() 98 getStyledResults(substring, displayName, destination); in bindView()
|