HomeSort by relevance Sort by last modified time
    Searched refs:Key (Results 251 - 275 of 1431) sorted by null

<<11121314151617181920>>

  /external/guice/core/test/com/google/inject/
ScopesTest.java 285 Provider<?> listProvider = scope.providers.get(Key.get(List.class));
417 final Map<Key<?>, Provider<?>> providers = Maps.newHashMap();
418 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
419 providers.put(key, unscoped);
426 assertSame(injector.getInstance(new Key<Injected<String>>() {}),
427 injector.getInstance(new Key<Injected<String>>() {}));
428 assertSame(injector.getInstance(new Key<In<Integer>>() {}),
429 injector.getInstance(new Key<In<Short>>() {}));
441 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped)
    [all...]
  /development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
LatinKeyboard.java 29 private Key mEnterKey;
30 private Key mSpaceKey;
32 * Stores the current state of the mode change key. Its width will be dynamically updated to
35 private Key mModeChangeKey;
37 * Stores the current state of the language switch key (a.k.a. globe key). This should be
39 * returns true. When this key becomes invisible, its width will be shrunk to zero.
41 private Key mLanguageSwitchKey;
47 private Key mSavedModeChangeKey;
53 private Key mSavedLanguageSwitchKey
67 Key key = new LatinKey(res, parent, x, y, parser); local
    [all...]
  /external/skia/src/core/
