/external/guava/guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/ |
D | AtomicLongMapTest.java | 43 AtomicLongMap<String> map = AtomicLongMap.create(in); in testCreate_map() local 44 assertFalse(map.isEmpty()); in testCreate_map() 45 assertSame(3, map.size()); in testCreate_map() 46 assertTrue(map.containsKey("1")); in testCreate_map() 47 assertTrue(map.containsKey("2")); in testCreate_map() 48 assertTrue(map.containsKey("3")); in testCreate_map() 49 assertEquals(1L, map.get("1")); in testCreate_map() 50 assertEquals(2L, map.get("2")); in testCreate_map() 51 assertEquals(3L, map.get("3")); in testCreate_map() 55 AtomicLongMap<String> map = AtomicLongMap.create(); in testIncrementAndGet() local [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | AtomicLongMapTest.java | 52 AtomicLongMap<Object> map = AtomicLongMap.create(); in testNulls() local 53 tester.testAllPublicInstanceMethods(map); in testNulls() 58 AtomicLongMap<String> map = AtomicLongMap.create(in); in testCreate_map() local 59 assertFalse(map.isEmpty()); in testCreate_map() 60 assertSame(3, map.size()); in testCreate_map() 61 assertTrue(map.containsKey("1")); in testCreate_map() 62 assertTrue(map.containsKey("2")); in testCreate_map() 63 assertTrue(map.containsKey("3")); in testCreate_map() 64 assertEquals(1L, map.get("1")); in testCreate_map() 65 assertEquals(2L, map.get("2")); in testCreate_map() [all …]
|
/external/linux-tools-perf/src/tools/perf/util/ |
D | map.h | 27 struct map { struct 44 u64 (*map_ip)(struct map *, u64); argument 46 u64 (*unmap_ip)(struct map *, u64); argument 63 static inline struct kmap *map__kmap(struct map *map) in map__kmap() argument 65 return (struct kmap *)(map + 1); in map__kmap() 68 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip() argument 70 return ip - map->start + map->pgoff; in map__map_ip() 73 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip() argument 75 return ip + map->start - map->pgoff; in map__unmap_ip() 78 static inline u64 identity__map_ip(struct map *map __maybe_unused, u64 ip) in identity__map_ip() [all …]
|
D | map.c | 34 void map__init(struct map *map, enum map_type type, in map__init() argument 37 map->type = type; in map__init() 38 map->start = start; in map__init() 39 map->end = end; in map__init() 40 map->pgoff = pgoff; in map__init() 41 map->dso = dso; in map__init() 42 map->map_ip = map__map_ip; in map__init() 43 map->unmap_ip = map__unmap_ip; in map__init() 44 RB_CLEAR_NODE(&map->rb_node); in map__init() 45 map->groups = NULL; in map__init() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | UrlComponentEncodingTester.java | 36 Map<Integer, Encoding> map = new LinkedHashMap<>(); 37 map.put( 0x0, Encoding.PERCENT); // Null character 38 map.put( 0x1, Encoding.PERCENT); // Start of Header 39 map.put( 0x2, Encoding.PERCENT); // Start of Text 40 map.put( 0x3, Encoding.PERCENT); // End of Text 41 map.put( 0x4, Encoding.PERCENT); // End of Transmission 42 map.put( 0x5, Encoding.PERCENT); // Enquiry 43 map.put( 0x6, Encoding.PERCENT); // Acknowledgment 44 map.put( 0x7, Encoding.PERCENT); // Bell 45 map.put((int) '\b', Encoding.PERCENT); // Backspace in map.put() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | MapInterfaceTest.java | 155 protected final boolean supportsValuesHashCode(Map<K, V> map) { in supportsValuesHashCode() argument 157 Collection<V> values = map.values(); in supportsValuesHashCode() 179 protected final void assertInvariants(Map<K, V> map) { in assertInvariants() argument 180 Set<K> keySet = map.keySet(); in assertInvariants() 181 Collection<V> valueCollection = map.values(); in assertInvariants() 182 Set<Entry<K, V>> entrySet = map.entrySet(); in assertInvariants() 184 assertEquals(map.size() == 0, map.isEmpty()); in assertInvariants() 185 assertEquals(map.size(), keySet.size()); in assertInvariants() 191 V value = map.get(key); in assertInvariants() 193 assertTrue(map.containsKey(key)); in assertInvariants() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_keymap.c | 67 default_delete_func(const struct keymap *map, in default_delete_func() argument 113 struct keymap *map = MALLOC_STRUCT(keymap); in util_new_keymap() local 114 if (!map) in util_new_keymap() 117 map->cso = cso_hash_create(); in util_new_keymap() 118 if (!map->cso) { in util_new_keymap() 119 FREE(map); in util_new_keymap() 123 map->max_entries = maxEntries; in util_new_keymap() 124 map->num_entries = 0; in util_new_keymap() 125 map->key_size = keySize; in util_new_keymap() 126 map->delete_func = deleteFunc ? deleteFunc : default_delete_func; in util_new_keymap() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | LinkedListMultimapTest.java | 112 LinkedListMultimap<String, Integer> map = create(); in testLinkedGetAdd() local 113 map.put("bar", 1); in testLinkedGetAdd() 114 Collection<Integer> foos = map.get("foo"); in testLinkedGetAdd() 117 map.put("bar", 4); in testLinkedGetAdd() 118 map.put("foo", 5); in testLinkedGetAdd() 119 assertEquals("{bar=[1, 4], foo=[2, 3, 5]}", map.toString()); in testLinkedGetAdd() 121 map.entries().toString()); in testLinkedGetAdd() 125 ListMultimap<String, Integer> map = create(); in testLinkedGetInsert() local 126 map.put("bar", 1); in testLinkedGetInsert() 127 List<Integer> foos = map.get("foo"); in testLinkedGetInsert() [all …]
|
/external/llvm/unittests/ADT/ |
D | IntervalMapTest.cpp | 22 UUMap map(allocator); in TEST() local 23 EXPECT_TRUE(map.empty()); in TEST() 26 EXPECT_EQ(0u, map.lookup(0)); in TEST() 27 EXPECT_EQ(7u, map.lookup(0, 7)); in TEST() 28 EXPECT_EQ(0u, map.lookup(~0u-1)); in TEST() 29 EXPECT_EQ(7u, map.lookup(~0u-1, 7)); in TEST() 32 EXPECT_TRUE(map.begin() == map.begin()); in TEST() 33 EXPECT_TRUE(map.begin() == map.end()); in TEST() 34 EXPECT_TRUE(map.end() == map.end()); in TEST() 35 EXPECT_FALSE(map.begin() != map.begin()); in TEST() [all …]
|
/external/google-breakpad/src/common/ |
D | simple_string_dictionary_unittest.cc | 37 TestMap map; in TEST() local 39 const TestMap::Entry* entry = TestMap::Iterator(map).Next(); in TEST() 43 map.SetKeyValue("key1", "value1"); in TEST() 44 entry = TestMap::Iterator(map).Next(); in TEST() 50 map.SetKeyValue("key1", "value3"); in TEST() 57 map.RemoveKey("key1"); in TEST() 93 NonAllocatingMap<10, 10, 10> map; in TEST() local 94 map.SetKeyValue("one", "a"); in TEST() 95 map.SetKeyValue("two", "b"); in TEST() 96 map.SetKeyValue("three", "c"); in TEST() [all …]
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | SmallSortedMapTest.java | 134 for (SmallSortedMap<Integer, Integer> map : allMaps) { in runPutAndGetTest() 135 assertEquals(numElements, map.size()); in runPutAndGetTest() 137 assertEquals(new Integer(i + 1), map.get(i)); in runPutAndGetTest() 147 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testReplacingPut() local 149 assertNull(map.put(i, i + 1)); in testReplacingPut() 150 assertNull(map.remove(i + 1)); in testReplacingPut() 153 assertEquals(new Integer(i + 1), map.put(i, i + 2)); in testReplacingPut() 158 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testRemove() local 160 assertNull(map.put(i, i + 1)); in testRemove() 161 assertNull(map.remove(i + 1)); in testRemove() [all …]
|
/external/libunwind/src/ |
D | os-hpux.c | 59 map = map_find_from_addr(as->map_list, ip); in tdep_get_elf_image() 60 if (map) in tdep_get_elf_image() 67 map = map_find_from_addr(as->map_list, ip); in tdep_get_elf_image() 68 if (map) in tdep_get_elf_image() 79 map = mempool_alloc (&map_pool); in tdep_get_elf_image() 80 if (!map) in tdep_get_elf_image() 83 map->start = lmd.text_base; in tdep_get_elf_image() 84 map->end = cur_map->start + lmd.text_size; in tdep_get_elf_image() 85 map->offset = 0; /* XXX fix me? */ in tdep_get_elf_image() 86 map->flags = ; in tdep_get_elf_image() [all …]
|
D | Los-common.c | 90 struct map_info *map; in rebuild_if_necessary() local 96 map = map_find_from_addr (new_list, addr); in rebuild_if_necessary() 97 if (map && (expected_flags == 0 || (map->flags & expected_flags))) in rebuild_if_necessary() 108 map = map_find_from_addr (local_map_list, addr); in rebuild_if_necessary() 109 if (!map || (expected_flags != 0 && !(map->flags & expected_flags))) in rebuild_if_necessary() 113 map = local_map_list; in rebuild_if_necessary() 115 new_list = map; in rebuild_if_necessary() 129 struct map_info *map; in is_flag_set() local 134 map = map_find_from_addr (local_map_list, addr); in is_flag_set() 135 if (map != NULL) in is_flag_set() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ForwardingConcurrentMapTest.java | 41 TestMap map = new TestMap(); in testPutIfAbsent() local 42 map.put("foo", 1); in testPutIfAbsent() 43 assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2)); in testPutIfAbsent() 44 assertEquals(Integer.valueOf(1), map.get("foo")); in testPutIfAbsent() 45 assertNull(map.putIfAbsent("bar", 3)); in testPutIfAbsent() 46 assertEquals(Integer.valueOf(3), map.get("bar")); in testPutIfAbsent() 50 TestMap map = new TestMap(); in testRemove() local 51 map.put("foo", 1); in testRemove() 52 assertFalse(map.remove("foo", 2)); in testRemove() 53 assertFalse(map.remove("bar", 1)); in testRemove() [all …]
|
D | LinkedListMultimapTest.java | 159 LinkedListMultimap<String, Integer> map = create(); in testLinkedGetAdd() local 160 map.put("bar", 1); in testLinkedGetAdd() 161 Collection<Integer> foos = map.get("foo"); in testLinkedGetAdd() 164 map.put("bar", 4); in testLinkedGetAdd() 165 map.put("foo", 5); in testLinkedGetAdd() 166 assertEquals("{bar=[1, 4], foo=[2, 3, 5]}", map.toString()); in testLinkedGetAdd() 168 map.entries().toString()); in testLinkedGetAdd() 172 ListMultimap<String, Integer> map = create(); in testLinkedGetInsert() local 173 map.put("bar", 1); in testLinkedGetInsert() 174 List<Integer> foos = map.get("foo"); in testLinkedGetInsert() [all …]
|
D | MutableClassToInstanceMapTest.java | 61 MutableClassToInstanceMap<Number> map in suite() 65 map.putInstance(entry.getKey(), entry.getValue()); in suite() 67 return (Map) map; in suite() 84 private ClassToInstanceMap<Number> map; field in MutableClassToInstanceMapTest 87 map = MutableClassToInstanceMap.create(); in setUp() 100 map.put(Integer.class, new Integer(5)); in testConstraint() 102 map.put(Double.class, new Long(42)); in testConstraint() 110 assertNull(map.putInstance(Integer.class, new Integer(5))); in testPutAndGetInstance() 112 Integer oldValue = map.putInstance(Integer.class, new Integer(7)); in testPutAndGetInstance() 115 Integer newValue = map.getInstance(Integer.class); in testPutAndGetInstance() [all …]
|
D | MapMakerInternalMapTest.java | 77 MapMakerInternalMap<Object, Object> map = makeMap(createMapMaker()); in testDefaults() local 79 assertSame(Strength.STRONG, map.keyStrength); in testDefaults() 80 assertSame(Strength.STRONG, map.valueStrength); in testDefaults() 81 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults() 82 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testDefaults() 84 assertEquals(0, map.expireAfterAccessNanos); in testDefaults() 85 assertEquals(0, map.expireAfterWriteNanos); in testDefaults() 86 assertEquals(MapMaker.UNSET_INT, map.maximumSize); in testDefaults() 88 assertSame(EntryFactory.STRONG, map.entryFactory); in testDefaults() 89 assertSame(MapMaker.NullListener.INSTANCE, map.removalListener); in testDefaults() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_mipmap_tree.c | 1070 struct intel_miptree_map *map, in intel_miptree_map_gtt() argument 1076 int x = map->x; in intel_miptree_map_gtt() 1077 int y = map->y; in intel_miptree_map_gtt() 1087 base = intel_region_map(intel, mt->region, map->mode); in intel_miptree_map_gtt() 1090 map->ptr = NULL; in intel_miptree_map_gtt() 1099 map->stride = mt->region->pitch * mt->cpp; in intel_miptree_map_gtt() 1100 map->ptr = base + y * map->stride + x * mt->cpp; in intel_miptree_map_gtt() 1104 map->x, map->y, map->w, map->h, in intel_miptree_map_gtt() 1106 x, y, map->ptr, map->stride); in intel_miptree_map_gtt() 1112 struct intel_miptree_map *map, in intel_miptree_unmap_gtt() argument [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_mipmap_tree.c | 1070 struct intel_miptree_map *map, in intel_miptree_map_gtt() argument 1076 int x = map->x; in intel_miptree_map_gtt() 1077 int y = map->y; in intel_miptree_map_gtt() 1087 base = intel_region_map(intel, mt->region, map->mode); in intel_miptree_map_gtt() 1090 map->ptr = NULL; in intel_miptree_map_gtt() 1099 map->stride = mt->region->pitch * mt->cpp; in intel_miptree_map_gtt() 1100 map->ptr = base + y * map->stride + x * mt->cpp; in intel_miptree_map_gtt() 1104 map->x, map->y, map->w, map->h, in intel_miptree_map_gtt() 1106 x, y, map->ptr, map->stride); in intel_miptree_map_gtt() 1112 struct intel_miptree_map *map, in intel_miptree_unmap_gtt() argument [all …]
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
D | intel_mipmap_tree.c | 1070 struct intel_miptree_map *map, in intel_miptree_map_gtt() argument 1076 int x = map->x; in intel_miptree_map_gtt() 1077 int y = map->y; in intel_miptree_map_gtt() 1087 base = intel_region_map(intel, mt->region, map->mode); in intel_miptree_map_gtt() 1090 map->ptr = NULL; in intel_miptree_map_gtt() 1099 map->stride = mt->region->pitch * mt->cpp; in intel_miptree_map_gtt() 1100 map->ptr = base + y * map->stride + x * mt->cpp; in intel_miptree_map_gtt() 1104 map->x, map->y, map->w, map->h, in intel_miptree_map_gtt() 1106 x, y, map->ptr, map->stride); in intel_miptree_map_gtt() 1112 struct intel_miptree_map *map, in intel_miptree_unmap_gtt() argument [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | MutableTypeToInstanceMapTest.java | 66 MutableTypeToInstanceMap<Object> map in suite() 70 map.putInstance(entry.getKey(), entry.getValue()); in suite() 72 return (Map) map; in suite() 89 private TypeToInstanceMap<Object> map; field in MutableTypeToInstanceMapTest 92 map = new MutableTypeToInstanceMap<Object>(); in setUp() 97 map.put(TypeToken.of(Integer.class), new Integer(5)); in testPutThrows() 104 map.putAll(ImmutableMap.of(TypeToken.of(Integer.class), new Integer(5))); in testPutAllThrows() 110 map.putInstance(String.class, "test"); in testEntrySetMutationThrows() 111 assertEquals(TypeToken.of(String.class), map.entrySet().iterator().next().getKey()); in testEntrySetMutationThrows() 112 assertEquals("test", map.entrySet().iterator().next().getValue()); in testEntrySetMutationThrows() [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowBundle.java | 22 Map<String, Object> map = new TreeMap<String, Object>(); field in ShadowBundle 30 map.clear(); in clear() 35 map.remove(key); in remove() 40 return map.get(key); in get() 45 map.put(key, value); in putString() 50 Object value = map.get(key); in getString() 59 Object value = map.get(key); in getString() 65 map.put(key, value); in putLong() 75 Object value = map.get(key); in getLong() 81 map.put(key, value); in putInt() [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
D | DictionaryExtensions.cs | 44 public static bool containsKey( this IDictionary map, object key ) in containsKey() argument 46 return map.Contains( key ); in containsKey() 50 public static object get( this IDictionary map, object key ) in get() argument 52 return map[key]; in get() 55 public static TValue get<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key ) in get() argument 58 if ( map.TryGetValue( key, out value ) ) in get() 68 public static TValue get<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key ) in get() argument 71 if ( map.TryGetValue( key, out value ) ) in get() 80 public static TValue get<TKey, TValue>( this SortedList<TKey, TValue> map, TKey key ) in get() argument 83 if ( map.TryGetValue( key, out value ) ) in get() [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
D | DictionaryExtensions.cs | 45 public static bool containsKey(IDictionary map, object key) { in containsKey() argument 46 return map.Contains(key); in containsKey() 50 public static object get(IDictionary map, object key) { in get() argument 51 return map[key]; in get() 55 public static TValue get<TKey, TValue>(IDictionary<TKey, TValue> map, TKey key) { in get() argument 57 if (map.TryGetValue(key, out value)) in get() 67 public static TValue get<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key) { in get() argument 69 if (map.TryGetValue(key, out value)) in get() 78 public static TValue get<TKey, TValue>(SortedList<TKey, TValue> map, TKey key) { in get() argument 80 if (map.TryGetValue(key, out value)) in get() [all …]
|
/external/mesa3d/src/mesa/vbo/ |
D | vbo_exec_eval.c | 39 exec->eval.map1[attr].map = NULL; in clear_active_eval1() 45 exec->eval.map2[attr].map = NULL; in clear_active_eval2() 49 struct gl_1d_map *map ) in set_active_eval1() argument 52 if (!exec->eval.map1[attr].map) { in set_active_eval1() 53 exec->eval.map1[attr].map = map; in set_active_eval1() 59 struct gl_2d_map *map ) in set_active_eval2() argument 62 if (!exec->eval.map2[attr].map) { in set_active_eval2() 63 exec->eval.map2[attr].map = map; in set_active_eval2() 147 struct gl_1d_map *map = exec->eval.map1[attr].map; in vbo_exec_do_EvalCoord1f() local 148 if (map) { in vbo_exec_do_EvalCoord1f() [all …]
|