/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...] |
/art/runtime/base/ |
variant_map.h | 36 // template <typename TValue> 37 // TValue* Get(Key<T> key); // null if the value was never set, otherwise the value. 39 // template <typename TValue> 40 // void Set(Key<T> key, TValue value); 49 // template <typename TValue> 50 // struct FruitMapKey : VariantMapKey<TValue> { 59 // template <typename TValue> 60 // using Key = FruitMapKey<TValue>; 98 // Delete a value whose runtime type is that of the non-erased key's TValue. 101 // Clone a value whose runtime type is that of the non-erased key's TValue [all...] |
variant_map_test.cc | 26 template <typename TValue> 27 struct FruitMapKey : VariantMapKey<TValue> { 36 template <typename TValue> 37 using Key = FruitMapKey<TValue>;
|
/art/runtime/ |
runtime_options.h | 50 template <typename TValue> 51 struct RuntimeArgumentMapKey : VariantMapKey<TValue> { 53 explicit RuntimeArgumentMapKey(TValue default_value) 54 : VariantMapKey<TValue>(std::move(default_value)) {} 72 template <typename TValue> 73 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/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(); 61 TValue value; 65 Entry(TKey key_, TValue value_) : key(key_), value(value_), parent(NULL), child(NULL) { 94 OnEntryRemoved<TKey, TValue>* mListener; 98 TValue mNullValue; 107 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> 32 std::vector<std::pair<TKey, TValue>> mData; 34 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) : mData(std::move(data)) { 46 static ImmutableMap<TKey, TValue> createPreSorted( 47 std::initializer_list<std::pair<TKey, TValue>> list) { 48 return ImmutableMap(std::vector<std::pair<TKey, TValue>>(list.begin(), list.end())); 51 static ImmutableMap<TKey, TValue> createAndSort( 52 std::initializer_list<std::pair<TKey, TValue>> list) { 53 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end()); 61 auto cmp = [](const std::pair<TKey, TValue>& candidate, const TKey2& target) -> bool [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorCtsHelper.java | 48 public static <TValue extends Comparable<? super TValue>> List<TValue> getPercentileValue( 49 Collection<TValue> collection, float[] percentiles) { 55 List<TValue> arrayCopy = new ArrayList<TValue>(collection); 58 List<TValue> percentileValues = new ArrayList<TValue>(); 74 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...] |
Antlr.Runtime.Tools.pas | 186 IDictionary<TKey,TValue> = interface(IANTLRInterface) 189 function GetItem(const Key: TKey): TValue; 190 procedure SetItem(const Key: TKey; const Value: TValue); 194 procedure Add(const Key: TKey; const Value: TValue); 198 function TryGetValue(const Key: TKey; out Value: TValue): Boolean; 199 procedure AddOrSetValue(const Key: TKey; const Value: TValue); 201 function ContainsValue(const Value: TValue): Boolean; 202 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>; 205 property Items[const Key: TKey]: TValue read GetItem write SetItem; default; 234 TDictionaryArray<TKey,TValue> = array of IDictionary<TKey,TValue> [all...] |
/external/llvm/lib/Transforms/Scalar/ |
SROA.cpp | [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64ISelLowering.cpp | [all...] |