Home
last modified time | relevance | path

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

12345678910>>...22

/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessEventHelper.java106 public String toString() { in toString() method in SubprocessEventHelper.TestRunStartedEventInfo
124 return tags.toString(); in toString()
194 public String toString() { in toString() method in SubprocessEventHelper.TestRunFailedEventInfo
213 return tags.toString(); in toString()
236 mRunMetrics.put(key, jsonObject.get(key).toString()); in TestRunEndedEventInfo()
241 public String toString() { in toString() method in SubprocessEventHelper.TestRunEndedEventInfo
255 return tags.toString(); in toString()
337 public String toString() { in toString() method in SubprocessEventHelper.InvocationFailedEventInfo
354 tags.put(CAUSE_KEY, sw.toString()); in toString()
359 return tags.toString(); in toString()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtilTest.java234 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartipUnzip()
254 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartipUnzip()
285 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartipUnzip()
304 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartipUnzip()
323 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartipUnzip()
342 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartipUnzip()
395 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartialUnzipWithUseZip64()
415 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartialUnzipWithUseZip64()
446 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartialUnzipWithUseZip64()
465 targetFile = new File(Paths.get(tmpDir.toString(), zipEntry.getFileName()).toString()); in testPartialUnzipWithUseZip64()
[all …]
/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 …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DAndroidJUnitTestTest.java112 Long.toString(SHELL_TIMEOUT)); in setUp()
129 mMockRemoteRunner.addInstrumentationArg("class", TEST1.toString()); in testRun_includeFilterClass()
132 mAndroidJUnitTest.addIncludeFilter(TEST1.toString()); in testRun_includeFilterClass()
141 mMockRemoteRunner.addInstrumentationArg("notClass", TEST1.toString()); in testRun_excludeFilterClass()
144 mAndroidJUnitTest.addExcludeFilter(TEST1.toString()); in testRun_excludeFilterClass()
154 mMockRemoteRunner.addInstrumentationArg("notClass", TEST2.toString()); in testRun_includeAndExcludeFilterClass()
158 mAndroidJUnitTest.addExcludeFilter(TEST2.toString()); in testRun_includeAndExcludeFilterClass()
247 mMockRemoteRunner.addInstrumentationArg("notClass", TEST2.toString()); in testRun_includeAndExcludeFilters()
253 mAndroidJUnitTest.addExcludeFilter(TEST2.toString()); in testRun_includeAndExcludeFilters()
275 FileUtil.writeToFile(TEST1.toString(), tmpFile); in testRun_includeFile()
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackTestHelper.java84 public String toString() { in toString() method in AudioLoopbackTestHelper.StatisticsData
288 public String toString() { in toString() method in AudioLoopbackTestHelper.ResultData
296 sb.append("logs=").append(Arrays.toString(mLogs.values().toArray())).append(NL); in toString()
302 return sb.toString(); in toString()
509 CLog.i("Latency: " + mLatencyStats.toString()); in processTestData()
510 CLog.i("Confidence: " + mConfidenceStats.toString()); in processTestData()
562 writer.println(sb.toString()); in writeAllResultsToCSVFile()
621 metrics.put(resultKeyPrefix + "total_nr_of_tests", Integer.toString(mAllResults.size())); in populateStressTestMetrics()
622 metrics.put(resultKeyPrefix + "nr_of_good_tests", Integer.toString(mGoodResults.size())); in populateStressTestMetrics()
623 metrics.put(resultKeyPrefix + "latency_max", Double.toString(mLatencyStats.mMax)); in populateStressTestMetrics()
[all …]
DCameraStressTest.java98 public String toString() { in toString() method in CameraStressTest.TestInfo
142 t.mInstrumentationArgs.put("image_iterations", Integer.toString(100)); in testInfoSetup()
151 t.mInstrumentationArgs.put("image_iterations", Integer.toString(100)); in testInfoSetup()
160 t.mInstrumentationArgs.put("video_iterations", Integer.toString(100)); in testInfoSetup()
306 runMetrics.put(key, Integer.toString(value)); in parseOutputFile()
315 test.mTestName, key, capture.toString())); in parseOutputFile()
327 runMetrics.put(key, Integer.toString(value)); in parseOutputFile()
388 return sb.toString(); in join()
437 Log.e(LOG_TAG, String.format("Got reported metrics: %s", mReportedMetrics.toString())); in testParse_old()
504 Log.e(LOG_TAG, String.format("Got reported metrics: %s", mReportedMetrics.toString())); in testParse_new()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java300 .get(InvocationMetricKey.FETCH_BUILD.toString()); in invocationComplete()
304 .get(InvocationMetricKey.SETUP.toString()); in invocationComplete()
308 .get(InvocationMetricKey.DEVICE_LOST_DETECTED.toString()); in invocationComplete()
329 Integer.toString(getNumTotalTests())) in invocationComplete()
332 Integer.toString(getNumAllFailedTests())) in invocationComplete()
335 Integer.toString(getNumTestsInState(TestStatus.PASSED))) in invocationComplete()
338 Integer.toString(getNumAllFailedTestRuns())); in invocationComplete()
360 String summaryString = summary.getSummary().toString(); in putSummary()
367 mSummary = mSummary == null ? sb.toString() : mSummary + sb.toString(); in putSummary()
431 r.toString(), e.toString()); in getHeartbeatThreadPool()
[all …]
/tools/tradefederation/contrib/src/com/android/uicd/tests/
DUiConductorTest.java138 String runId = UUID.randomUUID().toString(); in run()
139 baseFilePath = Paths.get(baseFilePath, runId).toString(); in run()
140 String jarFileDir = Paths.get(baseFilePath, BINARY_RELATIVE_PATH).toString(); in run()
141 String testFilesDir = Paths.get(baseFilePath, TESTS_RELATIVE_PATH).toString(); in run()
142 String binaryFilesDir = Paths.get(baseFilePath).toString(); in run()
198 String testId = UUID.randomUUID().toString(); in runTest()
212 .toString()); in runTest()
279 copyFile(file.getAbsolutePath(), Paths.get(destDirPath, file.getName()).toString()); in copyFile()
286 File destFile = new File(Paths.get(destDir.toString(), srcFile.getName()).toString()); in copyFile()
303 Paths.get(destDirPath, file.getName()).toString())); in copyFile()
[all …]
/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 …]
/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/tradefederation/core/test_framework/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessor.java346 if (isNumeric(entry.getValue().toString())) { in convertPerfettoProtoMessage()
348 if (mNumberPattern.matcher(entry.getValue().toString()).matches()) { in convertPerfettoProtoMessage()
351 TfMetricProtoUtil.stringToMetric(entry.getValue().toString()) in convertPerfettoProtoMessage()
358 Long.toString( in convertPerfettoProtoMessage()
359 Double.valueOf(entry.getValue().toString()) in convertPerfettoProtoMessage()
368 entry.getKey().getName().toString(), in convertPerfettoProtoMessage()
369 entry.getValue().toString())); in convertPerfettoProtoMessage()
370 if (mPerfettoPrefixKeyFields.contains(entry.getKey().toString())) { in convertPerfettoProtoMessage()
372 entry.getKey().getName().toString(), entry.getValue().toString())); in convertPerfettoProtoMessage()
422 if (mPerfettoIndexedListFields.contains(entry.getKey().toString())) { in convertPerfettoProtoMessage()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt174 val perm = value.toString() in <lambda>()
177 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>()
701 val relative = sb.toString() in <lambda>()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerTest.java85 out.toString()); in testProcessClientOperations_invalidAction()
101 assertEquals("{}\n", out.toString()); in testProcessClientOperations_initHandover()
120 assertEquals("{}\n", out.toString()); in testProcessClientOperations_addCommand()
136 assertEquals("{\"error\":\"Failed to add command\"}\n", out.toString()); in testProcessClientOperations_addCommand_fail()
157 out.toString()); in testProcessClientOperations_addCommand_config()
171 assertEquals("{\"error\":\"Failed to allocate device testserial\"}\n", out.toString()); in testProcessClientOperations_allocateDevice_fail()
188 assertEquals("{}\n", out.toString()); in testProcessClientOperations_allocateDevice()
205 assertEquals("{\"error\":\"Could not find device to free testserial\"}\n", out.toString()); in testProcessClientOperations_processFree_notFound()
226 assertEquals("{}\n", out.toString()); in testProcessClientOperations_processFree()
250 assertEquals("{}\n", out.toString()); in testProcessClientOperations_processFree_wildcard()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DConsoleResultReporterTest.java56 Truth.assertThat(mOutput.toString()).contains("FooTest#testFoo"); in testPassed()
63 Truth.assertThat(mOutput.toString()).hasLength(0); in testPassed_suppressedPassed()
72 Truth.assertThat(mOutput.toString()).contains("FooTest#testFoo"); in testFailed()
73 Truth.assertThat(mOutput.toString()).contains("this is a trace"); in testFailed()
83 Truth.assertThat(mOutput.toString()).contains("FooTest#testFoo"); in testFailed_suppressPassed()
84 Truth.assertThat(mOutput.toString()).contains("this is a trace"); in testFailed_suppressPassed()
91 Truth.assertThat(mOutput.toString()).contains("1 Tests [1 Passed]"); in testSummary()
100 Truth.assertThat(mOutput.toString()).contains("runName: metricKey=metricValue"); in testRunMetrics()
107 Truth.assertThat(mOutput.toString()).doesNotContain("runName"); in testRunMetrics_empty()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultReporter.java151 mInvocationRecordBuilder.setTestRecordId(UUID.randomUUID().toString()); in invocationStarted()
313 debugBuilder.setErrorMessage(failure.toString()); in testRunFailed()
319 debugContext.setActionInProgress(failure.getActionInProgress().toString()); in testRunFailed()
376 testBuilder.setTestRecordId(test.toString()); in testStarted()
432 debugBuilder.setErrorMessage(failure.toString()); in testFailed()
433 debugBuilder.setTrace(failure.toString()); in testFailed()
439 debugContext.setActionInProgress(failure.getActionInProgress().toString()); in testFailed()
474 debugBuilder.setErrorMessage(failure.toString()); in testAssumptionFailure()
475 debugBuilder.setTrace(failure.toString()); in testAssumptionFailure()
522 .setLogType(logFile.getType().toString()) in createFileProto()
[all …]
DProtoResultParser.java432 log("Test run failure proto: %s", failure.toString()); in handleTestRunEnd()
450 log("Test case started proto: %s", description.toString()); in handleTestCase()
469 log("Test case failed proto: %s - %s", description.toString(), failure.toString()); in handleTestCaseEnd()
484 description.toString(), testcaseProto.getDebugInfo().getTrace()); in handleTestCaseEnd()
488 log("Test case ignored proto: %s", description.toString()); in handleTestCaseEnd()
499 log("Test case ended proto: %s", description.toString()); in handleTestCaseEnd()
600 if (!attributes.containsKey(key.toString())) { in mergeInvocationContext()
603 List<String> values = attributes.get(key.toString()); in mergeInvocationContext()
604 attributes.remove(key.toString()); in mergeInvocationContext()
/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/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java189 msg.append(entry.getValue().toString()); in logStartInvocation()
190 buildInfos.append(entry.getValue().toString()); in logStartInvocation()
196 CLog.logAndDisplay(LogLevel.INFO, msg.toString()); in logStartInvocation()
198 buildInfos.toString()) + shardSuffix; in logStartInvocation()
239 CLog.w("BuildError on device '%s'. Reason: %s", e.getDeviceSerial(), e.toString()); in performInvocation()
289 CLog.e("Caught AssertionError while running invocation: %s", e.toString()); in performInvocation()
295 CLog.e("Unexpected exception when running invocation: %s", t.toString()); in performInvocation()
349 CLog.e("Exception when tearing down invocation: %s", tearDownException.toString()); in performInvocation()
564 public String toString() { in toString() method in TestInvocation
600 batteryLevel.toString()); in logDeviceBatteryLevel()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationTest.java340 mConfig.injectOptionValue(OPTION_NAME, Boolean.toString(true)); in testInjectOptionValue()
356 mConfig.injectOptionValue(ALT_OPTION_NAME, key, Boolean.toString(true)); in testInjectMapOptionValue()
407 mConfig.injectOptionValue(ALT_OPTION_NAME, key + "=" + Boolean.toString(true)); in testInjectParsedMapOptionValue()
421 options.add(new OptionDef(OPTION_NAME, Boolean.toString(true), null)); in testInjectOptionValues()
422 options.add(new OptionDef(ALT_OPTION_NAME, key, Boolean.toString(true), null)); in testInjectOptionValues()
451 final String usageString = outputStream.toString(); in testPrintCommandUsage()
685 String noOption = sw.toString(); in testDumpChangedOption()
695 String withOption = sw.toString(); in testDumpChangedOption()
703 String differentObject = sw.toString(); in testDumpChangedOption()
717 String noOption = sw.toString(); in testDumpChangedOption_structure()
[all …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DAppTransitionTests.java334 runner.addInstrumentationArg("launch_iteration", Integer.toString(mLaunchIteration)); in createRemoteAndroidTestRunner()
396 runner.addInstrumentationArg("iteration_count", Integer.toString(mLatencyIteration)); in createTestRunner()
689 if (actionDelayListMap.containsKey(Integer.toString(delayItem.getActionId()))) { in analyzeLatencyInfo()
691 .get(Integer.toString(delayItem.getActionId())) in analyzeLatencyInfo()
696 actionDelayListMap.put(Integer.toString(delayItem.getActionId()), delayList); in analyzeLatencyInfo()
736 stats.add(Double.parseDouble(delay.toString())); in computeAndUploadResults()
738 activityMetrics.put(appNameKey + "_min", stats.min().toString()); in computeAndUploadResults()
739 activityMetrics.put(appNameKey + "_max", stats.max().toString()); in computeAndUploadResults()
740 activityMetrics.put(appNameKey + "_avg", stats.mean().toString()); in computeAndUploadResults()
741 activityMetrics.put(appNameKey + "_median", stats.median().toString()); in computeAndUploadResults()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DUiAutomatorRunner.java141 return commandBuilder.toString(); in getArgsCommand()
172 setClassName(classArgBuilder.toString()); in setClassNames()
229 addInstrumentationArg(name, Boolean.toString(value)); in addBooleanArg()
324 e.toString(), getPackageName(), mRemoteDevice.getSerialNumber())); in run()
326 mParser.handleTestRunFailed(e.toString()); in run()
330 e.toString(), getPackageName(), mRemoteDevice.getSerialNumber()); in run()
339 mParser.handleTestRunFailed(e.toString()); in run()
343 e.toString(), getPackageName(), mRemoteDevice.getSerialNumber()); in run()
344 mParser.handleTestRunFailed(e.toString()); in run()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/p2p/
Dwifi_p2p_test_utils.py334 serviceData[dns_service.toString()] = 1
344 serviceData[dns_service.toString()] = 1
476 expectServiceList[ipp_service.toString()] = 1
483 expectServiceList[ipp_service.toString()] = 1
491 expectServiceList[afp_service.toString()] = 1
498 expectServiceList[ipp_service.toString()] = 1
504 expectServiceList[ipp_service.toString()] = 1
511 expectServiceList[afp_service.toString()] = 1
517 expectServiceList[afp_service.toString()] = 1
619 def toString(self): member in WifiP2PEnums.WifiP2pDnsSdServiceResponse
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java263 serializer.attribute(NS, PASS_ATTR, Long.toString(runHistory.passedTests)); in writeResults()
264 serializer.attribute(NS, FAILED_ATTR, Long.toString(runHistory.failedTests)); in writeResults()
274 serializer.attribute(NS, PASS_ATTR, Long.toString(holder.passedTests)); in writeResults()
275 serializer.attribute(NS, FAILED_ATTR, Long.toString(holder.failedTests)); in writeResults()
276 serializer.attribute(NS, MODULES_DONE_ATTR, Integer.toString(holder.completeModules)); in writeResults()
277 serializer.attribute(NS, MODULES_TOTAL_ATTR, Integer.toString(holder.totalModules)); in writeResults()
296 serializer.attribute(NS, DONE_ATTR, Boolean.toString(isDone)); in writeResults()
298 NS, PASS_ATTR, Integer.toString(module.getNumTestsInState(TestStatus.PASSED))); in writeResults()
299 serializer.attribute(NS, TOTAL_TESTS_ATTR, Integer.toString(module.getNumTests())); in writeResults()
342 serializer.attribute(NS, SKIPPED_ATTR, Boolean.toString(true)); in serializeTestCases()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DTestAppInstallSetupTest.java291 assertThat(e).hasMessageThat().contains(fakeApk.toString()); in testInstallFailure()
456 directoryPath.toString(), in setUp_emptyDirectoryWithNoThrowOption_installsNothing()
473 directoryPath.toString(), in setUp_emptyDirectory_throwsException()
482 assertThat(expected.getMessage()).contains(directoryPath.toString()); in setUp_emptyDirectory_throwsException()
496 directoryPath.toString(), in setUp_directoryNotContainingApkFiles_throwsException()
505 assertThat(expected.getMessage()).contains(directoryPath.toString()); in setUp_directoryNotContainingApkFiles_throwsException()
516 ImmutableMap.of(TEST_FILE_NAME_OPTION, directoryPath.toString())); in setUp_directoryContainingSingleApk_installsFile()
531 ImmutableMap.of(TEST_FILE_NAME_OPTION, directoryPath.toString())); in setUp_directoryContainingApksWithSamePackage_installsFiles()
551 ImmutableMap.of(TEST_FILE_NAME_OPTION, directoryPath.toString())); in setUp_directoryContainingApksWithDifferentPackages_installsSeparately()
568 ImmutableMap.of(TEST_FILE_NAME_OPTION, directoryPath.toString())); in setUp_directoryContainingApksInSubdirectories_installsFiles()
/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()

12345678910>>...22