Home
last modified time | relevance | path

Searched refs:TValue (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Collections/
DMapField.cs69 … class MapField<TKey, TValue> : IDeepCloneable<MapField<TKey, TValue>>, IDictionary<TKey, TValue>,…
72 private readonly Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>> map =
73 new Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>>();
74 …private readonly LinkedList<KeyValuePair<TKey, TValue>> list = new LinkedList<KeyValuePair<TKey, T…
82 public MapField<TKey, TValue> Clone() in Clone()
84 var clone = new MapField<TKey, TValue>(); in Clone()
86 if (typeof(IDeepCloneable<TValue>).IsAssignableFrom(typeof(TValue))) in Clone()
90 clone.Add(pair.Key, ((IDeepCloneable<TValue>)pair.Value).Clone()); in Clone()
110 public void Add(TKey key, TValue value) in Add()
131 private bool ContainsValue(TValue value) in ContainsValue()
[all …]
DReadOnlyDictionary.cs42 internal sealed class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
44 private readonly IDictionary<TKey, TValue> wrapped;
46 public ReadOnlyDictionary(IDictionary<TKey, TValue> wrapped) in ReadOnlyDictionary()
51 public void Add(TKey key, TValue value) in Add()
71 public bool TryGetValue(TKey key, out TValue value) in TryGetValue()
76 public ICollection<TValue> Values
81 public TValue this[TKey key]
87 public void Add(KeyValuePair<TKey, TValue> item) in Add()
97 public bool Contains(KeyValuePair<TKey, TValue> item) in Contains()
102 public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) in CopyTo()
[all …]
/frameworks/av/drm/libdrmframework/plugins/common/util/include/
DSessionMap.h30 template <typename TValue>
50 bool addValue(int key, TValue value) { in addValue()
66 TValue getValue(int key) { in getValue()
88 TValue getValueAt(unsigned int index) { in getValueAt()
89 TValue value = NULL; in getValueAt()
122 SessionMap<TValue> & operator=(const SessionMap<TValue> & objectCopy) {
131 KeyedVector<int, TValue> map;
142 void deleteValue(TValue value) { in deleteValue()
178 TValue getValueInternal(int key) { in getValueInternal()
179 TValue value = NULL; in getValueInternal()
[all …]
/frameworks/base/tools/aapt2/util/
DImmutableMap.h27 template <typename TKey, typename TValue>
33 typename std::vector<std::pair<TKey, TValue>>::const_iterator;
38 static ImmutableMap<TKey, TValue> CreatePreSorted( in CreatePreSorted()
39 std::initializer_list<std::pair<TKey, TValue>> list) { in CreatePreSorted()
41 std::vector<std::pair<TKey, TValue>>(list.begin(), list.end())); in CreatePreSorted()
44 static ImmutableMap<TKey, TValue> CreateAndSort( in CreateAndSort()
45 std::initializer_list<std::pair<TKey, TValue>> list) { in CreateAndSort()
46 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end()); in CreateAndSort()
54 auto cmp = [](const std::pair<TKey, TValue>& candidate, in find()
74 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) in ImmutableMap()
[all …]
/frameworks/base/tools/aapt2/test/
DCommon.h173 template <typename TValue>
177 ValueEqMatcher(TValue expected) : expected_(std::move(expected)) { in ValueEqMatcher()
187 TValue expected_;
190 template <typename TValue>
194 ValueEqPointerMatcher(const TValue* expected) : expected_(expected) { in ValueEqPointerMatcher()
204 const TValue* expected_;
207 template <typename TValue,
208 typename = typename std::enable_if<!std::is_pointer<TValue>::value, void>::type>
209 inline ValueEqMatcher<TValue> ValueEq(TValue value) { in ValueEq()
210 return ValueEqMatcher<TValue>(std::move(value)); in ValueEq()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs527 … private static KeyValuePair<TKey, TValue> NewKeyValuePair<TKey, TValue>(TKey key, TValue value) in NewKeyValuePair()
529 return new KeyValuePair<TKey, TValue>(key, value); in NewKeyValuePair()