Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 19 of 19) 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/test/java/nio/file/attribute/
DFileTimeTest.java181 ts(1L, DAYS, "1970-01-02T00:00:00Z"); in main()
182 ts(1L, HOURS, "1970-01-01T01:00:00Z"); in main()
183 ts(1L, MINUTES, "1970-01-01T00:01:00Z"); in main()
184 ts(1L, SECONDS, "1970-01-01T00:00:01Z"); in main()
185 ts(1L, MILLISECONDS, "1970-01-01T00:00:00.001Z"); in main()
186 ts(1L, MICROSECONDS, "1970-01-01T00:00:00.000001Z"); in main()
187 ts(1L, NANOSECONDS, "1970-01-01T00:00:00.000000001Z"); in main()
188 ts(999999999L, NANOSECONDS, "1970-01-01T00:00:00.999999999Z"); in main()
189 ts(9999999999L, NANOSECONDS, "1970-01-01T00:00:09.999999999Z"); in main()
191 ts(-1L, DAYS, "1969-12-31T00:00:00Z"); in main()
[all …]
/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/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()
DHashMap.java347 Class<?> c; Type[] ts, as; Type t; ParameterizedType p; in comparableClassFor() local
350 if ((ts = c.getGenericInterfaces()) != null) { in comparableClassFor()
351 for (int i = 0; i < ts.length; ++i) { in comparableClassFor()
352 if (((t = ts[i]) instanceof ParameterizedType) && in comparableClassFor()
/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/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()
DConcurrentHashMap.java716 Class<?> c; Type[] ts, as; Type t; ParameterizedType p; in comparableClassFor() local
719 if ((ts = c.getGenericInterfaces()) != null) { in comparableClassFor()
720 for (int i = 0; i < ts.length; ++i) { in comparableClassFor()
721 if (((t = ts[i]) instanceof ParameterizedType) && in comparableClassFor()
/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/luni/src/main/native/
Dlibcore_io_Linux.cpp468 static jobject makeStructTimespec(JNIEnv* env, const struct timespec& ts) { in makeStructTimespec() argument
475 static_cast<jlong>(ts.tv_sec), static_cast<jlong>(ts.tv_nsec)); in makeStructTimespec()