SkResourceCache.h 20 * Cache object for bitmaps (with possible scale in X Y as part of the key).
31 struct Key {
32 /** Key subclasses must call this after their own fields and data are initialized.
34 * @param nameSpace must be unique per Key subclass.
40 /** Returns the size of this key. */
51 bool operator==(const Key& other) const {
75 typedef SkResourceCache::Key Key;
82 virtual const Key& getKey() const = 0;
90 static uint32_t Hash(const Key& key) { return key.hash();
    [all...]
  /frameworks/compile/mclinker/include/mcld/LD/
BranchIsland.h 102 /** \class Key
103 * \brief Key to recognize a stub in the island.
106 class Key {
108 Key(const Stub* pPrototype, const LDSymbol* pSymbol, Stub::SWord pAddend)
111 ~Key() {}
120 size_t operator()(const Key& KEY) const {
121 llvm::StringRef sym_name(KEY.symbol()->name());
123 return (size_t((uintptr_t)KEY.prototype())) ^ str_hasher(sym_name) ^
124 KEY.addend()
    [all...]
  /external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
ExtensionSpiTest.java 31 import com.google.inject.Key;
90 validateAssistedMethod(method, name, StrangeCat.class, ImmutableList.<Key<?>>of());
92 validateAssistedMethod(method, name, StrangeCat.class, ImmutableList.<Key<?>>of());
94 validateAssistedMethod(method, name, StrangeCat.class, ImmutableList.<Key<?>>of());
97 ImmutableList.<Key<?>>of(Key.get(String.class, named("catName2"))));
99 validateAssistedMethod(method, name, Cat.class, ImmutableList.<Key<?>>of());
101 validateAssistedMethod(method, name, SimpleCat.class, ImmutableList.<Key<?>>of());
103 List<Key<?>> dependencyKeys = ImmutableList.<Key<?>>of
    [all...]
  /external/llvm/include/llvm/ADT/
ScopedHashTable.h 47 K Key;
49 ScopedHashTableVal(const K &key, const V &val) : Key(key), Val(val) {}
52 const K &getKey() const { return Key; }
63 const K &key, const V &val,
67 new (New) ScopedHashTableVal(key, val);
174 /// Return 1 if the specified key is in the table, 0 otherwise.
175 size_type count(const K &Key) const {
176 return TopLevelMap.count(Key);
    [all...]
StringMap.h 72 /// up in. If it already exists as a key in the map, the Item pointer for the
76 unsigned LookupBucketFor(StringRef Key);
78 /// FindKey - Look up the bucket that contains the specified key. If it exists
79 /// in the map, return the bucket number of the key. Otherwise return -1.
81 int FindKey(StringRef Key) const;
87 /// RemoveKey - Remove the StringMapEntry for the specified key from the
88 /// table, returning it. If the key is not in the table, this returns null.
89 StringMapEntryBase *RemoveKey(StringRef Key);
114 /// a StringMap. It contains the Value itself and the key: the string length
138 /// getKeyData - Return the start of the string data that is the key for thi
    [all...]
MapVector.h 11 // interface is purposefully minimal. The key is assumed to be cheap to copy
75 ValueT &operator[](const KeyT &Key) {
76 std::pair<KeyT, unsigned> Pair = std::make_pair(Key, 0);
80 Vector.push_back(std::make_pair(Key, ValueT()));
86 ValueT lookup(const KeyT &Key) const {
87 typename MapType::const_iterator Pos = Map.find(Key);
103 size_type count(const KeyT &Key) const {
104 typename MapType::const_iterator Pos = Map.find(Key);
108 iterator find(const KeyT &Key) {
109 typename MapType::const_iterator Pos = Map.find(Key);
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
EmojiPageKeyboardView.java 28 import com.android.inputmethod.keyboard.Key;
38 // TODO: Implement key popup preview.
45 public void onPressKey(Key key);
46 public void onReleaseKey(Key key);
51 public void onPressKey(final Key key) {}
53 public void onReleaseKey(final Key key) {}
122 final Key key = getKey(e); local
169 final Key key = getKey(e); local
193 final Key key = getKey(e); local
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ext/pb_ds/detail/hash_fn/
ranged_probe_fn.hpp 53 template<typename Key, typename Hash_Fn, typename _Alloc,
58 template<typename Key, typename Hash_Fn, typename _Alloc, \
62 ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn, Probe_Fn, false>
69 template<typename Key, typename Hash_Fn, typename _Alloc,
71 class ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn,
80 typedef typename _Alloc::template rebind<Key>::other key_allocator;
164 template<typename Key, typename Hash_Fn, typename _Alloc, \
168 ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn, Probe_Fn, true>
174 template<typename Key, typename Hash_Fn, typename _Alloc,
176 class ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn,
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ext/pb_ds/detail/hash_fn/
ranged_probe_fn.hpp 53 template<typename Key, typename Hash_Fn, typename _Alloc,
58 template<typename Key, typename Hash_Fn, typename _Alloc, \
62 ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn, Probe_Fn, false>
69 template<typename Key, typename Hash_Fn, typename _Alloc,
71 class ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn,
80 typedef typename _Alloc::template rebind<Key>::other key_allocator;
164 template<typename Key, typename Hash_Fn, typename _Alloc, \
168 ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn, Probe_Fn, true>
174 template<typename Key, typename Hash_Fn, typename _Alloc,
176 class ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn,
    [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/hash_fn/
ranged_probe_fn.hpp 53 template<typename Key, typename Hash_Fn, typename _Alloc,
58 template<typename Key, typename Hash_Fn, typename _Alloc, \
62 ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn, Probe_Fn, false>
69 template<typename Key, typename Hash_Fn, typename _Alloc,
71 class ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn,
80 typedef typename _Alloc::template rebind<Key>::other key_allocator;
164 template<typename Key, typename Hash_Fn, typename _Alloc, \
168 ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn, Probe_Fn, true>
174 template<typename Key, typename Hash_Fn, typename _Alloc,
176 class ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn,
    [all...]
  /prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/pb_ds/detail/hash_fn/
ranged_probe_fn.hpp 53 template<typename Key, typename Hash_Fn, typename _Alloc,
58 template<typename Key, typename Hash_Fn, typename _Alloc, \
62 ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn, Probe_Fn, false>
69 template<typename Key, typename Hash_Fn, typename _Alloc,
71 class ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn,
80 typedef typename _Alloc::template rebind<Key>::other key_allocator;
164 template<typename Key, typename Hash_Fn, typename _Alloc, \
168 ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn, Probe_Fn, true>
174 template<typename Key, typename Hash_Fn, typename _Alloc,
176 class ranged_probe_fn<Key, Hash_Fn, _Alloc, Comb_Probe_Fn,
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/
Engine.java 8 import com.bumptech.glide.load.Key;
30 private final Map<Key, EngineJob> jobs;
35 private final Map<Key, WeakReference<EngineResource<?>>> activeResources;
63 Map<Key, EngineJob> jobs, EngineKeyFactory keyFactory,
64 Map<Key, WeakReference<EngineResource<?>>> activeResources, EngineJobFactory engineJobFactory,
70 activeResources = new HashMap<Key, WeakReference<EngineResource<?>>>();
80 jobs = new HashMap<Key, EngineJob>();
122 * @param signature A non-null unique key to be mixed into the cache key that identifies the version of the data to
140 public <T, Z, R> LoadStatus load(Key signature, int width, int height, DataFetcher<T> fetcher
147 EngineKey key = keyFactory.buildKey(id, signature, width, height, loadProvider.getCacheDecoder(), local
264 private final Key key; field in class:Engine.ResourceWeakReference
    [all...]
  /frameworks/base/services/core/java/com/android/server/net/
NetworkStatsCollection.java 63 * Collection of {@link NetworkStatsHistory}, stored based on combined key of
79 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>();
145 final Key key = mStats.keyAt(i); local
146 if (NetworkStatsAccess.isAccessibleToUser(key.uid, callerUid, accessLevel)) {
147 int j = uids.binarySearch(key.uid);
151 uids.add(j, key.uid);
199 final Key key = mStats.keyAt(i); local
200 if (key.uid == uid && NetworkStats.setMatches(set, key.set) && key.tag == ta
234 final Key key = mStats.keyAt(i); local
292 final Key key = another.mStats.keyAt(i); local
300 final Key key = new Key(ident, uid, set, tag); local
345 final Key key = new Key(ident, uid, set, tag); local
414 final Key key = new Key(ident, UID_ALL, SET_ALL, TAG_NONE); local
474 final Key key = new Key(ident, uid, set, tag); local
567 final Key key = mStats.keyAt(i); local
583 final Key key = grouped.keyAt(i); local
636 final Key key = (Key) obj; local
    [all...]
  /external/guice/extensions/multibindings/test/com/google/inject/multibindings/
MultibinderTest.java 44 import com.google.inject.Key;
121 Key<Set<String>> setKey = Key.get(setOfString);
144 Key<Set<String>> setKey = Key.get(setOfString, Names.named("abc"));
166 Key<Set<String>> setKey = Key.get(setOfString, Abc.class);
191 Key<Set<String>> abcSetKey = Key.get(setOfString, named("abc"));
193 Key<Set<String>> deSetKey = Key.get(setOfString, named("de"))
1205 Key key = dep.getKey(); local
    [all...]
MapBinderTest.java 43 import com.google.inject.Key;
85 private static final Set<Key<?>> FRAMEWORK_KEYS = ImmutableSet.of(
86 Key.get(java.util.logging.Logger.class),
87 Key.get(Stage.class),
88 Key.get(Injector.class)
127 Map<Key<?>, Binding<?>> bindings = injector.getBindings();
129 ImmutableSet<Key<?>> expectedBindings = ImmutableSet.<Key<?>>builder()
132 Key.get(Types.mapOf(String.class, String.class)),
134 Key.get(Types.mapOf(String.class, Types.providerOf(String.class)))
211 Key<Map<String, String>> key = Key.get(mapOfString, Names.named("abc")); local
237 Key<Map<String, String>> key = Key.get(mapOfString, Abc.class); local
    [all...]
  /external/compiler-rt/
Makefile 68 "$(foreach key,$(AvailableIn.$(fn)),$($(key).Dir))";)
74 @$(foreach key,$(PlatformKeys),\
75 printf " %s - from '%s'\n" $($(key).Name) $($(key).Path);\
76 printf " %s\n" "$($(key).Description)";\
77 printf " Configurations: %s\n\n" "$($(key).Configs)";)
114 $(call Set,Tmp.Key,$(1))
115 $(call Set,Tmp.Name,$($(Tmp.Key).Name))
116 $(call Set,Tmp.Configs,$($(Tmp.Key).Configs)
    [all...]
  /external/guice/core/src/com/google/inject/internal/
AbstractBindingBuilder.java 22 import com.google.inject.Key;
47 protected static final Key<?> NULL_KEY = Key.get(Void.class);
54 public AbstractBindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key) {
58 this.binding = new UntargettedBindingImpl<T>(source, key, Scoping.UNSCOPED);
72 /** Sets the binding to a copy with the specified annotation on the bound key */
77 Key.get(this.binding.getKey().getTypeLiteral(), annotationType)));
80 /** Sets the binding to a copy with the specified annotation on the bound key */
85 Key.get(this.binding.getKey().getTypeLiteral(), annotation)))
    [all...]
