Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/libcore/jsr166-tests/src/test/java/jsr166/
DTimeUnitTest.java42 for (long t = 0; t < 88888; ++t) { in testConvert()
43 assertEquals(t*60*60*24, in testConvert()
44 SECONDS.convert(t, DAYS)); in testConvert()
45 assertEquals(t*60*60, in testConvert()
46 SECONDS.convert(t, HOURS)); in testConvert()
47 assertEquals(t*60, in testConvert()
48 SECONDS.convert(t, MINUTES)); in testConvert()
49 assertEquals(t, in testConvert()
50 SECONDS.convert(t, SECONDS)); in testConvert()
51 assertEquals(t, in testConvert()
[all …]
DLockSupportTest.java118 Thread t = newStartedThread(new CheckedRunnable() { in testParkBeforeUnpark() local
125 LockSupport.unpark(t); in testParkBeforeUnpark()
126 awaitTermination(t); in testParkBeforeUnpark()
153 Thread t = newStartedThread(new CheckedRunnable() { in testParkAfterUnpark() local
162 LockSupport.unpark(t); in testParkAfterUnpark()
164 awaitTermination(t); in testParkAfterUnpark()
190 Thread t = newStartedThread(new CheckedRunnable() { in testParkBeforeInterrupt() local
200 assertThreadStaysAlive(t); in testParkBeforeInterrupt()
201 t.interrupt(); in testParkBeforeInterrupt()
202 awaitTermination(t); in testParkBeforeInterrupt()
[all …]
DCountDownLatchTest.java68 Thread t = newStartedThread(new CheckedRunnable() { in testAwait() local
80 assertThreadStaysAlive(t); in testAwait()
83 awaitTermination(t); in testAwait()
93 Thread t = newStartedThread(new CheckedRunnable() { in testTimedAwait() local
105 assertThreadStaysAlive(t); in testTimedAwait()
108 awaitTermination(t); in testTimedAwait()
117 Thread t = newStartedThread(new CheckedRunnable() { in testAwait_Interruptible() local
137 assertThreadStaysAlive(t); in testAwait_Interruptible()
138 t.interrupt(); in testAwait_Interruptible()
139 awaitTermination(t); in testAwait_Interruptible()
[all …]
DJSR166TestCase.java387 } catch (Throwable t) {
388 throw new Error(t);
626 public void threadRecordFailure(Throwable t) { in threadRecordFailure() argument
627 System.err.println(t); in threadRecordFailure()
629 threadFailure.compareAndSet(null, t); in threadRecordFailure()
653 Throwable t = threadFailure.getAndSet(null); in tearDown() local
654 if (t != null) { in tearDown()
655 if (t instanceof Error) in tearDown()
656 throw (Error) t; in tearDown()
657 else if (t instanceof RuntimeException) in tearDown()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTest.java59 public TimerTestTask(Timer t) { in TimerTestTask() argument
60 timer = t; in TimerTestTask()
112 Timer t = null; in test_ConstructorZ() local
115 t = new Timer(true); in test_ConstructorZ()
117 t.schedule(testTask, 200); in test_ConstructorZ()
119 t.cancel(); in test_ConstructorZ()
121 if (t != null) in test_ConstructorZ()
122 t.cancel(); in test_ConstructorZ()
131 Timer t = null; in test_Constructor() local
134 t = new Timer(); in test_Constructor()
[all …]
DTimerTaskTest.java79 Timer t = null; in test_cancel() local
87 t = new Timer(); in test_cancel()
89 t.schedule(testTask, 500); in test_cancel()
91 t.cancel(); in test_cancel()
94 t = new Timer(); in test_cancel()
96 t.schedule(testTask, 50); in test_cancel()
109 t.cancel(); in test_cancel()
113 t = new Timer(); in test_cancel()
115 t.schedule(testTask, 500, 500); // should never run in test_cancel()
119 t.cancel(); in test_cancel()
[all …]
/libcore/luni/src/test/java/libcore/icu/
DTransliteratorTest.java29 Transliterator t = Transliterator.getInstance(id); in testAll() local
30 t.transliterate("hello"); in testAll()
36 Transliterator t = Transliterator.getInstance("Unknown"); in test_Unknown() local
44 Transliterator t = Transliterator.getInstance(null); in test_null_id() local
51 Transliterator t = Transliterator.getInstance("Any-Upper"); in test_Any_Upper() local
52 assertEquals("HELLO WORLD!", t.transliterate("HeLlO WoRlD!")); in test_Any_Upper()
53 assertEquals("STRASSE", t.transliterate("Straße")); in test_Any_Upper()
57 Transliterator t = Transliterator.getInstance("Any-Lower"); in test_Any_Lower() local
58 assertEquals("hello world!", t.transliterate("HeLlO WoRlD!")); in test_Any_Lower()
65 Transliterator t = Transliterator.getInstance("Greek-Latin"); in test_Greek_Latin() local
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DIntegerBenchmark.java21 int t = 0; in timeLongSignumBranch() local
23 t += signum1(-i); in timeLongSignumBranch()
24 t += signum1(0); in timeLongSignumBranch()
25 t += signum1(i); in timeLongSignumBranch()
27 return t; in timeLongSignumBranch()
31 int t = 0; in timeLongSignumBranchFree() local
33 t += signum2(-i); in timeLongSignumBranchFree()
34 t += signum2(0); in timeLongSignumBranchFree()
35 t += signum2(i); in timeLongSignumBranchFree()
37 return t; in timeLongSignumBranchFree()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
DSHA1Impl.java91 for ( int t = 16; t < 80 ; t++ ) { in computeHash()
93 temp = arrW[t-3] ^ arrW[t-8] ^ arrW[t-14] ^ arrW[t-16]; in computeHash()
94 arrW[t] = ( temp<<1 ) | ( temp>>>31 ); in computeHash()
97 for ( int t = 0 ; t < 20 ; t++ ) { in computeHash()
101 ( e + arrW[t] + 0x5A827999 ) ; in computeHash()
108 for ( int t = 20 ; t < 40 ; t++ ) { in computeHash()
110 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; in computeHash()
117 for ( int t = 40 ; t < 60 ; t++ ) { in computeHash()
120 (e + arrW[t] + 0x8F1BBCDC) ; in computeHash()
127 for ( int t = 60 ; t < 80 ; t++ ) { in computeHash()
[all …]
/libcore/ojluni/src/main/java/java/util/
DArrayPrefixHelpers.java113 CumulateTask<T> t = this; in compute() local
114 outer: while ((l = t.lo) >= 0 && (h = t.hi) <= a.length) { in compute()
116 CumulateTask<T> lt = t.left, rt = t.right, f; in compute()
119 f = rt = t.right = in compute()
120 new CumulateTask<T>(t, fn, a, org, fnc, th, mid, h); in compute()
121 t = lt = t.left = in compute()
122 new CumulateTask<T>(t, fn, a, org, fnc, th, l, mid); in compute()
125 T pin = t.in; in compute()
127 f = t = null; in compute()
136 t = rt; in compute()
[all …]
DDualPivotQuicksort.java129 int t = a[lo]; a[lo] = a[hi]; a[hi] = t; in sort() local
201 int[] t = a; a = b; b = t; in sort() local
296 if (a[e2] < a[e1]) { int t = a[e2]; a[e2] = a[e1]; a[e1] = t; } in sort() local
298 if (a[e3] < a[e2]) { int t = a[e3]; a[e3] = a[e2]; a[e2] = t; in sort() local
299 if (t < a[e1]) { a[e2] = a[e1]; a[e1] = t; } in sort()
301 if (a[e4] < a[e3]) { int t = a[e4]; a[e4] = a[e3]; a[e3] = t; in sort() local
302 if (t < a[e2]) { a[e3] = a[e2]; a[e2] = t; in sort()
303 if (t < a[e1]) { a[e2] = a[e1]; a[e1] = t; } in sort()
306 if (a[e5] < a[e4]) { int t = a[e5]; a[e5] = a[e4]; a[e4] = t; in sort() local
307 if (t < a[e3]) { a[e4] = a[e3]; a[e3] = t; in sort()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/locks/
DLockSupport.java109 private static void setBlocker(Thread t, Object arg) { in setBlocker() argument
111 U.putObject(t, PARKBLOCKER, arg); in setBlocker()
159 Thread t = Thread.currentThread(); in park() local
160 setBlocker(t, blocker); in park()
162 setBlocker(t, null); in park()
199 Thread t = Thread.currentThread(); in parkNanos() local
200 setBlocker(t, blocker); in parkNanos()
202 setBlocker(t, null); in parkNanos()
240 Thread t = Thread.currentThread(); in parkUntil() local
241 setBlocker(t, blocker); in parkUntil()
[all …]
DAbstractQueuedLongSynchronizer.java408 } catch (Throwable t) { in acquireQueued()
410 throw t; in acquireQueued()
433 } catch (Throwable t) { in doAcquireInterruptibly()
435 throw t; in doAcquireInterruptibly()
471 } catch (Throwable t) { in doAcquireNanos()
473 throw t; in doAcquireNanos()
501 } catch (Throwable t) { in doAcquireShared()
503 throw t; in doAcquireShared()
529 } catch (Throwable t) { in doAcquireSharedInterruptibly()
531 throw t; in doAcquireSharedInterruptibly()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinTask.java352 int s; Thread t; ForkJoinWorkerThread wt; ForkJoinPool.WorkQueue w; in doJoin() local
354 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doJoin()
355 (w = (wt = (ForkJoinWorkerThread)t).workQueue). in doJoin()
367 int s; Thread t; ForkJoinWorkerThread wt; in doInvoke() local
369 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doInvoke()
370 (wt = (ForkJoinWorkerThread)t).pool. in doInvoke()
435 ExceptionNode[] t = exceptionTable; in recordExceptionalCompletion() local
436 int i = h & (t.length - 1); in recordExceptionalCompletion()
437 for (ExceptionNode e = t[i]; ; e = e.next) { in recordExceptionalCompletion()
439 t[i] = new ExceptionNode(this, ex, t[i], in recordExceptionalCompletion()
[all …]
DConcurrentLinkedQueue.java224 Node<E> h = null, t = null; in ConcurrentLinkedQueue() local
228 h = t = newNode; in ConcurrentLinkedQueue()
230 lazySetNext(t, newNode); in ConcurrentLinkedQueue()
231 t = newNode; in ConcurrentLinkedQueue()
235 h = t = newNode(null); in ConcurrentLinkedQueue()
237 tail = t; in ConcurrentLinkedQueue()
284 for (Node<E> t = tail, p = t;;) { in offer()
292 if (p != t) // hop two nodes at a time in offer()
293 casTail(t, newNode); // Failure is OK. in offer()
303 p = (t != (t = tail)) ? t : head; in offer()
[all …]
/libcore/ojluni/src/main/java/java/util/function/
DPredicate.java49 boolean test(T t); in test() argument
69 return (t) -> test(t) && other.test(t); in and()
80 return (t) -> !test(t); in negate()
101 return (t) -> test(t) || other.test(t); in or()
DBiPredicate.java53 boolean test(T t, U u); in test() argument
73 return (T t, U u) -> test(t, u) && other.test(t, u); in and()
84 return (T t, U u) -> !test(t, u); in negate()
105 return (T t, U u) -> test(t, u) || other.test(t, u); in or()
DFunction.java49 R apply(T t); in apply() argument
88 return (T t) -> after.apply(apply(t)); in andThen()
98 return t -> t; in identity()
DConsumer.java49 void accept(T t); in accept() argument
65 return (T t) -> { accept(t); after.accept(t); }; in andThen()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DInvalidPreferencesFormatExceptionTest.java43 Throwable t = new Throwable("root"); in testInvalidPreferencesFormatExceptionStringThrowable() local
45 "msg", t); in testInvalidPreferencesFormatExceptionStringThrowable()
46 assertSame(t, e.getCause()); in testInvalidPreferencesFormatExceptionStringThrowable()
48 assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0); in testInvalidPreferencesFormatExceptionStringThrowable()
56 Throwable t = new Throwable("root");
58 t);
59 assertSame(t, e.getCause());
61 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
/libcore/ojluni/src/main/java/java/util/stream/
DStreamOpFlag.java384 private static MaskBuilder set(Type t) { in set() argument
385 return new MaskBuilder(new EnumMap<>(Type.class)).set(t); in set()
395 MaskBuilder mask(Type t, Integer i) { in mask() argument
396 map.put(t, i); in mask()
400 MaskBuilder set(Type t) { in set() argument
401 return mask(t, SET_BITS); in set()
404 MaskBuilder clear(Type t) { in clear() argument
405 return mask(t, CLEAR_BITS); in clear()
408 MaskBuilder setAndClear(Type t) { in setAndClear() argument
409 return mask(t, PRESERVE_BITS); in setAndClear()
[all …]
/libcore/luni/src/test/java/libcore/java/util/function/
DBiConsumerTest.java26 BiConsumer<String, StringBuilder> one = (s, t) -> t.append("one").append(s); in testAndThen()
27 BiConsumer<String, StringBuilder> two = (s, t) -> t.append("two").append(s); in testAndThen()
39 BiConsumer<String, StringBuilder> one = (s, t) -> t.append("one").append(s); in testAndThen_null()
/libcore/luni/src/main/java/libcore/util/
DSneakyThrow.java31 public static void sneakyThrow(Throwable t) { in sneakyThrow() argument
32 SneakyThrow.<RuntimeException>sneakyThrow_(t); in sneakyThrow()
35 private static <T extends Throwable> void sneakyThrow_(Throwable t) throws T { in sneakyThrow_() argument
36 throw (T) t; in sneakyThrow_()
/libcore/expectations/
Dicebox.txt2 * This file contains expectations for tests that we'd like to eventually fix, but aren't urgent.
6 description: "Dalvik doesn't support XML Schemas, DTDs or validation",
12 description: "Dalvik doesn't support XML Schemas, DTDs or validation",
15 substring: "This implementation doesn't resolve entity references in getWholeText"
18 description: "Dalvik doesn't support XML Schemas, DTDs or validation",
21 substring: "This implementation doesn't include children in entity references"
24 description: "Dalvik doesn't support XML Schemas, DTDs or validation",
27 substring: "This implementation doesn't expand entity references"
30 description: "Dalvik doesn't support XML Schemas, DTDs or validation",
36 description: "Dalvik doesn't support XML Schemas, DTDs or validation",
[all …]
/libcore/ojluni/src/main/java/java/lang/
DInheritableThreadLocal.java70 ThreadLocalMap getMap(Thread t) { in getMap() argument
71 return t.inheritableThreadLocals; in getMap()
81 void createMap(Thread t, T firstValue) { in createMap() argument
82 t.inheritableThreadLocals = new ThreadLocalMap(this, firstValue); in createMap()

12345678910>>...12