/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
IdentityHashMapTest.java | 135 IdentityHashMap<String, String> hashMap = new IdentityHashMap<String, String>(); 136 hashMap.remove("absent"); 137 assertEquals("Assert 0: Size is incorrect", 0, hashMap.size()); 139 hashMap.put("key", "value"); 140 hashMap.remove("key"); 141 assertEquals("Assert 1: After removing non-null element size is incorrect", 0, hashMap.size()); 143 hashMap.put(null, null); 144 assertEquals("Assert 2: adding literal null failed", 1, hashMap.size()); 145 hashMap.remove(null); 146 assertEquals("Assert 3: After removing null element size is incorrect", 0, hashMap.size()) [all...] |
EnumMapTest.java | 22 import java.util.HashMap; 194 HashMap hashColorMap = null; 202 hashColorMap = new HashMap(); 224 hashColorMap = new HashMap(); 579 HashMap hashMap = new HashMap(); 580 hashMap.put(Size.Small, 1); 581 assertFalse("Returned true for unequal EnumMap", hashMap //$NON-NLS-1$ 583 hashMap.put(Size.Big, null) [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...] |
LinkedHashMapTest.java | 25 import java.util.HashMap; 377 LinkedHashMap hashMap = new MockMap(); 379 hashMap.put("key", value); 380 MockMap cloneMap = (MockMap) hashMap.clone(); 382 assertEquals(hashMap, cloneMap); 385 hashMap.put("key", "value b"); 386 assertFalse(hashMap.equals(cloneMap)); 646 Class<?>[] interfaces = HashMap.class.getInterfaces();
|
/libcore/luni/src/test/java/tests/api/java/util/ |
EnumMapTest.java | 24 import java.util.HashMap; 196 HashMap hashColorMap = null; 204 hashColorMap = new HashMap(); 226 hashColorMap = new HashMap(); 581 HashMap hashMap = new HashMap(); 582 hashMap.put(Size.Small, 1); 583 assertFalse("Returned true for unequal EnumMap", hashMap 585 hashMap.put(Size.Big, null) [all...] |
HashMapTest.java | 45 HashMap hm; 54 * java.util.HashMap#HashMap() 57 // Test for method java.util.HashMap() 58 new Support_MapTest2(new HashMap()).runTest(); 60 HashMap hm2 = new HashMap(); 61 assertEquals("Created incorrect HashMap", 0, hm2.size()); 65 * java.util.HashMap#HashMap(int 170 HashMap hashmap = new HashMap(); local [all...] |
LinkedHashMapTest.java | 423 LinkedHashMap hashMap = new MockMap(); 425 hashMap.put("key", value); 426 MockMap cloneMap = (MockMap) hashMap.clone(); 428 assertEquals(hashMap, cloneMap); 431 hashMap.put("key", "value b"); 432 assertFalse(hashMap.equals(cloneMap));
|
/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 204 IdentityHashMap<KT, VT> 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;
|
/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()) {
|
/external/webkit/Source/WebKit/android/jni/ |
WebCoreFrameBridge.cpp | 248 "(ILjava/lang/String;Ljava/lang/String;Ljava/util/HashMap;[BJIZZZLjava/lang/String;Ljava/lang/String;)Landroid/webkit/LoadListener;"); 299 mJavaFrame->mSaveFormData = env->GetMethodID(clazz, "saveFormData", "(Ljava/util/HashMap;)V"); 364 jclass mapClass = env->FindClass("java/util/HashMap"); 365 LOG_ASSERT(mapClass, "Could not find HashMap class!"); 367 LOG_ASSERT(init, "Could not find constructor for HashMap"); 368 jobject hashMap = env->NewObject(mapClass, init, map.size()); 369 LOG_ASSERT(hashMap, "Could not create a new HashMap"); 372 LOG_ASSERT(put, "Could not find put method on HashMap"); 381 env->CallObjectMethod(hashMap, put, key, val) [all...] |