Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 25 of 188) sorted by relevance

12345678

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DCodePrinter.kt80 return sb.toString() in toSourceExpression()
146 sb.toString() in toSourceString()
381 sb.append(literalValue.toString()) in appendLiteralValue()
385 XmlUtils.appendXmlAttributeValue(sb, literalValue.toString()) in appendLiteralValue()
399 return value.toString() in constantToSource()
405 return value.toString() + "L" in constantToSource()
408 return value.toString() in constantToSource()
411 return value.toString() in constantToSource()
414 return value.toString() in constantToSource()
422 canonicalizeFloatingPointString(value.toString()) + "f" in constantToSource()
[all …]
DPsiTypeItem.kt62 private var toString: String? = null variable in com.android.tools.metalava.model.psi.PsiTypeItem
68 override fun toString(): String { in toString() method in com.android.tools.metalava.model.psi.PsiTypeItem
159 if (toString == null) { in toTypeString()
160 toString = TypeItem.formatType( in toTypeString()
172 toString!! in toTypeString()
194 val signature = getPrimitiveSignature(toString()) in internalName()
201 return sb.toString() in internalName()
727 val typeString = sb.toString() in typeParameterList()
DPsiTypePrinter.kt175 return sb.toString() in <lambda>()
194 return sb.toString() in <lambda>()
228 return sb.toString() in <lambda>()
247 return sb.toString() in <lambda>()
277 return sb.toString() in <lambda>()
354 return buffer.toString() in <lambda>()
547 return buffer.toString() in <lambda>()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/extractors/
DSystraceExtractorTest.kt37 assertEquals("one", result[0].toString()) in <lambda>()
45 assertEquals("first", result[0].toString()) in <lambda>()
46 assertEquals("second", result[1].toString()) in <lambda>()
47 assertEquals("third", result[2].toString()) in <lambda>()
53 .joinToString(separator = "").asIterable().map { it.toString() } in <lambda>()
56 assertEquals("1", result[0].toString()) in <lambda>()
57 assertEquals("2", result[1].toString()) in <lambda>()
58 assertEquals("3", result[2].toString()) in <lambda>()
59 assertEquals("4", result[3].toString()) in <lambda>()
60 assertEquals("5", result[4].toString()) in <lambda>()
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/model/text/
DTextTypeParameterItemTest.kt27 assertThat(bounds(null).toString()).isEqualTo("[]") in testTypeParameterNames()
28 assertThat(bounds("").toString()).isEqualTo("[]") in testTypeParameterNames()
29 assertThat(bounds("X").toString()).isEqualTo("[]") in testTypeParameterNames()
30 assertThat(bounds("DEF extends T").toString()).isEqualTo("[T]") in testTypeParameterNames()
31 assertThat(bounds("T extends java.lang.Comparable<? super T>").toString()) in testTypeParameterNames()
33 assertThat(bounds("T extends java.util.List<Number> & java.util.RandomAccess").toString()) in testTypeParameterNames()
54 assertThat(bounds("D", method).toString()).isEqualTo("[androidx.navigation.NavDestination]") in testTypeParameterNames()
DTextTypeParameterListTest.kt25 … Truth.assertThat(TextTypeParameterList.typeParameterStrings(null).toString()).isEqualTo("[]") in testTypeParameterStrings()
26 Truth.assertThat(TextTypeParameterList.typeParameterStrings("").toString()).isEqualTo("[]") in testTypeParameterStrings()
27 … Truth.assertThat(TextTypeParameterList.typeParameterStrings("<X>").toString()).isEqualTo("[X]") in testTypeParameterStrings()
28 … Truth.assertThat(TextTypeParameterList.typeParameterStrings("<ABC,DEF extends T>").toString()) in testTypeParameterStrings()
30 …xtTypeParameterList.typeParameterStrings("<T extends java.lang.Comparable<? super T>>").toString()) in testTypeParameterStrings()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/
DFtraceLineTest.kt38 assertEquals("sched_switch", line.function.toString()) in <lambda>()
54 assertEquals("sched_blocked_reason", line.function.toString()) in <lambda>()
71 assertEquals("sched_switch", line.function.toString()) in <lambda>()
87 assertEquals("sched_switch", line.function.toString()) in <lambda>()
101 assertEquals("sched_wakeup", line.function.toString()) in <lambda>()
116 assertEquals("sched_wakeup", line.function.toString()) in <lambda>()
131 assertEquals("tracing_mark_write", line.function.toString()) in <lambda>()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java150 return sb.toString(); in getInvocationSummary()
186 sb.append(entry.getKey().toString()); in getInvocationSummary()
199 sb.append(test.toString()); in getInvocationSummary()
236 return "Test results:\n" + sb.toString().trim() + "\n"; in getInvocationSummary()
244 sb.append(test.toString()); in createFunctionalTestFailureReport()
255 new ByteArrayInputStream(sb.toString().getBytes())); in createFunctionalTestFailureReport()
283 return sb.toString(); in getTestRunSummary()
362 return new Report(success, text.toString()); in createPerformanceReport()
370 sb.append(String.format(" %s: %s (%dms)\n", testId.toString(), testResult.getStatus(), in getTestSummary()
380 return sb.toString(); in getTestSummary()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt172 val perm = value.toString() in <lambda>()
175 it.initialValue(requireConstant = false)?.toString() == perm in <lambda>()
236 ?.value?.value()?.toString() ?: return in <lambda>()
328 val v = value.value()?.toString() ?: value.toSource() in <lambda>()
354 appendDocumentation(sb.toString(), item, false) in <lambda>()
439 appendDocumentation(sb.toString(), item, true) in <lambda>()
472 appendDocumentation(sb.toString(), item, false) in <lambda>()
532 appendDocumentation(sb.toString(), item, false) in <lambda>()
611 return sb.toString() in <lambda>()
697 val relative = sb.toString() in <lambda>()
[all …]
DNullabilityAnnotationsValidator.kt54 override fun toString(): String { in <lambda>() method in com.android.tools.metalava.NullabilityAnnotationsValidator.Error
68 override fun toString(): String { in <lambda>() method in com.android.tools.metalava.NullabilityAnnotationsValidator.Warning
94 … checkItem(parameter.containingMethod(), parameter.toString(), parameter.type(), parameter) in <lambda>()
186 errors.sortBy { it.toString() } in <lambda>()
187 warnings.sortBy { it.toString() } in <lambda>()
209 …Issues.forEach { reporter.report(Issues.INVALID_NULLABILITY_ANNOTATION, it.method, it.toString()) } in <lambda>()
DDiff.kt99 sb.append((i + 1).toString()) in getDiff()
101 sb.append((j + 1).toString()) in getDiff()
145 sb.append((i + 1).toString()) in getDiff()
147 sb.append((j + 1).toString()) in getDiff()
169 return sb.toString() in getDiff()
DSdkFileWriter.kt85 … SDK_CONSTANT_TYPE_ACTIVITY_ACTION -> activityActions.add(value.toString()) in generate()
86 … SDK_CONSTANT_TYPE_BROADCAST_ACTION -> broadcastActions.add(value.toString()) in generate()
87 SDK_CONSTANT_TYPE_SERVICE_ACTION -> serviceActions.add(value.toString()) in generate()
88 SDK_CONSTANT_TYPE_CATEGORY -> categories.add(value.toString()) in generate()
89 SDK_CONSTANT_TYPE_FEATURE -> features.add(value.toString()) in generate()
DReporter.kt76 override fun toString(): String = displayName in <lambda>() method in com.android.tools.metalava.Severity
146 which(severity, (item as? TextItem)?.position.toString(), message, id) in report()
197 val string = innerValue.value()?.toString() ?: continue in isSuppressed()
204 val string = value.value()?.toString() in isSuppressed()
257 val path = (rootFolder?.toPath()?.relativize(file.toPath()) ?: file.toPath()).toString() in elementToLocation()
378 return sb.toString() in format()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/p2p/
Dwifi_p2p_test_utils.py432 serviceData[dns_service.toString()] = 1
442 serviceData[dns_service.toString()] = 1
588 expectServiceList[ipp_service.toString()] = 1
595 expectServiceList[ipp_service.toString()] = 1
603 expectServiceList[afp_service.toString()] = 1
610 expectServiceList[ipp_service.toString()] = 1
616 expectServiceList[ipp_service.toString()] = 1
623 expectServiceList[afp_service.toString()] = 1
629 expectServiceList[afp_service.toString()] = 1
738 def toString(self): member in WifiP2PEnums.WifiP2pDnsSdServiceResponse
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java89 createChange(packageElement.toString(), enclosingElementName, element); in process()
95 CLASS_OUTPUT, packageElement.toString(), in process()
116 if (enclosingElement.toString().equals(IGNORED_CLASS) && in ignoreAnnotatedElement()
117 IGNORED_METHOD_NAMES.contains(enclosingMethod.getSimpleName().toString())) { in ignoreAnnotatedElement()
176 .name(element.getSimpleName().toString()); in createChange()
182 .toString(); in createChange()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DFieldItem.kt105 if (thisConstant.toString() == otherConstant.toString()) { in <lambda>()
206 writer.print(canonicalizeFloatingPointString(value.toString())) in <lambda>()
218 writer.print(canonicalizeFloatingPointString(value.toString())) in <lambda>()
231 javaEscapeString(value.toString()) in <lambda>()
361 return buf.toString() in javaUnescapeString()
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/
DUnsupportedAppUsageProcessor.java108 packageElement.toString(), in process()
170 String parameterValue = annotationValue.getValue().toString(); in getSourcePositionOverride()
183 key -> elementName.equals(key.getSimpleName().toString())); in hasElement()
188 .filter(key -> !key.getSimpleName().toString().equals( in getAllProperties()
200 return URLEncoder.encode(annotation.getElementValues().get(element).toString(), in getAnnotationElementValue()
DSignatureConverter.java118 .toString() in getClassSignature()
134 .toString(); in getClassSignature()
191 return signature.toString(); in getExecutableSignature()
211 .toString(); in buildFieldSignature()
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestWriter.java54 namedAttributes.remove(Attributes.Name.MANIFEST_VERSION.toString()); in writeMainSection()
76 writeAttribute(out, name.toString(), value); in writeAttribute()
112 String attrName = attribute.getKey().toString(); in getAttributesSortedByName()
113 String attrValue = attribute.getValue().toString(); in getAttributesSortedByName()
/tools/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt470 assertEquals(BANNER + "\n\n", stdout.toString()) in Test invalid arguments()
478 """.trimIndent(), stderr.toString() in Test invalid arguments()
493 assertEquals("", stderr.toString()) in Test help()
503 """.trimIndent(), stdout.toString() in Test help()
/tools/apifinder/src/main/com/android/apifinder/
DJavaApiUsedByMainlineModule.java75 StringBuilder tmpParam = new StringBuilder(paramSymbol.asType().toString()); in constructParameters()
99 String methodName = sym.name.toString(); in matchMethodInvocation()
104 nameList.add(0, classSymbol.name.toString()); in matchMethodInvocation()
133 nameList.add(0, tmpSymbol.name.toString()); in matchNewClass()
/tools/platform-compat/java/android/processor/compat/
DSingleAnnotationProcessor.java88 Preconditions.checkState(supportedAnnotation.equals(annotation.toString())); in process()
174 .filter(key -> propertyName.equals(key.getSimpleName().toString())) in getAnnotationValue()
191 ((QualifiedNameable) element.getEnclosingElement()).getQualifiedName().toString(); in getEnclosingElementName()
192 String packageName = elements.getPackageOf(element).toString(); in getEnclosingElementName()
/tools/apksig/src/main/java/com/android/apksig/
DApkVerificationIssue.java159 public String toString() { in toString() method in ApkVerificationIssue
167 result.append(", ").append(param.toString()); in toString()
169 return result.toString(); in toString()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DBootSector.java186 return sb.toString(); in getFileSystemTypeLabel()
243 return b.toString(); in getOemName()
480 public String toString() { in toString() method in BootSector
514 return res.toString(); in toString()
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DTextBackedAnnotationItemTest.kt59 assertEquals("20", annotation.findAttribute("from")?.value.toString()) in testIntRange()
61 assertEquals("40", annotation.findAttribute("to")?.value.toString()) in testIntRange()
81 annotation.findAttribute("value")?.value.toString() in testIntDef()

12345678