Searched refs:th (Results 1 - 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
H A DNativeThreadSet.java46 long th = NativeThread.current();
48 if (th == 0)
49 th = -1;
62 elts[i] = th;
91 long th = elts[i];
92 if (th == 0)
94 if (th != -1)
95 NativeThread.signal(th);
H A DSinkChannelImpl.java89 long th = thread;
90 if (th != 0)
91 NativeThread.signal(th);
H A DSourceChannelImpl.java90 long th = thread;
91 if (th != 0)
92 NativeThread.signal(th);
H A DServerSocketChannelImpl.java290 long th = thread;
291 if (th != 0)
292 NativeThread.signal(th);
H A DDatagramChannelImpl.java1069 long th;
1070 if ((th = readerThread) != 0)
1071 NativeThread.signal(th);
1072 if ((th = writerThread) != 0)
1073 NativeThread.signal(th);
/libcore/ojluni/src/main/native/
H A DObjectStreamClass.c63 jthrowable th = (*env)->ExceptionOccurred(env); local
65 if (!(*env)->IsInstanceOf(env, th, noSuchMethodErrCl)) {
66 (*env)->Throw(env, th);
92 jthrowable th = (*env)->ExceptionOccurred(env); local
94 if (!(*env)->IsInstanceOf(env, th, noSuchMethodErrCl)) {
95 (*env)->Throw(env, th);
/libcore/luni/src/test/java/libcore/java/lang/
H A DThrowableTest.java43 // The 4th argument, writableStackTrace, is false...
45 } catch (Throwable th) {
46 assertEquals("hi", th.getMessage());
49 assertEquals(0, th.getStackTrace().length);
52 th.setStackTrace(new StackTraceElement[] { new StackTraceElement("c", "m", "f", -2) });
53 assertEquals(0, th.getStackTrace().length);
56 th.fillInStackTrace();
57 assertEquals(0, th.getStackTrace().length);
60 th.printStackTrace(new PrintWriter(new StringWriter()));
H A DOldThreadTest.java314 Thread th = new Thread() {
348 assertEquals(Thread.State.NEW, th.getState());
349 th.start();
351 assertEquals(Thread.State.RUNNABLE, th.getState());
356 assertEquals(Thread.State.WAITING, th.getState());
361 assertEquals(Thread.State.BLOCKED, th.getState());
367 assertEquals(Thread.State.TIMED_WAITING, th.getState());
368 th.interrupt();
371 th.join(1000);
372 assertEquals(Thread.State.TERMINATED, th
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DObjectStreamClass.java379 } catch (Throwable th) {
380 entry = th;
1039 Throwable th = ex.getTargetException();
1040 if (th instanceof IOException) {
1041 throw (IOException) th;
1043 throwMiscException(th);
1069 Throwable th = ex.getTargetException();
1070 if (th instanceof ClassNotFoundException) {
1071 throw (ClassNotFoundException) th;
1072 } else if (th instanceo
1590 throwMiscException(Throwable th) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DArrayPrefixHelpers.java141 int th = threshold, org = origin, fnc = fence, l, h;
144 if (h - l > th) {
149 new CumulateTask<T>(t, fn, a, org, fnc, th, mid, h);
151 new CumulateTask<T>(t, fn, a, org, fnc, th, l, mid);
293 int th = threshold, org = origin, fnc = fence, l, h;
296 if (h - l > th) {
301 new LongCumulateTask(t, fn, a, org, fnc, th, mid, h);
303 new LongCumulateTask(t, fn, a, org, fnc, th, l, mid);
443 int th = threshold, org = origin, fnc = fence, l, h;
446 if (h - l > th) {
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThreadTest.java616 Thread th = new Thread("test");
618 th.join();
623 th.start();
677 Thread th = new Thread("test");
683 th.join(200);
689 th.start();
730 Thread th = new Thread("test");
736 th.join(200, 20);
742 th.start();
/libcore/ojluni/src/main/java/java/util/logging/
H A DXMLFormatter.java194 Throwable th = record.getThrown();
197 escape(sb, th.toString());
199 StackTraceElement trace[] = th.getStackTrace();
/libcore/luni/src/test/java/libcore/java/util/
H A DCalendarBuilderTest.java146 Locale th = new Locale("th", "TH");
147 builder.setLocale(th);
148 GregorianCalendar expected = new GregorianCalendar(th);
201 // 20th February 2000 would have been a Sunday, but we set the DOW last.
/libcore/ojluni/src/main/java/java/lang/
H A DSystem.java1746 public static void logE(String message, Throwable th) { argument
1747 log('E', message, th);
1760 public static void logI(String message, Throwable th) { argument
1761 log('I', message, th);
1774 public static void logW(String message, Throwable th) { argument
1775 log('W', message, th);
1778 private static native void log(char type, String message, Throwable th); argument
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DTransformers.java173 } catch (Throwable th) {
174 if (th.getClass() == exType) {
180 fallback.setReference(0, th);
193 throw th;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DTreeMapTest.java369 SortedMap th = t.headMap(null);
646 SortedMap th = t.tailMap(null);

Completed in 2576 milliseconds