/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/ |
IdentityHashMapTest.java | 134 IdentityHashMap<String, String> hashMap = new IdentityHashMap<String, String>(); 135 hashMap.remove("absent"); 136 assertEquals("Assert 0: Size is incorrect", 0, hashMap.size()); 138 hashMap.put("key", "value"); 139 hashMap.remove("key"); 140 assertEquals("Assert 1: After removing non-null element size is incorrect", 0, hashMap.size()); 142 hashMap.put(null, null); 143 assertEquals("Assert 2: adding literal null failed", 1, hashMap.size()); 144 hashMap.remove(null); 145 assertEquals("Assert 3: After removing null element size is incorrect", 0, hashMap.size()) [all...] |
HashMapTest.java | 27 import java.util.HashMap; 96 HashMap hm; 113 * @tests java.util.HashMap#HashMap() 116 // Test for method java.util.HashMap() 117 new Support_MapTest2(new HashMap()).runTest(); 119 HashMap hm2 = new HashMap(); 120 assertEquals("Created incorrect HashMap", 0, hm2.size()); 124 * @tests java.util.HashMap#HashMap(int 250 HashMap hashmap = new HashMap(); local [all...] |
/external/webkit/WebKit/win/ |
COMPropertyBag.h | 33 #include <wtf/HashMap.h>
40 typedef HashMap<KeyType, ValueType, HashType> HashMapType;
67 COMPropertyBag(const HashMapType& hashMap)
69 , m_hashMap(hashMap)
81 COMPropertyBag<ValueType, KeyType, HashType>* COMPropertyBag<typename ValueType, typename KeyType, HashType>::createInstance(const HashMapType& hashMap)
83 COMPropertyBag* instance = new COMPropertyBag(hashMap);
89 COMPropertyBag<ValueType, KeyType, HashType>* COMPropertyBag<typename ValueType, typename KeyType, HashType>::adopt(HashMapType& hashMap)
92 instance->m_hashMap.swap(hashMap);
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
ImageListUber.java | 26 import java.util.HashMap; 71 public HashMap<String, String> getBucketIds() { 72 HashMap<String, String> hashMap = new HashMap<String, String>(); 74 hashMap.putAll(list.getBucketIds()); 76 return hashMap;
|
/libcore/luni/src/test/java/tests/api/java/util/ |
LinkedHashMapTest.java | 537 LinkedHashMap hashMap = new MockMap(); 539 hashMap.put("key", value); 540 MockMap cloneMap = (MockMap) hashMap.clone(); 542 assertEquals(hashMap, cloneMap); 545 hashMap.put("key", "value b"); 546 assertFalse(hashMap.equals(cloneMap));
|
HashMapTest.java | 30 @TestTargetClass(HashMap.class) 51 HashMap hm; 60 * @tests java.util.HashMap#HashMap() 65 method = "HashMap", 69 // Test for method java.util.HashMap() 70 new Support_MapTest2(new HashMap()).runTest(); 72 HashMap hm2 = new HashMap(); 73 assertEquals("Created incorrect HashMap", 0, hm2.size()) 212 HashMap hashmap = new HashMap(); local [all...] |
EnumMapTest.java | 28 import java.util.HashMap; 219 HashMap hashColorMap = null; 227 hashColorMap = new HashMap(); 249 hashColorMap = new HashMap(); 640 HashMap hashMap = new HashMap(); 641 hashMap.put(Size.Small, 1); 642 assertFalse("Returned true for unequal EnumMap", hashMap 644 hashMap.put(Size.Big, null) [all...] |
/external/webkit/WebKit/android/jni/ |
WebCoreFrameBridge.cpp | 213 "(ILjava/lang/String;Ljava/lang/String;Ljava/util/HashMap;[BJIZZZLjava/lang/String;Ljava/lang/String;)Landroid/webkit/LoadListener;"); 295 jclass mapClass = env->FindClass("java/util/HashMap"); 296 LOG_ASSERT(mapClass, "Could not find HashMap class!"); 298 LOG_ASSERT(init, "Could not find constructor for HashMap"); 299 jobject hashMap = env->NewObject(mapClass, init, map.size()); 300 LOG_ASSERT(hashMap, "Could not create a new HashMap"); 303 LOG_ASSERT(put, "Could not find put method on HashMap"); 312 env->CallObjectMethod(hashMap, put, key, val); 320 return hashMap; [all...] |
/external/jhead/ |
main.c | 57 static void addExifAttibute(JNIEnv *env, jmethodID putMethod, jobject hashMap, char* key, char* value) { 61 jobject jobject_of_entryset = (*env)->CallObjectMethod(env, hashMap, putMethod, jkey, jvalue); 353 // // Invoke the "entrySet" method on the HashMap object 354 // jobject jobject_of_entryset = (*env)->CallObjectMethod(env, hashMap, entrySetMethod);
|
/libcore/luni/src/main/java/java/util/ |
IdentityHashMap.java | 26 * IdentityHashMap is a variant on HashMap which tests equality by reference 35 * collision resolution. This is different from HashMap which uses Chaining. 37 * Like HashMap, IdentityHashMap is not thread safe, so access by multiple 194 IdentityHashMap<KT, VT> hashMap() {
|
/packages/apps/Gallery/src/com/android/camera/ |
GalleryPicker.java | 66 import java.util.HashMap; 444 HashMap<String, String> hashMap = allImages.getBucketIds(); 448 for (Map.Entry<String, String> entry : hashMap.entrySet()) {
|