/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/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/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | ActiveGestureLog.java | 264 public CompoundString(String substring) { in CompoundString() argument 265 mIsNoOp = substring == null; in CompoundString() 270 mSubstrings.add(substring); in CompoundString() 274 public CompoundString append(CompoundString substring) { in append() argument 275 if (mIsNoOp || substring.mIsNoOp) { in append() 278 mSubstrings.addAll(substring.mSubstrings); in append() 279 mArgs.addAll(substring.mArgs); in append() 284 public CompoundString append(String substring) { in append() argument 288 mSubstrings.add(substring); in append() 353 for (String substring : mSubstrings) { in toUnformattedString() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | Bpf2Apf.java | 46 final long val_long = Long.parseLong(arg.substring(3), 16); in parseImm() 82 int label = Integer.parseInt(line.substring(1, 4)); in convertLine() 84 String opcode = line.substring(6, 10).trim(); in convertLine() 85 String arg = line.substring(15, Math.min(32, line.length())).trim(); in convertLine() 119 int memory_slot = Integer.parseInt(arg.substring(2, arg.length() - 1)); in convertLine() 124 int offset = Integer.parseInt(arg.substring(5, arg.length() - 1)); in convertLine() 140 int offset = Integer.parseInt(arg.substring(1, arg.length() - 1)); in convertLine() 163 int memory_slot = Integer.parseInt(arg.substring(2, arg.length() - 1)); in convertLine() 219 String true_label = line.substring(jt_offset + 2, jf_offset).trim(); in convertLine() 220 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/services/Car/libs/car-test-lib/src/android/car/test/ |
D | ApiHelper.java | 76 String fixed = api.substring(0, index) + "$" + api.substring(index + 1, api.length()); in resolve() 102 String className = fullyQualifiedMethodName.substring(0, classSeparator); in getMethod() 103 String methodSignature = fullyQualifiedMethodName.substring(classSeparator + 1, in getMethod() 114 methodName = methodSignature.substring(0, openingIndex); in getMethod() 115 String types = methodSignature.substring(openingIndex + 1, in getMethod() 211 String className = fullyQualifiedFieldName.substring(0, classSeparator); in getField() 212 String fieldName = fullyQualifiedFieldName.substring(classSeparator + 1, in getField()
|
/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/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()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | CertificateSubjectInfo.java | 68 info.commonName = s.substring(COMMON_NAME_PREFIX.length()); in parse() 70 info.organization = s.substring(ORGANIZATION_PREFIX.length()); in parse() 72 info.location = s.substring(LOCATION_PREFIX.length()); in parse() 74 info.state = s.substring(STATE_PREFIX.length()); in parse() 76 info.country = s.substring(COUNTRY_PREFIX.length()); in parse() 78 String hexStr = s.substring(EMAILADDRESS_OID_PREFIX.length()); in parse()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/ |
D | PrefixUtil.java | 73 return prefix.substring(0, delimiterIndex); in getPackageName() 97 return prefix.substring(packageDelimiterIndex + 1, databaseDelimiterIndex); in getDatabaseName() 121 return prefixedString.substring(delimiterIndex + 1); in removePrefix() 143 return prefixedString.substring(0, delimiterIndex + 1); in getPrefix() 249 String newSchemaType = typeConfigBuilder.getSchemaType().substring(typePrefix.length()); in removePrefixesFromSchemaType() 260 propertyConfigBuilder.getSchemaType().substring(typePrefix.length()); in removePrefixesFromSchemaType() 271 typeConfigBuilder.getParentTypes(parentTypeIdx).substring(typePrefix.length()); in removePrefixesFromSchemaType()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | ContactsIndexerPhoneNumberUtils.java | 126 phoneNumberVariants.add(dialingCode.substring(1) + " " + nationalFormat); in createPhoneNumberVariants() 151 String possibleCodeWithPlusSign = phoneNumberInE164.substring(0, i); in parsePhoneNumberInE164() 153 return new Pair<>(possibleCodeWithPlusSign, phoneNumberInE164.substring(i)); in parsePhoneNumberInE164() 214 phoneNumberNational.substring(0, i) + phoneNumberNational.substring(i + 1)); in addVariantsFromFormatNational()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiBackupRestore.java | 290 majorVersion = Integer.parseInt(versionStr.substring(0, separatorPos)); in retrieveConfigurationsFromBackupData() 291 minorVersion = Integer.parseInt(versionStr.substring(separatorPos + 1)); in retrieveConfigurationsFromBackupData() 634 configuration.SSID = mParsedSSIDLine.substring(mParsedSSIDLine.indexOf('=') + 1); in createWifiConfiguration() 639 Integer.parseInt(mParsedHiddenLine.substring( in createWifiConfiguration() 649 mParsedKeyMgmtLine.substring(mParsedKeyMgmtLine.indexOf('=') + 1); in createWifiConfiguration() 690 mParsedPskLine.substring(mParsedPskLine.indexOf('=') + 1); in createWifiConfiguration() 694 mParsedWepKeyLines[0].substring(mParsedWepKeyLines[0].indexOf('=') + 1); in createWifiConfiguration() 698 mParsedWepKeyLines[1].substring(mParsedWepKeyLines[1].indexOf('=') + 1); in createWifiConfiguration() 702 mParsedWepKeyLines[2].substring(mParsedWepKeyLines[2].indexOf('=') + 1); in createWifiConfiguration() 706 mParsedWepKeyLines[3].substring(mParsedWepKeyLines[3].indexOf('=') + 1); in createWifiConfiguration() [all …]
|
/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/AppSearch/framework/java/external/android/app/appsearch/ |
D | PropertyPath.java | 108 String propertyName = path.substring(0, controlPos); in recursivePathScan() 110 remainingPath = path.substring(controlPos + 1); in recursivePathScan() 139 String propertyName = path.substring(0, controlPos); in consumePropertyWithIndex() 147 String indexStr = path.substring(controlPos + 1, endBracketIdx); in consumePropertyWithIndex() 162 return path.substring(endBracketIdx + 2); in consumePropertyWithIndex()
|
/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/modules/AppSearch/framework/java/external/android/app/appsearch/util/ |
D | IndentingStringBuilder.java | 109 applyIndentToString(str.substring(index + 1)); in applyIndentToString() 114 String beforeIndentString = str.substring(0, index); in applyIndentToString() 119 String afterIndentString = str.substring(index + 1); in applyIndentToString()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/ |
D | VendorCommandResponseProcessor.java | 89 commandWord = atCommand.substring(0, indexOfEqual + 1); in sendCommand() 91 commandWord = atCommand.substring(0, indexOfQuestionMark + 1); in sendCommand() 123 eventCode = atString.substring(0, indexOfEqual + 1); in getVendorIdFromAtCommand() 125 eventCode = atString.substring(0, indexOfColon + 1); in getVendorIdFromAtCommand()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 297 prefix = name.substring(0, dotIndex); in generateSaveFile() 298 suffix = name.substring(dotIndex); in generateSaveFile() 307 prefix = name.substring(0, dotIndex); in generateSaveFile() 334 filename = hint.substring(index); 349 filename = filename.substring(index); 365 filename = decodedContentLocation.substring(index); 382 filename = decodedUrl.substring(index); 447 filename.substring(lastDotIndex + 1)); in chooseExtensionFromFilename() 465 extension = filename.substring(lastDotIndex); in chooseExtensionFromFilename() 756 return data.substring(matcher.end(), lastSlash + 1); in extractRelativePath() [all …]
|
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/ |
D | DeviceConfigBootstrapValues.java | 92 String namespace = line.substring(0, namespaceDelimiter); in processLine() 101 String key = line.substring(namespaceDelimiter + 1, valueDelimiter); in processLine() 102 String value = line.substring(valueDelimiter + 1); in processLine()
|
/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/modules/Virtualization/tests/helper/src/java/com/android/microdroid/test/common/ |
D | ProcessUtil.java | 98 String pName = ps.substring(space + 1); in getProcessMap() 99 int pId = Integer.parseInt(ps.substring(0, space)); in getProcessMap() 153 if (line.endsWith(" kB")) line = line.substring(0, line.length() - 3); in parseMemoryInfo() 185 return (index < 0) ? "" : str.substring(index + 1); in skipFirstLine()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/ |
D | HealthPermission.kt | 59 getHealthPermissionType(permission.substring(READ_PERMISSION_PREFIX.length)) in fromPermissionString() 64 permission.substring(WRITE_PERMISSION_PREFIX.length)) in fromPermissionString() 127 permission.substring(READ_MEDICAL_DATA_PREFIX.length)) in isExerciseRoutesPermission()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | AidRoutingManager.java | 151 aid = aid.substring(0, aid.length() - 1); in clearNfcRoutingTableLocked() 154 aid = aid.substring(0, aid.length() - 1); in clearNfcRoutingTableLocked() 167 aid = aid.substring(0, aid.length() - 1); in clearNfcRoutingTableLocked() 187 int index = Integer.parseInt(se.substring(3)); in getRouteForSecureElement() 192 int index = Integer.parseInt(se.substring(3)); in getRouteForSecureElement() 375 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting() 380 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting() 393 … aidRoutingTableCache.put(aid.substring(0,aid.length() - 1), aidMap.get(aid)); in configureRouting()
|
/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()
|