Home
last modified time | relevance | path

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

12345678910

/tools/loganalysis/src/com/android/loganalysis/item/
DAnrItem.java55 CpuUsageCategory.TOTAL.toString(),
56 CpuUsageCategory.USER.toString(),
57 CpuUsageCategory.KERNEL.toString(),
58 CpuUsageCategory.IOWAIT.toString(),
59 LoadCategory.LOAD_1.toString(),
60 LoadCategory.LOAD_5.toString(),
61 LoadCategory.LOAD_15.toString(),
76 return (Double) getAttribute(category.toString()); in getCpuUsage()
83 setAttribute(category.toString(), usage); in setCpuUsage()
90 return (Double) getAttribute(category.toString()); in getLoad()
[all …]
DMonkeyLogItem.java79 DroppedCategory.KEYS.toString(),
80 DroppedCategory.POINTERS.toString(),
81 DroppedCategory.TRACKBALLS.toString(),
82 DroppedCategory.FLIPS.toString(),
83 DroppedCategory.ROTATIONS.toString()));
323 return (Integer) getAttribute(category.toString()); in getDroppedCount()
330 setAttribute(category.toString(), count); in setDroppedCount()
/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/main/java/com/android/tools/metalava/model/psi/
DCodePrinter.kt81 return sb.toString() in toSourceExpression()
147 sb.toString() in toSourceString()
382 sb.append(literalValue.toString()) in appendLiteralValue()
386 XmlUtils.appendXmlAttributeValue(sb, literalValue.toString()) in appendLiteralValue()
400 return value.toString() in constantToSource()
406 return value.toString() + "L" in constantToSource()
409 return value.toString() in constantToSource()
412 return value.toString() in constantToSource()
415 return value.toString() in constantToSource()
423 canonicalizeFloatingPointString(value.toString()) + "f" in constantToSource()
[all …]
DPsiTypeItem.kt60 private var toString: String? = null variable in com.android.tools.metalava.model.psi.PsiTypeItem
66 override fun toString(): String { in toString() method in com.android.tools.metalava.model.psi.PsiTypeItem
157 if (toString == null) { in toTypeString()
158 toString = TypeItem.formatType( in toTypeString()
170 toString!! in toTypeString()
192 val signature = getPrimitiveSignature(toString()) in internalName()
199 return sb.toString() in internalName()
741 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/metalava/src/test/java/com/android/tools/metalava/model/text/
DTextTypeParameterItemTest.kt26 assertThat(bounds(null).toString()).isEqualTo("[]") in testTypeParameterNames()
27 assertThat(bounds("").toString()).isEqualTo("[]") in testTypeParameterNames()
28 assertThat(bounds("X").toString()).isEqualTo("[]") in testTypeParameterNames()
29 assertThat(bounds("DEF extends T").toString()).isEqualTo("[T]") in testTypeParameterNames()
30 assertThat(bounds("T extends java.lang.Comparable<? super T>").toString()) in testTypeParameterNames()
32 assertThat(bounds("T extends java.util.List<Number> & java.util.RandomAccess").toString()) in testTypeParameterNames()
55 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.kt148 val perm = value.toString() in <lambda>()
151 it.initialValue(requireConstant = false)?.toString() == perm in <lambda>()
212 ?.value?.value()?.toString() ?: return in <lambda>()
312 val v = value.value()?.toString() ?: value.toSource() in <lambda>()
338 appendDocumentation(sb.toString(), item, false) in <lambda>()
423 appendDocumentation(sb.toString(), item, true) in <lambda>()
456 appendDocumentation(sb.toString(), item, false) in <lambda>()
516 appendDocumentation(sb.toString(), item, false) in <lambda>()
595 return sb.toString() in <lambda>()
710 level.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.kt84 … SDK_CONSTANT_TYPE_ACTIVITY_ACTION -> activityActions.add(value.toString()) in generate()
85 … SDK_CONSTANT_TYPE_BROADCAST_ACTION -> broadcastActions.add(value.toString()) in generate()
86 SDK_CONSTANT_TYPE_SERVICE_ACTION -> serviceActions.add(value.toString()) in generate()
87 SDK_CONSTANT_TYPE_CATEGORY -> categories.add(value.toString()) in generate()
88 SDK_CONSTANT_TYPE_FEATURE -> features.add(value.toString()) in generate()
DReporter.kt79 override fun toString(): String = displayName in <lambda>() method in com.android.tools.metalava.Severity
149 which(severity, (item as? TextItem)?.position.toString(), message, id) in report()
200 val string = innerValue.value()?.toString() ?: continue in isSuppressed()
207 val string = value.value()?.toString() in isSuppressed()
260 val path = (rootFolder?.toPath()?.relativize(file.toPath()) ?: file.toPath()).toString() in elementToLocation()
384 return sb.toString() in format()
/tools/loganalysis/src/com/android/loganalysis/util/
DRegexTrie.java88 return mPattern.toString().equals(otherPat.toString()); in equals()
93 return mPattern.toString().hashCode(); in hashCode()
97 public String toString() { in toString() method in RegexTrie.CompPattern
98 return String.format("CP(%s)", mPattern.toString()); in toString()
289 public String toString() { in toString() method in RegexTrie
/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.kt109 if (thisConstant.toString() == otherConstant.toString()) { in <lambda>()
210 writer.print(canonicalizeFloatingPointString(value.toString())) in <lambda>()
222 writer.print(canonicalizeFloatingPointString(value.toString())) in <lambda>()
235 javaEscapeString(value.toString()) in <lambda>()
365 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()
/tools/loganalysis/src/com/android/loganalysis/parser/
DJavaCrashParser.java108 addMessageStack(jc, message.toString(), stack.toString()); in parse()
120 addMessageStack(jc, message.toString(), stack.toString()); in parse()
/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/loganalysis/src/com/android/loganalysis/
DLogAnalyzer.java172 System.out.println(item.toJson().toString()); in printMemoryHealthLog()
231 System.out.println(analysis.toString()); in printBugreportAnalysis()
233 System.out.println(new JSONObject().toString()); in printBugreportAnalysis()
293 System.out.println(json.toString()); in printJson()
295 System.out.println(new JSONObject().toString()); in printJson()
/tools/loganalysis/javatests/com/android/loganalysis/item/
DGenericItemTest.java236 JSONObject output = new JSONObject(item.toJson().toString()); in testToJson()
241 assertEquals(date.toString(), output.get("date")); in testToJson()
243 assertEquals(object.toString(), output.get("object")); in testToJson()
249 assertEquals("2.5", output.get("float").toString()); in testToJson()
251 assertEquals("3.5", output.get("double").toString()); in testToJson()
/tools/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt423 assertEquals(BANNER + "\n\n", stdout.toString()) in Test invalid arguments()
432 stderr.toString() in Test invalid arguments()
447 assertEquals("", stderr.toString()) in Test help()
458 stdout.toString() in Test help()

12345678910