Home
last modified time | relevance | path

Searched refs:remove (Results 1 – 25 of 243) sorted by relevance

12345678910

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DCookieStoreTest.java100 assertFalse(cookieStore.remove(uri2, cookie4)); in test_add_LURI_LHttpCookie()
172 assertFalse(cookieStore.remove(uri1, cookie5)); in test_get_LURI()
188 assertFalse(cookieStore.remove(null, cookie6)); in test_get_LURI()
238 list.remove(new HttpCookie("readOnlyName", "readOnlyValue")); in test_getCookies()
280 cookieStore.remove(uri1, null); in test_remove_LURI_LHttpCookie()
285 assertFalse(cookieStore.remove(uri1, cookie1)); in test_remove_LURI_LHttpCookie()
286 assertFalse(cookieStore.remove(null, cookie1)); in test_remove_LURI_LHttpCookie()
292 assertTrue(cookieStore.remove(uri1, cookie1)); in test_remove_LURI_LHttpCookie()
293 assertFalse(cookieStore.remove(uri1, cookie1)); in test_remove_LURI_LHttpCookie()
296 assertTrue(cookieStore.remove(uri2, cookie2)); in test_remove_LURI_LHttpCookie()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java30 referenceQueue.remove(-1); in testRemoveWithInvalidTimeout()
39 referenceQueue.remove(Long.MAX_VALUE); in testRemoveWithVeryLargeTimeout()
54 referenceQueue.remove(1000); in testRemoveWithSpuriousNotify()
63 assertNotNull(referenceQueue.remove()); in testRemoveWithImmediateResultAndNoTimeout()
69 assertNotNull(referenceQueue.remove(1000)); in testRemoveWithImmediateResultAndTimeout()
76 referenceQueue.remove(); in testRemoveWithDelayedResultAndNoTimeout()
86 referenceQueue.remove(1000); in testRemoveWithDelayedResultAndTimeout()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DReferenceQueueTest.java118 assertTrue("Remove failed.", ((Boolean) rq.remove().get()) in test_remove()
131 rq.remove(); in test_remove()
161 rq.remove((long) 1)); in test_removeJ()
164 Reference ret = rq.remove(0L); in test_removeJ()
185 Reference result = rq.remove(1L); in test_removeJ()
187 result = rq.remove(1L); in test_removeJ()
189 result = rq.remove(1L); in test_removeJ()
203 rq.remove(1000L); in test_removeJ()
226 rq.remove(-1); in test_removeJ()
242 rq.remove(100L); in test_Constructor()
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidArrayListTest.java56 array.remove(1); in testArrayList()
57 array.remove(1); in testArrayList()
81 assertFalse(al.remove(null)); in testArrayList()
82 assertFalse(al.remove("string")); in testArrayList()
87 assertTrue(al.remove(null)); in testArrayList()
88 assertTrue(al.remove("string")); in testArrayList()
DOldPriorityQueueTest.java51 assertFalse(queue.remove("BB")); in test_remove_Ljava_lang_Object_using_comparator()
52 assertTrue(queue.remove("AA")); in test_remove_Ljava_lang_Object_using_comparator()
59 assertFalse(integerQueue.remove(111)); in test_remove_Ljava_lang_Object_not_exists()
60 assertFalse(integerQueue.remove(null)); in test_remove_Ljava_lang_Object_not_exists()
61 assertFalse(integerQueue.remove("")); in test_remove_Ljava_lang_Object_not_exists()
116 q.remove(4); // 2 replaces 4 but parent is 3, siftUp(.) is needed in test_removeAt_siftUp()
DOldAndroidHashMapTest.java60 map.remove("three"); in testRemove()
73 assertNull(map.remove(null)); in testManipulate()
74 assertNull(map.remove("one")); in testManipulate()
97 assertEquals(0, map.remove(null).intValue()); in testManipulate()
98 assertEquals(1, map.remove("one").intValue()); in testManipulate()
99 assertEquals(2, map.remove("two").intValue()); in testManipulate()
100 assertEquals(3, map.remove("three").intValue()); in testManipulate()
108 assertNull(map.remove(null)); in testManipulate()
109 assertNull(map.remove("one")); in testManipulate()
DOldListIteratorTest.java88 public void remove() { in remove() method in OldListIteratorTest.Mock_ListIterator
101 l.remove(); in testRemove()
108 l.remove(); in testRemove()
113 l.remove(); in testRemove()
121 ml.remove(); in testRemove()
186 l.remove(); in testSet()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumMapTest.java288 enumSizeMap.remove(Size.Small); in test_clone()
360 .remove(mockEntry)); in test_entrySet()
364 .remove(mockEntry)); in test_entrySet()
367 .remove(mockEntry)); in test_entrySet()
369 .remove(new Integer(1))); in test_entrySet()
377 enumSizeMap.remove(Size.Big); in test_entrySet()
440 .remove(integer)); in test_entrySet()
442 .remove(entry)); in test_entrySet()
461 enumSizeMap.remove(Size.Big); in test_entrySet()
470 iter.remove(); in test_entrySet()
[all …]
DAbstractListTest.java48 public Object remove(int i) { in remove() method in AbstractListTest.SimpleList
49 return this.arrayList.remove(i); in remove()
86 it.remove(); in test_iterator()
146 sList.remove(0); in test_subListII()
152 lit.remove(); in test_subListII()
201 emptySubList.remove(0); in test_subList_empty()
216 public E remove(int idx) { in remove() method in AbstractListTest.MockArrayList
218 return list.remove(idx); in remove()
259 it.remove(); in test_iterator_next()
267 it.remove(); in test_iterator_next()
[all …]
DHashtableTest.java401 ht.remove(String.valueOf(i - 1)); in test_isEmpty()
450 ht.remove("initial"); in test_keys_subtest0()
484 it.remove(); in test_keySet()
486 it.remove(); in test_keySet()
489 list.remove(remove1); in test_keySet()
490 list.remove(remove2); in test_keySet()
507 it2.remove(); in test_keySet()
519 assertTrue("should contain key", s1.remove("Key 0")); in test_keySet_subtest0()
520 assertTrue("should not contain key", !s1.remove("Key 0")); in test_keySet_subtest0()
528 ht.remove(String.valueOf(i)); in test_keySet_subtest0()
[all …]
DAbstractSequentialListTest.java99 public void remove() { in remove() method in AbstractSequentialListTest.Mock_unsupportedListIterator
138 public void remove() { in remove() method in AbstractSequentialListTest.Mock_ListIterator
199 strV.remove("String"); in test_addAllILjava_util_Collection()
209 strV.remove(null); in test_addAllILjava_util_Collection()
341 public void remove() { in test_getI()
456 public void remove() { in test_removeI()
467 asl.remove(asl.size() + 1); in test_removeI()
474 asl.remove(-1); in test_removeI()
482 asl.remove(i); in test_removeI()
529 public void remove() { in test_setILjava_lang_Object()
DArrayListTest.java167 alist.remove(size); in test_addILjava_lang_Object_2()
250 list1.remove(0); in test_addAllILjava_util_Collection_2()
280 list1.remove(location); in test_addAllILjava_util_Collection_2()
407 originalList.remove(0); in test_addAllLjava_util_Collection()
408 originalList.remove(0); in test_addAllLjava_util_Collection()
544 al.remove(0); in test_ensureCapacityI()
676 alist.remove(10); in test_removeI()
680 alist.remove(999); in test_removeI()
690 alist.remove(50); in test_removeI()
691 alist.remove(25); in test_removeI()
[all …]
DArrayDequeTest.java436 assertEquals(testObjOne, testQue.remove()); in test_remove()
438 assertEquals(testObjTwo, testQue.remove()); in test_remove()
439 assertEquals(testObjThree, testQue.remove()); in test_remove()
442 testQue.remove(); in test_remove()
561 testQue.remove(); in test_size()
562 testQue.remove(); in test_size()
580 testQue.remove(); in test_isEmpty()
581 testQue.remove(); in test_isEmpty()
600 result.remove(); in test_iterator()
619 result.remove(); in test_iterator()
[all …]
DHashMapTest.java280 s.remove(iter.next()); in test_entrySet()
299 assertTrue(hm.keySet().remove("A")); in test_removeFromViews()
303 assertTrue(hm.entrySet().remove(m2.entrySet().iterator().next())); in test_removeFromViews()
370 it.remove(); in test_keySet()
372 it.remove(); in test_keySet()
375 list.remove(remove1); in test_keySet()
376 list.remove(remove2); in test_keySet()
393 it2.remove(); in test_keySet()
436 assertNotNull(map.remove(myKey)); in test_putLjava_lang_ObjectLjava_lang_Object()
456 assertNull(objmap.remove(new MyKey())); in test_putLjava_lang_ObjectLjava_lang_Object()
[all …]
DSortedMapTestBase.java104 j.remove(); in testKeySet()
105 i.remove(); in testKeySet()
146 assertEquals(ref.remove(key), map.remove(key)); in testRemove()
157 assertEquals(ref.remove(key), map.remove(key)); in testRemove0()
176 j.remove(); in testValues()
177 i.remove(); in testValues()
273 map.remove("one"); in testIsEmpty2()
342 j.remove(); in compareIterators()
343 i.remove(); in compareIterators()
365 map2.remove(map2.lastKey()); in testClone()
DEnumSetTest.java149 iterator.remove(); in testRemoveIteratorRemoveFromHugeEnumSet()
155 iterator.remove(); in testRemoveIteratorRemoveFromHugeEnumSet()
398 anotherSetWithSubclass.remove(EnumWithInnerClass.a); in test_addAll_LCollection()
468 anotherHugeSetWithSubclass.remove(HugeEnumWithInnerClass.a); in test_addAll_LCollection()
484 boolean result = set.remove(null); in test_remove_LOject()
487 result = set.remove(EnumFoo.a); in test_remove_LOject()
489 result = set.remove(EnumFoo.a); in test_remove_LOject()
494 result = set.remove(EnumWithInnerClass.a); in test_remove_LOject()
496 result = set.remove(EnumWithInnerClass.f); in test_remove_LOject()
502 result = hugeSet.remove(null); in test_remove_LOject()
[all …]
DListResourceBundleTest.java66 assertTrue(result.remove(null)); in test_handleGetObjectLjava_lang_String()
67 assertTrue(result.remove(null)); in test_handleGetObjectLjava_lang_String()
68 assertTrue(result.remove(null)); in test_handleGetObjectLjava_lang_String()
DIdentityHashMapTest.java265 it.remove(); in test_keySet()
267 it.remove(); in test_keySet()
270 list.remove(remove1); in test_keySet()
271 list.remove(remove2); in test_keySet()
288 it2.remove(); in test_keySet()
360 Integer x = ((Integer) hm.remove(objArray2[9])); in test_removeLjava_lang_Object()
365 .remove("LCLCLC")); in test_removeLjava_lang_Object()
370 m.remove(objArray[0])); in test_removeLjava_lang_Object()
371 assertEquals("Failed with null key", "test", m.remove(null)); in test_removeLjava_lang_Object()
375 hashMap.remove("absent"); in test_removeLjava_lang_Object()
[all …]
/libcore/luni/src/main/java/java/util/
DAbstractCollection.java103 it.remove(); in clear()
224 public boolean remove(Object object) { in remove() method in AbstractCollection
229 it.remove(); in remove()
236 it.remove(); in remove()
278 it.remove(); in removeAll()
319 it.remove(); in retainAll()
/libcore/luni/src/main/java/java/net/
DCookieStoreImpl.java45 cookies.remove(cookie); in add()
74 i.remove(); // remove expired cookies in get()
94 i.remove(); // remove expired cookies in get()
110 i.remove(); // remove expired cookies in getCookies()
121 result.remove(null); // sigh in getURIs()
125 public synchronized boolean remove(URI uri, HttpCookie cookie) { in remove() method in CookieStoreImpl
132 return cookies.remove(cookie); in remove()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentLinkedQueueTest.java97 q.remove(); in testEmpty()
98 q.remove(); in testEmpty()
109 q.remove(); in testSize()
269 assertEquals(i, q.remove()); in testRemove()
272 q.remove(); in testRemove()
284 assertTrue(q.remove(i)); in testRemoveElement()
290 assertTrue(q.remove(i)); in testRemoveElement()
292 assertFalse(q.remove(i+1)); in testRemoveElement()
353 p.remove(); in testRetainAll()
367 Integer I = (Integer)(p.remove()); in testRemoveAll()
[all …]
DPriorityQueueTest.java131 q.remove(); in testEmpty()
132 q.remove(); in testEmpty()
143 q.remove(); in testSize()
305 assertEquals(i, q.remove()); in testRemove()
308 q.remove(); in testRemove()
320 assertTrue(q.remove(i)); in testRemoveElement()
326 assertTrue(q.remove(i)); in testRemoveElement()
328 assertFalse(q.remove(i+1)); in testRemoveElement()
389 p.remove(); in testRetainAll()
403 Integer I = (Integer)(p.remove()); in testRemoveAll()
[all …]
DConcurrentLinkedDequeTest.java99 q.remove(); in testEmpty()
100 q.remove(); in testEmpty()
111 q.remove(); in testSize()
418 assertEquals(i, q.remove()); in testRemove()
421 q.remove(); in testRemove()
433 assertTrue(q.remove(i)); in testRemoveElement()
439 assertTrue(q.remove(i)); in testRemoveElement()
441 assertFalse(q.remove(i+1)); in testRemoveElement()
621 p.remove(); in testRetainAll()
635 Integer I = (Integer)(p.remove()); in testRemoveAll()
[all …]
/libcore/luni/src/main/java/libcore/util/
DCollectionUtils.java50 delegate.remove(); in dereferenceIterable()
70 public void remove() { in dereferenceIterable() method
74 delegate.remove(); in dereferenceIterable()
/libcore/luni/src/main/java/java/lang/ref/
DReferenceQueue.java71 public Reference<? extends T> remove() throws InterruptedException { in remove() method in ReferenceQueue
72 return remove(0L); in remove()
88 public synchronized Reference<? extends T> remove(long timeoutMillis) in remove() method in ReferenceQueue

12345678910