/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/ |
H A D | CountedTimerTaskUtils.java | 43 * delay for starting the new task based on the new interval and the 62 System.err.println("computing timer delay: " 71 * undefined and we simply set the delay to 0. 73 long delay = 0; 76 delay = remainder >= 0 ? remainder : 0; 82 + " delay = " + delay); 85 timer.schedule(newTask, delay, newInterval);
|
/openjdk7/jdk/test/java/util/concurrent/locks/Lock/ |
H A D | TimedAcquire.java | 36 for (int delay : new int[] {0, 1}) 38 if (sem.tryAcquire(delay, TimeUnit.MILLISECONDS))
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | ScheduledExecutorService.java | 42 * delay, or to execute periodically. 52 * a requested delay of zero. Zero and negative delays (but not 63 * relative delay need not coincide with the current <tt>Date</tt> at 100 * after the given delay. 103 * @param delay the time from now to delay execution 104 * @param unit the time unit of the delay parameter 113 long delay, TimeUnit unit); 117 * given delay. 120 * @param delay th 112 schedule(Runnable command, long delay, TimeUnit unit) argument 127 schedule(Callable<V> callable, long delay, TimeUnit unit) argument 182 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument [all...] |
H A D | ScheduledThreadPoolExecutor.java | 43 * commands to run after a given delay, or to execute 57 * automatically removed from the work queue until its delay 130 * delayed tasks with a delay of zero. 190 * indicates fixed-delay execution. A value of 0 indicates a 199 * Index into delay queue, to support faster cancellation. 489 private long triggerTime(long delay, TimeUnit unit) { argument 490 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay)); 496 long triggerTime(long delay) { argument 498 ((delay < (Lon 508 overflowFree(long delay) argument 522 schedule(Runnable command, long delay, TimeUnit unit) argument 538 schedule(Callable<V> callable, long delay, TimeUnit unit) argument 579 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument [all...] |
/openjdk7/jdk/test/java/awt/Component/F10TopToplevel/ |
H A D | F10TopToplevel.java | 99 robot.delay(5); 101 robot.delay(5); 103 robot.delay(5); 105 robot.delay(5); 107 robot.delay(5); 109 robot.delay(10); 111 robot.delay(5); 113 robot.delay(5);
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | Timer.java | 64 * int delay = 1000; //milliseconds 70 * new Timer(delay, taskPerformer).start();</pre> 73 * {@code Timers} are constructed by specifying both a delay parameter 74 * and an {@code ActionListener}. The delay parameter is used 75 * to set both the initial delay and the delay between event 77 * it waits for the initial delay before firing its 80 * every time the between-event delay has elapsed, until it 83 * After construction, the initial delay and the between-event 84 * delay ca 172 private volatile int initialDelay, delay; field in class:Timer 203 Timer(int delay, ActionListener listener) argument 397 setDelay(int delay) argument [all...] |
/openjdk7/jdk/test/java/awt/Mouse/EnterExitEvents/ |
H A D | ResizingFrameTest.java | 80 robot.delay(200); 96 robot.delay(200); 105 robot.delay(200); 121 robot.delay(200); 138 robot.delay(200); 155 robot.delay(200); 171 robot.delay(400); 187 robot.delay(200); 203 robot.delay(400);
|
/openjdk7/jdk/test/java/awt/Robot/CtorTest/ |
H A D | CtorTest.java | 64 robot.delay(50); 66 robot.delay(50);
|
/openjdk7/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/ |
H A D | EchoService.java | 65 private static void doIt(SocketChannel sc, int closeAfter, int delay) throws IOException { argument 87 if (delay > 0) { 89 Thread.currentThread().sleep(delay); 148 int delay = 0; 153 delay = Integer.parseInt(args[1]); 155 doIt((SocketChannel)c, closeAfter, delay); 192 int delay = Integer.parseInt(args[0]); 194 Thread.currentThread().sleep(delay);
|
/openjdk7/jdk/test/java/net/Socket/ |
H A D | LingerTest.java | 73 long delay; field in class:LingerTest.Another 76 public Another(int port, long delay) { argument 78 this.delay = delay; 84 Thread.sleep(delay);
|
/openjdk7/jdk/test/java/nio/channels/Selector/ |
H A D | CloseWhenKeyIdle.java | 41 // Wakes up a Selector after a given delay 44 private long delay; field in class:CloseWhenKeyIdle.Waker 46 Waker(Selector sel, long delay) { argument 48 this.delay = delay; 53 Thread.sleep(delay);
|
/openjdk7/jdk/test/java/awt/Dialog/MakeWindowAlwaysOnTop/ |
H A D | MakeWindowAlwaysOnTop.java | 54 r.delay(100); 76 r.delay(100); 88 r.delay(100); 93 r.delay(100); 101 r.delay(100); 106 r.delay(100);
|
/openjdk7/jdk/test/java/awt/Menu/OpensWithNoGrab/ |
H A D | OpensWithNoGrab.java | 40 final static int delay = 50; field in class:OpensWithNoGrab 97 robot.delay(delay); 99 robot.delay(delay); 101 robot.delay(delay); 106 robot.delay(10*delay); 108 robot.delay(dela [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | SoftLowFrequencyOscillator.java | 37 private final double[][] delay = new double[max_count][1]; field in class:SoftLowFrequencyOscillator 58 delay[i][0] = 0; 75 this.delay[i][0] / 1200.0) / control_time); 122 if (name.equals("delay")) 123 return delay[instance];
|
/openjdk7/jdk/test/com/sun/net/httpserver/ |
H A D | Test.java | 39 static void delay () { method in class:Test
|
/openjdk7/jdk/test/java/awt/Robot/RobotExtraButton/ |
H A D | RobotExtraButton.java | 50 robot.delay(50); 57 robot.delay(50); 63 robot.delay(50); 70 robot.delay(50);
|
/openjdk7/jdk/src/share/demo/applets/Blink/ |
H A D | Blink.java | 66 private int delay; // the delay time between blinks field in class:Blink 71 delay = (blinkFrequency == null) ? 400 91 }, delay, delay);
|
/openjdk7/jdk/test/java/awt/Focus/FrameJumpingToMouse/ |
H A D | FrameJumpingToMouse.java | 68 robot.delay(50); 70 robot.delay(50); 72 robot.delay(50);
|
/openjdk7/jdk/test/java/security/Security/ClassLoaderDeadlock/ |
H A D | ClassLoaderDeadlock.java | 42 // add a delay in class loading for reproducability 43 cl.delay = 1000; 49 // this locks the DelayClassLoader and after the delay the system class loader 74 volatile int delay; field in class:ClassLoaderDeadlock.DelayClassLoader 83 // delay so that we hold the lock for a longer period 85 Thread.sleep(delay);
|
/openjdk7/jdk/test/java/awt/Mouse/MouseModifiersUnitTest/ |
H A D | ExtraButtonDrag.java | 63 robot.delay(1000); 78 robot.delay(500); 111 robot.delay(200); 120 robot.delay(5); 125 robot.delay(5);
|
/openjdk7/jdk/test/java/awt/KeyboardFocusmanager/TypeAhead/SubMenuShowTest/ |
H A D | SubMenuShowTest.java | 93 robot.delay(20); 96 robot.delay(20); 98 robot.delay(20); 100 robot.delay(20); 104 robot.delay(20); 109 robot.delay(20); 114 robot.delay(20);
|
/openjdk7/jdk/test/javax/swing/JFileChooser/6798062/ |
H A D | bug6798062.java | 158 private final int delay; field in class:bug6798062.MyThread 162 private MyThread(int delay, String link) { argument 163 this.delay = delay; 189 if (delay > 0) { 191 Thread.sleep(delay);
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | Timer.java | 39 * turn, delay the execution of subsequent tasks, which may "bunch up" and 68 * executing tasks at a given rate or delay. It is effectively a more 180 * Schedules the specified task for execution after the specified delay. 183 * @param delay delay in milliseconds before task is to be executed. 184 * @throws IllegalArgumentException if <tt>delay</tt> is negative, or 185 * <tt>delay + System.currentTimeMillis()</tt> is negative. 190 public void schedule(TimerTask task, long delay) { argument 191 if (delay < 0) 192 throw new IllegalArgumentException("Negative delay 243 schedule(TimerTask task, long delay, long period) argument 323 scheduleAtFixedRate(TimerTask task, long delay, long period) argument [all...] |
/openjdk7/hotspot/src/share/vm/runtime/ |
H A D | task.cpp | 99 int delay = _tasks[0]->time_to_next_interval(); local 101 delay = MIN2(delay, _tasks[index]->time_to_next_interval()); 103 return delay;
|
/openjdk7/jdk/test/java/awt/Focus/AppletInitialFocusTest/ |
H A D | AppletInitialFocusTest.java | 51 robot.delay(1000); // delay the thread to let EDT to start dispatching focus events
|