Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DVisualVoicemailSmsParser.java66 String eventType = smsBody.substring(prefixEnd + 1, eventTypeEnd); in parse()
67 Bundle fields = parseSmsBody(smsBody.substring(eventTypeEnd + 1)); in parse()
108 String key = entry.substring(0, separatorIndex); in parseSmsBody()
109 String value = entry.substring(separatorIndex + 1); in parseSmsBody()
131 String eventType = smsBody.substring(0, eventTypeEnd); in parseAlternativeFormat()
135 Bundle fields = parseSmsBody(smsBody.substring(eventTypeEnd + 1)); in parseAlternativeFormat()
DSmsNumberUtils.java155 return networkPortionNumber.substring(1); in formatNumber()
165 return PLUS_SIGN + networkPortionNumber.substring(iddLength); in formatNumber()
169 return networkPortionNumber.substring(iddLength); in formatNumber()
182 returnNumber = networkPortionNumber.substring(1); in formatNumber()
188 returnNumber = NANP_IDD + networkPortionNumber.substring(1); in formatNumber()
195 returnNumber = NANP_IDD + networkPortionNumber.substring(iddLength); in formatNumber()
220 returnNumber = networkPortionNumber.substring(1); in formatNumber()
223 returnNumber = NANP_IDD + networkPortionNumber.substring(1); in formatNumber()
326 number = number.substring(1); in checkNANP()
336 number = number.substring(3); in checkNANP()
[all …]
/frameworks/base/core/java/android/webkit/
DURLUtil.java66 inUrl = inUrl.substring(0, inUrl.length() - 1); in guessUrl()
96 buffer.append(template.substring(0, placeHolderIndex)); in composeSearchUrl()
105 buffer.append(template.substring( in composeSearchUrl()
233 url.substring(0, 7).equalsIgnoreCase("http://"); in isHttpUrl()
242 url.substring(0, 8).equalsIgnoreCase("https://"); in isHttpsUrl()
286 return url.substring(0, anchorIndex); in stripAnchor()
314 filename = filename.substring(index); in guessFileName()
326 decodedUrl = decodedUrl.substring(0, queryIndex); in guessFileName()
331 filename = decodedUrl.substring(index); in guessFileName()
369 filename.substring(lastDotIndex + 1)); in guessFileName()
[all …]
DMimeTypeMap.java47 url = url.substring(0, fragment); in getFileExtensionFromUrl()
52 url = url.substring(0, query); in getFileExtensionFromUrl()
57 0 <= filenamePos ? url.substring(filenamePos + 1) : url; in getFileExtensionFromUrl()
65 return filename.substring(dotPos + 1); in getFileExtensionFromUrl()
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DLockTarget.java43 return pre.substring(0, pre.lastIndexOf('.')); in getPreOwner()
47 return pre.substring(pre.lastIndexOf('.') + 1); in getPreMethod()
55 return post.substring(0, post.lastIndexOf('.')); in getPostOwner()
59 return post.substring(post.lastIndexOf('.') + 1); in getPostMethod()
/frameworks/base/tests/net/java/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()
/frameworks/base/tools/preload/
DRecord.java125 line = line.substring(1); in Record()
152 String before = result.substring(0, offset); in decode()
153 String escaped = result.substring(offset+2, offset+6); in decode()
154 String after = result.substring(offset+6); in decode()
179 typeName = typeName.substring(1, typeName.length() - 1); in vmTypeToLanguage()
/frameworks/base/core/java/android/net/
DNetworkUtils.java337 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()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/
DScopedException.java115 message = output.substring(msgStart + MSG_KEY.length(), fileStart); in createFromOutput()
118 file = output.substring(fileStart + FILE_KEY.length()); in createFromOutput()
120 file = output.substring(fileStart + FILE_KEY.length(), locStart); in createFromOutput()
127 output.substring(locStart + LOCATION_KEY.length())); in createFromOutput()
130 output.substring(locStart + LOCATION_KEY.length(), nextLoc)); in createFromOutput()
151 errors.add(createFromOutput(output.substring(index + ERROR_LOG_PREFIX.length()))); in extractErrors()
154 errors.add(createFromOutput(output.substring(index + ERROR_LOG_PREFIX.length(), in extractErrors()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DRenameClassAdapter.java49 mOldBase = mOldName.substring(0, pos); in RenameClassAdapter()
53 mNewBase = mNewName.substring(0, pos); in RenameClassAdapter()
82 return mNewBase + type.substring(pos); in renameInternalType()
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/vo/
DField.kt78 result.add(name.substring(1)) in <lambda>()
81 result.add(name.substring(1).decapitalize()) in <lambda>()
86 result.add(name.substring(2).decapitalize()) in <lambda>()
89 result.add(name.substring(3).decapitalize()) in <lambda>()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java111 String[] pieces = param.substring(8).split("\\+"); in parseOptions()
125 options.maxMoratoriumMillis = parseSeconds(param.substring(4)); in parseOptions()
127 options.minTriggerMillis = parseSeconds(param.substring(4)); in parseOptions()
129 options.periodicIntervalMillis = parseSeconds(param.substring(7)); in parseOptions()
362 out.append(" ").append(key.substring(PREFIX.length(), key.length() - 10)); in toString()
365 out.append(" ").append(key.substring(PREFIX.length())); in toString()
/frameworks/base/media/java/android/media/
DUtils.java242 Integer.parseInt(s.substring(0, ix), 10),
243 Integer.parseInt(s.substring(ix + 1), 10));
263 Long.parseLong(s.substring(0, ix), 10),
264 Long.parseLong(s.substring(ix + 1), 10));
284 Rational.parseRational(s.substring(0, ix)),
285 Rational.parseRational(s.substring(ix + 1)));
305 Size.parseSize(s.substring(0, ix)),
306 Size.parseSize(s.substring(ix + 1)));
DWebVttRenderer.java194 mData.append(mLine.substring(mHandledLen, pos)); in replaceEscape()
222 mData.append(mLine.substring(mHandledLen, end)); in tokenize()
251 parts = mLine.substring(mHandledLen).split(">"); in tokenize()
253 parts = mLine.substring(mHandledLen).split("[\t\f >]"); in tokenize()
255 String part = mLine.substring( in tokenize()
277 mListener.onEnd(mName.substring(1)); in yield_tag()
289 mAnnotation = mAnnotation.substring(1); in yield_tag()
292 mAnnotation = mAnnotation.substring(0, mAnnotation.length() - 1); in yield_tag()
298 classes = mName.substring(dotAt + 1).split("\\."); in yield_tag()
299 mName = mName.substring(0, dotAt); in yield_tag()
[all …]
/frameworks/opt/net/voip/src/java/android/net/sip/
DSimpleSessionDescription.java92 String[] parts = line.substring(2).split(" ", 4); in SimpleSessionDescription()
411 return (slash < 0) ? parts[2] : parts[2].substring(0, slash); in getAddress()
435 return (colon == -1) ? encryption : encryption.substring(0, colon); in getEncryptionMethod()
447 return (colon == -1) ? null : encryption.substring(0, colon + 1); in getEncryptionKey()
542 set(line.substring(0, i), delimiter, line.substring(i + 1)); in parse()
558 names[length] = line.substring(prefix.length(), i); in cut()
610 return (line.length() == length) ? "" : line.substring(length + 1); in get()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
DXmlEditor.java141 String newLine = line.substring(0, endTagPosition.charIndex) + " " + tag + in strip()
142 line.substring(endTagPosition.charIndex); in strip()
212 ("@{".equals(value.substring(1, 3)) || "@={".equals(value.substring(1, 4)))); in isExpressionText()
247 String newStartLine = startLine.substring(0, start.charIndex) + text; in replace()
273 return line.substring(0, start) + newText + line.substring(end); in replaceRange()
334 String escapedText = textWithQuotes.substring(1, textWithQuotes.length() - 1); in defaultReplacement()
342 String text = StringUtils.unescapeXml(escapedText.substring(startIndex, endIndex)); in defaultReplacement()
367 String unquoted = quotedStr.substring(1, quotedStr.length() - 1); in defaultReplacement()
371 String unquoted = quotedStr.substring(1, quotedStr.length() - 1); in defaultReplacement()
/frameworks/base/core/java/com/android/internal/alsa/
DAlsaCardsParser.java63 mCardNum = Integer.parseInt(line.substring(tokenIndex, delimIndex)); in parse()
66 + ": " + line.substring(tokenIndex, delimIndex)); in parse()
73 mField1 = line.substring(tokenIndex, delimIndex); in parse()
77 mCardName = line.substring(tokenIndex); in parse()
86 mCardDescription = line.substring(tokenIndex, keyIndex - 1); in parse()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
DLocation.java79 String lastLine = lastLineStart < 0 ? endText : endText.substring(lastLineStart + 1); in Location()
203 String start = str.substring(0, glue); in fromUserReadableString()
204 String end = str.substring(glue + 1); in fromUserReadableString()
222 into[0] = Integer.parseInt(content.substring(0, index).trim()); in parsePoint()
223 into[1] = Integer.parseInt(content.substring(index + 1).trim()); in parsePoint()
/frameworks/base/core/java/android/util/
DDebugUtils.java85 pair[0].substring(0, 1).toUpperCase(Locale.ROOT) + in isObjectSelected()
86 pair[0].substring(1), in isObjectSelected()
120 simpleName = simpleName.substring(end+1); in buildShortClassTag()
222 return field.getName().substring(prefix.length()); in valueToString()
248 res.append(field.getName().substring(prefix.length())).append('|'); in flagsToString()
/frameworks/base/legacy-test/src/junit/framework/
DComparisonCompactor.java40 String result= DELTA_START + source.substring(fPrefix, source.length() - fSuffix + 1) + DELTA_END; in compactString()
68 …return (fPrefix > fContextLength ? ELLIPSIS : "") + fExpected.substring(Math.max(0, fPrefix - fCon… in computeCommonPrefix()
73 …return fExpected.substring(fExpected.length() - fSuffix + 1, end) + (fExpected.length() - fSuffix … in computeCommonSuffix()
/frameworks/base/core/java/com/android/internal/os/
DZygoteConnection.java455 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
463 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
471 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
498 seInfo = arg.substring(arg.indexOf('=') + 1); in parseArgs()
505 String capString = arg.substring(arg.indexOf('=')+1); in parseArgs()
519 = arg.substring(arg.indexOf('=')+1).split(","); in parseArgs()
543 = arg.substring(arg.indexOf('=') + 1).split(","); in parseArgs()
566 niceName = arg.substring(arg.indexOf('=') + 1); in parseArgs()
576 instructionSet = arg.substring(arg.indexOf('=') + 1); in parseArgs()
578 appDataDir = arg.substring(arg.indexOf('=') + 1); in parseArgs()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupRestore.java628 configuration.SSID = mParsedSSIDLine.substring(mParsedSSIDLine.indexOf('=') + 1); in createWifiConfiguration()
633 Integer.parseInt(mParsedHiddenLine.substring( in createWifiConfiguration()
644 mParsedKeyMgmtLine.substring(mParsedKeyMgmtLine.indexOf('=') + 1); in createWifiConfiguration()
669 mParsedPskLine.substring(mParsedPskLine.indexOf('=') + 1); in createWifiConfiguration()
673 mParsedWepKeyLines[0].substring(mParsedWepKeyLines[0].indexOf('=') + 1); in createWifiConfiguration()
677 mParsedWepKeyLines[1].substring(mParsedWepKeyLines[1].indexOf('=') + 1); in createWifiConfiguration()
681 mParsedWepKeyLines[2].substring(mParsedWepKeyLines[2].indexOf('=') + 1); in createWifiConfiguration()
685 mParsedWepKeyLines[3].substring(mParsedWepKeyLines[3].indexOf('=') + 1); in createWifiConfiguration()
689 Integer.valueOf(mParsedWepTxKeyIdxLine.substring( in createWifiConfiguration()
694 mParsedIdStrLine.substring(mParsedIdStrLine.indexOf('=') + 1); in createWifiConfiguration()
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/ext/
Dext.kt61 'L' -> componentType = name.substring(numArray + 1, name.length - 1).replace('$', '.'); in lazyProp()
67 else -> componentType = name.substring(numArray) in lazyProp()
69 val arrayComp = name.substring(0, numArray).replace("[", "[]"); in lazyProp()
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DSharedStorageAgent.java78 int i = Integer.parseInt(relpath.substring(0, slash)); in onRestoreFile()
80 outFile = new File(mVolumes[i].getPath(), relpath.substring(slash + 1)); in onRestoreFile()
86 if (DEBUG) Slog.w(TAG, "Bad volume number token: " + relpath.substring(0, slash)); in onRestoreFile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatLog.java30 Rlog.d("CAT", className.substring(className.lastIndexOf('.') + 1) + ": " in d()
43 Rlog.e("CAT", className.substring(className.lastIndexOf('.') + 1) + ": " in e()

12345678910>>...18