Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DOldTreeSetTest.java31 TreeSet ts; field in OldTreeSetTest
74 ts.add(new Integer(-8)); in test_addLjava_lang_Object()
75 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); in test_addLjava_lang_Object()
76 ts.add(objArray[0]); in test_addLjava_lang_Object()
77 assertTrue("Added existing element", ts.size() == objArray.length + 1); in test_addLjava_lang_Object()
84 ts.add("Wrong element"); in test_addLjava_lang_Object()
95 s.addAll(ts); in test_addAllLjava_util_Collection()
96 assertTrue("Incorrect size after add", s.size() == ts.size()); in test_addAllLjava_util_Collection()
97 Iterator i = ts.iterator(); in test_addAllLjava_util_Collection()
123 ts.first() == objArray[0]); in test_first()
[all …]
DOldCollectionsTest.java838 TreeSet ts = new TreeSet<Integer>(); in test_checkedSortedSetLjava_util_SortedSetLjava_lang_Class() local
840 SortedSet ss = Collections.checkedSortedSet(ts, Integer.class); in test_checkedSortedSetLjava_util_SortedSetLjava_lang_Class()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeSetTest.java46 TreeSet ts; field in TreeSetTest
114 ts.add(new Integer(-8)); in test_addLjava_lang_Object()
115 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); in test_addLjava_lang_Object()
116 ts.add(objArray[0]); in test_addLjava_lang_Object()
117 assertTrue("Added existing element", ts.size() == objArray.length + 1); in test_addLjava_lang_Object()
128 s.addAll(ts); in test_addAllLjava_util_Collection()
129 assertTrue("Incorrect size after add", s.size() == ts.size()); in test_addAllLjava_util_Collection()
130 Iterator i = ts.iterator(); in test_addAllLjava_util_Collection()
141 ts.clear(); in test_clear()
142 assertEquals("Returned non-zero size after clear", 0, ts.size()); in test_clear()
[all …]
DCollectionsTest.java400 TreeSet ts = new TreeSet(); in test_enumerationLjava_util_Collection() local
401 ts.addAll(s); in test_enumerationLjava_util_Collection()
402 Enumeration e = Collections.enumeration(ts); in test_enumerationLjava_util_Collection()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DCodeSignerTest.java41 private Timestamp ts = new Timestamp(now, cpath); field in CodeSignerTest
48 new CodeSigner(null, ts); in testCodeSigner_00()
72 CodeSigner cs = new CodeSigner(cpath, ts); in testCodeSigner_02()
84 CodeSigner one = new CodeSigner(cpath, ts); in testEqualsObject()
85 CodeSigner two = new CodeSigner(cpath, ts); in testEqualsObject()
116 assertSame(new CodeSigner(cpath, ts).getTimestamp(), ts); in testGetTimestamp()
124 assertTrue(new CodeSigner(cpath, ts).toString().contains("")); in testToString()
127 assertTrue(new CodeSigner(cpath, ts).toString().contains(ts.toString())); in testToString()
134 CodeSigner cs1 = new CodeSigner(cpath, ts); in testHashCode()
135 CodeSigner cs2 = new CodeSigner(cpath, ts); in testHashCode()
/libcore/ojluni/src/main/java/java/sql/
DTimestamp.java400 public boolean equals(Timestamp ts) { in equals() argument
401 if (super.equals(ts)) { in equals()
402 if (nanos == ts.nanos) { in equals()
430 public boolean equals(java.lang.Object ts) { in equals() argument
431 if (ts instanceof Timestamp) { in equals()
432 return this.equals((Timestamp)ts); in equals()
446 public boolean before(Timestamp ts) { in before() argument
447 return compareTo(ts) < 0; in before()
458 public boolean after(Timestamp ts) { in after() argument
459 return compareTo(ts) > 0; in after()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadStateTest.java49 for(Thread.State ts:thStates) { in test_values()
50 assertTrue(isContain(ts)); in test_values()
55 for(Thread.State ts:exStates) { in isContain()
56 if(ts.equals(state)) return true; in isContain()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodTypeForm.java420 static Class<?>[] canonicalizeAll(Class<?>[] ts, int how) { in canonicalizeAll() argument
422 for (int imax = ts.length, i = 0; i < imax; i++) { in canonicalizeAll()
423 Class<?> c = canonicalize(ts[i], how); in canonicalizeAll()
428 cs = ts.clone(); in canonicalizeAll()
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java257 String ts = this.scrt.get(); in equals() local
259 if (ts != null && os != null && in equals()
260 LocaleUtils.caseIgnoreMatch(os, ts)) { in equals()
/libcore/ojluni/src/main/java/java/util/
DComparableTimSort.java198 ComparableTimSort ts = new ComparableTimSort(a, work, workBase, workLen); in sort() local
212 ts.pushRun(lo, runLen); in sort()
213 ts.mergeCollapse(); in sort()
222 ts.mergeForceCollapse(); in sort()
223 assert ts.stackSize == 1; in sort()
DTimSort.java230 TimSort<T> ts = new TimSort<>(a, c, work, workBase, workLen); in sort() local
244 ts.pushRun(lo, runLen); in sort()
245 ts.mergeCollapse(); in sort()
254 ts.mergeForceCollapse(); in sort()
255 assert ts.stackSize == 1; in sort()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DOpTestCase.java334 for (BaseStreamTestScenario ts : tests) { in without()
335 if (ts.getShape() == shape) { in without()
336 testSet.remove(ts); in without()
354 for (BaseStreamTestScenario ts : tests) { in with()
355 if (ts.getShape() == shape) { in with()
356 testSet.add(ts); in with()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DOpTestCase.java333 for (BaseStreamTestScenario ts : tests) { in without()
334 if (ts.getShape() == shape) { in without()
335 testSet.remove(ts); in without()
353 for (BaseStreamTestScenario ts : tests) { in with()
354 if (ts.getShape() == shape) { in with()
355 testSet.add(ts); in with()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinTask.java823 List<? extends ForkJoinTask<?>> ts = in invokeAll() local
826 int last = ts.size() - 1; in invokeAll()
828 ForkJoinTask<?> t = ts.get(i); in invokeAll()
839 ForkJoinTask<?> t = ts.get(i); in invokeAll()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCollection8Test.java736 static <T> T chooseOne(T ... ts) {
737 return ts[ThreadLocalRandom.current().nextInt(ts.length)];
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...