Searched refs:remove (Results 126 - 150 of 313) sorted by relevance

1234567891011>>

/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DDdmServer.java73 return mHandlerMap.remove(type);
/libcore/jsr166-tests/src/test/java/jsr166/
H A DBlockingQueueTest.java340 * remove(x) removes x and returns true if present
348 assertFalse(q.remove(makeElement(99)));
355 assertEquals((pass == 0), q.remove(elts[i]));
367 assertTrue(q.remove(elts[i]));
369 assertFalse(q.remove(elts[i + 1]));
H A DCopyOnWriteArrayListTest.java291 * iterator.remove throws UnsupportedOperationException
298 it.remove();
363 * remove(int) removes and returns the object at the given index
369 assertEquals(i, full.remove(i));
376 * remove(Object) removes the object if found and returns true
382 assertFalse(full.remove(new Integer(-42)));
383 assertTrue(full.remove(new Integer(i)));
388 assertTrue(x.remove(new Integer(6)));
390 assertTrue(x.remove(new Integer(4)));
392 assertTrue(x.remove(ne
[all...]
H A DLinkedBlockingQueueTest.java155 * remainingCapacity decreases on add, increases on remove
162 assertEquals(i, q.remove());
500 * remove removes next element, or throws NSEE if empty
505 assertEquals(i, q.remove());
508 q.remove();
514 * An add following remove(x) succeeds
520 assertTrue(q.remove(new Integer(1)));
521 assertTrue(q.remove(new Integer(2)));
583 p.remove();
597 Integer x = (Integer)(p.remove());
[all...]
H A DLinkedTransferQueueTest.java140 assertEquals(i, q.remove());
369 * remove removes next element, or throws NoSuchElementException if empty
374 assertEquals(i, (int) q.remove());
377 q.remove();
384 * An add following remove(x) succeeds
390 assertTrue(q.remove(one));
391 assertTrue(q.remove(two));
454 p.remove();
469 assertFalse(q.contains(p.remove()));
536 * iterator.remove() remove
[all...]
H A DTreeMapTest.java349 * remove removes the correct key-value pair from the map
353 map.remove(five);
518 map.remove(four);
545 map.remove(two);
602 * remove(null) throws NPE for nonempty map
608 c.remove(null);
657 j.remove();
663 assertEquals("C", sm.remove(three));
691 j.remove();
696 assertSame(sm.remove(thre
884 void remove(NavigableMap<Integer, Integer> map, int key) { method in class:TreeMapTest
[all...]
H A DConcurrentHashMapTest.java485 * remove removes the correct key-value pair from the map
489 map.remove(five);
495 * remove(key,value) removes only if pair present
499 map.remove(five, "E");
502 map.remove(four, "A");
744 * remove(null) throws NPE
750 c.remove(null);
756 * remove(null, x) throws NPE
762 c.remove(null, "whatever");
768 * remove(
[all...]
H A DArrayBlockingQueueTest.java166 * remainingCapacity decreases on add, increases on remove
173 assertEquals(i, q.remove());
511 * remove removes next element, or throws NSEE if empty
516 assertEquals(i, q.remove());
519 q.remove();
581 p.remove();
595 Integer x = (Integer)(p.remove());
727 * iterator.remove removes current element
737 it.remove();
772 q.remove();
[all...]
H A DDelayQueueTest.java214 q.remove();
215 q.remove();
227 assertTrue(q.remove() instanceof PDelay);
494 * remove removes next element, or throws NSEE if empty
499 assertEquals(new PDelay(i), q.remove());
502 q.remove();
565 p.remove();
579 PDelay x = (PDelay)(p.remove());
606 assertSame(ints[i], q.remove());
643 * iterator.remove remove
[all...]
H A DLinkedBlockingDequeTest.java265 * remove removes next element, or throws NSEE if empty
270 assertEquals(i, q.remove());
273 q.remove();
411 * remainingCapacity decreases on add, increases on remove
418 assertEquals(i, q.remove());
1473 p.remove();
1487 Integer x = (Integer)(p.remove());
1512 assertSame(ints[i], q.remove());
1555 * iterator.remove removes current element
1565 it.remove();
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DExpiringCache.java112 map.remove(key);
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DLinuxWatchService.java52 * mechanism. Requests to add or remove a watch, or close the watch service,
128 void invalidate(boolean remove) { argument
129 if (remove) {
299 wdToKey.remove(key.descriptor());
454 wdToKey.remove(wd);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DHashSetTest.java186 * java.util.HashSet#remove(java.lang.Object)
189 // Test for method boolean java.util.HashSet.remove(java.lang.Object)
191 hs.remove(new Integer(98));
192 assertTrue("Failed to remove element", !hs.contains(new Integer(98)));
197 assertTrue("Cannot handle null", s.remove(null));
198 assertFalse(hs.remove(new Integer(-98)));
H A DLinkedHashMapTest.java248 s1.remove(m2.entrySet().iterator().next());
275 it.remove();
277 it.remove();
280 list.remove(remove1);
281 list.remove(remove2);
298 it2.remove();
324 values.remove(new Integer(0));
326 "Removing from the values collection should remove from the original map",
332 * java.util.LinkedHashMap#remove(java.lang.Object)
336 // java.util.LinkedHashMap.remove(jav
[all...]
/libcore/ojluni/src/main/java/java/lang/reflect/
H A DWeakCache.java232 if (value == null) { // remove us on failure
233 valuesMap.remove(subKey, this);
370 ConcurrentMap<?, ?> valuesMap = map.remove(this);
371 // remove also from reverseMap if needed
374 reverseMap.remove(cacheValue);
/libcore/ojluni/src/main/java/java/util/
H A DIdentityHashMap.java103 * through the iterator's own <tt>remove</tt> method, the iterator
165 * in order to avoid infinite loops in get(), put(), remove()
518 public V remove(Object key) { method in class:IdentityHashMap
715 int lastReturnedIndex = -1; // to allow remove()
744 public void remove() { method in class:IdentityHashMap.IdentityHashMapIterator
777 // If traversing a copy, remove in real table.
780 IdentityHashMap.this.remove(key);
846 public void remove() { method in class:IdentityHashMap.EntryIterator
849 super.remove();
933 * corresponding mapping from the map, via the <tt>Iterator.remove</t
984 public boolean remove(Object o) { method in class:IdentityHashMap.KeySet
1090 public boolean remove(Object o) { method in class:IdentityHashMap.Values
1194 public boolean remove(Object o) { method in class:IdentityHashMap.EntrySet
[all...]
H A DLinkedList.java57 * any way except through the Iterator's own {@code remove} or
355 public boolean remove(Object o) { method in class:LinkedList
524 public E remove(int index) { method in class:LinkedList
645 * Retrieves, but does not remove, the head (first element) of this list.
656 * Retrieves, but does not remove, the head (first element) of this list.
684 public E remove() { method in class:LinkedList
725 * Retrieves, but does not remove, the first element of this list,
738 * Retrieves, but does not remove, the last element of this list,
814 return remove(o);
852 * through the list-iterator's own {@code remove} o
920 public void remove() { method in class:LinkedList.ListItr
1000 public void remove() { method in class:LinkedList.DescendingIterator
[all...]
H A DCollections.java1085 public void remove() {
1099 public boolean remove(Object o) { method in class:Collections.UnmodifiableCollection
1358 public E remove(int index) { method in class:Collections.UnmodifiableList
1390 public void remove() {
1501 public V remove(Object key) { method in class:Collections.UnmodifiableMap
1561 public boolean remove(Object key, Object value) { method in class:Collections.UnmodifiableMap
1705 public void remove() {
2081 public boolean remove(Object o) { method in class:Collections.SynchronizedCollection
2082 synchronized (mutex) {return c.remove(o);}
2469 public E remove(in method in class:Collections.SynchronizedList
2634 public V remove(Object key) { method in class:Collections.SynchronizedMap
2702 public boolean remove(Object key, Object value) { method in class:Collections.SynchronizedMap
3101 public boolean remove(Object o) { return c.remove(o); } method in class:Collections.CheckedCollection
3231 public E remove() {return queue.remove();} method in class:Collections.CheckedQueue
3476 public E remove(int index) { return list.remove(index); } method in class:Collections.CheckedList
3656 public V remove(Object key) { return m.remove(key); } method in class:Collections.CheckedMap
3716 public boolean remove(Object key, Object value) { method in class:Collections.CheckedMap
3876 public boolean remove(Object o) { method in class:Collections.CheckedMap.CheckedEntrySet
4238 public void remove() { throw new IllegalStateException(); } method in class:Collections.EmptyIterator
4660 public boolean remove(Object key, Object value) { method in class:Collections.EmptyMap
4972 public boolean remove(Object key, Object value) { method in class:Collections.SingletonMap
5508 public boolean remove(Object o) { return m.remove(o) != null; } method in class:Collections.SetFromMap
5581 public E remove() { return q.removeFirst(); } method in class:Collections.AsLIFOQueue
5588 public boolean remove(Object o) { return q.remove(o); } method in class:Collections.AsLIFOQueue
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentSkipListSet.java63 * cost for the {@code contains}, {@code add}, and {@code remove}
260 public boolean remove(Object o) { method in class:ConcurrentSkipListSet
261 return m.remove(o, Boolean.TRUE);
338 if (remove(e))
H A DScheduledThreadPoolExecutor.java149 * leads to overrides of shutdown methods to remove and cancel
171 * True if ScheduledFutureTask.cancel should remove from queue.
286 // been removed; else we recheck under lock in remove()
289 remove(this);
327 * is being added, cancel and remove it if required by state and
339 remove(task))
355 if (!canRunInCurrentRunState(true) && remove(task))
385 t.isCancelled()) { // also remove if already cancelled
386 if (q.remove(t))
752 * @param value if {@code true}, remove o
994 public boolean remove(Object x) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1314 public void remove() { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue.Itr
[all...]
H A DCopyOnWriteArrayList.java75 * operations on iterators themselves ({@code remove}, {@code set}, and
477 public E remove(int index) { method in class:CopyOnWriteArrayList
508 public boolean remove(Object o) { method in class:CopyOnWriteArrayList
511 return (index < 0) ? false : remove(o, snapshot, index);
515 * A version of remove(Object) using the strong hint that given
518 private boolean remove(Object o, Object[] snapshot, int index) { method in class:CopyOnWriteArrayList
653 * @see #remove(Object)
692 * @see #remove(Object)
1006 * {@code remove} method.
1020 * {@code remove}, {
1110 public void remove() { method in class:CopyOnWriteArrayList.COWIterator
1263 public E remove(int index) { method in class:CopyOnWriteArrayList.COWSubList
1274 public boolean remove(Object o) { method in class:CopyOnWriteArrayList.COWSubList
1524 public void remove() { method in class:CopyOnWriteArrayList.COWSubListIterator
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_ListTest.java68 list.remove(50);
69 assertTrue("ListTest - a) remove with index failed--did not remove",
72 "ListTest - b) remove with index failed--did not move following elements",
75 "ListTest - c) remove with index failed--affected previous elements",
112 assertEquals("ListTest - Clearing the sublist did not remove the appropriate elements from the original list",
204 li.remove();
205 assertTrue("list iterator remove(), size()",
207 assertEquals("list iterator remove(), nextIndex()", 2, li.nextIndex());
208 assertEquals("list iterator remove(), previousInde
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DThreadGroup.java809 parent.remove(this);
841 private void remove(ThreadGroup g) { method in class:ThreadGroup
935 remove(t);
953 remove(t);
973 private void remove(Thread t) { method in class:ThreadGroup
/libcore/json/src/test/java/libcore/org/json/
H A DJSONArrayTest.java550 assertEquals(null, a.remove(-1));
551 assertEquals(null, a.remove(0));
554 assertEquals(null, a.remove(-1));
555 assertEquals(null, a.remove(1));
556 assertEquals("hello", a.remove(0));
557 assertEquals(null, a.remove(0));
/libcore/luni/src/test/java/libcore/java/util/
H A DTreeMapTest.java153 iterator.remove();
170 iterator.remove();
172 iterator.remove();
183 assertTrue(map.entrySet().remove(new SimpleEntry<String, String>("abc", "a")));
263 map.remove(5);
282 map.remove(5);

Completed in 760 milliseconds

1234567891011>>