Home
last modified time | relevance | path

Searched refs:getValue (Results 1 – 25 of 205) sorted by relevance

123456789

/tools/metalava/src/main/java/com/android/tools/metalava/
DOptions.kt791 val path = getValue(args, ++index) in <lambda>()
796 val path = getValue(args, ++index) in <lambda>()
812 val listString = getValue(args, ++index) in <lambda>()
822 subtractApi = stringToExistingFile(getValue(args, ++index)) in <lambda>()
828 getValue(args, ++index) in <lambda>()
834 getValue(args, ++index) in <lambda>()
839 val nextArg = getValue(args, ++index) in <lambda>()
849 validateNullabilityFromList = stringToExistingFile(getValue(args, ++index)) in <lambda>()
854 nullabilityWarningsTxt = stringToNewFile(getValue(args, ++index)) in <lambda>()
858 … "-sdkvalues", ARG_SDK_VALUES -> sdkValueDir = stringToNewDir(getValue(args, ++index)) in <lambda>()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/mobly/
DMoblyYamlResultParserTest.java193 assertEquals(mRunName, mRunNameCaptor.getValue()); in testReportToListenersPassRecord()
194 assertEquals(0, (int) mCountCaptor.getValue()); in testReportToListenersPassRecord()
195 assertEquals(DEFAULT_TEST_CLASS, mStartedDescCaptor.getValue().getClassName()); in testReportToListenersPassRecord()
196 assertEquals(DEFAULT_TEST_NAME, mStartedDescCaptor.getValue().getTestName()); in testReportToListenersPassRecord()
197 assertEquals(Long.parseLong(DEFAULT_BEGIN_TIME), (long) mBeginTimeCaptor.getValue()); in testReportToListenersPassRecord()
199 assertEquals(DEFAULT_TEST_CLASS, mEndDescCaptor.getValue().getClassName()); in testReportToListenersPassRecord()
200 assertEquals(DEFAULT_TEST_NAME, mEndDescCaptor.getValue().getTestName()); in testReportToListenersPassRecord()
201 assertEquals(Long.parseLong(DEFAULT_END_TIME), (long) mEndTimeCaptor.getValue()); in testReportToListenersPassRecord()
204 (long) mElapseTimeCaptor.getValue()); in testReportToListenersPassRecord()
223 assertEquals(mRunName, mRunNameCaptor.getValue()); in testReportToListenersFailRecord()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessor.java279 replaceEntry.getValue()); in replacePrefix()
280 finalMetrics.put(newKey, metric.getValue()); in replacePrefix()
287 finalMetrics.put(metric.getKey(), metric.getValue()); in replacePrefix()
306 finalMetrics.put(newKey, metric.getValue()); in replaceAllMetricPrefix()
307 CLog.d("Perfetto trace metric: key: %s value: %s", newKey, metric.getValue()); in replaceAllMetricPrefix()
345 if (!(entry.getValue() instanceof Message) && !(entry.getValue() instanceof List)) { in convertPerfettoProtoMessage()
346 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()
359 Double.valueOf(entry.getValue().toString()) in convertPerfettoProtoMessage()
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java68 assertEquals("1.0", manifest.getMainAttributes().getValue("Manifest-Version")); in signEmptyJar()
69 assertEquals("Me", manifest.getMainAttributes().getValue("Created-By")); in signEmptyJar()
70 assertEquals("Me", manifest.getMainAttributes().getValue("Built-By")); in signEmptyJar()
97 assertEquals("1.0", manifest.getMainAttributes().getValue("Manifest-Version")); in signJarWithPrexistingSimpleTextFilePre18()
98 assertEquals("Merry", manifest.getMainAttributes().getValue("Built-By")); in signJarWithPrexistingSimpleTextFilePre18()
99 assertEquals("Christmas", manifest.getMainAttributes().getValue("Created-By")); in signJarWithPrexistingSimpleTextFilePre18()
104 assertEquals("OOQgIEXBissIvva3ydRoaXk29Rk=", attrs.getValue("SHA1-Digest")); in signJarWithPrexistingSimpleTextFilePre18()
111 assertEquals("1.0", signature.getMainAttributes().getValue("Signature-Version")); in signJarWithPrexistingSimpleTextFilePre18()
112 assertEquals("1.0 (Android)", signature.getMainAttributes().getValue("Created-By")); in signJarWithPrexistingSimpleTextFilePre18()
119 signature.getMainAttributes().getValue("SHA1-Digest-Manifest")); in signJarWithPrexistingSimpleTextFilePre18()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ddmlib/
DInstrumentationResultProtoParserTest.java242 captureTestMetrics.getValue().get("metric_key1")); in testOneTestSuccessWithMetrics()
244 captureTestMetrics.getValue() in testOneTestSuccessWithMetrics()
289 captureListener1Metrics.getValue().get("metric_key1")); in testOneTestSuccessWithMultipleListeners()
291 captureListener1Metrics.getValue() in testOneTestSuccessWithMultipleListeners()
296 captureListener2Metrics.getValue().get("metric_key1")); in testOneTestSuccessWithMultipleListeners()
298 captureListener2Metrics.getValue() in testOneTestSuccessWithMultipleListeners()
322 captureRunMetrics.getValue().get("run_metric_key")); in testOneRunSuccessWithMetrics()
346 captureTestMetrics.getValue().get("metric_key1")); in testOneTestAndRunSuccessWithMetrics()
348 captureTestMetrics.getValue() in testOneTestAndRunSuccessWithMetrics()
353 captureRunMetrics.getValue().get("run_metric_key")); in testOneTestAndRunSuccessWithMetrics()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DBugreportCollectorTest.java163 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testPassThrough()
165 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testPassThrough()
184 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testTestFailed()
186 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testTestFailed()
205 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testTestEnded()
207 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testTestEnded()
228 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testWaitForDevice()
230 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testWaitForDevice()
249 "value", mTestCapture.getValue().get("key").getMeasurements().getSingleString()); in testTestEnded_firstCase()
251 "value", mRunCapture.getValue().get("key2").getMeasurements().getSingleString()); in testTestEnded_firstCase()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java110 final String objectTypeName = attributes.getValue("type"); in startElement()
127 String deviceName = attributes.getValue("name"); in startElement()
191 String optionName = attributes.getValue("name"); in startElement()
196 String optionKey = attributes.getValue("key"); in startElement()
200 String optionValue = attributes.getValue("value"); in startElement()
217 String description = attributes.getValue("description"); in startElement()
227 String includeName = attributes.getValue("name"); in startElement()
250 final String templateName = attributes.getValue("name"); in startElement()
265 includeName = attributes.getValue("default"); in startElement()
306 String isFakeString = attributes.getValue(IS_FAKE_ATTR); in addObject()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/retry/
DResultAggregator.java141 mDetailedForwarder.logAssociation(assos.getKey(), assos.getValue()); in invocationEnded()
156 mAggregatedForwarder.logAssociation(invocLog.getKey(), invocLog.getValue()); in forwardAggregatedInvocationLogs()
324 mDetailedForwarder.logAssociation(assos.getKey(), assos.getValue()); in testModuleEnded()
383 listener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults()
384 switch (testEntry.getValue().getStatus()) { in forwardTestResults()
386 listener.testFailed(testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults()
390 testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults()
405 testEntry.getValue().getLoggedFiles().entrySet()) { in forwardTestResults()
408 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
413 testEntry.getValue().getEndTime(), in forwardTestResults()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardListener.java256 mMainListener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults()
257 switch (testEntry.getValue().getStatus()) { in forwardTestResults()
259 mMainListener.testFailed(testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults()
263 testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults()
272 forwardLogAssociation(testEntry.getValue().getLoggedFiles(), mMainListener); in forwardTestResults()
274 if (!testEntry.getValue().getStatus().equals(TestStatus.INCOMPLETE)) { in forwardTestResults()
277 testEntry.getValue().getEndTime(), in forwardTestResults()
278 testEntry.getValue().getProtoMetrics()); in forwardTestResults()
300 ((ILogSaverListener) listener).logAssociation(logFile.getKey(), logFile.getValue()); in forwardLogAssociation()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunner.java173 IConfiguration moduleConfig = entry.getValue(); in loadTests()
241 if (entry.getValue().getConfigurationDescription().getAbi() != null in createIndividualTests()
242 && !entry.getValue().getConfigurationDescription().getAbi().equals(abi)) { in createIndividualTests()
245 tests.addAll(entry.getValue().getTests()); in createIndividualTests()
284 String.format("%s %s", testInfo.getName(), option.getValue())); in parseOptions()
288 String.format("%s %s", testInfo.getName(), option.getValue())); in parseOptions()
293 if (option.getValue() != null && !option.getValue().isEmpty()) { in parseOptions()
294 moduleArg = String.format("%s:%s", moduleArg, option.getValue()); in parseOptions()
DITestSuite.java424 config.getValue(), in loadAndFilter()
432 if (!filterByRunnerType(config.getValue(), mAllowedRunners)) { in loadAndFilter()
437 filterPreparers(config.getValue(), mAllowedPreparers); in loadAndFilter()
441 config.getValue().setCoverageOptions(mMainConfiguration.getCoverageOptions()); in loadAndFilter()
444 filteredConfig.put(config.getKey(), config.getValue()); in loadAndFilter()
445 moduleNames.add(config.getValue().getConfigurationDescription().getModuleName()); in loadAndFilter()
514 ValidateSuiteConfigHelper.validateConfig(config.getValue()); in createExecutionList()
516 getPreparerPerDevice(config.getValue()); in createExecutionList()
520 config.getValue().getTests(), in createExecutionList()
522 config.getValue().getMultiTargetPreparers(), in createExecutionList()
[all …]
DModuleDefinition.java747 listener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults()
748 switch (testEntry.getValue().getStatus()) { in forwardTestResults()
750 listener.testFailed(testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults()
754 testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults()
768 testEntry.getValue().getLoggedFiles().entrySet()) { in forwardTestResults()
771 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
776 testEntry.getValue().getEndTime(), in forwardTestResults()
777 testEntry.getValue().getProtoMetrics()); in forwardTestResults()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java168 listener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults()
169 switch (testEntry.getValue().getStatus()) { in forwardTestResults()
171 listener.testFailed(testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults()
175 testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults()
189 testEntry.getValue().getLoggedFiles().entrySet()) { in forwardTestResults()
192 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults()
197 testEntry.getValue().getEndTime(), in forwardTestResults()
198 testEntry.getValue().getProtoMetrics()); in forwardTestResults()
DRetryRescheduler.java299 parameterizedMethods.put(result.getKey(), result.getValue()); in updateRunner()
302 if (!RetryResultHelper.shouldRunTest(result.getValue(), types)) { in updateRunner()
315 subMap.getValue() in updateRunner()
321 v.getValue(), types) in updateRunner()
329 subMap.getValue().entrySet()) { in updateRunner()
395 forClass.put(entry.getKey(), entry.getValue()); in sortMethodToClass()
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DStatsdGenericPostProcessor.java159 e -> e.getValue())); in addPrefixToMetrics()
180 if (entry.getValue() instanceof Message) { in convertProtoMessage()
182 convertProtoMessage((Message) entry.getValue()); in convertProtoMessage()
186 metricEntry.getValue()); in convertProtoMessage()
188 } else if (entry.getValue() instanceof List) { in convertProtoMessage()
189 List<? extends Object> listMetrics = (List) entry.getValue(); in convertProtoMessage()
205 metricEntry.getValue()); in convertProtoMessage()
217 TfMetricProtoUtil.stringToMetric(entry.getValue().toString()).toBuilder()); in convertProtoMessage()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DLocalAndroidVirtualDeviceTest.java357 File capturedHostPackageDir = new File(hostPackageDir.getValue()); in testPreinvocationSetupSuccess()
358 File capturedImageDir = new File(imageDir.getValue()); in testPreinvocationSetupSuccess()
379 Assert.assertFalse(new File(reportFile.getValue()).exists()); in testPreinvocationSetupSuccess()
417 File capturedHostPackageDir = new File(hostPackageDir.getValue()); in testPreInvocationSetupBootFailure()
418 File capturedImageDir = new File(imageDir.getValue()); in testPreInvocationSetupBootFailure()
428 Assert.assertFalse(new File(reportFile.getValue()).exists()); in testPreInvocationSetupBootFailure()
459 File capturedHostPackageDir = new File(hostPackageDir.getValue()); in testPreInvocationSetupFailure()
460 File capturedImageDir = new File(imageDir.getValue()); in testPreInvocationSetupFailure()
470 Assert.assertFalse(new File(reportFile.getValue()).exists()); in testPreInvocationSetupFailure()
DTestDeviceTest.java1856 assertTrue(optionsCapture.getValue().size() == 0); in testInstallPackages_default_runtimePermissionNotSupported()
1859 assertTrue(filesCapture.getValue().contains(apkFile)); in testInstallPackages_default_runtimePermissionNotSupported()
1890 assertTrue(optionsCapture.getValue().contains("-g")); in testInstallPackages_default_runtimePermissionSupported()
1893 assertTrue(filesCapture.getValue().contains(apkFile)); in testInstallPackages_default_runtimePermissionSupported()
1919 assertTrue(optionsCapture.getValue().contains("--user")); in testInstallPackagesForUser_default_runtimePermissionNotSupported()
1920 assertTrue(optionsCapture.getValue().contains("1")); in testInstallPackagesForUser_default_runtimePermissionNotSupported()
1921 assertFalse(optionsCapture.getValue().contains("-g")); in testInstallPackagesForUser_default_runtimePermissionNotSupported()
1956 assertTrue(optionsCapture.getValue().contains("--user")); in testInstallPackagesForUser_default_runtimePermissionSupported()
1957 assertTrue(optionsCapture.getValue().contains("1")); in testInstallPackagesForUser_default_runtimePermissionSupported()
1958 assertTrue(optionsCapture.getValue().contains("-g")); in testInstallPackagesForUser_default_runtimePermissionSupported()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DBasePostProcessorTest.java210 HashMap<String, Metric> finalMetrics = capture.getValue(); in testRunLevelPostProcessing()
245 HashMap<String, Metric> finalMetrics = capture.getValue(); in testRunLogsPostProcessing_processRunLogs()
299 HashMap<String, Metric> finalMetrics = capture.getValue(); in testRunLevelPostProcessing_processRunLogsOnly()
323 HashMap<String, Metric> processedMetrics = capture.getValue(); in testPerTestPostProcessing()
368 HashMap<String, Metric> processedMetrics = capture.getValue(); in testPerTestLogPostProcessing_processTestLogs()
420 HashMap<String, Metric> processedMetrics = capture.getValue(); in testPerTestLogPostProcessing_processTestLogsOnly()
524 HashMap<String, Metric> processedMetrics = capture.getValue(); in testAllTestMetricsPostProcessing()
579 HashMap<String, Metric> processedMetrics = capture.getValue(); in testAllTestLogsPostProcessing()
590 && e.getValue() in testAllTestLogsPostProcessing()
603 && e.getValue() in testAllTestLogsPostProcessing()
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/
DGameQualificationTest.java98 intent.putExtra(argument.getKey(), argument.getValue()); in startApp()
101 boolean value = Boolean.valueOf(argument.getValue()); in startApp()
106 byte value = Byte.valueOf(argument.getValue()); in startApp()
111 int value = Integer.valueOf(argument.getValue()); in startApp()
116 long value = Long.valueOf(argument.getValue()); in startApp()
121 float value = Float.valueOf(argument.getValue()); in startApp()
126 double value = Double.valueOf(argument.getValue()); in startApp()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPushFilePreparerTest.java425 Set<String> capValue = capture.getValue(); in testPush_abiDirectory_noBitness()
462 Set<String> capValue = capture.getValue(); in testPush_abiDirectory_noBitness_withModule()
497 Set<String> capValue = capture.getValue(); in testPush_abiDirectory()
539 Set<String> capValue = capture.getValue(); in testPush_moduleName_dirs()
682 Set<String> capValue = capture.getValue(); in testPush_moduleName_ignored()
721 Set<String> capValue = capture.getValue(); in testPush_moduleName_multiAbi()
765 Set<String> capValue = capture.getValue(); in testPush_moduleName_multiabi_files()
805 Set<String> capValue = capture.getValue(); in testPush_moduleName_noMatch()
880 Set<String> capValue = capture.getValue(); in testPush_moduleName_repeating_name()
918 Set<String> capValue = capture.getValue(); in testPush_moduleName_multiAbi_repeatedName()
/tools/tradefederation/contrib/src/com/android/build/tests/
DImageStats.java197 ret.put(p, e.getValue()); in processAggregationPatterns()
267 total += stat.getValue(); in performAggregation()
272 String label = getAggregationLabel(m, pattern.getValue()); in performAggregation()
277 size += stat.getValue(); in performAggregation()
293 if (mMinReportSize > 0 && e.getValue() < mMinReportSize) { in performAggregation()
297 e.getKey(), e.getValue(), mMinReportSize); in performAggregation()
300 ret.put(e.getKey(), Long.toString(e.getValue())); in performAggregation()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGoogleBenchmarkResultParserTest.java117 HashMap<String, Metric> resultTest1 = capture1.getValue(); in testParseSimpleFile()
126 HashMap<String, Metric> resultTest2 = capture2.getValue(); in testParseSimpleFile()
134 HashMap<String, Metric> resultTest3 = capture3.getValue(); in testParseSimpleFile()
165 HashMap<String, Metric> results = capture.getValue(); in testParseSimpleFile_twoTests()
228 capture.getValue()); in testParse_benchmarkError()
265 HashMap<String, Metric> results = capture.getValue(); in testParseSimpleFile_withWarning()
291 HashMap<String, Metric> results = capture.getValue(); in testParse_ignore()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DRebootReasonCollectorTest.java128 entry.getValue() in testAddingMetrics_singleDevice()
143 entry.getValue() in testAddingMetrics_singleDevice()
155 entry.getValue() in testAddingMetrics_singleDevice()
228 entry.getValue() in testAddingMetrics_multiDevice()
241 entry.getValue() in testAddingMetrics_multiDevice()
256 entry.getValue() in testAddingMetrics_multiDevice()
269 entry.getValue() in testAddingMetrics_multiDevice()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMixImageZipPreparer.java472 if (factory.getValue().getSize() != (1L << 32) - 1) { in createZip()
473 initStoredZipEntry(entry, factory.getValue()); in createZip()
478 new BufferedInputStream(factory.getValue().createInputStream())) { in createZip()
544 try (InputStream imageStream = entry.getValue().createInputStream()) { in repackSuperImage()
586 original.put(key, entry.getValue()); in replaceExistingEntries()
588 remaining.put(key, entry.getValue()); in replaceExistingEntries()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DHistogram.java112 cumulative += entry.getValue(); in plotAscii()
123 float percentage = entry.getValue() * 100f / total; in plotAscii()
126 ? (entry.getValue() * maxBarLength + maxCount - 1) / maxCount in plotAscii()
127 : entry.getValue(); in plotAscii()
134 entry.getValue(), in plotAscii()

123456789