Home
last modified time | relevance | path

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

12345678910>>...20

/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/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/Launcher3/quickstep/src/com/android/quickstep/util/
DActiveGestureLog.java264 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/
DBpf2Apf.java46 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/
DNetworkUtils.java309 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/
DApiHelper.java76 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/
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/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()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DCertificateSubjectInfo.java68 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/
DPrefixUtil.java73 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/
DContactsIndexerPhoneNumberUtils.java126 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/
DWifiBackupRestore.java290 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/
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/modules/AppSearch/framework/java/external/android/app/appsearch/
DPropertyPath.java108 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/
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/modules/AppSearch/framework/java/external/android/app/appsearch/util/
DIndentingStringBuilder.java109 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/
DVendorCommandResponseProcessor.java89 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/
DHelpers.java297 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/
DDeviceConfigBootstrapValues.java92 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/
DHostnameTransliterator.java80 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/
DProcessUtil.java98 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/
DHealthPermission.kt59 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/
DAidRoutingManager.java151 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/
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>>...20