Home
last modified time | relevance | path

Searched refs:containsKey (Results 1 – 25 of 137) sorted by relevance

123456

/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DAggregatePostProcessorTest.java93 processedMetrics.containsKey( in testSingularDoubleMetric()
103 processedMetrics.containsKey( in testSingularDoubleMetric()
113 processedMetrics.containsKey( in testSingularDoubleMetric()
123 processedMetrics.containsKey( in testSingularDoubleMetric()
133 processedMetrics.containsKey( in testSingularDoubleMetric()
143 processedMetrics.containsKey( in testSingularDoubleMetric()
153 processedMetrics.containsKey( in testSingularDoubleMetric()
195 processedMetrics.containsKey( in testListDoubleMetric()
205 processedMetrics.containsKey(listDoubleKey + STATS_KEY_SEPARATOR + STATS_KEY_MAX)); in testListDoubleMetric()
214 processedMetrics.containsKey(listDoubleKey + STATS_KEY_SEPARATOR + STATS_KEY_MEAN)); in testListDoubleMetric()
[all …]
DBasePostProcessorTest.java212 assertTrue(finalMetrics.containsKey("test")); in testRunLevelPostProcessing()
216 assertTrue(finalMetrics.containsKey("test2")); in testRunLevelPostProcessing()
246 assertTrue(finalMetrics.containsKey(TestablePostProcessor.FILE_PREFIX + RUN_DATA_NAME_1)); in testRunLogsPostProcessing_processRunLogs()
301 assertTrue(finalMetrics.containsKey(TestablePostProcessor.FILE_PREFIX + RUN_DATA_NAME_1)); in testRunLevelPostProcessing_processRunLogsOnly()
302 assertTrue(finalMetrics.containsKey(TestablePostProcessor.FILE_PREFIX + RUN_DATA_NAME_2)); in testRunLevelPostProcessing_processRunLogsOnly()
304 assertFalse(finalMetrics.containsKey(TestablePostProcessor.FILE_PREFIX + TEST_DATA_NAME_1)); in testRunLevelPostProcessing_processRunLogsOnly()
305 assertFalse(finalMetrics.containsKey(TestablePostProcessor.FILE_PREFIX + TEST_DATA_NAME_2)); in testRunLevelPostProcessing_processRunLogsOnly()
325 assertTrue(processedMetrics.containsKey("test")); in testPerTestPostProcessing()
330 assertTrue(processedMetrics.containsKey("test2")); in testPerTestPostProcessing()
371 processedMetrics.containsKey(TestablePostProcessor.FILE_PREFIX + TEST_DATA_NAME_1)); in testPerTestLogPostProcessing_processTestLogs()
[all …]
DStatsdEventMetricPostProcessorTest.java111 assertTrue(parsedMetrics.containsKey(crashKey)); in testFormattingSingleAtom()
117 assertTrue(parsedMetrics.containsKey(crashWithForegroundStateKey)); in testFormattingSingleAtom()
144 assertTrue(parsedMetrics.containsKey(crashWithForegroundStateKey)); in testFormattingMultipleAtomTypes()
151 assertTrue(parsedMetrics.containsKey(startupInstancesKey)); in testFormattingMultipleAtomTypes()
157 assertTrue(parsedMetrics.containsKey(startupMillisKey)); in testFormattingMultipleAtomTypes()
176 assertTrue(parsedMetrics.containsKey(startupMillisKey)); in testCsvForRepeatedKeys()
205 assertTrue(parsedMetrics.containsKey(package1Key)); in testNewKeysForAtomsOfSameTypeAndDifferentValues()
211 assertTrue(parsedMetrics.containsKey(package2Key)); in testNewKeysForAtomsOfSameTypeAndDifferentValues()
233 assertTrue(parsedMetrics.containsKey(crashTimestampKey)); in testAccessingEventMetricDataField()
255 assertTrue(parsedMetrics.containsKey(attributionChainKey)); in testAccessingRepeatedField()
[all …]
DAveragePostProcessorTest.java68 assertTrue(result.containsKey("key1")); in testAverage_double()
69 assertTrue(result.containsKey("key1" + AveragePostProcessor.AVERAGE_KEY_TAG)); in testAverage_double()
91 assertTrue(result.containsKey("key1")); in testAverage_long()
92 assertTrue(result.containsKey("key1" + AveragePostProcessor.AVERAGE_KEY_TAG)); in testAverage_long()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DBaseTestSuiteTest.java284 assertTrue(configMap.containsKey("arm64-v8a suite/stub1")); in testLoadTests()
285 assertTrue(configMap.containsKey("arm64-v8a suite/stub2")); in testLoadTests()
286 assertTrue(configMap.containsKey("armeabi-v7a suite/stub1")); in testLoadTests()
287 assertTrue(configMap.containsKey("armeabi-v7a suite/stub2")); in testLoadTests()
301 assertTrue(configMap.containsKey("arm64-v8a suite/stub1")); in testLoadTests_suite2()
302 assertTrue(configMap.containsKey("armeabi-v7a suite/stub1")); in testLoadTests_suite2()
404 assertTrue(configMap.containsKey("arm64-v8a suite/stubAbi")); in testLoadTestsForMultiAbi()
405 assertTrue(configMap.containsKey("armeabi-v7a suite/stubAbi")); in testLoadTestsForMultiAbi()
429 assertTrue(configMap.containsKey("arm64-v8a suite/stub-parameterized")); in testLoadTests_parameterizedModule()
430 assertTrue(configMap.containsKey("arm64-v8a suite/stub-parameterized[instant]")); in testLoadTests_parameterizedModule()
[all …]
DGranularRetriableTestWrapperTest.java369 assertTrue(testResults.containsKey(fakeTestCase)); in testRun_withMultipleRun()
370 assertTrue(testResults.containsKey(fakeTestCase2)); in testRun_withMultipleRun()
371 assertTrue(testResults.containsKey(fakeTestCase3)); in testRun_withMultipleRun()
384 .containsKey(fakeTestCase3)); in testRun_withMultipleRun()
392 .containsKey(fakeTestCase3)); in testRun_withMultipleRun()
428 assertTrue(testResults.containsKey(fakeTestCase)); in testRun_withMultipleRun_becomePass()
429 assertTrue(testResults.containsKey(fakeTestCase2)); in testRun_withMultipleRun_becomePass()
430 assertTrue(testResults.containsKey(fakeTestCase3)); in testRun_withMultipleRun_becomePass()
443 .containsKey(fakeTestCase3)); in testRun_withMultipleRun_becomePass()
451 .containsKey(fakeTestCase3)); in testRun_withMultipleRun_becomePass()
[all …]
DTfSuiteRunnerTest.java118 assertTrue(configMap.containsKey("arm64-v8a suite/stub1")); in testLoadTests()
119 assertTrue(configMap.containsKey("armeabi-v7a suite/stub1")); in testLoadTests()
120 assertTrue(configMap.containsKey("arm64-v8a suite/stub2")); in testLoadTests()
121 assertTrue(configMap.containsKey("armeabi-v7a suite/stub2")); in testLoadTests()
135 assertTrue(configMap.containsKey("arm64-v8a suite/stub1")); in testLoadTests_suite2()
136 assertTrue(configMap.containsKey("armeabi-v7a suite/stub1")); in testLoadTests_suite2()
189 assertTrue(configMap.containsKey("arm64-v8a suite/stub1")); in testLoadSuite()
190 assertTrue(configMap.containsKey("armeabi-v7a suite/stub1")); in testLoadSuite()
191 assertTrue(configMap.containsKey("arm64-v8a suite/stub2")); in testLoadSuite()
192 assertTrue(configMap.containsKey("armeabi-v7a suite/stub2")); in testLoadSuite()
[all …]
DTestMappingSuiteRunnerTest.java273 assertTrue(configMap.containsKey(ABI_1 + " suite/stub1")); in testLoadTests_testMappingsZip()
274 assertTrue(configMap.containsKey(ABI_1 + " suite/stub2")); in testLoadTests_testMappingsZip()
275 assertTrue(configMap.containsKey(ABI_2 + " suite/stub1")); in testLoadTests_testMappingsZip()
276 assertTrue(configMap.containsKey(ABI_2 + " suite/stub2")); in testLoadTests_testMappingsZip()
284 assertTrue(testSouceCount.containsKey(config.getName())); in testLoadTests_testMappingsZip()
346 assertTrue(configMap.containsKey(ABI_1 + " suite/stub2")); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
347 assertTrue(configMap.containsKey(ABI_2 + " suite/stub2")); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
356 assertTrue(testSouceCount.containsKey(config.getName())); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
612 assertTrue(configMap.containsKey(ABI_1 + " suite/stubAbi")); in testLoadTestsForMultiAbi()
613 assertTrue(configMap.containsKey(ABI_2 + " suite/stubAbi")); in testLoadTestsForMultiAbi()
[all …]
DAtestRunnerTest.java97 assertTrue(configMap.containsKey(String.format(TEST_NAME_FMT, "tf/fake"))); in testLoadTests_one()
108 assertTrue(configMap.containsKey(String.format(TEST_NAME_FMT, "tf/fake"))); in testLoadTests_two()
109 assertTrue(configMap.containsKey(String.format(TEST_NAME_FMT, "tf/func"))); in testLoadTests_two()
122 assertTrue(configMap.containsKey(testName)); in testLoadTests_filter()
141 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithTFConfigSpecified()
157 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithModuleAndTFConfigSpecified()
159 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithModuleAndTFConfigSpecified()
176 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithModuleConfigSpecified()
191 assertTrue(configMap.containsKey(testName)); in testLoadTests_ignoreFilter()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DArgsOptionParserTest.java766 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption()
768 assertTrue(object.mMyOption.containsKey(expKey2)); in testParseBestEffort_mapOption()
789 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption_singleValue()
811 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption_escaping()
833 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption_singleValue_escaping()
858 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption_bothFormat()
860 assertTrue(object.mMyOption.containsKey(expKey2)); in testParseBestEffort_mapOption_bothFormat()
1027 EasyMock.expect(c.containsKey("foo")).andStubReturn(true); in testKeyStore_string()
1105 EasyMock.expect(c.containsKey("foobar")).andStubReturn(true); in testKeyStore_stringWithUnavalableKey()
1131 EasyMock.expect(c.containsKey("foobar")).andStubReturn(true); in testKeyStore_mapOptions()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollectorTest.java468 assertTrue(allValues.get(0).containsKey("onteststart")); in testActualRunAnnotated_include()
469 assertTrue(allValues.get(0).containsKey("ontestend")); in testActualRunAnnotated_include()
471 assertTrue(allValues.get(1).containsKey("onteststart")); in testActualRunAnnotated_include()
472 assertTrue(allValues.get(1).containsKey("ontestend")); in testActualRunAnnotated_include()
474 assertFalse(allValues.get(2).containsKey("onteststart")); in testActualRunAnnotated_include()
475 assertFalse(allValues.get(2).containsKey("ontestend")); in testActualRunAnnotated_include()
521 assertFalse(allValues.get(0).containsKey("onteststart")); in testActualRunAnnotated_exclude()
522 assertFalse(allValues.get(0).containsKey("ontestend")); in testActualRunAnnotated_exclude()
524 assertFalse(allValues.get(1).containsKey("onteststart")); in testActualRunAnnotated_exclude()
525 assertFalse(allValues.get(1).containsKey("ontestend")); in testActualRunAnnotated_exclude()
[all …]
DLogcatTimingMetricCollectorTest.java105 assertThat(metrics).containsKey("metric1"); in testCollect_oneDevice_perRun()
106 assertThat(metrics).containsKey("metric2"); in testCollect_oneDevice_perRun()
144 .containsKey(String.format(DEVICE_NAME_FORMAT_KEY, "device1", "metric1")); in testCollect_multipleDevice_perRun()
146 .containsKey(String.format(DEVICE_NAME_FORMAT_KEY, "device2", "metric2")); in testCollect_multipleDevice_perRun()
163 assertThat(metrics).containsKey("metric1"); in testCollect_onDevice_twoTests()
164 assertThat(metrics).containsKey("metric2"); in testCollect_onDevice_twoTests()
174 assertThat(metrics).containsKey("metric1"); in testCollect_onDevice_twoTests()
175 assertThat(metrics).containsKey("metric2"); in testCollect_onDevice_twoTests()
DScheduleMultipleDeviceMetricCollectorTest.java175 assertTrue(metricsCollected.containsKey("jankinfo1")); in testMultipleMetricCollector_success()
176 assertTrue(metricsCollected.containsKey("meminfo1")); in testMultipleMetricCollector_success()
177 assertTrue(metricsCollected.containsKey("fragmentation1")); in testMultipleMetricCollector_success()
242 assertTrue(metricsCollected.containsKey("meminfo1")); in testMultipleMetricCollector_collectorNotFound()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestRunResultTest.java203 assertTrue(testRes.getLoggedFiles().containsKey("insideTestCase")); in testLogSavedFile_runLogs()
204 assertTrue(testRes.getLoggedFiles().containsKey("insideTestCase2")); in testLogSavedFile_runLogs()
207 assertTrue(result.getRunLoggedFiles().containsKey("outsideTestCase")); in testLogSavedFile_runLogs()
208 assertTrue(result.getRunLoggedFiles().containsKey("outsideTestCase2")); in testLogSavedFile_runLogs()
282 assertTrue(testResult.containsKey(testcase1)); in testMergeRetriedRunResults_fullMergeLogicCheck()
283 assertTrue(testResult.containsKey(testcase2)); in testMergeRetriedRunResults_fullMergeLogicCheck()
284 assertTrue(testResult.containsKey(testcase3)); in testMergeRetriedRunResults_fullMergeLogicCheck()
344 assertTrue(testRunResult.containsKey(testcase)); in testMergeRetriedRunResults_checkMergingStackTraces()
414 assertTrue(runMetrics.containsKey("metric1")); in testMergeRetriedRunResults_CheckMergeMapAttributes()
416 assertTrue(runMetrics.containsKey("metric2")); in testMergeRetriedRunResults_CheckMergeMapAttributes()
[all …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DAppTransitionTests.java539 if (cmpNameAppMap.containsKey(delayItem.getComponentName())) { in analyzeColdLaunchDelay()
542 if (appKeyTransitionDelayMap.containsKey(appName)) { in analyzeColdLaunchDelay()
574 if (appToHomeKeyTransitionDelayMap.containsKey(prevAppName)) { in analyzeHotLaunchDelay()
588 if (cmpNameAppMap.containsKey(delayItem.getComponentName())) { in analyzeHotLaunchDelay()
594 if (appKeyTransitionDelayMap.containsKey(appName)) { in analyzeHotLaunchDelay()
622 if (appKeyTransitionDelayMap.containsKey(prevAppName)) { in analyzeAppToRecentsDelay()
635 if (cmpNameAppMap.containsKey(delayItem.getComponentName())) { in analyzeAppToRecentsDelay()
661 if (isRecentsBefore && cmpNameAppMap.containsKey(delayItem.getComponentName())) { in analyzeRecentsToAppDelay()
666 if (appKeyTransitionDelayMap.containsKey(appName)) { in analyzeRecentsToAppDelay()
689 if (actionDelayListMap.containsKey(Integer.toString(delayItem.getActionId()))) { in analyzeLatencyInfo()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackTest.java482 if (resultsDictionary.containsKey(metricsKey)) { in runGlitchesTest()
725 if (results.containsKey(key)) { in populateResultData()
730 if (results.containsKey(key)) { in populateResultData()
735 if (results.containsKey(key)) { in populateResultData()
740 if (results.containsKey(key)) { in populateResultData()
745 if (results.containsKey(key)) { in populateResultData()
750 if (results.containsKey(key)) { in populateResultData()
755 if (results.containsKey(key)) { in populateResultData()
813 if (map.containsKey(key)) { in getDeviceFilename()
822 if (!map.containsKey(key)) { in uploadLog()
DCameraPerformanceTest.java179 if (resultsAll.containsKey(k)) { in parseResult()
556 if (!metricsData.containsKey(kpiKey)) { in parse()
577 if (!metricsData.containsKey(kpiKey)) { in parse()
642 if (!jsonMap.containsKey(key)) { in reformatJsonString()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRegexTrieTest.java273 assertTrue(map.containsKey(cp1)); in testCompPattern_hashmap()
274 assertTrue(map.containsKey(cp2)); in testCompPattern_hashmap()
275 assertFalse(map.containsKey(cpOther)); in testCompPattern_hashmap()
279 assertTrue(map.containsKey(cp1)); in testCompPattern_hashmap()
280 assertTrue(map.containsKey(cp2)); in testCompPattern_hashmap()
281 assertTrue(map.containsKey(cpOther)); in testCompPattern_hashmap()
/tools/loganalysis/tests/src/com/android/loganalysis/util/
DRegexTrieTest.java273 assertTrue(map.containsKey(cp1)); in testCompPattern_hashmap()
274 assertTrue(map.containsKey(cp2)); in testCompPattern_hashmap()
275 assertFalse(map.containsKey(cpOther)); in testCompPattern_hashmap()
279 assertTrue(map.containsKey(cp1)); in testCompPattern_hashmap()
280 assertTrue(map.containsKey(cp2)); in testCompPattern_hashmap()
281 assertTrue(map.containsKey(cpOther)); in testCompPattern_hashmap()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DSuiteModuleLoader.java656 if (duplicateModule.containsKey(family)) { in getModuleParameters()
772 if (mModuleOptions.containsKey(name)) { in setUpConfig()
775 if (nameWithParam != null && mModuleOptions.containsKey(nameWithParam)) { in setUpConfig()
778 if (mModuleOptions.containsKey(id)) { in setUpConfig()
781 if (mModuleOptions.containsKey(fullId)) { in setUpConfig()
790 if (mTestOrPreparerOptions.containsKey(className)) { in setUpConfig()
803 if (mTestOrPreparerOptions.containsKey(className)) { in setUpConfig()
/tools/loganalysis/src/com/android/loganalysis/item/
DProcrankItem.java95 if (!mProcrankLines.containsKey(pid)) { in getProcessName()
106 if (!mProcrankLines.containsKey(pid)) { in getVss()
117 if (!mProcrankLines.containsKey(pid)) { in getRss()
128 if (!mProcrankLines.containsKey(pid)) { in getPss()
139 if (!mProcrankLines.containsKey(pid)) { in getUss()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java272 assertTrue(deviceMap.containsKey("product1:variant1"));
274 assertTrue(deviceMap.containsKey("product2:variant2"));
276 assertTrue(deviceMap.containsKey("product3:variant3"));
296 assertTrue(deviceMap.containsKey("product1:variant1"));
298 assertTrue(deviceMap.containsKey("product2:variant2"));
300 assertTrue(deviceMap.containsKey("product3:variant3"));
323 assertFalse(deviceMap.containsKey("product1:variant1"));
324 assertFalse(deviceMap.containsKey("product2:variant2"));
325 assertTrue(deviceMap.containsKey("product3:variant3"));
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetrics.java146 if (!after.mRunMetrics.containsKey(name)) { in crossValidate()
152 if (!mRunMetrics.containsKey(name)) { in crossValidate()
158 if (!after.mTestMetrics.containsKey(id)) { in crossValidate()
167 if (!mTestMetrics.containsKey(id)) { in crossValidate()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationTestTest.java1159 assertTrue(test1Metric.containsKey("called")); in testRun_withCollectors()
1160 assertFalse(test1Metric.containsKey("not-called")); in testRun_withCollectors()
1166 assertTrue(test2Metric.containsKey("called")); in testRun_withCollectors()
1167 assertFalse(test2Metric.containsKey("not-called")); in testRun_withCollectors()
1171 assertTrue(runMetric.containsKey("called")); in testRun_withCollectors()
1172 assertFalse(runMetric.containsKey("not-called")); in testRun_withCollectors()
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DBasePostProcessor.java199 if (mTestLogs.containsKey(test)) { in testStarted()
248 mTestLogs.containsKey(test) in testEnded()
253 if (testMetrics.containsKey(newKey)) { in testEnded()
344 if (existing.containsKey(newKey)) { in addProcessedMetricsToExistingMetrics()

123456