/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | NavigableMapNavigationTester.java | 91 assertNull(navigableMap.lowerEntry(samples.e0.getKey())); in testEmptyMapNearby() 92 assertNull(navigableMap.lowerKey(samples.e0.getKey())); in testEmptyMapNearby() 93 assertNull(navigableMap.floorEntry(samples.e0.getKey())); in testEmptyMapNearby() 94 assertNull(navigableMap.floorKey(samples.e0.getKey())); in testEmptyMapNearby() 95 assertNull(navigableMap.ceilingEntry(samples.e0.getKey())); in testEmptyMapNearby() 96 assertNull(navigableMap.ceilingKey(samples.e0.getKey())); in testEmptyMapNearby() 97 assertNull(navigableMap.higherEntry(samples.e0.getKey())); in testEmptyMapNearby() 98 assertNull(navigableMap.higherKey(samples.e0.getKey())); in testEmptyMapNearby() 126 assertNull(navigableMap.lowerEntry(samples.e0.getKey())); in testSingletonMapNearby() 127 assertNull(navigableMap.lowerKey(samples.e0.getKey())); in testSingletonMapNearby() [all …]
|
D | SortedMapNavigationTester.java | 87 assertEquals(a.getKey(), navigableMap.firstKey()); in testSingletonMapFirst() 92 assertEquals(a.getKey(), navigableMap.lastKey()); in testSingletonMapLast() 97 assertEquals(a.getKey(), navigableMap.firstKey()); in testFirst() 102 assertEquals(c.getKey(), navigableMap.lastKey()); in testLast() 107 assertFalse(navigableMap.headMap(a.getKey()).containsKey(a.getKey())); in testHeadMapExclusive() 112 assertTrue(navigableMap.tailMap(a.getKey()).containsKey(a.getKey())); in testTailMapInclusive() 120 assertThat(navigableMap.headMap(entries.get(i).getKey()).entrySet()) in testHeadMap() 130 assertThat(navigableMap.tailMap(entries.get(i).getKey()).entrySet()) in testTailMap() 142 .subMap(entries.get(i).getKey(), entries.get(j).getKey()) in testSubMap() 152 navigableMap.subMap(c.getKey(), a.getKey()); in testSubMapIllegal() [all …]
|
D | MapRemoveTester.java | 52 samples.e0.getValue(), getMap().remove(samples.e0.getKey())); in testRemove_present() 64 getMap().remove(samples.e0.getKey()); in testRemovePresentConcurrentWithEntrySetIteration() 78 getMap().remove(samples.e0.getKey()); in testRemovePresentConcurrentWithKeySetIteration() 92 getMap().remove(samples.e0.getKey()); in testRemovePresentConcurrentWithValuesIteration() 103 getMap().remove(samples.e3.getKey())); in testRemove_notPresent() 124 getMap().remove(samples.e0.getKey()); in testRemove_unsupported() 130 samples.e0.getValue(), get(samples.e0.getKey())); in testRemove_unsupported() 138 getMap().remove(samples.e3.getKey())); in testRemove_unsupportedNotPresent()
|
/external/llvm/unittests/ADT/ |
D | DenseMapTest.cpp | 87 typename T::key_type getKey(int i = 0) { in getKey() function in __anonf4a6f20c0111::DenseMapTest 121 EXPECT_FALSE(this->Map.count(this->getKey())); in TYPED_TEST() 122 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end()); in TYPED_TEST() 125 this->Map.lookup(this->getKey())); in TYPED_TEST() 132 this->Map.lookup(this->getKey())); in TYPED_TEST() 146 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 155 EXPECT_EQ(this->getKey(), it->first); in TYPED_TEST() 161 EXPECT_TRUE(this->Map.count(this->getKey())); in TYPED_TEST() 162 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.begin()); in TYPED_TEST() 163 EXPECT_EQ(this->getValue(), this->Map.lookup(this->getKey())); in TYPED_TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | DenseMapTest.cpp | 87 typename T::key_type getKey(int i = 0) { in getKey() function in __anon5f397f640111::DenseMapTest 121 EXPECT_FALSE(this->Map.count(this->getKey())); in TYPED_TEST() 122 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end()); in TYPED_TEST() 125 this->Map.lookup(this->getKey())); in TYPED_TEST() 132 this->Map.lookup(this->getKey())); in TYPED_TEST() 146 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST() 155 EXPECT_EQ(this->getKey(), it->first); in TYPED_TEST() 161 EXPECT_TRUE(this->Map.count(this->getKey())); in TYPED_TEST() 162 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.begin()); in TYPED_TEST() 163 EXPECT_EQ(this->getValue(), this->Map.lookup(this->getKey())); in TYPED_TEST() [all …]
|
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
D | DefaultEdgeCreator.java | 69 NodeId to = NodeId.newTypeId(dependency.getKey()); in newDependencyEdges() 81 return newDependencyEdges(NodeId.newTypeId(binding.getKey()), binding); in visit() 93 NodeId.newTypeId(binding.getKey()), in visit() 109 NodeId.newTypeId(binding.getKey()), in visit() 110 NodeId.newInstanceId(binding.getKey()), in visit() 112 .addAll(newDependencyEdges(NodeId.newInstanceId(binding.getKey()), binding)) in visit() 125 NodeId.newTypeId(binding.getKey()), in visit() 138 NodeId.newTypeId(binding.getKey()), in visit() 152 NodeId.newTypeId(binding.getKey()), in visit() 153 NodeId.newInstanceId(binding.getKey()), in visit() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | BiMapPutTester.java | 37 K k0 = samples.e0.getKey(); in testPutWithSameValueFails() 38 K k1 = samples.e1.getKey(); in testPutWithSameValueFails() 55 K k0 = samples.e0.getKey(); in testPutPresentKeyDifferentValue() 69 getMap().put(samples.e0.getKey(), samples.e0.getValue()); in putDistinctKeysDistinctValues() 70 getMap().put(samples.e1.getKey(), samples.e1.getValue()); in putDistinctKeysDistinctValues() 78 K k0 = samples.e0.getKey(); in testForcePutOverwritesOldValueEntry() 79 K k1 = samples.e1.getKey(); in testForcePutOverwritesOldValueEntry() 91 K k0 = samples.e0.getKey(); in testInversePut() 93 K k1 = samples.e1.getKey(); in testInversePut()
|
/external/guice/core/test/com/google/inject/spi/ |
D | SpiBindingsTest.java | 63 assertEquals(Key.get(Integer.class, Names.named("one")), binding.getKey()); in testBindConstant() 82 assertEquals(Key.get(String.class), binding.getKey()); in testToInstanceBinding() 118 assertEquals(Key.get(String.class), binding.getKey()); in testToProviderBinding() 145 assertEquals(Key.get(String.class), binding.getKey()); in testToProviderKeyBinding() 176 assertEquals(aKey, binding.getKey()); in testToKeyBinding() 191 assertEquals(bKey, binding.getKey()); in testToKeyBinding() 210 assertEquals(Key.get(D.class), binding.getKey()); in testToConstructorBinding() 239 assertEquals(Key.get(Integer.class, Names.named("one")), binding.getKey()); in testConstantBinding() 264 assertEquals(Key.get(Integer.class, Names.named("one")), binding.getKey()); in testConvertedConstantBinding() 290 assertEquals(providerOfStringKey, binding.getKey()); in testProviderBinding() [all …]
|
D | ElementsTest.java | 168 assertEquals(Key.get(String.class, SampleAnnotation.class), command.getKey()); in testBindConstantAnnotations() 177 assertEquals(Key.get(String.class, Names.named("Bee")), command.getKey()); in testBindConstantAnnotations() 206 assertEquals(Key.get(String.class, Names.named("String")), command.getKey()); in testBindConstantTypes() 215 assertEquals(Key.get(Integer.class, Names.named("int")), command.getKey()); in testBindConstantTypes() 224 assertEquals(Key.get(Long.class, Names.named("long")), command.getKey()); in testBindConstantTypes() 233 assertEquals(Key.get(Boolean.class, Names.named("boolean")), command.getKey()); in testBindConstantTypes() 242 assertEquals(Key.get(Double.class, Names.named("double")), command.getKey()); in testBindConstantTypes() 251 assertEquals(Key.get(Float.class, Names.named("float")), command.getKey()); in testBindConstantTypes() 260 assertEquals(Key.get(Short.class, Names.named("short")), command.getKey()); in testBindConstantTypes() 269 assertEquals(Key.get(Character.class, Names.named("char")), command.getKey()); in testBindConstantTypes() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | ForwardingMapEntry.java | 65 public K getKey() { in getKey() method in ForwardingMapEntry 66 return delegate().getKey(); in getKey() 98 return Objects.equal(this.getKey(), that.getKey()) in standardEquals() 112 K k = getKey(); in standardHashCode() 126 return getKey() + "=" + getValue(); in standardToString()
|
D | AbstractMapEntry.java | 36 public abstract K getKey(); in getKey() method in AbstractMapEntry 49 return Objects.equal(this.getKey(), that.getKey()) in equals() 56 K k = getKey(); in hashCode() 65 return getKey() + "=" + getValue(); in toString()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | AbstractMapTester.java | 92 return getEntryNullReplaces().getKey(); in getKeyForNullValue() 111 array[nullValueLocation] = entry(oldEntry.getKey(), null); in createArrayWithNullValue() 176 assertFalse("Should not contain key " + entry.getKey() + " mapped to" in expectMissing() 178 equal(getMap().get(entry.getKey()), entry.getValue())); in expectMissing() 195 assertEquals("Wrong value for key " + entry.getKey(), in expectContents() 196 entry.getValue(), getMap().get(entry.getKey())); in expectContents() 208 if (Helpers.equal(i.next().getKey(), newEntry.getKey())) { in replaceValue() 215 "key %s not found in entries %s", newEntry.getKey(), expected)); in replaceValue()
|
/external/guice/core/src/com/google/inject/internal/ |
D | UntargettedBindingImpl.java | 54 return new UntargettedBindingImpl<T>(getSource(), getKey(), scoping); in withScoping() 64 getScoping().applyTo(binder.withSource(getSource()).bind(getKey())); in applyTo() 70 .add("key", getKey()) in toString() 79 return getKey().equals(o.getKey()) && getScoping().equals(o.getScoping()); in equals() 87 return Objects.hashCode(getKey(), getScoping()); in hashCode()
|
D | LinkedBindingImpl.java | 68 return new LinkedBindingImpl<T>(getSource(), getKey(), scoping, targetKey); in withScoping() 78 getScoping().applyTo(binder.withSource(getSource()).bind(getKey()).to(getLinkedKey())); in applyTo() 84 .add("key", getKey()) in toString() 95 return getKey().equals(o.getKey()) in equals() 105 return Objects.hashCode(getKey(), getScoping(), targetKey); in hashCode()
|
D | InstanceBindingImpl.java | 79 return new InstanceBindingImpl<T>(getSource(), getKey(), scoping, injectionPoints, instance); in withScoping() 90 binder.withSource(getSource()).bind(getKey()).toInstance(instance); in applyTo() 96 .add("key", getKey()) in toString() 106 return getKey().equals(o.getKey()) in equals() 116 return Objects.hashCode(getKey(), getScoping()); in hashCode()
|
/external/apache-http/src/org/apache/commons/logging/impl/ |
D | WeakHashtable.java | 167 Referenced referencedKey = (Referenced) entry.getKey(); in entrySet() 258 put(entry.getKey(), entry.getValue()); 363 result = (getKey()==null ? 364 entry.getKey() == null : 365 getKey().equals(entry.getKey())) 376 return (getKey()==null ? 0 : getKey().hashCode()) ^ 388 public Object getKey() {
|
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | DuckTypedPSKKeyManagerTest.java | 148 assertSame(key, pskKeyManager.getKey(identityHint, identity, mSSLSocket)); in testMethodInvocationDelegation() 158 assertSame(key, pskKeyManager.getKey(identityHint, identity, mSSLEngine)); in testMethodInvocationDelegation() 175 pskKeyManager.getKey(null, "", mSSLSocket); in testMethodInvocationDelegationWithDifferentButCompatibleReturnType() 176 pskKeyManager.getKey(null, "", mSSLEngine); in testMethodInvocationDelegationWithDifferentButCompatibleReturnType() 200 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() method in DuckTypedPSKKeyManagerTest.AlmostPSKKeyManager 231 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithExactReturnTypes 235 public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithExactReturnTypes 265 public SecretKeySpec getKey(String identityHint, String identity, Socket socket) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithCompatibleReturnTypes 270 public SecretKeySpec getKey(String identityHint, String identity, SSLEngine engine) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithCompatibleReturnTypes 299 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithIncompatibleReturnTypes [all …]
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | DuckTypedPSKKeyManagerTest.java | 144 assertSame(key, pskKeyManager.getKey(identityHint, identity, mSSLSocket)); in testMethodInvocationDelegation() 154 assertSame(key, pskKeyManager.getKey(identityHint, identity, mSSLEngine)); in testMethodInvocationDelegation() 171 pskKeyManager.getKey(null, "", mSSLSocket); in testMethodInvocationDelegationWithDifferentButCompatibleReturnType() 172 pskKeyManager.getKey(null, "", mSSLEngine); in testMethodInvocationDelegationWithDifferentButCompatibleReturnType() 196 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() method in DuckTypedPSKKeyManagerTest.AlmostPSKKeyManager 227 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithExactReturnTypes 231 public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithExactReturnTypes 261 public SecretKeySpec getKey(String identityHint, String identity, Socket socket) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithCompatibleReturnTypes 266 public SecretKeySpec getKey(String identityHint, String identity, SSLEngine engine) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithCompatibleReturnTypes 295 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() method in DuckTypedPSKKeyManagerTest.KeyManagerOfferingAllPSKKeyManagerMethodsWithIncompatibleReturnTypes [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SymbolRewriter.cpp | 299 Key = dyn_cast<yaml::ScalarNode>(Entry.getKey()); in parseEntry() 301 YS.printError(Entry.getKey(), "rewrite type must be a scalar"); in parseEntry() 319 YS.printError(Entry.getKey(), "unknown rewrite type"); in parseEntry() 339 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); in parseRewriteFunctionDescriptor() 341 YS.printError(Field.getKey(), "descriptor key must be a scalar"); in parseRewriteFunctionDescriptor() 357 YS.printError(Field.getKey(), "invalid regex: " + Error); in parseRewriteFunctionDescriptor() 370 YS.printError(Field.getKey(), "unknown key for function"); in parseRewriteFunctionDescriptor() 408 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); in parseRewriteGlobalVariableDescriptor() 410 YS.printError(Field.getKey(), "descriptor Key must be a scalar"); in parseRewriteGlobalVariableDescriptor() 426 YS.printError(Field.getKey(), "invalid regex: " + Error); in parseRewriteGlobalVariableDescriptor() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SymbolRewriter.cpp | 279 Key = dyn_cast<yaml::ScalarNode>(Entry.getKey()); in parseEntry() 281 YS.printError(Entry.getKey(), "rewrite type must be a scalar"); in parseEntry() 299 YS.printError(Entry.getKey(), "unknown rewrite type"); in parseEntry() 319 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); in parseRewriteFunctionDescriptor() 321 YS.printError(Field.getKey(), "descriptor key must be a scalar"); in parseRewriteFunctionDescriptor() 337 YS.printError(Field.getKey(), "invalid regex: " + Error); in parseRewriteFunctionDescriptor() 350 YS.printError(Field.getKey(), "unknown key for function"); in parseRewriteFunctionDescriptor() 386 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); in parseRewriteGlobalVariableDescriptor() 388 YS.printError(Field.getKey(), "descriptor Key must be a scalar"); in parseRewriteGlobalVariableDescriptor() 404 YS.printError(Field.getKey(), "invalid regex: " + Error); in parseRewriteGlobalVariableDescriptor() [all …]
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | SmallSortedMap.java | 108 if (entry.getKey().isRepeated()) { in newFieldMap() 115 if (entry.getKey().isRepeated()) { in newFieldMap() 253 getOverflowEntriesMutable().put(lastEntryInArray.getKey(), in put() 322 int cmp = key.compareTo(entryList.get(right).getKey()); in binarySearchInArray() 332 int cmp = key.compareTo(entryList.get(mid).getKey()); in binarySearchInArray() 406 this(copy.getKey(), copy.getValue()); in Entry() 415 public K getKey() { in getKey() method in SmallSortedMap.Entry 426 return getKey().compareTo(other.getKey()); in compareTo() 447 return equals(key, other.getKey()) && equals(value, other.getValue()); in equals() 491 final V existing = get(entry.getKey()); in contains() [all …]
|
/external/guice/core/test/com/google/inject/internal/ |
D | SpiUtils.java | 171 Object key = entry.getKey(); in mapInjectorTest() 233 } else if (b.getKey().equals(mapOfProvider)) { in mapInjectorTest() 236 } else if (b.getKey().equals(mapOfJavaxProvider)) { in mapInjectorTest() 239 } else if (b.getKey().equals(mapOfSet)) { in mapInjectorTest() 242 } else if (b.getKey().equals(mapOfSetOfProvider)) { in mapInjectorTest() 245 } else if (b.getKey().equals(mapOfSetOfJavaxProvider)) { in mapInjectorTest() 248 } else if (b.getKey().equals(mapOfCollectionOfProvider)) { in mapInjectorTest() 251 } else if (b.getKey().equals(mapOfCollectionOfJavaxProvider)) { in mapInjectorTest() 254 } else if (b.getKey().equals(setOfEntry)) { in mapInjectorTest() 259 } else if (b.getKey().equals(setOfJavaxEntry)) { in mapInjectorTest() [all …]
|
/external/guava/guava/src/com/google/common/cache/ |
D | RemovalNotification.java | 68 @Nullable @Override public K getKey() { in getKey() method in RemovalNotification 83 return Objects.equal(this.getKey(), that.getKey()) in equals() 90 K k = getKey(); in hashCode() 99 return getKey() + "=" + getValue(); in toString()
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/ |
D | LabelKeyTest.java | 35 assertThat(KEY.getKey()).isEqualTo("key"); in testGetKey() 50 assertThat(LabelKey.create(key, "").getKey()).isEqualTo(key); in create_NoLengthConstraint() 58 assertThat(labelKey.getKey()).isEqualTo(key); in create_WithUnprintableChars() 67 assertThat(nonAsciiKey.getKey()).isEqualTo(key); in create_WithNonAsciiChars() 74 assertThat(emptyKey.getKey()).isEmpty(); in create_Empty()
|
/external/guice/core/src/com/google/inject/spi/ |
D | ProviderLookup.java | 60 public Key<T> getKey() { in getKey() method in ProviderLookup 61 return dependency.getKey(); in getKey() 118 Key<?> providerKey = getKey().ofType(Types.providerOf(getKey().getTypeLiteral().getType())); in getProvider() 124 return "Provider<" + getKey().getTypeLiteral() + ">"; in getProvider()
|