/external/guice/core/test/com/google/inject/internal/ |
D | WeakKeySetTest.java | 34 import com.google.inject.Key; 69 Key<Integer> key = Key.get(Integer.class); in testEviction() 72 WeakReference<Key<Integer>> weakKeyRef = new WeakReference<Key<Integer>>(key); in testEviction() 81 assertNotInSet(set, Key.get(Integer.class)); in testEviction() 90 Key<Integer> key = Key.get(Integer.class); in testEviction_nullSource() 93 WeakReference<Key<Integer>> weakKeyRef = new WeakReference<Key<Integer>>(key); in testEviction_nullSource() 102 assertNotInSet(set, Key.get(Integer.class)); in testEviction_nullSource() 112 Key<Integer> key1 = Key.get(Integer.class); in testEviction_keyOverlap_2x() 113 Key<Integer> key2 = Key.get(Integer.class); in testEviction_keyOverlap_2x() 123 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<Key<Integer>>(key1); in testEviction_keyOverlap_2x() [all …]
|
/external/boringssl/src/crypto/cipher/test/ |
D | cipher_test.txt | 3 Key = 0123456789abcdef0123456789abcdef 8 Key = 0123456789abcdef0123456789abcdef 13 Key = 00000000000000000000000000000000 18 Key = ef012345ef012345ef012345ef012345 23 Key = 0123456789abcdef0123456789abcdef 28 Key = ef012345ef012345ef012345ef012345 35 Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210 43 Key = 0123456789abcdeff1e0d3c2b5a49786 51 Key = 0123456789abcdeff1e0d3c2b5a49786 59 Key = 000102030405060708090A0B0C0D0E0F [all …]
|
/external/guice/core/test/com/google/inject/ |
D | KeyTest.java | 57 Key<Object> k = Key.get(Object.class, Foo.class); in testOfType() 58 Key<Integer> ki = k.ofType(Integer.class); in testOfType() 64 Key<List<String>> a = new Key<List<String>>(Foo.class) {}; in testKeyEquality() 65 Key<List<String>> b = Key.get(new TypeLiteral<List<String>>() {}, Foo.class); in testKeyEquality() 70 Key<?> actual = Key.get(getClass().getMethod("foo", List.class, List.class) in testProviderKey() 72 Key<?> expected = Key.get(getClass().getMethod("bar", Provider.class) in testProviderKey() 82 Key<List<String>> k = new Key<List<String>>() {}; in testTypeEquality() 85 new Key<List<Integer>>() {}.getTypeLiteral().getType())); in testTypeEquality() 104 Key primitiveKey = Key.get(primitives[t]); in testPrimitivesAndWrappersAreEqual() 106 Key wrapperKey = Key.get(wrappers[t]); in testPrimitivesAndWrappersAreEqual() [all …]
|
/external/google-breakpad/src/processor/ |
D | static_map_iterator-inl.h | 44 template<typename Key, typename Value, typename Compare> 45 StaticMapIterator<Key, Value, Compare>::StaticMapIterator(const char* base, in StaticMapIterator() 52 keys_ = reinterpret_cast<const Key*>( in StaticMapIterator() 57 template<typename Key, typename Value, typename Compare> 58 StaticMapIterator<Key, Value, Compare>& 59 StaticMapIterator<Key, Value, Compare>::operator++() { 68 template<typename Key, typename Value, typename Compare> 69 StaticMapIterator<Key, Value, Compare> 70 StaticMapIterator<Key, Value, Compare>::operator++(int postfix_operator) { 75 StaticMapIterator<Key, Value, Compare> tmp = *this; [all …]
|
D | static_map-inl.h | 45 template<typename Key, typename Value, typename Compare> 46 StaticMap<Key, Value, Compare>::StaticMap(const char* raw_data) in StaticMap() 55 keys_ = reinterpret_cast<const Key*>( in StaticMap() 60 template<typename Key, typename Value, typename Compare> 61 StaticMapIterator<Key, Value, Compare> 62 StaticMap<Key, Value, Compare>::find(const Key &key) const { in find() 81 template<typename Key, typename Value, typename Compare> 82 StaticMapIterator<Key, Value, Compare> 83 StaticMap<Key, Value, Compare>::lower_bound(const Key &key) const { in lower_bound() 102 template<typename Key, typename Value, typename Compare> [all …]
|
D | static_map.h | 72 template<typename Key> 75 int operator()(const Key &k1, const Key &k2) const { in operator() 82 template<typename Key, typename Value, typename Compare = DefaultCompare<Key> > 85 typedef StaticMapIterator<Key, Value, Compare> iterator; 86 typedef StaticMapIterator<Key, Value, Compare> const_iterator; 107 iterator find(const Key &k) const; 111 iterator lower_bound(const Key &k) const; 115 iterator upper_bound(const Key &k) const; 123 const Key GetKeyAtIndex(int i) const; 137 const Key* keys_;
|
/external/protobuf/src/google/protobuf/stubs/ |
D | hash.h | 62 template <typename Key> 65 int operator()(const Key& key) { in operator() 70 inline bool operator()(const Key& a, const Key& b) const { in operator() 89 template <typename Key, typename Data, 90 typename HashFcn = hash<Key>, 92 class hash_map : public std::map<Key, Data, HashFcn> { 97 template <typename Key, 98 typename HashFcn = hash<Key>, 100 class hash_set : public std::set<Key, HashFcn> { 107 template <typename Key> [all …]
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/ |
D | TransitiveDependencyVisitorTest.java | 24 import com.google.inject.Key; 60 Binding<?> binding = getBinding(Key.get(ConstructedClass.class)); in testVisitConstructor() 61 Collection<Key<?>> dependencies = visitor.visit((ConstructorBinding<?>) binding); in testVisitConstructor() 63 assertDependencies(dependencies, Key.get(A.class), Key.get(B.class), Key.get(C.class), in testVisitConstructor() 64 Key.get(D.class)); in testVisitConstructor() 68 Binding<?> binding = getBinding(Key.get(Integer.class, Names.named("number")), in testVisitConvertedConstant() 70 Collection<Key<?>> dependencies = visitor.visit( in testVisitConvertedConstant() 73 assertDependencies(dependencies, Key.get(String.class, Names.named("number"))); in testVisitConvertedConstant() 77 Binding<?> binding = getBinding(Key.get(ConstructedClass.class), new InstanceModule()); in testVisitInstance() 78 Collection<Key<?>> dependencies = visitor.visit( in testVisitInstance() [all …]
|
/external/libchrome/base/containers/ |
D | hash_tables.h | 134 template<class Key, class T, 135 class Hash = std::hash<Key>, 136 class Pred = std::equal_to<Key>, 137 class Alloc = std::allocator<std::pair<const Key, T>>> 138 using hash_map = std::unordered_map<Key, T, Hash, Pred, Alloc>; 140 template<class Key, class T, 141 class Hash = std::hash<Key>, 142 class Pred = std::equal_to<Key>, 143 class Alloc = std::allocator<std::pair<const Key, T>>> 144 using hash_multimap = std::unordered_multimap<Key, T, Hash, Pred, Alloc>; [all …]
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ExtensionSpiTest.java | 27 import com.google.inject.Key; 81 new Params("/class", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET), in validateVisitor() 82 new Params("/class/2", Key.get(DummyFilterImpl.class), ImmutableMap.of(), SERVLET), in validateVisitor() 83 …new Params("/key", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), SERVLET), in validateVisitor() 84 …new Params("/key/2", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), SERVLE… in validateVisitor() 87 …new Params("/class/keyvalues", Key.get(DummyFilterImpl.class), ImmutableMap.of("key", "value"), SE… in validateVisitor() 88 …new Params("/class/keyvalues/2", Key.get(DummyFilterImpl.class), ImmutableMap.of("key", "value"), … in validateVisitor() 89 …new Params("/key/keyvalues", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of("… in validateVisitor() 90 …new Params("/key/keyvalues/2", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of… in validateVisitor() 94 new Params("/class[0-9]", Key.get(DummyFilterImpl.class), ImmutableMap.of(), REGEX), in validateVisitor() [all …]
|
D | ServletScopesTest.java | 27 import com.google.inject.Key; 55 final Key<String> a = Key.get(String.class, named("A")); in testIsRequestScopedPositive() 56 final Key<String> b = Key.get(String.class, named("B")); in testIsRequestScopedPositive() 57 final Key<String> c = Key.get(String.class, named("C")); in testIsRequestScopedPositive() 58 final Key<String> d = Key.get(String.class, named("D")); in testIsRequestScopedPositive() 59 final Key<Object> e = Key.get(Object.class, named("E")); in testIsRequestScopedPositive() 60 final Key<String> f = Key.get(String.class, named("F")); in testIsRequestScopedPositive() 61 final Key<String> g = Key.get(String.class, named("G")); in testIsRequestScopedPositive() 90 ImmutableMap<Key<?>, Binding<?>> map = indexBindings(moduleBindings); in testIsRequestScopedPositive() 112 final Key<String> a = Key.get(String.class, named("A")); in testIsRequestScopedNegative() [all …]
|
/external/guice/core/src/com/google/inject/ |
D | Key.java | 55 public class Key<T> { class 76 protected Key(Class<? extends Annotation> annotationType) { in Key() method in Key 97 protected Key(Annotation annotation) { in Key() method in Key 118 protected Key() { in Key() method in Key 130 private Key(Type type, AnnotationStrategy annotationStrategy) { in Key() method in Key 138 private Key(TypeLiteral<T> typeLiteral, AnnotationStrategy annotationStrategy) { in Key() method in Key 207 Key<Provider<T>> providerKey() { 215 if (!(o instanceof Key<?>)) { 218 Key<?> other = (Key<?>) o; 234 static <T> Key<T> get(Class<T> type, [all …]
|
/external/boringssl/src/crypto/hmac/ |
D | hmac_tests.txt | 4 Key = 10 Key = 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b 15 Key = "Jefe" 20 Key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 28 Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2… 33 Key = 000102030405060708090A0B0C0D0E0F10111213 38 Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2… 43 Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2… 48 Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B 53 Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2… [all …]
|
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/ |
D | Antlr.Runtime.Collections.pas | 104 function GetItem(const Key: TKey): TValue; in GetItem() 105 procedure SetItem(const Key: TKey; const Value: TValue); 108 procedure Add(const Key: TKey; const Value: TValue); 109 procedure Remove(const Key: TKey); 112 function TryGetValue(const Key: TKey; out Value: TValue): Boolean; in TryGetValue() 113 procedure AddOrSetValue(const Key: TKey; const Value: TValue); 114 function ContainsKey(const Key: TKey): Boolean; in ContainsKey() 121 property Items[const Key: TKey]: TValue read GetItem write SetItem; default; 168 procedure THashList<TKey, TValue>.Add(const Key: TKey; const Value: TValue); 170 FDictionary.Add(Key, Value); [all …]
|
D | Antlr.Runtime.Tools.pas | 189 function GetItem(const Key: TKey): TValue; in GetItem() 190 procedure SetItem(const Key: TKey; const Value: TValue); 194 procedure Add(const Key: TKey; const Value: TValue); 195 procedure Remove(const Key: TKey); 198 function TryGetValue(const Key: TKey; out Value: TValue): Boolean; in TryGetValue() 199 procedure AddOrSetValue(const Key: TKey; const Value: TValue); 200 function ContainsKey(const Key: TKey): Boolean; in ContainsKey() 205 property Items[const Key: TKey]: TValue read GetItem write SetItem; default; 243 Key: TKey; 256 function GetBucketIndex(const Key: TKey; HashCode: Integer): Integer; in GetBucketIndex() [all …]
|
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | OptionalBinderTest.java | 39 import com.google.inject.Key; 94 final Key<String> stringKey = Key.get(String.class); 107 final Key<Integer> intKey = Key.get(Integer.class); 126 requireBinding(new Key<Optional<String>>() {}); // the above specifies this. in testTypeNotBoundByDefault() 131 requireBinding(Key.get(javaOptionalOfString)); in testTypeNotBoundByDefault() 154 Optional<String> optional = injector.getInstance(Key.get(optionalOfString)); in testOptionalIsAbsentByDefault() 157 Optional<Provider<String>> optionalP = injector.getInstance(Key.get(optionalOfProviderString)); in testOptionalIsAbsentByDefault() 161 injector.getInstance(Key.get(optionalOfJavaxProviderString)); in testOptionalIsAbsentByDefault() 167 optional = toOptional(injector.getInstance(Key.get(javaOptionalOfString))); in testOptionalIsAbsentByDefault() 170 optionalP = toOptional(injector.getInstance(Key.get(javaOptionalOfProviderString))); in testOptionalIsAbsentByDefault() [all …]
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
D | call_stack.hpp | 26 template <typename Key, typename Value = unsigned char> 36 explicit context(Key* k) in context() 38 next_(call_stack<Key, Value>::top_) in context() 41 call_stack<Key, Value>::top_ = this; in context() 45 context(Key* k, Value& v) in context() 48 next_(call_stack<Key, Value>::top_) in context() 50 call_stack<Key, Value>::top_ = this; in context() 56 call_stack<Key, Value>::top_ = next_; in ~context() 73 friend class call_stack<Key, Value>; 76 Key* key_; [all …]
|
/external/guice/extensions/mini/src/com/google/inject/mini/ |
D | MiniGuice.java | 48 private final Map<Key, Provider<?>> bindings = new HashMap<Key, Provider<?>>(); 50 private final Set<Key> singletons = new HashSet<Key>(); 79 Key key = new Key(type, null); in inject() 93 Map<Key, Provider<?>> providerBindings = new HashMap<Key, Provider<?>>(); in addProviderBindings() 94 for (final Map.Entry<Key, Provider<?>> binding : bindings.entrySet()) { in addProviderBindings() 95 Key key = binding.getKey(); in addProviderBindings() 102 providerBindings.put(new Key(new ProviderType(javax.inject.Provider.class, key.type), in addProviderBindings() 108 private void requireKey(Key key, Object requiredBy) { in requireKey() 113 key = new Key(type, key.annotation); in requireKey() 120 for (Key key : singletons) { in eagerlyLoadSingletons() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheReferencesTest.java | 39 private static final CacheLoader<Key,String> KEY_TO_STRING_LOADER = 40 new CacheLoader<Key, String>() { 41 @Override public String load(Key key) { 52 private Iterable<LoadingCache<Key, String>> caches() { in caches() 55 new Function<CacheBuilder<Object, Object>, LoadingCache<Key, String>>() { in caches() 56 @Override public LoadingCache<Key, String> apply(CacheBuilder<Object, Object> builder) { in caches() 63 for (LoadingCache<Key, String> cache : caches()) { 65 Key key = new Key(1); 75 for (LoadingCache<Key, String> cache : caches()) { 76 Key key = new Key(1); [all …]
|
/external/boringssl/src/crypto/poly1305/ |
D | poly1305_test.txt | 3 Key = 85d6be7857556d337f4452fe42d506a80103808afb0db2fd4abff6af4149f51b 10 Key = 0000000000000000000000000000000000000000000000000000000000000000 14 Key = 0000000000000000000000000000000036e5f6b5c5e06070f0efca96227a863e 18 Key = 36e5f6b5c5e06070f0efca96227a863e00000000000000000000000000000000 22 Key = 1c9240a5eb55d38af333888604f6b5f0473917c1402b80099dca5cbc207075c0 26 Key = 0200000000000000000000000000000000000000000000000000000000000000 30 Key = 02000000000000000000000000000000ffffffffffffffffffffffffffffffff 34 Key = 0100000000000000000000000000000000000000000000000000000000000000 38 Key = 0100000000000000000000000000000000000000000000000000000000000000 42 Key = 0200000000000000000000000000000000000000000000000000000000000000 [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
D | ProtoPool.java | 37 import org.jf.dexlib2.writer.pool.ProtoPool.Key; 47 public class ProtoPool extends BaseIndexPool<Key> 48 …implements ProtoSection<CharSequence, CharSequence, Key, TypeListPool.Key<? extends Collection<? e… 63 Key key = new Key(method); in intern() 72 @Nonnull @Override public CharSequence getShorty(@Nonnull Key key) { in getShorty() 76 @Nonnull @Override public CharSequence getReturnType(@Nonnull Key key) { in getReturnType() 80 …@Nullable @Override public TypeListPool.Key<List<? extends CharSequence>> getParameters(@Nonnull K… in getParameters() 81 return new TypeListPool.Key<List<? extends CharSequence>>(key.getParameters()); in getParameters() 84 public static class Key implements Comparable<Key> { class in ProtoPool 87 public Key(@Nonnull MethodReference method) { in Key() method in ProtoPool.Key [all …]
|
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
D | TransitiveDependencyVisitor.java | 22 import com.google.inject.Key; 46 extends DefaultBindingTargetVisitor<Object, Collection<Key<?>>> { 48 private Collection<Key<?>> visitHasDependencies(HasDependencies hasDependencies) { in visitHasDependencies() 49 Set<Key<?>> dependencies = Sets.newHashSet(); in visitHasDependencies() 58 @Override public Collection<Key<?>> visit(ConstructorBinding<?> binding) { in visit() 62 @Override public Collection<Key<?>> visit(ConvertedConstantBinding<?> binding) { in visit() 66 @Override public Collection<Key<?>> visit(InstanceBinding<?> binding) { in visit() 70 @Override public Collection<Key<?>> visit(LinkedKeyBinding<?> binding) { in visit() 71 return ImmutableSet.<Key<?>>of(binding.getLinkedKey()); in visit() 74 @Override public Collection<Key<?>> visit(ProviderBinding<?> binding) { in visit() [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/ |
D | BuilderMapEntryCollection.java | 40 public abstract class BuilderMapEntryCollection<Key> extends AbstractCollection<Map.Entry<Key, Inte… 41 @Nonnull private final Collection<Key> keys; 43 public BuilderMapEntryCollection(@Nonnull Collection<Key> keys) { in BuilderMapEntryCollection() 47 private class MapEntry implements Map.Entry<Key, Integer> { 48 @Nonnull private Key key; 50 @Nonnull @Override public Key getKey() { in getKey() 63 @Nonnull @Override public Iterator<Map.Entry<Key, Integer>> iterator() { in iterator() 64 final Iterator<Key> iter = keys.iterator(); in iterator() 66 return new Iterator<Map.Entry<Key, Integer>>() { in iterator() 71 @Override public Map.Entry<Key, Integer> next() { in iterator() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/ |
D | BaseLocale.java | 58 Key key = new Key(language, script, region, variant); in getInstance() 145 private static class Key implements Comparable<Key> { class in BaseLocale 153 public Key(String language, String script, String region, String variant) { in Key() method in BaseLocale.Key 171 (obj instanceof Key) in equals() 172 && AsciiUtil.caseIgnoreMatch(((Key)obj)._lang, this._lang) in equals() 173 && AsciiUtil.caseIgnoreMatch(((Key)obj)._scrt, this._scrt) in equals() 174 && AsciiUtil.caseIgnoreMatch(((Key)obj)._regn, this._regn) in equals() 175 && ((Key)obj)._vart.equals(_vart); // variant is case sensitive in JDK! in equals() 178 (obj instanceof Key) in equals() 179 && AsciiUtil.caseIgnoreMatch(((Key)obj)._lang, this._lang) in equals() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
D | BaseLocale.java | 58 Key key = new Key(language, script, region, variant); in getInstance() 145 private static class Key implements Comparable<Key> { class in BaseLocale 153 public Key(String language, String script, String region, String variant) { in Key() method in BaseLocale.Key 171 (obj instanceof Key) in equals() 172 && AsciiUtil.caseIgnoreMatch(((Key)obj)._lang, this._lang) in equals() 173 && AsciiUtil.caseIgnoreMatch(((Key)obj)._scrt, this._scrt) in equals() 174 && AsciiUtil.caseIgnoreMatch(((Key)obj)._regn, this._regn) in equals() 175 && ((Key)obj)._vart.equals(_vart); // variant is case sensitive in JDK! in equals() 178 (obj instanceof Key) in equals() 179 && AsciiUtil.caseIgnoreMatch(((Key)obj)._lang, this._lang) in equals() [all …]
|