/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
DictionaryExtensions.cs | 55 public static TValue get<TKey, TValue>(IDictionary<TKey, TValue> map, TKey key) { 56 TValue value; 60 if (typeof(TValue).IsValueType) 63 return default(TValue); 67 public static TValue get<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key) { 68 TValue value [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
DictionaryExtensions.cs | 55 public static TValue get<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key ) 57 TValue value; 61 if ( typeof( TValue ).IsValueType ) 64 return default( TValue ); 68 public static TValue get<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key ) 70 TValue value [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
lvm.h | 26 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2); 29 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 30 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); 31 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 33 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key [all...] |
ldebug.h | 24 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 27 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, 28 const TValue *p2); 29 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, 30 const TValue *p2);
|
ltable.h | 25 LUAI_FUNC const TValue *luaH_getint (Table *t, int key); 26 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value); 27 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 28 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 29 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 30 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 40 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key) [all...] |
ltm.c | 52 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { 53 const TValue *tm = luaH_getstr(events, ename); 63 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) {
|
/external/skia/third_party/lua/src/ |
lvm.h | 26 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2); 29 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 30 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); 31 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 33 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key [all...] |
ltable.h | 21 LUAI_FUNC const TValue *luaH_getint (Table *t, int key); 22 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value); 23 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 24 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 25 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 26 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 36 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key) [all...] |
ldebug.h | 24 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 27 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, 28 const TValue *p2); 29 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, 30 const TValue *p2);
|
ltm.c | 52 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { 53 const TValue *tm = luaH_getstr(events, ename); 63 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) {
|
/external/syslinux/com32/lua/src/ |
lvm.h | 26 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2); 29 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 30 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); 31 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 33 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key [all...] |
ldebug.h | 24 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 27 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, 28 const TValue *p2); 29 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, 30 const TValue *p2);
|
ltable.h | 25 LUAI_FUNC const TValue *luaH_getint (Table *t, int key); 26 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value); 27 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 28 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 29 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 30 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 40 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key) [all...] |
ltm.c | 52 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { 53 const TValue *tm = luaH_getstr(events, ename); 63 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) {
|
/art/runtime/base/ |
variant_map.h | 37 // template <typename TValue> 38 // TValue* Get(Key<T> key); // null if the value was never set, otherwise the value. 40 // template <typename TValue> 41 // void Set(Key<T> key, TValue value); 50 // template <typename TValue> 51 // struct FruitMapKey : VariantMapKey<TValue> { 60 // template <typename TValue> 61 // using Key = FruitMapKey<TValue>; 99 // Delete a value whose runtime type is that of the non-erased key's TValue. 102 // Clone a value whose runtime type is that of the non-erased key's TValue [all...] |
/art/runtime/ |
runtime_options.h | 49 template <typename TValue> 50 struct RuntimeArgumentMapKey : VariantMapKey<TValue> { 52 explicit RuntimeArgumentMapKey(TValue default_value) 53 : VariantMapKey<TValue>(std::move(default_value)) {} 71 template <typename TValue> 72 using Key = RuntimeArgumentMapKey<TValue>;
|
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
SimpleLruResourcePool.java | 30 public abstract class SimpleLruResourcePool<TKey, TValue> implements LruResourcePool<TKey, TValue> { 32 private final LruPool<TKey, TValue> mLruPool; 44 public Resource<TValue> acquire(TKey key) { 45 TValue value; 62 protected abstract TValue create(TKey key); 68 protected TValue recycle(TKey key, TValue value) { 75 private void release(TKey key, TValue value) { 84 private static final class SynchronizedResource<TKey, TValue> implements Resource<TValue> [all...] |
LruPool.java | 48 public class LruPool<TKey, TValue> { 49 public static class Configuration<TKey, TValue> { 59 void entryEvicted(TKey key, TValue value) { } 69 TValue create(TKey key) { 80 int sizeOf(TKey key, TValue value) { 98 private final HashMap<TKey, Queue<TValue>> mValuePool; 99 private final Configuration<TKey, TValue> mConfiguration; 117 this(maxSize, new Configuration<TKey, TValue>()); 120 public LruPool(int maxSize, Configuration<TKey, TValue> configuration) { 145 public final TValue acquire(TKey key) [all...] |
LruResourcePool.java | 26 public interface LruResourcePool<TKey, TValue> { 33 public Resource<TValue> acquire(TKey key);
|
/system/core/libutils/include/utils/ |
LruCache.h | 37 template <typename TKey, typename TValue> 47 void setOnEntryRemovedListener(OnEntryRemoved<TKey, TValue>* listener); 49 const TValue& get(const TKey& key); 50 bool put(const TKey& key, const TValue& value); 54 const TValue& peekOldestValue(); 70 TValue value; 74 Entry(TKey _key, TValue _value) : key(_key), value(_value), parent(NULL), child(NULL) { 113 OnEntryRemoved<TKey, TValue>* mListener; 117 TValue mNullValue; 126 Iterator(const LruCache<TKey, TValue>& cache) [all...] |
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
SessionMap.h | 30 template <typename TValue> 50 bool addValue(int key, TValue value) { 66 TValue getValue(int key) { 88 TValue getValueAt(unsigned int index) { 89 TValue value = NULL; 122 SessionMap<TValue> & operator=(const SessionMap<TValue> & objectCopy) { 131 KeyedVector<int, TValue> map; 142 void deleteValue(TValue value) { 178 TValue getValueInternal(int key) [all...] |
/frameworks/base/tools/aapt2/util/ |
ImmutableMap.h | 27 template <typename TKey, typename TValue> 33 typename std::vector<std::pair<TKey, TValue>>::const_iterator; 38 static ImmutableMap<TKey, TValue> CreatePreSorted( 39 std::initializer_list<std::pair<TKey, TValue>> list) { 41 std::vector<std::pair<TKey, TValue>>(list.begin(), list.end())); 44 static ImmutableMap<TKey, TValue> CreateAndSort( 45 std::initializer_list<std::pair<TKey, TValue>> list) { 46 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end()); 54 auto cmp = [](const std::pair<TKey, TValue>& candidate, 74 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data [all...] |
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
SensorCtsHelper.java | 49 public static <TValue extends Comparable<? super TValue>> List<TValue> getPercentileValue( 50 Collection<TValue> collection, float lowPecentile, float highPercentile) { 57 List<TValue> arrayCopy = new ArrayList<TValue>(collection); 60 List<TValue> percentileValues = new ArrayList<TValue>(); 81 public static <TValue extends Number> double getMean(Collection<TValue> collection) [all...] |
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/ |
Antlr.Runtime.Collections.pas | 51 IHashList<TKey, TValue> = interface(IDictionary<TKey, TValue>) 79 THashList<TKey, TValue> = class(TANTLRObject, IHashList<TKey, TValue>) 82 TPairEnumerator = class(TEnumerator<TPair<TKey, TValue>>) 84 FHashList: THashList<TKey, TValue>; 88 FPair: TPair<TKey, TValue>; 89 function GetCurrent: TPair<TKey, TValue>; 91 function DoGetCurrent: TPair<TKey, TValue>; override; 94 constructor Create(const AHashList: THashList<TKey, TValue>); [all...] |
/external/protobuf/csharp/src/Google.Protobuf/Collections/ |
ReadOnlyDictionary.cs | 42 internal sealed class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
44 private readonly IDictionary<TKey, TValue> wrapped;
46 public ReadOnlyDictionary(IDictionary<TKey, TValue> wrapped)
51 public void Add(TKey key, TValue value)
71 public bool TryGetValue(TKey key, out TValue value)
76 public ICollection<TValue> Values
81 public TValue this[TKey key]
87 public void Add(KeyValuePair<TKey, TValue> item)
97 public bool Contains(KeyValuePair<TKey, TValue> item) [all...] |