/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | IdentityHashMapTest.java | 135 IdentityHashMap<String, String> hashMap = new IdentityHashMap<String, String>(); in test_removeLjava_lang_Object() local 136 hashMap.remove("absent"); in test_removeLjava_lang_Object() 137 assertEquals("Assert 0: Size is incorrect", 0, hashMap.size()); in test_removeLjava_lang_Object() 139 hashMap.put("key", "value"); in test_removeLjava_lang_Object() 140 hashMap.remove("key"); in test_removeLjava_lang_Object() 141 … assertEquals("Assert 1: After removing non-null element size is incorrect", 0, hashMap.size()); in test_removeLjava_lang_Object() 143 hashMap.put(null, null); in test_removeLjava_lang_Object() 144 assertEquals("Assert 2: adding literal null failed", 1, hashMap.size()); in test_removeLjava_lang_Object() 145 hashMap.remove(null); in test_removeLjava_lang_Object() 146 assertEquals("Assert 3: After removing null element size is incorrect", 0, hashMap.size()); in test_removeLjava_lang_Object() [all …]
|
D | LinkedHashMapTest.java | 377 LinkedHashMap hashMap = new MockMap(); in test_clone_Mock() local 379 hashMap.put("key", value); in test_clone_Mock() 380 MockMap cloneMap = (MockMap) hashMap.clone(); in test_clone_Mock() 382 assertEquals(hashMap, cloneMap); in test_clone_Mock() 385 hashMap.put("key", "value b"); in test_clone_Mock() 386 assertFalse(hashMap.equals(cloneMap)); in test_clone_Mock()
|
D | HashMapTest.java | 535 HashMap hashMap = new HashMap(); in test_putAllLjava_util_Map_Null() local 537 hashMap.putAll(new MockMapNull()); in test_putAllLjava_util_Map_Null() 544 hashMap = new HashMap(new MockMapNull()); in test_putAllLjava_util_Map_Null()
|
D | EnumMapTest.java | 579 HashMap hashMap = new HashMap(); in test_equalsLjava_lang_Object() local 580 hashMap.put(Size.Small, 1); in test_equalsLjava_lang_Object() 581 assertFalse("Returned true for unequal EnumMap", hashMap //$NON-NLS-1$ in test_equalsLjava_lang_Object() 583 hashMap.put(Size.Big, null); in test_equalsLjava_lang_Object() 584 assertTrue("Returned false for equal EnumMap", enumMap.equals(hashMap)); //$NON-NLS-1$ in test_equalsLjava_lang_Object()
|
/external/webkit/Source/WebKit2/Platform/CoreIPC/ |
D | ArgumentCoders.h | 164 static void encode(ArgumentEncoder* encoder, const HashMapType& hashMap) 166 encoder->encodeUInt64(hashMap.size()); 167 …for (typename HashMapType::const_iterator it = hashMap.begin(), end = hashMap.end(); it != end; ++… 171 static bool decode(ArgumentDecoder* decoder, HashMapType& hashMap) 193 hashMap.swap(tempHashMap);
|
/external/webkit/Source/WebKit/win/ |
D | COMPropertyBag.h | 69 COMPropertyBag(const HashMapType& hashMap) in COMPropertyBag() argument 71 , m_hashMap(hashMap) in COMPropertyBag() 83 …ertyBag<typename ValueType, typename KeyType, HashType>::createInstance(const HashMapType& hashMap) in createInstance() argument 85 COMPropertyBag* instance = new COMPropertyBag(hashMap); in createInstance() 91 …hType>* COMPropertyBag<typename ValueType, typename KeyType, HashType>::adopt(HashMapType& hashMap) in adopt() argument 94 instance->m_hashMap.swap(hashMap); in adopt()
|
/external/guava/guava-gwt/src/com/google/common/collect/ |
D | HashBasedTable_CustomFieldSerializer.java | 39 Map<?, ?> hashMap = (Map<?, ?>) reader.readObject(); in instantiate() local 42 for (Entry<?, ?> row : hashMap.entrySet()) { in instantiate()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ImmutableBiMapTest.java | 447 Map<String, Integer> hashMap = Maps.newLinkedHashMap(); in testFromHashMap() local 448 hashMap.put("one", 1); in testFromHashMap() 449 hashMap.put("two", 2); in testFromHashMap()
|
D | MapsTest.java | 142 private static int sizeOf(HashMap<?, ?> hashMap) throws Exception { in sizeOf() argument 145 Object[] table = (Object[]) tableField.get(hashMap); in sizeOf()
|
/external/webkit/Source/WebKit/android/jni/ |
D | WebCoreFrameBridge.cpp | 349 jobject hashMap = env->NewObject(mapClass, init, map.size()); in createJavaMapFromHTTPHeaders() local 350 ALOG_ASSERT(hashMap, "Could not create a new HashMap"); in createJavaMapFromHTTPHeaders() 362 env->CallObjectMethod(hashMap, put, key, val); in createJavaMapFromHTTPHeaders() 370 return hashMap; in createJavaMapFromHTTPHeaders() 1742 jobject hashMap = env->NewObject(mapClass, init, 1); in saveFormData() local 1743 ALOG_ASSERT(hashMap, "Could not create a new HashMap"); in saveFormData() 1762 env->CallObjectMethod(hashMap, put, key, val); in saveFormData() 1769 env->CallVoidMethod(javaFrame.get(), mJavaFrame->mSaveFormData, hashMap); in saveFormData() 1770 env->DeleteLocalRef(hashMap); in saveFormData()
|
/external/jhead/ |
D | main.c | 58 static void addExifAttibute(JNIEnv *env, jmethodID putMethod, jobject hashMap, char* key, char* val… in addExifAttibute() argument 62 jobject jobject_of_entryset = (*env)->CallObjectMethod(env, hashMap, putMethod, jkey, jvalue); in addExifAttibute()
|