/external/giflib/ |
gif_hash.c | 63 void _InsertHashTable(GifHashTableType *HashTable, uint32_t Key, int Code) 65 int HKey = KeyItem(Key); 79 HTable[HKey] = HT_PUT_KEY(Key) | HT_PUT_CODE(Code); 83 Routine to test if given Key exists in HashTable and if so returns its code * 84 Returns the Code if key was found, -1 if not. * 86 int _ExistsHashTable(GifHashTableType *HashTable, uint32_t Key) 88 int HKey = KeyItem(Key); 100 if (Key == HTKey) return HT_GET_CODE(HTable[HKey]); 108 Routine to generate an HKey for the hashtable out of the given unique key. * 109 The given Key is assumed to be 20 bits as follows: lower 8 bits are the [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheReferencesTest.java | 32 * Tests of basic {@link LoadingCache} operations with all possible combinations of key & value 39 private static final CacheLoader<Key,String> KEY_TO_STRING_LOADER = 40 new CacheLoader<Key, String>() { 41 @Override public String load(Key key) { 42 return key.toString(); 52 private Iterable<LoadingCache<Key, String>> caches() { 55 new Function<CacheBuilder<Object, Object>, LoadingCache<Key, String>>() { 56 @Override public LoadingCache<Key, String> apply(CacheBuilder<Object, Object> builder) { 63 for (LoadingCache<Key, String> cache : caches()) [all...] |
/external/guice/core/src/com/google/inject/ |
Injector.java | 106 Map<Key<?>, Binding<?>> getBindings(); 121 Map<Key<?>, Binding<?>> getAllBindings(); 124 * Returns the binding for the given injection key. This will be an explicit bindings if the key 132 <T> Binding<T> getBinding(Key<T> key); 135 * Returns the binding for the given type. This will be an explicit bindings if the injection key 148 * {@link #getBinding(Key)}, this does not attempt to create just-in-time bindings 155 <T> Binding<T> getExistingBinding(Key<T> key); [all...] |
/external/guice/core/src/com/google/inject/internal/ |
ExposureBuilder.java | 21 import com.google.inject.Key; 32 private Key<T> key; field in class:ExposureBuilder 34 public ExposureBuilder(Binder binder, Object source, Key<T> key) { 37 this.key = key; 41 if (key.getAnnotationType() != null) { 49 key = Key.get(key.getTypeLiteral(), annotationType) [all...] |
State.java | 23 import com.google.inject.Key; 51 public <T> BindingImpl<T> getExplicitBinding(Key<T> key) { 55 public Map<Key<?>, Binding<?>> getExplicitBindingsThisLevel() { 59 public void putBinding(Key<?> key, BindingImpl<?> binding) { 118 public void blacklist(Key<?> key, State state, Object source) { 121 public boolean isBlacklisted(Key<?> key) { [all...] |
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
NodeId.java | 20 import com.google.inject.Key; 23 * ID of a node in the graph. An ID is given by a {@link Key} and a node type, which is used to 24 * distinguish instances and implementation classes for the same key. For example 26 * interface node with the key of {@code Key<Integer>} and an instance node with the same 27 * {@link Key} and value of 42. 47 private final Key<?> key; field in class:NodeId 50 private NodeId(Key<?> key, NodeType nodeType) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
BaseLocale.java | 62 Key key = new Key(language, script, region, variant); local 63 BaseLocale baseLocale = CACHE.get(key); 149 private static class Key implements Comparable<Key> { 157 public Key(String language, String script, String region, String variant) { 175 (obj instanceof Key) 176 && AsciiUtil.caseIgnoreMatch(((Key)obj)._lang, this._lang) 177 && AsciiUtil.caseIgnoreMatch(((Key)obj)._scrt, this._scrt [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/ |
BaseLocale.java | 58 Key key = new Key(language, script, region, variant); local 59 BaseLocale baseLocale = CACHE.get(key); 145 private static class Key implements Comparable<Key> { 153 public Key(String language, String script, String region, String variant) { 171 (obj instanceof Key) 172 && AsciiUtil.caseIgnoreMatch(((Key)obj)._lang, this._lang) 173 && AsciiUtil.caseIgnoreMatch(((Key)obj)._scrt, this._scrt [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
BaseLocale.java | 58 Key key = new Key(language, script, region, variant); local 59 BaseLocale baseLocale = CACHE.get(key); 145 private static class Key implements Comparable<Key> { 153 public Key(String language, String script, String region, String variant) { 171 (obj instanceof Key) 172 && AsciiUtil.caseIgnoreMatch(((Key)obj)._lang, this._lang) 173 && AsciiUtil.caseIgnoreMatch(((Key)obj)._scrt, this._scrt [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ext/pb_ds/detail/ |
container_base_dispatch.hpp | 106 template<typename Key, typename Mapped, typename _Alloc, typename Policy_Tl> 107 struct container_base_dispatch<Key, Mapped, _Alloc, list_update_tag, 118 typedef lu_map<Key, Mapped, at0t, _Alloc, at1t> type; 122 template<typename Key, typename _Alloc, typename Policy_Tl> 123 struct container_base_dispatch<Key, null_type, _Alloc, list_update_tag, 134 typedef lu_set<Key, null_type, at0t, _Alloc, at1t> type; 138 template<typename Key, typename Mapped, typename _Alloc, typename Policy_Tl> 139 struct container_base_dispatch<Key, Mapped, _Alloc, pat_trie_tag, Policy_Tl> 146 typedef pat_trie_map<Key, Mapped, at1t, _Alloc> type; 150 template<typename Key, typename _Alloc, typename Policy_Tl [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ext/pb_ds/detail/ |
container_base_dispatch.hpp | 106 template<typename Key, typename Mapped, typename _Alloc, typename Policy_Tl> 107 struct container_base_dispatch<Key, Mapped, _Alloc, list_update_tag, 118 typedef lu_map<Key, Mapped, at0t, _Alloc, at1t> type; 122 template<typename Key, typename _Alloc, typename Policy_Tl> 123 struct container_base_dispatch<Key, null_type, _Alloc, list_update_tag, 134 typedef lu_set<Key, null_type, at0t, _Alloc, at1t> type; 138 template<typename Key, typename Mapped, typename _Alloc, typename Policy_Tl> 139 struct container_base_dispatch<Key, Mapped, _Alloc, pat_trie_tag, Policy_Tl> 146 typedef pat_trie_map<Key, Mapped, at1t, _Alloc> type; 150 template<typename Key, typename _Alloc, typename Policy_Tl [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ext/pb_ds/detail/ |
container_base_dispatch.hpp | 106 template<typename Key, typename Mapped, typename _Alloc, typename Policy_Tl> 107 struct container_base_dispatch<Key, Mapped, _Alloc, list_update_tag, 118 typedef lu_map<Key, Mapped, at0t, _Alloc, at1t> type; 122 template<typename Key, typename _Alloc, typename Policy_Tl> 123 struct container_base_dispatch<Key, null_type, _Alloc, list_update_tag, 134 typedef lu_set<Key, null_type, at0t, _Alloc, at1t> type; 138 template<typename Key, typename Mapped, typename _Alloc, typename Policy_Tl> 139 struct container_base_dispatch<Key, Mapped, _Alloc, pat_trie_tag, Policy_Tl> 146 typedef pat_trie_map<Key, Mapped, at1t, _Alloc> type; 150 template<typename Key, typename _Alloc, typename Policy_Tl [all...] |
/prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/pb_ds/detail/ |
container_base_dispatch.hpp | 106 template<typename Key, typename Mapped, typename _Alloc, typename Policy_Tl> 107 struct container_base_dispatch<Key, Mapped, _Alloc, list_update_tag, 118 typedef lu_map<Key, Mapped, at0t, _Alloc, at1t> type; 122 template<typename Key, typename _Alloc, typename Policy_Tl> 123 struct container_base_dispatch<Key, null_type, _Alloc, list_update_tag, 134 typedef lu_set<Key, null_type, at0t, _Alloc, at1t> type; 138 template<typename Key, typename Mapped, typename _Alloc, typename Policy_Tl> 139 struct container_base_dispatch<Key, Mapped, _Alloc, pat_trie_tag, Policy_Tl> 146 typedef pat_trie_map<Key, Mapped, at1t, _Alloc> type; 150 template<typename Key, typename _Alloc, typename Policy_Tl [all...] |
/external/libchrome/base/containers/ |
scoped_ptr_hash_map.h | 24 template <typename Key, typename ScopedPtr> 26 typedef base::hash_map<Key, typename ScopedPtr::element_type*> Container; 39 void swap(ScopedPtrHashMap<Key, ScopedPtr>& other) { 43 // Replaces value but not key if key is already present. 44 iterator set(const Key& key, ScopedPtr data) { 45 iterator it = find(key); 54 return data_.insert(std::make_pair(key, data.release())).first; 57 // Does nothing if key is already presen [all...] |
/libcore/ojluni/src/main/java/sun/util/locale/ |
BaseLocale.java | 68 CACHE.put(new Key(language, region), base); 85 Key key = new Key(language, script, region, variant); local 86 BaseLocale baseLocale = CACHE.get(key); 166 private static final class Key implements Comparable<Key> { 175 * Creates a Key. language and region must be normalized 178 private Key(String language, String region) { 198 public Key(String language, String script, String region, String variant) [all...] |
/external/guice/core/test/com/google/inject/spi/ |
InjectorSpiTest.java | 8 import com.google.inject.Key; 30 for(Map.Entry<Key<?>, Binding<?>> entry : injector.getAllBindings().entrySet()) { 38 binding = injector.getExistingBinding(Key.get(Foo.class)); 44 assertTrue(injector.getAllBindings().containsKey(Key.get(new TypeLiteral<Provider<Foo>>() {}))); 45 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Foo>>() {})); 51 binding = injector.getExistingBinding(Key.get(Baz.class)); 57 assertFalse(injector.getAllBindings().containsKey(Key.get(new TypeLiteral<Provider<Baz>>() {}))); 58 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Baz>>() {})); 64 assertNull(injector.getExistingBinding(Key.get(Bar.class))); 67 assertNull(injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Bar>>() {}))) [all...] |
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
stochastic_linear_ranker.cpp | 24 template<class Key, class Hash> 25 void StochasticLinearRanker<Key, Hash>::UpdateSubGradient( 26 const SparseWeightVector<Key, Hash> &positive, 27 const SparseWeightVector<Key, Hash> &negative, 32 SparseWeightVector<Key, Hash> gradient; 61 template<class Key, class Hash> 62 int StochasticLinearRanker<Key, Hash>::UpdateClassifier( 63 const SparseWeightVector<Key, Hash> &positive, 64 const SparseWeightVector<Key, Hash> &negative) { 67 SparseWeightVector<Key, Hash> weight_backup [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
SizeStrategy.java | 19 private final GroupedLinkedMap<Key, Bitmap> groupedMap = new GroupedLinkedMap<Key, Bitmap>(); 25 final Key key = keyPool.get(size); local 27 groupedMap.put(key, bitmap); 29 Integer current = sortedSizes.get(key.size); 30 sortedSizes.put(key.size, current == null ? 1 : current + 1); 36 Key key = keyPool.get(size); local 40 keyPool.offer(key); [all...] |
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/ |
DaggerMethodScanner.java | 20 import com.google.inject.Key; 45 @Override public <T> Key<T> prepareMethod( 46 Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) { 51 return key; 56 return processSetBinding(binder, key); 60 return key; 63 return key; 67 private static <T> Key<T> processSetBinding(Binder binder, Key<T> key) [all...] |
/external/libchrome/base/posix/ |
global_descriptors.cc | 14 GlobalDescriptors::Descriptor::Descriptor(Key key, int fd) 15 : key(key), fd(fd), region(base::MemoryMappedFile::Region::kWholeFile) { 18 GlobalDescriptors::Descriptor::Descriptor(Key key, 21 : key(key), fd(fd), region(region) { 32 int GlobalDescriptors::Get(Key key) const [all...] |
/external/guice/extensions/mini/src/com/google/inject/mini/ |
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); local 84 miniGuice.requireKey(key, "root injection"); 88 Provider<?> provider = miniGuice.bindings.get(key); 93 Map<Key, Provider<?>> providerBindings = new HashMap<Key, Provider<?>>() 95 Key key = binding.getKey(); local 136 Key key = key(method, method.getGenericReturnType(), method.getAnnotations()); local 171 Key key = requiredKey.key; local 300 public Key key(Object subject, Type type, Annotation[] annotations) { method in class:MiniGuice 347 private final Key key; field in class:MiniGuice.RequiredKey [all...] |
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
Engine.h | 171 template <typename Key> 172 status_t add(const std::string &name, const Key &key); 174 template <typename Key> 175 Element<Key> *getFromCollection(const Key &key) const; 177 template <typename Key> 178 const Collection<Key> &getCollection() const; 180 template <typename Key> [all...] |
/external/guice/core/test/com/google/inject/name/ |
NamesTest.java | 27 import com.google.inject.Key; 69 assertEquals("Sharks", injector.getInstance(Key.get(String.class, Names.named("SanJose")))); 70 assertEquals("Oilers", injector.getInstance(Key.get(String.class, Names.named("Edmonton")))); 83 assertEquals("Sharks", injector.getInstance(Key.get(String.class, Names.named("SanJose")))); 84 assertEquals("Oilers", injector.getInstance(Key.get(String.class, Names.named("Edmonton")))); 102 assertEquals("Pats", injector.getInstance(Key.get(String.class, Names.named("Regina")))); 103 assertEquals("Oilers", injector.getInstance(Key.get(String.class, Names.named("Edmonton")))); 104 assertEquals("Sharks", injector.getInstance(Key.get(String.class, Names.named("SanJose")))); 107 injector.getInstance(Key.get(String.class, Names.named("Calgary")));
|
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
Parameter.java | 23 import com.google.inject.Key; 83 * Returns the Guice {@link Key} for this parameter. 104 private boolean isBound(Injector injector, Key<?> key) { 108 return injector.getBinding(key) != null; 116 * appropriate for testing if a key is bound and not for injecting. 121 public Key<?> fixAnnotations(Key<?> key) { 122 return key.getAnnotation() == nul [all...] |
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
ServletsModuleBuilder.java | 20 import com.google.inject.Key; 66 with(Key.get(servletKey)); 69 public void with(Key<? extends HttpServlet> servletKey) { 79 with(Key.get(servletKey), initParams); 82 public void with(Key<? extends HttpServlet> servletKey, 87 private void with(Key<? extends HttpServlet> servletKey, Map<String, String> initParams, 94 binder.bind(Key.get(ServletDefinition.class, UniqueAnnotations.create())).toProvider( 103 Key<HttpServlet> servletKey = Key.get(HttpServlet.class, UniqueAnnotations.create());
|