/external/kernel-headers/original/linux/mtd/ |
D | map.h | 19 #define map_bankwidth(map) 1 argument 20 #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1) argument 21 #define map_bankwidth_is_large(map) (0) argument 22 #define map_words(map) (1) argument 25 #define map_bankwidth_is_1(map) (0) argument 31 # define map_bankwidth(map) ((map)->bankwidth) argument 33 # define map_bankwidth(map) 2 argument 34 # define map_bankwidth_is_large(map) (0) argument 35 # define map_words(map) (1) argument 37 #define map_bankwidth_is_2(map) (map_bankwidth(map) == 2) argument [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | AtomicLongMapTest.java | 34 AtomicLongMap<Object> map = AtomicLongMap.create(); in testNulls() local 35 tester.testAllPublicInstanceMethods(map); in testNulls() 40 AtomicLongMap<String> map = AtomicLongMap.create(in); in testCreate_map() local 41 assertFalse(map.isEmpty()); in testCreate_map() 42 assertSame(3, map.size()); in testCreate_map() 43 assertTrue(map.containsKey("1")); in testCreate_map() 44 assertTrue(map.containsKey("2")); in testCreate_map() 45 assertTrue(map.containsKey("3")); in testCreate_map() 46 assertEquals(1L, map.get("1")); in testCreate_map() 47 assertEquals(2L, map.get("2")); in testCreate_map() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | ConcurrentMapInterfaceTest.java | 71 final ConcurrentMap<K, V> map; in testPutIfAbsentNewKey() local 75 map = makeEitherMap(); in testPutIfAbsentNewKey() 82 int initialSize = map.size(); in testPutIfAbsentNewKey() 83 V oldValue = map.putIfAbsent(keyToPut, valueToPut); in testPutIfAbsentNewKey() 84 assertEquals(valueToPut, map.get(keyToPut)); in testPutIfAbsentNewKey() 85 assertTrue(map.containsKey(keyToPut)); in testPutIfAbsentNewKey() 86 assertTrue(map.containsValue(valueToPut)); in testPutIfAbsentNewKey() 87 assertEquals(initialSize + 1, map.size()); in testPutIfAbsentNewKey() 91 map.putIfAbsent(keyToPut, valueToPut); in testPutIfAbsentNewKey() 97 assertInvariants(map); in testPutIfAbsentNewKey() [all …]
|
D | MapInterfaceTest.java | 154 protected final boolean supportsValuesHashCode(Map<K, V> map) { in supportsValuesHashCode() argument 156 Collection<V> values = map.values(); in supportsValuesHashCode() 178 protected final void assertInvariants(Map<K, V> map) { in assertInvariants() argument 179 Set<K> keySet = map.keySet(); in assertInvariants() 180 Collection<V> valueCollection = map.values(); in assertInvariants() 181 Set<Entry<K, V>> entrySet = map.entrySet(); in assertInvariants() 183 assertEquals(map.size() == 0, map.isEmpty()); in assertInvariants() 184 assertEquals(map.size(), keySet.size()); in assertInvariants() 190 V value = map.get(key); in assertInvariants() 192 assertTrue(map.containsKey(key)); in assertInvariants() [all …]
|
D | SortedMapInterfaceTest.java | 79 final SortedMap<K, V> map; in testOrdering() local 81 map = makePopulatedMap(); in testOrdering() 85 Iterator<K> iterator = map.keySet().iterator(); in testOrdering() 87 Comparator<? super K> comparator = map.comparator(); in testOrdering() 94 assertTrue(map.comparator().compare(prior, current) < 0); in testOrdering() 101 final Map<K, V> map; 104 map = makeEitherMap(); 108 assertInvariants(map); 110 entrySet = map.entrySet(); 123 final SortedMap<K, V> map; [all …]
|
/external/qemu/android/utils/ |
D | intmap.c | 42 AIntMap* map; in aintMap_new() local 44 ANEW0(map); in aintMap_new() 45 map->size = 0; in aintMap_new() 46 map->capacity = 4; in aintMap_new() 47 map->keys = map->keys0; in aintMap_new() 48 map->values = map->values0; in aintMap_new() 50 return map; in aintMap_new() 54 aintMap_free( AIntMap* map ) in aintMap_free() argument 56 if (map) { in aintMap_free() 57 if (map->keys != map->keys0) in aintMap_free() [all …]
|
/external/chromium/net/disk_cache/ |
D | bitmap_unittest.cc | 19 disk_cache::Bitmap map; in TEST() local 20 EXPECT_EQ(0, map.Size()); in TEST() 21 EXPECT_EQ(0, map.ArraySize()); in TEST() 22 EXPECT_TRUE(NULL == map.GetMap()); in TEST() 59 disk_cache::Bitmap map(kSize, true); in TEST() local 61 map.Toggle(i); in TEST() 63 map.Toggle(i); in TEST() 65 EXPECT_EQ((i % 3 == 0) && (i % 9 != 0), map.Get(i)); in TEST() 72 disk_cache::Bitmap map(kSize1, true); in TEST() local 73 map.Resize(kSize1, true); in TEST() [all …]
|
/external/chromium/chrome/browser/geolocation/ |
D | geolocation_content_settings_map_unittest.cc | 68 GeolocationContentSettingsMap* map = in TEST_F() local 72 EXPECT_EQ(CONTENT_SETTING_ASK, map->GetDefaultContentSetting()); in TEST_F() 73 map->SetDefaultContentSetting(CONTENT_SETTING_BLOCK); in TEST_F() 74 EXPECT_EQ(CONTENT_SETTING_BLOCK, map->GetDefaultContentSetting()); in TEST_F() 79 GeolocationContentSettingsMap* map = in TEST_F() local 82 EXPECT_EQ(CONTENT_SETTING_ASK, map->GetContentSetting(top_level, top_level)); in TEST_F() 84 map->SetContentSetting(top_level, top_level, CONTENT_SETTING_ALLOW); in TEST_F() 86 map->GetContentSetting(top_level, top_level)); in TEST_F() 90 map->GetContentSetting(requester_0, top_level)); in TEST_F() 92 map->SetContentSetting(requester_0, top_level, CONTENT_SETTING_ALLOW); in TEST_F() [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/linux-tools-perf/util/ |
D | map.h | 33 struct map { struct 46 u64 (*map_ip)(struct map *, u64); argument 48 u64 (*unmap_ip)(struct map *, u64); argument 76 struct map *vmlinux_maps[MAP__NR_TYPES]; 80 struct map *machine__kernel_map(struct machine *self, enum map_type type) in machine__kernel_map() 85 static inline struct kmap *map__kmap(struct map *self) in map__kmap() 90 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip() argument 92 return ip - map->start + map->pgoff; in map__map_ip() 95 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip() argument 97 return ip + map->start - map->pgoff; in map__unmap_ip() [all …]
|
D | map.c | 21 void map__init(struct map *self, enum map_type type, in map__init() 36 struct map *map__new(struct list_head *dsos__list, u64 start, u64 len, in map__new() 40 struct map *self = malloc(sizeof(*self)); in map__new() 74 void map__delete(struct map *self) in map__delete() 79 void map__fixup_start(struct map *self) in map__fixup_start() 89 void map__fixup_end(struct map *self) in map__fixup_end() 101 int map__load(struct map *self, symbol_filter_t filter) in map__load() 150 struct symbol *map__find_symbol(struct map *self, u64 addr, in map__find_symbol() 159 struct symbol *map__find_symbol_by_name(struct map *self, const char *name, in map__find_symbol_by_name() 171 struct map *map__clone(struct map *self) in map__clone() [all …]
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | IdentityHashMapTest.java | 43 IdentityHashMap map = new IdentityHashMap(); in test_null_Keys_and_Values() local 47 result = map.put(null, null); in test_null_Keys_and_Values() 48 assertTrue("testA can not find null key", map.containsKey(null)); in test_null_Keys_and_Values() 49 assertTrue("testA can not find null value", map.containsValue(null)); in test_null_Keys_and_Values() 51 map.get(null)); in test_null_Keys_and_Values() 56 result = map.put(null, value); in test_null_Keys_and_Values() 57 assertTrue("testB can not find null key", map.containsKey(null)); in test_null_Keys_and_Values() 58 assertTrue("testB can not find a value with null key", map in test_null_Keys_and_Values() 61 map.get(null) == value); in test_null_Keys_and_Values() 66 result = map.put(key, null); in test_null_Keys_and_Values() [all …]
|
D | SortedMapTestBase.java | 43 SortedMap<Integer, Integer> map; field in SortedMapTestBase 56 map.clear(); in testClear() 57 assertTrue(map.isEmpty()); in testClear() 63 assertEquals(ref.containsKey(key), map.containsKey(key)); in testContainsKey() 71 assertEquals(ref.containsValue(value), map.containsValue(value)); in testContainsValue() 78 Set<Map.Entry<Integer,Integer>> mapSet = map.entrySet(); in testEntrySet() 85 assertEquals(ref.entrySet(), map.entrySet()); in testEntrySet() 92 assertEquals(ref.get(key), map.get(key)); in testGet() 98 assertEquals(ref.keySet(), map.keySet()); in testKeySet() 100 Iterator<Integer> j = map.keySet().iterator(); in testKeySet() [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 | MutableClassToInstanceMapTest.java | 60 MutableClassToInstanceMap<Number> map in suite() 64 map.putInstance(entry.getKey(), entry.getValue()); in suite() 66 return (Map) map; in suite() 82 private ClassToInstanceMap<Number> map; field in MutableClassToInstanceMapTest 85 map = MutableClassToInstanceMap.create(); in setUp() 98 map.put(Integer.class, new Integer(5)); in testConstraint() 100 map.put(Double.class, new Long(42)); in testConstraint() 108 assertNull(map.putInstance(Integer.class, new Integer(5))); in testPutAndGetInstance() 110 Integer oldValue = map.putInstance(Integer.class, new Integer(7)); in testPutAndGetInstance() 113 Integer newValue = map.getInstance(Integer.class); in testPutAndGetInstance() [all …]
|
D | LinkedListMultimapTest.java | 124 LinkedListMultimap<String, Integer> map = create(); in testLinkedGetAdd() local 125 map.put("bar", 1); in testLinkedGetAdd() 126 Collection<Integer> foos = map.get("foo"); in testLinkedGetAdd() 129 map.put("bar", 4); in testLinkedGetAdd() 130 map.put("foo", 5); in testLinkedGetAdd() 131 assertEquals("{bar=[1, 4], foo=[2, 3, 5]}", map.toString()); in testLinkedGetAdd() 133 map.entries().toString()); in testLinkedGetAdd() 137 ListMultimap<String, Integer> map = create(); in testLinkedGetInsert() local 138 map.put("bar", 1); in testLinkedGetInsert() 139 List<Integer> foos = map.get("foo"); in testLinkedGetInsert() [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/chromium/base/ |
D | file_descriptor_shuffle_unittest.cc | 73 InjectiveMultimap map; in TEST() local 76 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer)); in TEST() 81 InjectiveMultimap map; in TEST() local 83 map.push_back(InjectionArc(0, 0, false)); in TEST() 85 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer)); in TEST() 90 InjectiveMultimap map; in TEST() local 92 map.push_back(InjectionArc(0, 0, true)); in TEST() 94 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer)); in TEST() 99 InjectiveMultimap map; in TEST() local 101 map.push_back(InjectionArc(0, 1, false)); in TEST() [all …]
|
D | id_map_unittest.cc | 26 IDMap<TestObject> map; in TEST_F() local 27 EXPECT_TRUE(map.IsEmpty()); in TEST_F() 28 EXPECT_EQ(0U, map.size()); in TEST_F() 33 int32 id1 = map.Add(&obj1); in TEST_F() 34 EXPECT_FALSE(map.IsEmpty()); in TEST_F() 35 EXPECT_EQ(1U, map.size()); in TEST_F() 36 EXPECT_EQ(&obj1, map.Lookup(id1)); in TEST_F() 38 int32 id2 = map.Add(&obj2); in TEST_F() 39 EXPECT_FALSE(map.IsEmpty()); in TEST_F() 40 EXPECT_EQ(2U, map.size()); in TEST_F() [all …]
|
/external/chromium/chrome/browser/chromeos/ |
D | name_value_pairs_parser_unittest.cc | 13 NameValuePairsParser::NameValueMap map; in TEST() local 14 NameValuePairsParser parser(&map); in TEST() 18 ASSERT_EQ(1U, map.size()); in TEST() 19 EXPECT_EQ("Foo", map["foo"]); in TEST() 23 NameValuePairsParser::NameValueMap map; in TEST() local 24 NameValuePairsParser parser(&map); in TEST() 28 ASSERT_EQ(3U, map.size()); in TEST() 29 EXPECT_EQ("Foo", map["foo"]); in TEST() 30 EXPECT_EQ("Bar", map["bar"]); in TEST() 31 EXPECT_EQ("FooBar", map["foobar"]); in TEST() [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/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowBundle.java | 22 Map<String, Object> map = new HashMap<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/webkit/Source/WebCore/bindings/gobject/ |
D | WebKitHTMLElementWrapperFactory.cpp | 471 static HashMap<WTF::AtomicStringImpl*, CreateHTMLElementWrapperFunction> map; in createHTMLElementWrapper() local 472 if (map.isEmpty()) { in createHTMLElementWrapper() 473 map.set(aTag.localName().impl(), createAnchorWrapper); in createHTMLElementWrapper() 474 map.set(appletTag.localName().impl(), createAppletWrapper); in createHTMLElementWrapper() 476 map.set(audioTag.localName().impl(), createAudioWrapper); in createHTMLElementWrapper() 477 map.set(videoTag.localName().impl(), createVideoWrapper); in createHTMLElementWrapper() 479 map.set(areaTag.localName().impl(), createAreaWrapper); in createHTMLElementWrapper() 480 map.set(baseTag.localName().impl(), createBaseWrapper); in createHTMLElementWrapper() 481 map.set(basefontTag.localName().impl(), createBaseFontWrapper); in createHTMLElementWrapper() 482 map.set(blockquoteTag.localName().impl(), createBlockquoteWrapper); in createHTMLElementWrapper() [all …]
|
/external/apache-harmony/support/src/test/java/tests/support/ |
D | Support_MapTest2.java | 25 Map<String, String> map; field in Support_MapTest2 29 map = m; in Support_MapTest2() 30 if (!map.isEmpty()) { in Support_MapTest2() 38 map.put("one", "1"); in runTest() 39 assertEquals("size should be one", 1, map.size()); in runTest() 40 map.clear(); in runTest() 41 assertEquals("size should be zero", 0, map.size()); in runTest() 42 assertTrue("Should not have entries", !map.entrySet().iterator() in runTest() 44 assertTrue("Should not have keys", !map.keySet().iterator() in runTest() 46 assertTrue("Should not have values", !map.values().iterator() in runTest() [all …]
|