Home
last modified time | relevance | path

Searched refs:KeyValuePair (Results 1 – 5 of 5) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Collections/
DMapField.cs72 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…
145 LinkedListNode<KeyValuePair<TKey, TValue>> node; in Remove()
168 LinkedListNode<KeyValuePair<TKey, TValue>> node; in TryGetValue()
208 LinkedListNode<KeyValuePair<TKey, TValue>> node;
209 var pair = new KeyValuePair<TKey, TValue>(key, value);
251 public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() in GetEnumerator()
271 void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) in Add()
290 bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) in Contains()
[all …]
DReadOnlyDictionary.cs87 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()
117 public bool Remove(KeyValuePair<TKey, TValue> item) in Remove()
122 public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() in GetEnumerator()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs194 ICollection<KeyValuePair<string, string>> collection = map; in Add_Pair()
204 ICollection<KeyValuePair<string, string>> collection = map; in Contains_Pair()
228 ICollection<KeyValuePair<string, string>> collection = map; in Remove_Pair()
236 …Assert.Throws<ArgumentException>(() => collection.Remove(new KeyValuePair<string, string>(null, ""… in Remove_Pair()
244 ICollection<KeyValuePair<string, string>> collection = map; in CopyTo_Pair()
245 KeyValuePair<string, string>[] array = new KeyValuePair<string, string>[3]; in CopyTo_Pair()
283 CollectionAssert.AreEqual(new[] { new KeyValuePair<string, string>("x", "y") }, in GetEnumerator_NonGeneric()
527 … private static KeyValuePair<TKey, TValue> NewKeyValuePair<TKey, TValue>(TKey key, TValue value) in NewKeyValuePair()
529 return new KeyValuePair<TKey, TValue>(key, value); in NewKeyValuePair()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap.h668 class KeyValuePair {
670 KeyValuePair(const Key& k, value_type* v) : k_(k), v_(v) {} in KeyValuePair() function
682 typedef MapAllocator<KeyValuePair> Allocator;
740 KeyValuePair kv;
900 typedef iterator_base<KeyValuePair> iterator;
901 typedef iterator_base<const KeyValuePair> const_iterator;
951 std::pair<iterator, bool> insert(const KeyValuePair& kv) { in insert()
989 KeyValuePair kv(k, Value());
/frameworks/base/cmds/statsd/src/
Datoms.proto411 message KeyValuePair { message
423 repeated KeyValuePair pairs = 2;