Home
last modified time | relevance | path

Searched refs:hasKey (Results 1 – 17 of 17) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsMapContainingKeyTest.java11 import static org.hamcrest.collection.IsMapContaining.hasKey;
17 return hasKey("foo"); in createMatcher()
24 assertMatches("Matches single key", hasKey("a"), map); in testMatchesSingletonMapContainingKey()
33 assertMatches("Matches a", hasKey("a"), map); in testMatchesMapContainingKey()
34 assertMatches("Matches c", hasKey("c"), map); in testMatchesMapContainingKey()
54 assertThat(map, hasKey(1)); in testMatchesMapContainingKeyWithIntegerKeys()
62 assertThat(map, hasKey((Number)1)); in testMatchesMapContainingKeyWithNumberKeys()
69 assertDescription("map containing [\"a\"->ANYTHING]", hasKey("a")); in testHasReadableDescription()
73 assertMismatchDescription("map was []", hasKey("Foo"), new HashMap<String,Integer>()); in testDoesNotMatchEmptyMap()
82 assertMismatchDescription("map was [<a=1>, <b=2>, <c=3>]", hasKey("d"), map); in testDoesNotMatchMapMissingKey()
/external/angle/src/libANGLE/renderer/d3d/d3d11/winrt/
DInspectableNativeWindow.cpp133 boolean *hasKey, in GetOptionalPropertyValue() argument
136 if (!propertyMap || !hasKey) in GetOptionalPropertyValue()
142 *hasKey = false; in GetOptionalPropertyValue()
144 HRESULT result = propertyMap->HasKey(HStringReference(propertyName).Get(), hasKey); in GetOptionalPropertyValue()
145 if (SUCCEEDED(result) && !(*hasKey)) in GetOptionalPropertyValue()
182 boolean hasKey = false; in GetOptionalSizePropertyValue() local
193 HRESULT result = GetOptionalPropertyValue(propertyMap, propertyName, &hasKey, propertyValue); in GetOptionalSizePropertyValue()
194 if (SUCCEEDED(result) && hasKey) in GetOptionalSizePropertyValue()
248 boolean hasKey = false; in GetOptionalSinglePropertyValue() local
259 HRESULT result = GetOptionalPropertyValue(propertyMap, propertyName, &hasKey, propertyValue); in GetOptionalSinglePropertyValue()
[all …]
DInspectableNativeWindow.h134 boolean *hasKey,
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/regex/
DRegexTransformerTest.java101 assertThat(results.get(0)).hasKey("/numberingSystems/foo/algorithmic:int"); in testMultipleResults()
105 assertThat(results.get(1)).hasKey("/numberingSystems/foo/desc"); in testMultipleResults()
109 assertThat(results.get(2)).hasKey("/numberingSystems/foo/radix:int"); in testMultipleResults()
131 assertThat(results.get(0)).hasKey("/genderList/xx"); in testImplicitArgumentSplitting()
133 assertThat(results.get(1)).hasKey("/genderList/yy"); in testImplicitArgumentSplitting()
135 assertThat(results.get(2)).hasKey("/genderList/zz"); in testImplicitArgumentSplitting()
150 assertThat(results.get(0)).hasKey("/mapTimezones/\"not split\"/XX"); in testImplicitArgumentSplitting()
152 assertThat(results.get(1)).hasKey("/mapTimezones/\"not split\"/YY"); in testImplicitArgumentSplitting()
154 assertThat(results.get(2)).hasKey("/mapTimezones/\"not split\"/ZZ"); in testImplicitArgumentSplitting()
294 assertThat(fallbacks.get(0)).hasKey(rbPath); in testFallbacks_simple()
[all …]
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/testing/
DResultSubject.java46 public final void hasKey(RbPath path) { in hasKey() method in ResultSubject
50 public final void hasKey(String path) { in hasKey() method in ResultSubject
51 hasKey(RbPath.parse(path)); in hasKey()
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DMapEntry.java247 private boolean hasKey; field in MapEntry.Builder
254 private Builder(Metadata<K, V> metadata, K key, V value, boolean hasKey, boolean hasValue) { in Builder() argument
258 this.hasKey = hasKey; in Builder()
272 this.hasKey = true; in setKey()
278 this.hasKey = false; in clearKey()
410 return field.getNumber() == 1 ? hasKey : hasValue; in hasField()
441 return new Builder<>(metadata, key, value, hasKey, hasValue); in clone()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMapEntry.java247 private boolean hasKey; field in MapEntry.Builder
254 private Builder(Metadata<K, V> metadata, K key, V value, boolean hasKey, boolean hasValue) { in Builder() argument
258 this.hasKey = hasKey; in Builder()
272 this.hasKey = true; in setKey()
278 this.hasKey = false; in clearKey()
414 return field.getNumber() == 1 ? hasKey : hasValue; in hasField()
445 return new Builder<>(metadata, key, value, hasKey, hasValue); in clone()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsMapContaining.java87 public static <K> Matcher<Map<? extends K, ?>> hasKey(Matcher<? super K> keyMatcher) { in hasKey() method in IsMapContaining
100 public static <K> Matcher<Map<? extends K, ?>> hasKey(K key) { in hasKey() method in IsMapContaining
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/icu/
DLDML2ICUBinaryWriter.java286 if (!res.hasKey) { in getSpecialType()
616 if (cur.hasKey && (cur instanceof ICUResourceWriter.ResourceString)) { in addCollation()
847 if (!resTop.isTop && resTop.hasKey) { in buildKeyList()
862 current.hasKey = false; in buildKeyList()
DICUResourceWriter.java114 public boolean hasKey = true; field in ICUResourceWriter.Resource
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/transforms/
DTransformProtos.java128 Preconditions.checkArgument(subparam.hasKey()); in toEncodedSpec()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java1087 …public static <K> org.hamcrest.Matcher<java.util.Map<? extends K,?>> hasKey(org.hamcrest.Matcher<?… in hasKey() method in Matchers
1088 return org.hamcrest.collection.IsMapContaining.<K>hasKey(keyMatcher); in hasKey()
1100 public static <K> org.hamcrest.Matcher<java.util.Map<? extends K,?>> hasKey(K key) { in hasKey() method in Matchers
1101 return org.hamcrest.collection.IsMapContaining.<K>hasKey(key); in hasKey()
/external/hamcrest/
DCHANGES.txt84 generics bug in hasKey and hasValue static factories previously declared
/external/wayland-protocols/
Dwayland_protocol_codegen.go761 if conflictWith, hasKey := distinctOutputs[outFileRaw]; hasKey {
/external/skia/src/gpu/ganesh/
DGrResourceCache.cpp366 bool hasKey = resource->resourcePriv().getScratchKey().isValid() || hasUniqueKey; in notifyARefCntReachedZero() local
367 if (!this->overBudget() && hasKey) { in notifyARefCntReachedZero()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMap.java325 public IRubyObject hasKey(ThreadContext context, IRubyObject key) { in hasKey() method in RubyMap
/external/cronet/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMap.java325 public IRubyObject hasKey(ThreadContext context, IRubyObject key) { in hasKey() method in RubyMap