Searched refs:condition (Results 1 - 25 of 85) sorted by relevance

1234

/openjdk7/jdk/src/share/instrument/
H A DJPLISAssert.c40 JPLISAssertCondition( jboolean condition, argument
44 if ( !condition ) {
54 JPLISAssertConditionWithMessage( jboolean condition, argument
59 if ( !condition ) {
H A DJPLISAssert.h62 * Test the supplied condition.
67 JPLISAssertCondition( jboolean condition,
73 * Test the supplied condition.
79 JPLISAssertConditionWithMessage( jboolean condition,
/openjdk7/langtools/test/tools/javac/
H A DParseConditional.java36 boolean condition = true;
41 a = condition ? b = c : c = d; // Should get a parse error.
/openjdk7/jdk/src/share/demo/jvmti/hprof/
H A Dhprof_check.h44 #define CHECK_FOR_ERROR(condition) \
45 ( (condition) ? \
47 HPROF_ERROR(JNI_TRUE, #condition) )
H A Dhprof_error.c161 error_assert(const char *condition, const char *file, int line) argument
163 error_message("ASSERTION FAILURE: %s [%s:%d]\n", condition,
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DReentrantLock.java82 * lock.lock(); // block until condition holds
480 * <li>When the condition {@linkplain Condition#await() waiting}
686 * Queries whether any threads are waiting on the given condition
693 * @param condition the condition
696 * @throws IllegalArgumentException if the given condition is
698 * @throws NullPointerException if the condition is null
700 public boolean hasWaiters(Condition condition) { argument
701 if (condition == null)
703 if (!(condition instanceo
723 getWaitQueueLength(Condition condition) argument
748 getWaitingThreads(Condition condition) argument
[all...]
H A DReentrantReadWriteLock.java369 * condition wait and re-established in tryAcquire.
1150 * invoke a condition waiting method when the current thread
1155 * <li>When the condition {@linkplain Condition#await() waiting}
1398 * Queries whether any threads are waiting on the given condition
1405 * @param condition the condition
1408 * @throws IllegalArgumentException if the given condition is
1410 * @throws NullPointerException if the condition is null
1412 public boolean hasWaiters(Condition condition) { argument
1413 if (condition
1435 getWaitQueueLength(Condition condition) argument
1460 getWaitingThreads(Condition condition) argument
[all...]
/openjdk7/jdk/test/java/lang/instrument/
H A DATestCaseScaffold.java120 assertTrue(boolean condition) { argument
121 if ( !condition ) {
127 assertTrue(String message, boolean condition) { argument
128 if ( !condition ) {
/openjdk7/jdk/test/java/util/PriorityQueue/
H A DRemoveContains.java51 static void check(boolean condition, String msg) { argument
52 if (condition)
58 static void check(boolean condition) { argument
59 check(condition, "Assertion failure");
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dimg_util_md.h79 #define img_check(condition) \
81 if (!(condition)) { \
83 "assertion failed: " #condition); \
88 #define img_check(condition) do {} while (0)
/openjdk7/jdk/test/java/util/Collections/
H A DNCopies.java51 static void check(boolean condition, String msg) { argument
52 if (condition)
58 static void check(boolean condition) { argument
59 check(condition, "Assertion failure");
/openjdk7/jdk/test/java/util/concurrent/ConcurrentMap/
H A DConcurrentModification.java46 static void check(boolean condition, String msg) { argument
47 if (condition)
53 static void check(boolean condition) { argument
54 check(condition, "Assertion failed");
/openjdk7/jdk/test/java/util/concurrent/ExecutorService/
H A DInvoke.java52 static void check(boolean condition, String msg) { argument
53 if (condition) pass(); else fail(msg);
56 static void check(boolean condition) { argument
57 check(condition, "Assertion failure");
/openjdk7/jdk/test/java/util/zip/
H A DInfoZip.java47 static void check(boolean condition, String msg) { argument
48 if (! condition)
52 static void check(boolean condition) { argument
53 check(condition, "Something's wrong");
/openjdk7/jdk/test/java/util/TreeMap/
H A DNullAtEnd.java51 static void check(boolean condition, String msg) { argument
52 if (condition)
58 static void check(boolean condition) { argument
59 check(condition, "Assertion failure");
/openjdk7/jdk/test/sun/nio/cs/
H A DFindASCIICodingBugs.java37 private static void check(boolean condition) { argument
38 if (! condition) {
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/
H A DTunnelProxy.java556 * Utilities for synchronization. A condition is
560 * condition.
562 * A rendezvous built on a condition is also provided for synchronizing
586 private static BValue getCond (String condition) { argument
588 BValue cond = (BValue) conditions.get (condition);
591 conditions.put (condition, cond);
598 * Set the condition to true. Any threads that are currently blocked
599 * waiting on the condition, will be unblocked and allowed to continue.
601 * If the named condition did not exist prior to the call, then it is created
605 public static void setCondition (String condition) { argument
624 waitForCondition(String condition) argument
650 rendezvous(String condition, int N) argument
694 clearCondition(String condition) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DWaitDispatchSupport.java57 private volatile Conditional condition; field in class:WaitDispatchSupport
108 this.condition = new Conditional() {
180 dispatchThread.pumpEvents(condition);
182 dispatchThread.pumpEventsForFilter(condition, filter);
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/IPAcl/
H A DJJTParserState.java127 /* A conditional node is constructed if its condition is true. All
130 on to the stack. If the condition is false the node is not
132 void closeNodeScope(Node n, boolean condition) { argument
133 if (condition) {
/openjdk7/jdk/test/javax/swing/KeyboardManager/8013370/
H A DTest8013370.java72 protected boolean processKeyBinding(KeyStroke stroke, KeyEvent event, int condition, boolean pressed) {
77 return super.processKeyBinding(stroke, event, condition, pressed);
/openjdk7/jdk/test/javax/swing/MultiUIDefaults/
H A DTest6860438.java73 void check(boolean condition, String methodName) { argument
74 if (! condition) {
/openjdk7/jdk/src/share/classes/java/lang/
H A DConditionalSpecialCasing.java172 private static boolean isConditionMet(String src, int index, Locale locale, int condition) { argument
173 switch (condition) {
195 * Implements the "Final_Cased" condition
236 * Implements the "After_I" condition
267 * Implements the "After_Soft_Dotted" condition
299 * Implements the "More_Above" condition
330 * Implements the "Before_Dot" condition
441 int condition; field in class:ConditionalSpecialCasing.Entry
443 Entry(int ch, char[] lower, char[] upper, String lang, int condition) { argument
448 this.condition
[all...]
/openjdk7/jdk/test/java/awt/regtesthelpers/
H A DUtil.java210 * Waits for a notification and for a boolean condition to become true.
214 * @param condition the object to be notified and the booelan condition to wait for
217 * @return the final boolean value of the {@code condition}
220 public static boolean waitForConditionEx(final AtomicBoolean condition, long timeout) argument
223 synchronized (condition) {
225 while (!condition.get()) {
226 condition.wait(timeout);
232 return condition.get();
239 public static boolean waitForCondition(final AtomicBoolean condition, lon argument
250 waitForConditionEx(final AtomicBoolean condition) argument
264 waitForCondition(final AtomicBoolean condition) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicRootPaneUI.java111 InputMap getInputMap(int condition, JComponent c) { argument
112 if (condition == JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT) {
117 if (condition == JComponent.WHEN_IN_FOCUSED_WINDOW) {
118 return createInputMap(condition, c);
123 ComponentInputMap createInputMap(int condition, JComponent c) { argument
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/httpstest/
H A DHttpServer.java781 * Utilities for synchronization. A condition is
785 * condition.
787 * A rendezvous built on a condition is also provided for synchronizing
811 private static BValue getCond (String condition) { argument
813 BValue cond = (BValue) conditions.get (condition);
816 conditions.put (condition, cond);
823 * Set the condition to true. Any threads that are currently blocked
824 * waiting on the condition, will be unblocked and allowed to continue.
826 * If the named condition did not exist prior to the call, then it is created
830 public static void setCondition (String condition) { argument
849 waitForCondition(String condition) argument
875 rendezvous(String condition, int N) argument
919 clearCondition(String condition) argument
[all...]

Completed in 108 milliseconds

1234