Home
last modified time | relevance | path

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

12345678910>>...17

/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java456 return dateEpochDay(fieldValues.remove(EPOCH_DAY)); in resolveDate()
499 Long pMonth = fieldValues.remove(PROLEPTIC_MONTH); in resolveProlepticMonth()
514 Long yoeLong = fieldValues.remove(YEAR_OF_ERA); in resolveYearOfEra()
516 Long eraLong = fieldValues.remove(ERA); in resolveYearOfEra()
552 int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); in resolveYMD()
554 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); in resolveYMD()
555 long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); in resolveYMD()
558 …int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR… in resolveYMD()
560 int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); in resolveYMD()
572 int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); in resolveYD()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumMapTest.java297 enumSizeMap.remove(Size.Small); in test_clone()
369 .remove(mockEntry)); in test_entrySet()
373 .remove(mockEntry)); in test_entrySet()
376 .remove(mockEntry)); in test_entrySet()
378 .remove(new Integer(1))); in test_entrySet()
386 enumSizeMap.remove(Size.Big); in test_entrySet()
449 .remove(integer)); in test_entrySet()
451 .remove(entry)); in test_entrySet()
470 enumSizeMap.remove(Size.Big); in test_entrySet()
479 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.java174 alist.remove(size); in test_addILjava_lang_Object_2()
257 list1.remove(0); in test_addAllILjava_util_Collection_2()
287 list1.remove(location); in test_addAllILjava_util_Collection_2()
414 originalList.remove(0); in test_addAllLjava_util_Collection()
415 originalList.remove(0); in test_addAllLjava_util_Collection()
551 al.remove(0); in test_ensureCapacityI()
683 alist.remove(10); in test_removeI()
687 alist.remove(999); in test_removeI()
697 alist.remove(50); in test_removeI()
698 alist.remove(25); in test_removeI()
[all …]
DEnumSetTest.java150 iterator.remove(); in testRemoveIteratorRemoveFromHugeEnumSet()
156 iterator.remove(); in testRemoveIteratorRemoveFromHugeEnumSet()
398 anotherSetWithSubclass.remove(EnumWithInnerClass.a); in test_addAll_LCollection()
468 anotherHugeSetWithSubclass.remove(HugeEnumWithInnerClass.a); in test_addAll_LCollection()
485 boolean result = set.remove(null); in test_remove_LOject()
488 result = set.remove(EnumFoo.a); in test_remove_LOject()
490 result = set.remove(EnumFoo.a); in test_remove_LOject()
495 result = set.remove(EnumWithInnerClass.a); in test_remove_LOject()
497 result = set.remove(EnumWithInnerClass.f); in test_remove_LOject()
503 result = hugeSet.remove(null); in test_remove_LOject()
[all …]
DArrayDequeTest.java441 assertEquals(testObjOne, testQue.remove()); in test_remove()
443 assertEquals(testObjTwo, testQue.remove()); in test_remove()
444 assertEquals(testObjThree, testQue.remove()); in test_remove()
447 testQue.remove(); in test_remove()
566 testQue.remove(); in test_size()
567 testQue.remove(); in test_size()
585 testQue.remove(); in test_isEmpty()
586 testQue.remove(); in test_isEmpty()
605 result.remove(); in test_iterator()
624 result.remove(); in test_iterator()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DReferenceQueueTest.java115 assertTrue("Remove failed.", ((Boolean) rq.remove().get()) in test_remove()
128 rq.remove(); in test_remove()
158 rq.remove((long) 1)); in test_removeJ()
161 Reference ret = rq.remove(0L); in test_removeJ()
182 Reference result = rq.remove(1L); in test_removeJ()
184 result = rq.remove(1L); in test_removeJ()
186 result = rq.remove(1L); in test_removeJ()
203 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()
60 assertFalse(integerQueue.remove(111)); in test_remove_Ljava_lang_Object_not_exists()
61 assertFalse(integerQueue.remove(null)); in test_remove_Ljava_lang_Object_not_exists()
62 assertFalse(integerQueue.remove("")); in test_remove_Ljava_lang_Object_not_exists()
117 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/ojluni/src/main/java/java/time/format/
DParsed.java343 Instant instant = Instant.ofEpochSecond(fieldValues.remove(INSTANT_SECONDS)); in resolveInstantFields0()
372 long ch = fieldValues.remove(CLOCK_HOUR_OF_DAY); in resolveTimeFields()
380 long ch = fieldValues.remove(CLOCK_HOUR_OF_AMPM); in resolveTimeFields()
387 long ap = fieldValues.remove(AMPM_OF_DAY); in resolveTimeFields()
388 long hap = fieldValues.remove(HOUR_OF_AMPM); in resolveTimeFields()
398 long nod = fieldValues.remove(NANO_OF_DAY); in resolveTimeFields()
408 long cod = fieldValues.remove(MICRO_OF_DAY); in resolveTimeFields()
416 long lod = fieldValues.remove(MILLI_OF_DAY); in resolveTimeFields()
424 long sod = fieldValues.remove(SECOND_OF_DAY); in resolveTimeFields()
433 long mod = fieldValues.remove(MINUTE_OF_DAY); in resolveTimeFields()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DVM.java286 String s = (String)props.remove("sun.nio.MaxDirectMemorySize"); in saveAndRemoveProperties()
299 s = (String)props.remove("sun.nio.PageAlignDirectMemory"); in saveAndRemoveProperties()
313 props.remove("java.lang.Integer.IntegerCache.high"); in saveAndRemoveProperties()
316 props.remove("sun.zip.disableMemoryMapping"); in saveAndRemoveProperties()
319 props.remove("sun.java.launcher.diag"); in saveAndRemoveProperties()
322 props.remove("sun.cds.enableSharedLookupCache"); in saveAndRemoveProperties()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java33 referenceQueue.remove(-1); in testRemoveWithInvalidTimeout()
55 referenceQueue.remove(Long.MAX_VALUE); in testRemoveWithVeryLargeTimeout()
71 referenceQueue.remove(timeoutMsec); in testRemoveWithSpuriousNotify()
80 assertNotNull(referenceQueue.remove()); in testRemoveWithImmediateResultAndNoTimeout()
86 assertNotNull(referenceQueue.remove(1000)); in testRemoveWithImmediateResultAndTimeout()
94 Object result = referenceQueue.remove(); in testRemoveWithDelayedResultAndNoTimeout()
106 Object result = referenceQueue.remove(1000); in testRemoveWithDelayedResultAndTimeout()
/libcore/ojluni/src/main/java/java/lang/
DProcessEnvironment.java245 public String remove(Object key) { in remove() method in ProcessEnvironment.StringEnvironment
246 return toString(m.remove(Variable.valueOfQueryOnly(key))); in remove()
335 public void remove() {i.remove();} in iterator() method
354 public boolean remove(Object o) { return s.remove(vvEntry(o)); }
375 public void remove() {i.remove();}
381 public boolean remove(Object o) {
382 return c.remove(Value.valueOfQueryOnly(o));
402 public void remove() { i.remove();}
408 public boolean remove(Object o) {
409 return s.remove(Variable.valueOfQueryOnly(o));
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentLinkedQueueTest.java108 q.remove(); in testEmpty()
109 q.remove(); in testEmpty()
120 q.remove(); in testSize()
279 assertEquals(i, q.remove()); in testRemove()
282 q.remove(); in testRemove()
294 assertTrue(q.remove(i)); in testRemoveElement()
300 assertTrue(q.remove(i)); in testRemoveElement()
302 assertFalse(q.remove(i + 1)); in testRemoveElement()
363 p.remove(); in testRetainAll()
377 Integer x = (Integer)(p.remove()); in testRemoveAll()
[all …]
DConcurrentLinkedDequeTest.java111 q.remove(); in testEmpty()
112 q.remove(); in testEmpty()
123 q.remove(); in testSize()
429 assertEquals(i, q.remove()); in testRemove()
432 q.remove(); in testRemove()
444 assertTrue(q.remove(i)); in testRemoveElement()
450 assertTrue(q.remove(i)); in testRemoveElement()
452 assertFalse(q.remove(i + 1)); in testRemoveElement()
632 p.remove(); in testRetainAll()
646 Integer x = (Integer)(p.remove()); in testRemoveAll()
[all …]
DPriorityQueueTest.java141 q.remove(); in testEmpty()
142 q.remove(); in testEmpty()
153 q.remove(); in testSize()
313 assertEquals(i, q.remove()); in testRemove()
316 q.remove(); in testRemove()
328 assertTrue(q.remove(i)); in testRemoveElement()
334 assertTrue(q.remove(i)); in testRemoveElement()
336 assertFalse(q.remove(i + 1)); in testRemoveElement()
397 p.remove(); in testRetainAll()
411 Integer x = (Integer)(p.remove()); in testRemoveAll()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentLinkedQueueTest.java141 q.remove(); in testEmpty()
142 q.remove(); in testEmpty()
153 q.remove(); in testSize()
312 assertEquals(i, q.remove()); in testRemove()
315 q.remove(); in testRemove()
327 assertTrue(q.remove(i)); in testRemoveElement()
333 assertTrue(q.remove(i)); in testRemoveElement()
335 assertFalse(q.remove(i + 1)); in testRemoveElement()
396 p.remove(); in testRetainAll()
410 Integer x = (Integer)(p.remove()); in testRemoveAll()
[all …]
DConcurrentLinkedDequeTest.java145 q.remove(); in testEmpty()
146 q.remove(); in testEmpty()
157 q.remove(); in testSize()
463 assertEquals(i, q.remove()); in testRemove()
466 q.remove(); in testRemove()
478 assertTrue(q.remove(i)); in testRemoveElement()
484 assertTrue(q.remove(i)); in testRemoveElement()
486 assertFalse(q.remove(i + 1)); in testRemoveElement()
666 p.remove(); in testRetainAll()
680 Integer x = (Integer)(p.remove()); in testRemoveAll()
[all …]
/libcore/support/src/test/java/libcore/java/security/
DStandardNames.java104 assertTrue(algorithm, algorithms.remove(algorithm.toUpperCase(Locale.ROOT))); in unprovide()
106 assertNotNull(PROVIDER_ALGORITHMS.remove(type)); in unprovide()
368 PROVIDER_ALGORITHMS.remove("Configuration");
369 PROVIDER_ALGORITHMS.remove("GssApiMechanism");
370 PROVIDER_ALGORITHMS.remove("KeyInfoFactory");
371 PROVIDER_ALGORITHMS.remove("Policy");
372 PROVIDER_ALGORITHMS.remove("SaslClientFactory");
373 PROVIDER_ALGORITHMS.remove("SaslServerFactory");
374 PROVIDER_ALGORITHMS.remove("TerminalFactory");
375 PROVIDER_ALGORITHMS.remove("TransformService");
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileChannelImpl.java201 threads.remove(ti); in read()
229 threads.remove(ti); in read()
253 threads.remove(ti); in write()
281 threads.remove(ti); in write()
313 threads.remove(ti); in position()
341 threads.remove(ti); in position()
363 threads.remove(ti); in size()
420 threads.remove(ti); in truncate()
440 threads.remove(ti); in force()
495 threads.remove(ti); in transferToDirectlyInternal()
[all …]
/libcore/ojluni/src/main/java/java/util/
DAbstractCollection.java281 public boolean remove(Object o) { in remove() method in AbstractCollection
286 it.remove(); in remove()
293 it.remove(); in remove()
376 it.remove(); in removeAll()
410 it.remove(); in retainAll()
436 it.remove(); in clear()

12345678910>>...17