Home
last modified time | relevance | path

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

12345678910>>...41

/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapTest.java56 assertTrue(map.containsKey("1")); in testCreate_map()
57 assertTrue(map.containsKey("2")); in testCreate_map()
58 assertTrue(map.containsKey("3")); in testCreate_map()
76 assertTrue(map.containsKey(key)); in testIncrementAndGet()
84 assertFalse(map.containsKey(key)); in testIncrementAndGet_zero()
91 assertTrue(map.containsKey(key)); in testIncrementAndGet_zero()
109 assertTrue(map.containsKey(key)); in testGetAndIncrement()
117 assertFalse(map.containsKey(key)); in testGetAndIncrement_zero()
124 assertTrue(map.containsKey(key)); in testGetAndIncrement_zero()
142 assertTrue(map.containsKey(key)); in testDecrementAndGet()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapTest.java56 assertTrue(map.containsKey("1")); in testCreate_map()
57 assertTrue(map.containsKey("2")); in testCreate_map()
58 assertTrue(map.containsKey("3")); in testCreate_map()
76 assertTrue(map.containsKey(key)); in testIncrementAndGet()
84 assertFalse(map.containsKey(key)); in testIncrementAndGet_zero()
91 assertTrue(map.containsKey(key)); in testIncrementAndGet_zero()
109 assertTrue(map.containsKey(key)); in testGetAndIncrement()
117 assertFalse(map.containsKey(key)); in testGetAndIncrement_zero()
124 assertTrue(map.containsKey(key)); in testGetAndIncrement_zero()
142 assertTrue(map.containsKey(key)); in testDecrementAndGet()
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DZHash.java59 if(hash.containsKey(key)) { in addToTop()
76 if(hash.containsKey(key)) { in addToBottom()
87 if(!hash.containsKey(element)) { in moveToTop()
98 if(!hash.containsKey(reference) || !hash.containsKey(objectToMove)) { in moveAbove()
109 if(!hash.containsKey(reference) || !hash.containsKey(objectToMove)) { in moveBeneath()
117 if(!hash.containsKey(key)) { in moveToBottom()
125 if (!hash.containsKey(key)) { in moveUp()
133 if (!hash.containsKey(key)) { in moveDown()
155 if(hash.containsKey(key)) { in remove()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapContainsKeyTester.java39 assertTrue(multimap().containsKey(k0())); in testContainsKeyYes()
43 assertFalse(multimap().containsKey(k3())); in testContainsKeyNo()
48 assertTrue(multimap().containsKey(k)); in testContainsKeysFromKeySet()
54 assertEquals(!multimap().get(k).isEmpty(), multimap().containsKey(k)); in testContainsKeyAgreesWithGet()
60 assertEquals(multimap().containsKey(k), multimap().asMap().containsKey(k)); in testContainsKeyAgreesWithAsMap()
66 assertEquals(multimap().containsKey(k), multimap().keySet().contains(k)); in testContainsKeyAgreesWithKeySet()
74 assertTrue(multimap().containsKey(null)); in testContainsKeyNullPresent()
79 assertFalse(multimap().containsKey(null)); in testContainsKeyNullAbsent()
85 multimap().containsKey(null); in testContainsKeyNullDisallowed()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapContainsKeyTester.java39 assertTrue(multimap().containsKey(k0())); in testContainsKeyYes()
43 assertFalse(multimap().containsKey(k3())); in testContainsKeyNo()
48 assertTrue(multimap().containsKey(k)); in testContainsKeysFromKeySet()
54 assertEquals(!multimap().get(k).isEmpty(), multimap().containsKey(k)); in testContainsKeyAgreesWithGet()
60 assertEquals(multimap().containsKey(k), multimap().asMap().containsKey(k)); in testContainsKeyAgreesWithAsMap()
66 assertEquals(multimap().containsKey(k), multimap().keySet().contains(k)); in testContainsKeyAgreesWithKeySet()
74 assertTrue(multimap().containsKey(null)); in testContainsKeyNullPresent()
79 assertFalse(multimap().containsKey(null)); in testContainsKeyNullAbsent()
85 multimap().containsKey(null); in testContainsKeyNullDisallowed()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DServiceConfigUtil.java68 if (serviceConfig == null || !serviceConfig.containsKey(retryThrottlingKey)) { in getThrottlePolicy()
102 if (!retryPolicy.containsKey(RETRY_POLICY_MAX_ATTEMPTS_KEY)) { in getMaxAttemptsFromRetryPolicy()
110 if (!retryPolicy.containsKey(RETRY_POLICY_INITIAL_BACKOFF_KEY)) { in getInitialBackoffNanosFromRetryPolicy()
123 if (!retryPolicy.containsKey(RETRY_POLICY_MAX_BACKOFF_KEY)) { in getMaxBackoffNanosFromRetryPolicy()
136 if (!retryPolicy.containsKey(RETRY_POLICY_BACKOFF_MULTIPLIER_KEY)) { in getBackoffMultiplierFromRetryPolicy()
144 if (!retryPolicy.containsKey(RETRY_POLICY_RETRYABLE_STATUS_CODES_KEY)) { in getRetryableStatusCodesFromRetryPolicy()
152 if (!hedgingPolicy.containsKey(HEDGING_POLICY_MAX_ATTEMPTS_KEY)) { in getMaxAttemptsFromHedgingPolicy()
160 if (!hedgingPolicy.containsKey(HEDGING_POLICY_HEDGING_DELAY_KEY)) { in getHedgingDelayNanosFromHedgingPolicy()
173 if (!hedgingPolicy.containsKey(HEDGING_POLICY_NON_FATAL_STATUS_CODES_KEY)) { in getNonFatalStatusCodesFromHedgingPolicy()
181 if (!name.containsKey(NAME_SERVICE_KEY)) { in getServiceFromName()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DTypeInferenceCache.java18 if (!typeForLambdaParameters.containsKey(typeSolver)) { in record()
21 if (!typeForLambdaParameters.get(typeSolver).containsKey(lambdaExpr)) { in record()
28 if (!typeForLambdaParameters.containsKey(typeSolver)) { in retrieve()
31 if (!typeForLambdaParameters.get(typeSolver).containsKey(lambdaExpr)) { in retrieve()
34 if (!typeForLambdaParameters.get(typeSolver).get(lambdaExpr).containsKey(paramName)) { in retrieve()
41 if (!inferenceVariables.containsKey(typeSolver)) { in recordInferenceVariables()
48 if (!inferenceVariables.containsKey(typeSolver)) { in retrieveInferenceVariables()
51 if (!inferenceVariables.get(typeSolver).containsKey(lambdaExpr)) { in retrieveInferenceVariables()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DStaticUnicodeSets.java248 assert unicodeSets.containsKey(Key.COMMA); in unicodeSets.containsKey()
249 assert unicodeSets.containsKey(Key.STRICT_COMMA); in unicodeSets.containsKey()
250 assert unicodeSets.containsKey(Key.PERIOD); in unicodeSets.containsKey()
251 assert unicodeSets.containsKey(Key.STRICT_PERIOD); in unicodeSets.containsKey()
252 assert unicodeSets.containsKey(Key.APOSTROPHE_SIGN); in unicodeSets.containsKey()
263 assert unicodeSets.containsKey(Key.MINUS_SIGN); in unicodeSets.containsKey()
264 assert unicodeSets.containsKey(Key.PLUS_SIGN); in unicodeSets.containsKey()
265 assert unicodeSets.containsKey(Key.PERCENT_SIGN); in unicodeSets.containsKey()
266 assert unicodeSets.containsKey(Key.PERMILLE_SIGN); in unicodeSets.containsKey()
270 assert unicodeSets.containsKey(Key.DOLLAR_SIGN); in unicodeSets.containsKey()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DStaticUnicodeSets.java253 assert unicodeSets.containsKey(Key.COMMA); in unicodeSets.containsKey()
254 assert unicodeSets.containsKey(Key.STRICT_COMMA); in unicodeSets.containsKey()
255 assert unicodeSets.containsKey(Key.PERIOD); in unicodeSets.containsKey()
256 assert unicodeSets.containsKey(Key.STRICT_PERIOD); in unicodeSets.containsKey()
257 assert unicodeSets.containsKey(Key.APOSTROPHE_SIGN); in unicodeSets.containsKey()
268 assert unicodeSets.containsKey(Key.MINUS_SIGN); in unicodeSets.containsKey()
269 assert unicodeSets.containsKey(Key.PLUS_SIGN); in unicodeSets.containsKey()
270 assert unicodeSets.containsKey(Key.PERCENT_SIGN); in unicodeSets.containsKey()
271 assert unicodeSets.containsKey(Key.PERMILLE_SIGN); in unicodeSets.containsKey()
275 assert unicodeSets.containsKey(Key.DOLLAR_SIGN); in unicodeSets.containsKey()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPermissionChecker.java39 if (!RESULTS.containsKey(packageName)) { in setResult()
53 return RESULTS.containsKey(packageName) && RESULTS.get(packageName).containsKey(permission) in checkCallingPermissionForDataDelivery()
69 return RESULTS.containsKey(packageName) && RESULTS.get(packageName).containsKey(permission) in checkPermissionForDataDelivery()
88 return RESULTS.containsKey(packageName) && RESULTS.get(packageName).containsKey(permission) in checkPermissionForPreflight()
DShadowShortcutManager.java36 if (activePinnedShortcuts.containsKey(shortcutInfo.getId())) { in addDynamicShortcuts()
41 } else if (disabledPinnedShortcuts.containsKey(shortcutInfo.getId())) { in addDynamicShortcuts()
46 } else if (dynamicShortcuts.containsKey(shortcutInfo.getId())) { in addDynamicShortcuts()
60 if (disabledPinnedShortcuts.containsKey(shortcut.getId())) { in createShortcutResultIntent()
165 if (disabledPinnedShortcuts.containsKey(shortcut.getId())) { in requestPinShortcut()
169 if (dynamicShortcuts.containsKey(shortcut.getId())) { in requestPinShortcut()
194 if (dynamicShortcuts.containsKey(shortcutInfo.getId()) in updateShortcuts()
195 || activePinnedShortcuts.containsKey(shortcutInfo.getId()) in updateShortcuts()
196 || disabledPinnedShortcuts.containsKey(shortcutInfo.getId())) { in updateShortcuts()
/external/guava/guava-tests/test/com/google/common/collect/
DMapsTransformValuesTest.java167 assertEquals(expected.containsKey("a"), map.containsKey("a")); in testTransformEqualityOfMapsWithNullValues()
169 assertEquals(expected.containsKey("b"), map.containsKey("b")); in testTransformEqualityOfMapsWithNullValues()
171 assertEquals(expected.containsKey("c"), map.containsKey("c")); in testTransformEqualityOfMapsWithNullValues()
188 assertFalse(map.containsKey("c")); in testTransformReflectsUnderlyingMap()
206 assertFalse(underlying.containsKey("a")); in testTransformChangesAreReflectedInUnderlyingMap()
210 assertFalse(underlying.containsKey("b")); in testTransformChangesAreReflectedInUnderlyingMap()
215 assertFalse(underlying.containsKey("c")); in testTransformChangesAreReflectedInUnderlyingMap()
219 assertFalse(underlying.containsKey("d")); in testTransformChangesAreReflectedInUnderlyingMap()
224 assertFalse(underlying.containsKey("e")); in testTransformChangesAreReflectedInUnderlyingMap()
229 assertFalse(underlying.containsKey("f")); in testTransformChangesAreReflectedInUnderlyingMap()
[all …]
DMapsTransformValuesUnmodifiableIteratorTest.java242 assertEquals(expected.containsKey("a"), map.containsKey("a"));
244 assertEquals(expected.containsKey("b"), map.containsKey("b"));
246 assertEquals(expected.containsKey("c"), map.containsKey("c"));
263 assertFalse(map.containsKey("c"));
281 assertFalse(underlying.containsKey("a"));
285 assertFalse(underlying.containsKey("b"));
290 assertFalse(underlying.containsKey("c"));
294 assertFalse(underlying.containsKey("d"));
299 assertFalse(underlying.containsKey("e"));
304 assertFalse(underlying.containsKey("f"));
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DMapsTransformValuesTest.java166 assertEquals(expected.containsKey("a"), map.containsKey("a")); in testTransformEqualityOfMapsWithNullValues()
168 assertEquals(expected.containsKey("b"), map.containsKey("b")); in testTransformEqualityOfMapsWithNullValues()
170 assertEquals(expected.containsKey("c"), map.containsKey("c")); in testTransformEqualityOfMapsWithNullValues()
187 assertFalse(map.containsKey("c")); in testTransformReflectsUnderlyingMap()
205 assertFalse(underlying.containsKey("a")); in testTransformChangesAreReflectedInUnderlyingMap()
209 assertFalse(underlying.containsKey("b")); in testTransformChangesAreReflectedInUnderlyingMap()
214 assertFalse(underlying.containsKey("c")); in testTransformChangesAreReflectedInUnderlyingMap()
218 assertFalse(underlying.containsKey("d")); in testTransformChangesAreReflectedInUnderlyingMap()
223 assertFalse(underlying.containsKey("e")); in testTransformChangesAreReflectedInUnderlyingMap()
228 assertFalse(underlying.containsKey("f")); in testTransformChangesAreReflectedInUnderlyingMap()
[all …]
DMapsTransformValuesUnmodifiableIteratorTest.java242 assertEquals(expected.containsKey("a"), map.containsKey("a"));
244 assertEquals(expected.containsKey("b"), map.containsKey("b"));
246 assertEquals(expected.containsKey("c"), map.containsKey("c"));
263 assertFalse(map.containsKey("c"));
281 assertFalse(underlying.containsKey("a"));
285 assertFalse(underlying.containsKey("b"));
290 assertFalse(underlying.containsKey("c"));
294 assertFalse(underlying.containsKey("d"));
299 assertFalse(underlying.containsKey("e"));
304 assertFalse(underlying.containsKey("f"));
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DMapContainsKeyTester.java41 assertTrue("containsKey(present) should return true", getMap().containsKey(k0())); in testContains_yes()
45 assertFalse("containsKey(notPresent) should return false", getMap().containsKey(k3())); in testContains_no()
50 assertFalse("containsKey(null) should return false", getMap().containsKey(null)); in testContains_nullNotContainedButAllowed()
62 assertFalse("containsKey(notPresent) should return false", getMap().containsKey(k3())); in testContains_nonNullWhenNullContained()
69 assertTrue("containsKey(null) should return true", getMap().containsKey(null)); in testContains_nullContained()
77 getMap().containsKey(WrongType.VALUE)); in testContains_wrongType()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DMapContainsKeyTester.java41 assertTrue("containsKey(present) should return true", getMap().containsKey(k0())); in testContains_yes()
45 assertFalse("containsKey(notPresent) should return false", getMap().containsKey(k3())); in testContains_no()
50 assertFalse("containsKey(null) should return false", getMap().containsKey(null)); in testContains_nullNotContainedButAllowed()
62 assertFalse("containsKey(notPresent) should return false", getMap().containsKey(k3())); in testContains_nonNullWhenNullContained()
69 assertTrue("containsKey(null) should return true", getMap().containsKey(null)); in testContains_nullContained()
77 getMap().containsKey(WrongType.VALUE)); in testContains_wrongType()
/external/dagger2/javatests/dagger/functional/producers/multibindings/
DMultibindingTest.java106 assertThat(map).containsKey(15); in mapOfProducerBinding()
108 assertThat(map).containsKey(42); in mapOfProducerBinding()
110 assertThat(map).containsKey(3); in mapOfProducerBinding()
119 assertThat(map).containsKey(15); in mapOfProducedBinding()
121 assertThat(map).containsKey(42); in mapOfProducedBinding()
123 assertThat(map).containsKey(3); in mapOfProducedBinding()
144 assertThat(map).containsKey(42); in mapOfProducerBindingWithFailures()
146 assertThat(map).containsKey(15); in mapOfProducerBindingWithFailures()
162 assertThat(map).containsKey(42); in mapOfProducedBindingWithFailures()
164 assertThat(map).containsKey(15); in mapOfProducedBindingWithFailures()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/
DStaticTest.java109 assertThat(result).containsKey(testProfileConnector.utils().getCurrentProfile()); in staticCrossProfileMethod_blocking_both_works()
110 assertThat(result).containsKey(testProfileConnector.utils().getOtherProfile()); in staticCrossProfileMethod_blocking_both_works()
133 assertThat(result).containsKey(testProfileConnector.utils().getCurrentProfile()); in staticCrossProfileMethod_fake_blocking_both_works()
134 assertThat(result).containsKey(testProfileConnector.utils().getOtherProfile()); in staticCrossProfileMethod_fake_blocking_both_works()
157 assertThat(result).containsKey(testProfileConnector.utils().getCurrentProfile()); in staticCrossProfileMethod_async_both_works()
158 assertThat(result).containsKey(testProfileConnector.utils().getOtherProfile()); in staticCrossProfileMethod_async_both_works()
186 assertThat(result).containsKey(testProfileConnector.utils().getCurrentProfile()); in staticCrossProfileMethod_fake_async_both_works()
187 assertThat(result).containsKey(testProfileConnector.utils().getOtherProfile()); in staticCrossProfileMethod_fake_async_both_works()
210 assertThat(result).containsKey(testProfileConnector.utils().getCurrentProfile()); in staticCrossProfileMethod_future_both_works()
211 assertThat(result).containsKey(testProfileConnector.utils().getOtherProfile()); in staticCrossProfileMethod_future_both_works()
[all …]
/external/turbine/java/com/google/turbine/bytecode/
DConstantPool.java98 if (classInfoPool.containsKey(utf8)) { in classInfo()
109 if (utf8Pool.containsKey(value)) { in utf8()
118 if (integerPool.containsKey(value)) { in integer()
127 if (longPool.containsKey(value)) { in longInfo()
136 if (doublePool.containsKey(value)) { in doubleInfo()
145 if (floatPool.containsKey(value)) { in floatInfo()
156 if (stringPool.containsKey(utf8)) { in string()
168 if (modulePool.containsKey(utf8)) { in moduleInfo()
180 if (packagePool.containsKey(utf8)) { in packageInfo()
/external/autotest/frontend/client/src/autotest/tko/
DHeaderFieldCollection.java65 boolean containsName = fieldsByName.containsKey(field.getName()); in contains()
66 boolean containsSqlName = fieldsBySqlName.containsKey(field.getSqlName()); in contains()
115 assert fieldsByName.containsKey(name) : name; in getFieldByName()
120 assert fieldsBySqlName.containsKey(sqlName) : sqlName; in getFieldBySqlName()
125 return fieldsByName.containsKey(name); in containsName()
129 return fieldsBySqlName.containsKey(sqlName); in containsSqlName()
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/
DInMemorySharedPreferences.java42 if (mData.containsKey(key)) { in getString()
53 if (mData.containsKey(key)) { in getStringSet()
63 if (mData.containsKey(key)) { in getInt()
73 if (mData.containsKey(key)) { in getLong()
83 if (mData.containsKey(key)) { in getFloat()
93 if (mData.containsKey(key)) { in getBoolean()
103 return mData.containsKey(key); in contains()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistClassDeclarationTest.java169 assertTrue(fields.containsKey("genericParamObjectField")); in testGetGenericTypeField()
170 assertTrue(fields.containsKey("genericPrimitiveArrayField")); in testGetGenericTypeField()
171 assertTrue(fields.containsKey("genericObjectArrayField")); in testGetGenericTypeField()
172 assertTrue(fields.containsKey("genericField")); in testGetGenericTypeField()
173 assertTrue(fields.containsKey("primitiveField")); in testGetGenericTypeField()
174 assertTrue(fields.containsKey("objectField")); in testGetGenericTypeField()
188 assertTrue(methods.containsKey("pos")); in testGetDeclaredMethods()
190 assertTrue(methods.containsKey("withColumn")); in testGetDeclaredMethods()
192 assertTrue(methods.containsKey("withLine")); in testGetDeclaredMethods()
194 assertTrue(methods.containsKey("valid")); in testGetDeclaredMethods()
[all …]
/external/testng/src/test/java/test/configuration/
DReflectMethodParametrizedConfigurationMethodTest.java39 …Assert.assertTrue(m_before.containsKey("test1"), "@Test method should have been passed to @BeforeM… in assertBeforeAfterMethodsInvocations()
40 …Assert.assertTrue(m_before.containsKey("test2"), "@Test method should have been passed to @BeforeM… in assertBeforeAfterMethodsInvocations()
41 …Assert.assertTrue(m_after.containsKey("test1"), "@Test method should have been passed to @AfterMet… in assertBeforeAfterMethodsInvocations()
42 …Assert.assertTrue(m_before.containsKey("test2"), "@Test method should have been passed to @AfterMe… in assertBeforeAfterMethodsInvocations()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DMapDeserializerCachingTest.java41 assertTrue(ignored.data.containsKey("1st")); in testCachedSerialize()
42 assertTrue(ignored.data.containsKey("2nd")); in testCachedSerialize()
47 if (!model2.data.containsKey("1st (CUSTOM)") in testCachedSerialize()
48 || !model2.data.containsKey("2nd (CUSTOM)")) { in testCachedSerialize()

12345678910>>...41