Home
last modified time | relevance | path

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

12345678

/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/luni/src/test/java/tests/api/java/lang/ref/
DReferenceQueueTest.java117 assertTrue("Remove failed.", ((Boolean) rq.remove().get()) in test_remove()
130 rq.remove(); in test_remove()
160 rq.remove((long) 1)); in test_removeJ()
163 Reference ret = rq.remove(0L); in test_removeJ()
184 Reference result = rq.remove(1L); in test_removeJ()
186 result = rq.remove(1L); in test_removeJ()
188 result = rq.remove(1L); in test_removeJ()
202 rq.remove(1000L); in test_removeJ()
225 rq.remove(-1); in test_removeJ()
241 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()
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()
DOldAbstractSetTest.java42 public void remove() { in iterator() method in OldAbstractSetTest.Mock_AbstractSet
78 public void remove() {
/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/luni/src/test/java/tests/api/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 …]
DArrayListTest.java249 originalList.remove(0); in test_addAllLjava_util_Collection()
250 originalList.remove(0); in test_addAllLjava_util_Collection()
349 al.remove(0); in test_ensureCapacityI()
421 alist.remove(10); in test_removeI()
425 alist.remove(999); in test_removeI()
433 alist.remove(50); in test_removeI()
434 alist.remove(25); in test_removeI()
439 assertTrue("Removed wrong element 1", list.remove(0) == "a"); in test_removeI()
440 assertTrue("Removed wrong element 2", list.remove(4) == "f"); in test_removeI()
449 l.remove(0); in test_removeI()
[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()
DHashtableTest.java409 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 …]
DListResourceBundleTest.java68 assertTrue(result.remove(null)); in test_handleGetObjectLjava_lang_String()
69 assertTrue(result.remove(null)); in test_handleGetObjectLjava_lang_String()
70 assertTrue(result.remove(null)); in test_handleGetObjectLjava_lang_String()
DAbstractMapTest.java108 assertSame("HashMap(0)", map1.remove("key"), value); in test_removeLjava_lang_Object()
112 assertSame("IdentityHashMap", map4.remove(key), value); in test_removeLjava_lang_Object()
116 assertSame("LinkedHashMap", map5.remove(key), value); in test_removeLjava_lang_Object()
125 assertSame("TreeMap", map6.remove(key), value); in test_removeLjava_lang_Object()
129 assertSame("WeakHashMap", map7.remove(key), value); in test_removeLjava_lang_Object()
133 Object valueOut = aSpecialMap.remove(specialKey); in test_removeLjava_lang_Object()
241 public void remove() { in entrySet() method
304 assertFalse(view.remove(null));
DAbstractQueueTest.java58 public void remove() { in iterator() method
263 queue.remove(); in test_remove_null()
279 assertEquals('a', queue.remove()); in test_remove()
280 assertEquals('b', queue.remove()); in test_remove()
282 queue.remove(); in test_remove()
DHashMapTest.java241 assertTrue(hm.keySet().remove("A")); in test_removeFromViews()
245 assertTrue(hm.entrySet().remove(m2.entrySet().iterator().next())); in test_removeFromViews()
311 it.remove(); in test_keySet()
313 it.remove(); in test_keySet()
316 list.remove(remove1); in test_keySet()
317 list.remove(remove2); in test_keySet()
334 it2.remove(); in test_keySet()
432 Integer x = ((Integer) hm.remove(y.toString())); in test_removeLjava_lang_Object()
437 .remove("LCLCLC")); in test_removeLjava_lang_Object()
442 m.remove(new Integer(0))); in test_removeLjava_lang_Object()
[all …]
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 …]
/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()
DDeque.java410 E remove(); in remove() method
506 boolean remove(Object o); in remove() method
DAbstractSet.java103 it.remove(); in removeAll()
110 result = remove(it.next()) || result; in removeAll()
DList.java249 public E remove(int location); in remove() method
261 public boolean remove(Object object); in remove() method
/libcore/support/src/test/java/libcore/java/security/
DStandardNames.java100 assertTrue(algorithm, algorithms.remove(algorithm.toUpperCase())); in unprovide()
102 assertNotNull(PROVIDER_ALGORITHMS.remove(type)); in unprovide()
281 PROVIDER_ALGORITHMS.remove("Configuration");
282 PROVIDER_ALGORITHMS.remove("GssApiMechanism");
283 PROVIDER_ALGORITHMS.remove("KeyInfoFactory");
284 PROVIDER_ALGORITHMS.remove("Policy");
285 PROVIDER_ALGORITHMS.remove("SaslClientFactory");
286 PROVIDER_ALGORITHMS.remove("SaslServerFactory");
287 PROVIDER_ALGORITHMS.remove("TerminalFactory");
288 PROVIDER_ALGORITHMS.remove("TransformService");
[all …]
/libcore/luni/src/main/java/java/lang/ref/
DReferenceQueue.java72 public Reference<? extends T> remove() throws InterruptedException { in remove() method in ReferenceQueue
73 return remove(0L); in remove()
89 public synchronized Reference<? extends T> remove(long timeoutMillis) in remove() method in ReferenceQueue
/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/org/xml/sax/helpers/
DAttributeListImpl.java163 names.remove(i); in removeAttribute()
164 types.remove(i); in removeAttribute()
165 values.remove(i); in removeAttribute()

12345678