Home
last modified time | relevance | path

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

1234

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DCpuStatsCollectorTest.java158 assertTrue(cpuStats.containsKey("Total")); in testCpuStatsParser_single()
159 assertTrue(cpuStats.containsKey("cpu0")); in testCpuStatsParser_single()
160 assertTrue(cpuStats.containsKey("cpu1")); in testCpuStatsParser_single()
235 assertTrue(cpuStats.containsKey("Total")); in testCpuStatsParser_single_non_aggregate()
236 assertTrue(cpuStats.containsKey("cpu0")); in testCpuStatsParser_single_non_aggregate()
237 assertTrue(cpuStats.containsKey("cpu1")); in testCpuStatsParser_single_non_aggregate()
275 assertTrue(stats.containsKey("Total")); in testCpuStatsParser_multi()
276 assertTrue(stats.containsKey("cpu0")); in testCpuStatsParser_multi()
277 assertTrue(stats.containsKey("cpu1")); in testCpuStatsParser_multi()
318 assertTrue(stats.containsKey("Total")); in testCpuStatsParser_multi_non_aggregate()
[all …]
/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()
DQtaguidItem.java121 if (!mRows.containsKey(uid)) { in updateRow()
134 return mRows.containsKey(uid); in contains()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DBaseTestSuiteTest.java187 assertTrue(configMap.containsKey("arm64-v8a suite/stub1")); in testLoadTests()
188 assertTrue(configMap.containsKey("arm64-v8a suite/stub2")); in testLoadTests()
189 assertTrue(configMap.containsKey("armeabi-v7a suite/stub1")); in testLoadTests()
190 assertTrue(configMap.containsKey("armeabi-v7a suite/stub2")); in testLoadTests()
204 assertTrue(configMap.containsKey("arm64-v8a suite/stub1")); in testLoadTests_suite2()
205 assertTrue(configMap.containsKey("armeabi-v7a suite/stub1")); in testLoadTests_suite2()
247 assertTrue(configMap.containsKey("arm64-v8a suite/stubAbi")); in testLoadTestsForMultiAbi()
248 assertTrue(configMap.containsKey("armeabi-v7a suite/stubAbi")); in testLoadTestsForMultiAbi()
DTestMappingSuiteRunnerTest.java150 assertTrue(configMap.containsKey(ABI_1 + " instrument")); in testLoadTests_testMappingsZip()
151 assertTrue(configMap.containsKey(ABI_1 + " suite/stub1")); in testLoadTests_testMappingsZip()
152 assertTrue(configMap.containsKey(ABI_1 + " suite/stub2")); in testLoadTests_testMappingsZip()
153 assertTrue(configMap.containsKey(ABI_2 + " instrument")); in testLoadTests_testMappingsZip()
154 assertTrue(configMap.containsKey(ABI_2 + " suite/stub1")); in testLoadTests_testMappingsZip()
155 assertTrue(configMap.containsKey(ABI_2 + " suite/stub2")); in testLoadTests_testMappingsZip()
207 assertTrue(configMap.containsKey(ABI_1 + " suite/stubAbi")); in testLoadTestsForMultiAbi()
208 assertTrue(configMap.containsKey(ABI_2 + " suite/stubAbi")); in testLoadTestsForMultiAbi()
DTfSuiteRunnerTest.java108 assertTrue(configMap.containsKey("suite/stub1")); in testLoadTests()
109 assertTrue(configMap.containsKey("suite/stub2")); in testLoadTests()
123 assertTrue(configMap.containsKey("suite/stub1")); in testLoadTests_suite2()
176 assertTrue(configMap.containsKey("suite/stub1")); in testLoadSuite()
177 assertTrue(configMap.containsKey("suite/stub2")); in testLoadSuite()
179 assertTrue(configMap.containsKey("suite/sub-suite")); in testLoadSuite()
289 assertTrue(configMap.containsKey("arm64-v8a suite/stubAbi")); in testLoadTestsForMultiAbi()
290 assertTrue(configMap.containsKey("armeabi-v7a suite/stubAbi")); in testLoadTestsForMultiAbi()
DAtestRunnerTest.java88 assertTrue(configMap.containsKey(String.format(TEST_NAME_FMT, "tf/fake"))); in testLoadTests_one()
98 assertTrue(configMap.containsKey(String.format(TEST_NAME_FMT, "tf/fake"))); in testLoadTests_two()
99 assertTrue(configMap.containsKey(String.format(TEST_NAME_FMT, "tf/func"))); in testLoadTests_two()
111 assertTrue(configMap.containsKey(testName)); in testLoadTests_filter()
130 assertTrue(configMap.containsKey(testName)); in testLoadTests_ignoreFilter()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestRunResultTest.java160 assertTrue(testRes.getLoggedFiles().containsKey("insideTestCase")); in testLogSavedFile_runLogs()
161 assertTrue(testRes.getLoggedFiles().containsKey("insideTestCase2")); in testLogSavedFile_runLogs()
164 assertTrue(result.getRunLoggedFiles().containsKey("outsideTestCase")); in testLogSavedFile_runLogs()
165 assertTrue(result.getRunLoggedFiles().containsKey("outsideTestCase2")); in testLogSavedFile_runLogs()
235 assertTrue(testResult.containsKey(testcase1)); in testMergeRetriedRunResults_fullMergeLogicCheck()
236 assertTrue(testResult.containsKey(testcase2)); in testMergeRetriedRunResults_fullMergeLogicCheck()
237 assertTrue(testResult.containsKey(testcase3)); in testMergeRetriedRunResults_fullMergeLogicCheck()
291 assertTrue(testRunResult.containsKey(testcase)); in testMergeRetriedRunResults_checkMergingStackTraces()
355 assertTrue(runMetrics.containsKey("metric1")); in testMergeRetriedRunResults_CheckMergeMapAttributes()
357 assertTrue(runMetrics.containsKey("metric2")); in testMergeRetriedRunResults_CheckMergeMapAttributes()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/
DJSONFileKeyStoreClientTest.java88 assertFalse("Key should not exist in null key store", mKeyStore.containsKey("test")); in testContainsKeyinNullKeyStore()
95 mKeyStore.containsKey("invalid key")); in testDoesNotContainMissingKey()
101 assertTrue("Failed to fetch valid key in key store", mKeyStore.containsKey("key1")); in testContainsValidKey()
/tools/tradefederation/core/src/com/android/tradefed/testtype/metricregression/
DMetrics.java147 if (!after.mRunMetrics.containsKey(name)) { in crossValidate()
153 if (!mRunMetrics.containsKey(name)) { in crossValidate()
159 if (!after.mTestMetrics.containsKey(id)) { in crossValidate()
168 if (!mTestMetrics.containsKey(id)) { in crossValidate()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollectorTest.java431 assertTrue(allValues.get(0).containsKey("onteststart")); in testActualRunAnnotated_include()
432 assertTrue(allValues.get(0).containsKey("ontestend")); in testActualRunAnnotated_include()
434 assertTrue(allValues.get(1).containsKey("onteststart")); in testActualRunAnnotated_include()
435 assertTrue(allValues.get(1).containsKey("ontestend")); in testActualRunAnnotated_include()
437 assertFalse(allValues.get(2).containsKey("onteststart")); in testActualRunAnnotated_include()
438 assertFalse(allValues.get(2).containsKey("ontestend")); in testActualRunAnnotated_include()
479 assertFalse(allValues.get(0).containsKey("onteststart")); in testActualRunAnnotated_exclude()
480 assertFalse(allValues.get(0).containsKey("ontestend")); in testActualRunAnnotated_exclude()
482 assertFalse(allValues.get(1).containsKey("onteststart")); in testActualRunAnnotated_exclude()
483 assertFalse(allValues.get(1).containsKey("ontestend")); in testActualRunAnnotated_exclude()
[all …]
DScheduledDeviceMetricCollectorTest.java91 assertTrue(metrics.containsKey("key1")); in testSetupAndPeriodicRunSingleDevice()
92 assertTrue(metrics.containsKey("key2")); in testSetupAndPeriodicRunSingleDevice()
93 assertTrue(metrics.containsKey("key3")); in testSetupAndPeriodicRunSingleDevice()
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/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/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()
DEmmaXmlReporterParserTest.java116 Assert.assertTrue(error, map.containsKey(expectedKey)); in assertMapHasValue()
134 Assert.assertTrue(error, map.containsKey(expectedKey)); in assertMapHasValueArray()
/tools/tradefederation/core/src/com/android/tradefed/util/
DMultiMap.java51 public boolean containsKey(K key) { in containsKey() method in MultiMap
52 return mInternalMap.containsKey(key); in containsKey()
186 if (uniqueMap.containsKey(proposedKey)) { in addUniqueEntry()
DCircularAtraceUtil.java59 } else if (deviceBufferMap.containsKey(device)) { in startTrace()
84 if (!deviceBufferMap.containsKey(device)) { in endTrace()
DDirectedGraph.java50 if (neighbors.containsKey(vertex)) { in addVertice()
60 return neighbors.containsKey(vertex); in contains()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DArgsOptionParserTest.java751 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption()
753 assertTrue(object.mMyOption.containsKey(expKey2)); in testParseBestEffort_mapOption()
774 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption_singleValue()
796 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption_escaping()
818 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption_singleValue_escaping()
843 assertTrue(object.mMyOption.containsKey(expKey)); in testParseBestEffort_mapOption_bothFormat()
845 assertTrue(object.mMyOption.containsKey(expKey2)); in testParseBestEffort_mapOption_bothFormat()
1012 EasyMock.expect(c.containsKey("foo")).andStubReturn(true); in testKeyStore_string()
1090 EasyMock.expect(c.containsKey("foobar")).andStubReturn(true); in testKeyStore_stringWithUnavalableKey()
1116 EasyMock.expect(c.containsKey("foobar")).andStubReturn(true); in testKeyStore_mapOptions()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/keystore/
DIKeyStoreClient.java37 public boolean containsKey(String key); in containsKey() method
DStubKeyStoreClient.java29 public boolean containsKey(String key) { in containsKey() method in StubKeyStoreClient
DDryRunKeyStore.java27 public boolean containsKey(String key) { in containsKey() method in DryRunKeyStore
/tools/tradefederation/core/src/com/android/tradefed/targetprep/companion/
DCompanionDeviceTracker.java64 if (mDeviceMapping.containsKey(device)) { in allocateCompanionDevice()
81 if (!mDeviceMapping.containsKey(device)) { in freeCompanionDevice()
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DAppTransitionTests.java456 if (cmpNameAppMap.containsKey(delayItem.getComponentName())) { in analyzeColdLaunchDelay()
459 if (appKeyTransitionDelayMap.containsKey(appName)) { in analyzeColdLaunchDelay()
491 if (appToHomeKeyTransitionDelayMap.containsKey(prevAppName)) { in analyzeHotLaunchDelay()
505 if (cmpNameAppMap.containsKey(delayItem.getComponentName())) { in analyzeHotLaunchDelay()
511 if (appKeyTransitionDelayMap.containsKey(appName)) { in analyzeHotLaunchDelay()
539 if (appKeyTransitionDelayMap.containsKey(prevAppName)) { in analyzeAppToRecentsDelay()
552 if (cmpNameAppMap.containsKey(delayItem.getComponentName())) { in analyzeAppToRecentsDelay()
578 if (isRecentsBefore && cmpNameAppMap.containsKey(delayItem.getComponentName())) { in analyzeRecentsToAppDelay()
583 if (appKeyTransitionDelayMap.containsKey(appName)) { in analyzeRecentsToAppDelay()
606 if (actionDelayListMap.containsKey(Integer.toString(delayItem.getActionId()))) { in analyzeLatencyInfo()

1234