Home
last modified time | relevance | path

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

123

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DJavadoc.kt114 return "/**\n *" + new.substring(10) in mergeDocumentation()
150 docComment.findTagByName(tagSection.substring(1)) in mergeDocumentation()
222 return existingDoc.substring(0, index + 1) + in trimDocIndent()
223 existingDoc.substring(index + 1).trimIndent().split('\n').joinToString(separator = "\n") { in trimDocIndent()
244 val prefix = existingDoc.substring(0, offset) in insertInto()
245 val suffix = existingDoc.substring(offset) in insertInto()
259 prefix.substring(0, 3) + "\n *" + prefix.substring(3) + middle + in insertInto()
397 return html.substring(bodyStart, bodyEnd) in getBodyContents()
403 return html.substring(htmlStart, htmlEnd) in getBodyContents()
436 return html.substring(bodyStart, bodyEnd) in getBodyContents()
[all …]
DPsiItem.kt131 return text.substring(0, index) in isCloned()
188 … return "/**\n *" + documentation.substring(3, end) + "\n * $tagSection $commentLine\n */" in addUniqueTag()
216 indent = documentation.substring(indentStart, indentEnd) in addUniqueTag()
222 …return documentation.substring(0, end) + (if (insertNewLine) "\n" else "") + indent + linePrefix +… in addUniqueTag()
DPsiBasedCodebase.kt288 name.substring(0, index) in <lambda>()
317 name.substring(0, index) in <lambda>()
485 pkg = pkg.substring(0, last) in <lambda>()
656 return fullName.substring(0, fullName.length - 1 - name!!.length) in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeItem.kt92 erased.substring(0, index) in asClass()
264 val v = s.substring(0, end) in markRecent()
269 return bounds.first().toTypeString() + s.substring(end) in markRecent()
273 return JAVA_LANG_OBJECT + s.substring(end) in markRecent()
294 s.substring(0, index) in markRecent()
296 s.substring(0, index) + s.substring(i + 1) in markRecent()
302 return s.substring(0, index) in markRecent()
381 s = s.substring(0, index).trim() + s.substring(end).trim() in markRecent()
400 s = s.substring(0, i).trim() + s.substring(end).trim() in markRecent()
DTextClassItem.kt43 var name: String = qualifiedName.substring(qualifiedName.lastIndexOf('.') + 1),
136 TextTypeParameterList.create(codebase, this, s.substring(index)) in typeParameterList()
250 override fun simpleName(): String = name.substring(name.lastIndexOf('.') + 1) in simpleName()
272 val qualifiedName = if (index == -1) name else name.substring(0, index) in createClassStub()
284 … cls.typeParameterList = TextTypeParameterList.create(codebase, cls, name.substring(index)) in createClassStub()
302 return qualifiedName.substring(end) in getFullName()
305 return qualifiedName.substring(qualifiedName.lastIndexOf('.') + 1) in getFullName()
DTextBackedAnnotationItem.kt39 source.substring(1) // Strip @
40 else source.substring(1, index)
47 else -> "@" + qualifiedName + source.substring(index)
54 source.substring(index + 1, source.lastIndexOf(')'))
DTextCodebase.kt192 cl.name = name.substring(index + 1) in resolveInnerClasses()
196 val outerClassName = qualifiedName.substring(0, index) in resolveInnerClasses()
231 val outerName = erased.substring(0, erased.lastIndexOf('.')) in getOrCreateClass()
238 val pkgPath = if (endIndex != -1) erased.substring(0, endIndex) else "" in getOrCreateClass()
312 type.substring(0, nameEnd) in obtainTypeFromString()
464 …return (dotIndex == -1 || dotIndex > typeEnd) && !TextTypeItem.isPrimitive(s.substring(0, typeEnd)… in implicitJavaLangType()
DTextModifiers.kt55 val originalName = if (index == -1) source.substring(1) else source.substring(1, index) in <lambda>()
67 … DefaultAnnotationAttribute.createList(source.substring(index + 1, source.lastIndexOf(')'))) in <lambda>()
DApiFile.kt291 rawName = rawName.substring(0, variableIndex) in parseClass()
376 type = type.substring(0, type.length - 3) in processKotlinTypeSuffix()
381 type = type.substring(0, type.length - 1) in processKotlinTypeSuffix()
384 type = type.substring(0, type.length - 1) in processKotlinTypeSuffix()
456 …val name: String = token.substring(token.lastIndexOf('.') + 1) // For inner classes, strip outer c… in parseConstructor()
729 "long" -> java.lang.Long.valueOf(value.substring(0, value.length - 1)) in parseValue()
746 javaUnescapeString(value.substring(1, value.length - 1)) in parseValue()
DTextTypeParameterItem.kt75 val name = typeParameterString.substring(0, nameEnd) in create()
139 val element = s.substring(begin, end) in add()
/tools/platform-compat/java/com/android/class2nonsdklist/
DStringCursor.java59 return mString.substring(mCursor); in peek()
64 return mString.substring(mCursor, mCursor + n); in peek()
88 String restOfString = mString.substring(mCursor); in next()
96 return mString.substring(mCursor - n, mCursor); in next()
125 return mString.substring(mCursor); in toString()
DPackageAndClassName.java43 String packageName = fullyQualifiedClassName.substring(0, lastDotIdx); in splitClassName()
44 String className = fullyQualifiedClassName.substring(lastDotIdx + 1); in splitClassName()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DOptionsParser.java83 mLastOptionValue = param.substring(valueDelimiterIndex + 1); in nextOption()
84 mLastOptionOriginalForm = param.substring(0, valueDelimiterIndex); in nextOption()
85 return param.substring("--".length(), valueDelimiterIndex); in nextOption()
87 return param.substring("--".length()); in nextOption()
91 return param.substring("-".length()); in nextOption()
DPasswordRetriever.java142 char[] pwd = spec.substring("pass:".length()).toCharArray(); in getPasswords()
166 String name = spec.substring("file:".length()); in getPasswords()
182 String name = spec.substring("env:".length()); in getPasswords()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt525 "@" + source.substring("@android.annotation.".length) in shortenAnnotation()
528 "@" + source.substring("@androidx.annotation.".length) in shortenAnnotation()
545 "@android.annotation." + source.substring(1) in unshortenAnnotation()
550 "@androidx.annotation." + source.substring(1) in unshortenAnnotation()
770 name = source.substring(from, split).trim() in addAttribute()
774 value = source.substring(valueBegin, valueEnd).trim() in addAttribute()
830 override val values = value.substring(1, value.length - 1).split(",").map { in <lambda>()
DTypeItem.kt202 return type.substring(start) in <lambda>()
208 return type.substring(start) in <lambda>()
355 name = name.substring(0, name.length - 2) in <lambda>()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DChainedDataSourceTest.java57 ByteBuffer.wrap("1234567890".substring(begin, end).getBytes(US_ASCII)), in feedAllPossibleRanges()
74 ByteBuffer.wrap("1234567890".substring(begin, end).getBytes(US_ASCII)), in getByteBufferFromAllPossibleRanges()
96 ByteBuffer.wrap("1234567890".substring(begin, end).getBytes(US_ASCII)), in copyTo()
110 ByteBuffer.wrap("1234567890".substring(begin, end).getBytes(US_ASCII)), in slice()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiLint.kt628 val expected = prefix + "." + name.substring(7) in <lambda>()
665 val expected = prefix + "." + name.substring(6) in <lambda>()
840 val unregister = "unregister" + name.substring(8) // "register".length in <lambda>()
843 val unregister = "register" + name.substring(10) // "unregister".length in <lambda>()
854 val unregister = "remove" + name.substring(3) // "add".length in <lambda>()
857 val unregister = "add" + name.substring(6) // "remove".length in <lambda>()
1320 val target = name.substring(pattern.getter.length) in <lambda>()
1331 val target = name.substring(pattern.setter.length) in <lambda>()
1432 val scope = name.substring(0, index) in <lambda>()
2457 val service = name.substring(0, name.length - "_SERVICE".length).lowercase(Locale.US) in <lambda>()
[all …]
DDocAnalyzer.kt138 name.substring(name.lastIndexOf('.') + 1, name.length - "Thread".length) in <lambda>()
560 … val insert = stripLeadingAsterisks(stripMetaTags(documentation.substring(tag.length + 2))) in <lambda>()
565 qualified.substring(if (qualified[3] == ' ') 4 else 3, qualified.length - 2) in <lambda>()
653 doc = doc.substring(0, firstDot) + ".g.&nbsp;" + doc.substring(firstDot + 4) in <lambda>()
DOptions.kt1360 yesNo(arg.substring(ARG_OUTPUT_KOTLIN_NULLS.length + 1)) in <lambda>()
1366 yesNo(arg.substring(ARG_INPUT_KOTLIN_NULLS.length + 1)) in <lambda>()
1372 yesNo(arg.substring(ARG_OUTPUT_DEFAULT_VALUES.length + 1)) in <lambda>()
1377 else yesNo(arg.substring(ARG_INCLUDE_SIG_VERSION.length + 1)) in <lambda>()
1610 val name = qualifiedName.substring(qualifiedName.lastIndexOf('.') + 1) in <lambda>()
1847 val listFile = File(file.path.substring(1)) in <lambda>()
1955 return File(home + path.substring(1)) in <lambda>()
1957 return File("@" + File(path.substring(1)).absolutePath) in <lambda>()
DBaseline.kt187 return path.substring(sourcePath.path.length).replace('\\', '/').removePrefix("/") in <lambda>()
216 val issueId = line.substring(0, idEnd).trim() in <lambda>()
217 val elementId = line.substring(idEnd + 2, elementEnd).trim() in <lambda>()
DCommandArgsPreprocessor.kt123 val file = arg.substring(1) in dumpArgv()
216 File(it.substring(1)).copyTo(File(optFile), true) in generateRerunScript()
DAnnotationFilter.kt158 text.substring(0, index) in fromSource()
165 text.substring(index + 1, text.lastIndexOf(')')) in fromSource()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DArgsOptionParser.java232 value = name.substring(equalsIndex + 1); in parseLongOption()
233 name = name.substring(0, equalsIndex); in parseLongOption()
271 value = arg.substring(i + 1); in parseGroupedShortOptions()
/tools/carrier_settings/java/
DCarrierConfigConverterV2.java168 childFileName.substring( in convert()
180 childFileName.substring( in convert()
210 String mccMnc = xml.getKey().substring(KEY_MCCMNC_PREFIX.length()); in convert()
220 int cid = Integer.parseInt(xml.getKey().substring(KEY_CID_PREFIX.length())); in convert()
826 String mcc = carrier.getMccMnc().substring(0, 3); in create()
827 String mnc = carrier.getMccMnc().length() > 3 ? carrier.getMccMnc().substring(3) : ""; in create()

123