BindingImpl.java 21 import com.google.inject.Key;
33 private final Key<T> key; field in class:BindingImpl
38 public BindingImpl(InjectorImpl injector, Key<T> key, Object source,
41 this.key = key;
47 protected BindingImpl(Object source, Key<T> key, Scoping scoping) {
51 this.key = key
    [all...]
ConstantBindingBuilderImpl.java 21 import com.google.inject.Key;
41 super(binder, elements, source, (Key<T>) NULL_KEY);
111 Key<T> key; local
113 key = Key.get(typeAsClassT, base.getKey().getAnnotation());
115 key = Key.get(typeAsClassT, base.getKey().getAnnotationType());
117 key = Key.get(typeAsClassT)
    [all...]
  /external/guice/core/test/com/google/inject/spi/
HasDependenciesTest.java 25 import com.google.inject.Key;
48 assertEquals(ImmutableSet.<Dependency<?>>of(Dependency.get(Key.get(Integer.class))),
61 assertEquals(Key.get(String.class), onlyDependency.getKey());
73 assertEquals(Key.get(String.class), onlyDependency.getKey());
90 return ImmutableSet.<Dependency<?>>of(Dependency.get(Key.get(Integer.class)));
97 return ImmutableSet.<Dependency<?>>of(Dependency.get(Key.get(Integer.class)));
  /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/
fixed_mapping.hpp 44 #define CONSTR_DECL_MID( z, i, dummy1 ) key_param_type key##i, value_param_type v##i,
45 #define CONSTR_BODY_MID( z, i, dummy1 ) add_pair( key##i, v##i );
59 template<typename Key, typename Value, typename Compare = std::less<Key> >
62 typedef std::pair<Key,Value> elem_type;
66 typedef typename call_traits<Key>::param_type key_param_type;
75 // bind( Compare(), bind(select1st<elem_type>(), _1), bind(identity<Key>(), _2) )
76 struct p1 : public std::binary_function<elem_type,Key,bool>
78 bool operator()( elem_type const& x, Key const& y ) const { return Compare()( x.first, y ); }
91 // key -> value acces
    [all...]
  /prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/
map_field.h 161 // type helper for key and value. Call these help methods to deal with
184 template<typename Key, typename T>
194 virtual const Map<Key, T>& GetMap() const = 0;
195 virtual Map<Key, T>* MutableMap() = 0;
198 typename Map<Key, T>::const_iterator& InternalGetIterator(
214 template <typename Key, typename T,
218 class MapField : public TypeDefinedMapFieldBase<Key, T>,
219 public MapFieldLite<Key, T, kKeyFieldType, kValueFieldType,
221 // Provide utilities to parse/serialize key/value. Provide utilities to
223 typedef MapTypeHandler<kKeyFieldType, Key> KeyTypeHandler
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/
CameraMetadata.java 36 * This class defines the basic key/value map used for querying for camera
43 * never changes, nor do the values returned by any key with {@code #get} throughout
61 * @param key The metadata field to write.
63 * type to the key.
77 * <p>Querying the value for the same key more than once will return a value
80 * @throws IllegalArgumentException if the key was not valid
82 * @param key The metadata field to read.
83 * @return The value of that key, or {@code null} if the field is not set.
87 protected abstract <T> T getProtected(TKey key);
100 * <p>All values retrieved by a key from this list with {@code #get} are guaranteed to b
153 TKey key; local
    [all...]

Completed in 1068 milliseconds

<<11121314151617181920>>