Searched refs:unit (Results 1 - 25 of 105) sorted by relevance

12345

/openjdk7/langtools/src/share/classes/com/sun/source/util/
H A DTaskEvent.java79 public TaskEvent(Kind kind, CompilationUnitTree unit) { argument
80 this(kind, unit.getSourceFile(), unit, null);
83 public TaskEvent(Kind kind, CompilationUnitTree unit, TypeElement clazz) { argument
84 this(kind, unit.getSourceFile(), unit, clazz);
87 private TaskEvent(Kind kind, JavaFileObject file, CompilationUnitTree unit, TypeElement clazz) { argument
90 this.unit = unit;
103 return unit;
120 private CompilationUnitTree unit; field in class:TaskEvent
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/spi/monitoring/
H A DStatisticsAccumulator.java65 protected String unit; field in class:StatisticsAccumulator
112 return "Minimum Value = " + min + " " + unit + " " +
113 "Maximum Value = " + max + " " + unit + " " +
114 "Average Value = " + computeAverage() + " " + unit + " " +
115 "Standard Deviation = " + computeStandardDeviation() + " " + unit +
141 * Construct the Statistics Accumulator by providing the unit as a String.
151 * @param unit a String representing the units for the samples collected
154 public StatisticsAccumulator( String unit ) {
155 this.unit = unit;
[all...]
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DDelayed.java55 * given time unit.
57 * @param unit the time unit
61 long getDelay(TimeUnit unit); argument
H A DScheduledExecutorService.java104 * @param unit the time unit of the delay parameter
113 long delay, TimeUnit unit);
121 * @param unit the time unit of the delay parameter
128 long delay, TimeUnit unit);
146 * @param unit the time unit of the initialDelay and period parameters
158 TimeUnit unit);
173 * @param unit th
112 schedule(Runnable command, long delay, TimeUnit unit) argument
127 schedule(Callable<V> callable, long delay, TimeUnit unit) argument
155 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
182 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
H A DBlockingDeque.java70 * <td>{@link #offerFirst(Object, long, TimeUnit) offerFirst(e, time, unit)}</td>
77 * <td>{@link #pollFirst(long, TimeUnit) pollFirst(time, unit)}</td>
101 * <td>{@link #offerLast(Object, long, TimeUnit) offerLast(e, time, unit)}</td>
108 * <td>{@link #pollLast(long, TimeUnit) pollLast(time, unit)}</td>
150 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
151 * <td>{@link #offerLast(Object, long, TimeUnit) offerLast(e, time, unit)}</td>
169 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td>
170 * <td>{@link #pollFirst(long, TimeUnit) pollFirst(time, unit)}</td>
305 * <tt>unit</tt>
306 * @param unit
317 offerFirst(E e, long timeout, TimeUnit unit) argument
339 offerLast(E e, long timeout, TimeUnit unit) argument
373 pollFirst(long timeout, TimeUnit unit) argument
389 pollLast(long timeout, TimeUnit unit) argument
506 offer(E e, long timeout, TimeUnit unit) argument
557 poll(long timeout, TimeUnit unit) argument
[all...]
H A DBlockingQueue.java70 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
77 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td>
241 * <tt>unit</tt>
242 * @param unit a <tt>TimeUnit</tt> determining how to interpret the
253 boolean offer(E e, long timeout, TimeUnit unit) argument
270 * <tt>unit</tt>
271 * @param unit a <tt>TimeUnit</tt> determining how to interpret the
277 E poll(long timeout, TimeUnit unit) argument
H A DCompletionService.java117 * <tt>unit</tt>
118 * @param unit a <tt>TimeUnit</tt> determining how to interpret the
125 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; argument
H A DFuture.java158 * @param unit the time unit of the timeout argument
167 V get(long timeout, TimeUnit unit) argument
H A DTransferQueue.java120 * {@code unit}
121 * @param unit a {@code TimeUnit} determining how to interpret the
134 boolean tryTransfer(E e, long timeout, TimeUnit unit) argument
H A DCountDownLatch.java274 * @param unit the time unit of the {@code timeout} argument
280 public boolean await(long timeout, TimeUnit unit) argument
282 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
H A DExecutorService.java209 * @param unit the time unit of the timeout argument
214 boolean awaitTermination(long timeout, TimeUnit unit) argument
307 * @param unit the time unit of the timeout argument
316 * unit are <tt>null</tt>
321 long timeout, TimeUnit unit)
356 * @param unit the time unit of the timeout argument
359 * @throws NullPointerException if tasks, or unit, o
320 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
367 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
[all...]
H A DExecutors.java633 public boolean awaitTermination(long timeout, TimeUnit unit) argument
635 return e.awaitTermination(timeout, unit);
651 long timeout, TimeUnit unit)
653 return e.invokeAll(tasks, timeout, unit);
660 long timeout, TimeUnit unit)
662 return e.invokeAny(tasks, timeout, unit);
688 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument
689 return e.schedule(command, delay, unit);
691 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument
692 return e.schedule(callable, delay, unit);
650 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
659 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
694 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
697 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
/openjdk7/jdk/src/share/classes/java/nio/file/attribute/
H A DFileTime.java59 * The unit of granularity to interpret the value.
61 private final TimeUnit unit; field in class:FileTime
78 daysAndNanos = new DaysAndNanos(value, unit);
85 private FileTime(long value, TimeUnit unit) { argument
86 if (unit == null)
89 this.unit = unit;
93 * Returns a {@code FileTime} representing a value at the given unit of
99 * @param unit
100 * the unit o
104 from(long value, TimeUnit unit) argument
134 to(TimeUnit unit) argument
320 DaysAndNanos(long value, TimeUnit unit) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/inspector/
H A DXPlotter.java35 Plotter.Unit unit) {
36 super(unit,0,false);
34 XPlotter(JTable table, Plotter.Unit unit) argument
/openjdk7/jdk/src/share/classes/java/nio/file/
H A DWatchService.java146 * how to wait before giving up, in units of unit
147 * @param unit
159 WatchKey poll(long timeout, TimeUnit unit) argument
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DCondition.java312 * boolean aMethod(long timeout, TimeUnit unit) {
313 * long nanos = unit.toNanos(timeout);
365 * awaitNanos(unit.toNanos(time)) &gt; 0
368 * @param unit the time unit of the {@code time} argument
374 boolean await(long time, TimeUnit unit) throws InterruptedException; argument
H A DLock.java312 * @param unit the time unit of the {@code time} argument
320 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; argument
/openjdk7/hotspot/src/share/vm/services/
H A DmemReporter.cpp299 const char* unit = memory_unit(_scale); local
301 total_reserved, unit, total_committed, unit);
322 const char* unit = memory_unit(_scale); local
332 MemBaseline::type2name(type), total_reserved, unit,
333 total_committed, unit);
340 _thread_stack_reserved, unit, _thread_stack_committed, unit);
345 _output->print_cr("%27s (malloc=%d%s, #%d)", " ", malloc_amt, unit,
348 _output->print_cr("%27s (malloc=%d%s)", " ", malloc_amt, unit);
377 const char* unit = memory_unit(_scale); local
389 const char* unit = memory_unit(_scale); local
416 const char* unit = memory_unit(_scale); local
436 const char* unit = memory_unit(_scale); local
456 const char* unit = memory_unit(_scale); local
477 const char* unit = memory_unit(_scale); local
581 const char* unit = memory_unit(_scale); local
612 const char* unit = memory_unit(_scale); local
[all...]
/openjdk7/jdk/test/java/util/concurrent/DelayQueue/
H A DStress.java43 public long getDelay(TimeUnit unit) {
44 return unit.convert(expiry - System.nanoTime(),
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/org/glassfish/external/statistics/impl/
H A DCountStatisticImpl.java47 public CountStatisticImpl(long countVal, String name, String unit, argument
49 super(name, unit, desc, startTime, sampleTime);
54 public CountStatisticImpl(String name, String unit, String desc) { argument
55 this(0L, name, unit, desc, -1L, System.currentTimeMillis());
H A DStringStatisticImpl.java48 public StringStatisticImpl(String str, String name, String unit, argument
50 super(name, unit, desc, startTime, sampleTime);
55 public StringStatisticImpl(String name, String unit, String desc) { argument
56 this("", name, unit, desc, System.currentTimeMillis(), System.currentTimeMillis());
H A DStatisticImpl.java56 protected StatisticImpl(String name, String unit, String desc, argument
65 if (isValidString(unit)) {
66 statisticUnit = unit;
68 statisticUnit = "unit";
81 protected StatisticImpl(String name, String unit, String desc) { argument
82 this(name, unit, desc, System.currentTimeMillis(), System.currentTimeMillis());
90 statMap.put("unit", statisticUnit);
/openjdk7/jdk/test/java/nio/file/attribute/FileTime/
H A DBasic.java74 for (TimeUnit unit: TimeUnit.values()) {
75 for (int i=0; i<100; i++) { to(rand.nextLong(), unit); }
76 to(Long.MIN_VALUE, unit);
77 to(Long.MAX_VALUE, unit);
147 static void to(long v, TimeUnit unit) { argument
148 FileTime t = FileTime.from(v, unit);
151 long expected = u.convert(v, unit);
158 static void ts(long v, TimeUnit unit, String expected) { argument
159 String result = FileTime.from(v, unit).toString();
161 System.err.format("FileTime.from(%d, %s).toString() failed\n", v, unit);
[all...]
/openjdk7/jdk/test/java/util/concurrent/ThreadPoolExecutor/
H A DScheduledTickleService.java96 TimeUnit unit) {
106 interval, unit);
149 public long getDelay(TimeUnit unit) { return task.getDelay(unit); } argument
157 public V get(long timeout, TimeUnit unit) argument
159 return task.get(timeout, unit);
95 setUpdateInterval(long interval, TimeUnit unit) argument
/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DAsynchronousSocketChannel.java372 * @param unit
373 * The time unit of the {@code timeout} argument
390 TimeUnit unit,
475 * @param unit
476 * The time unit of the {@code timeout} argument
498 TimeUnit unit,
527 * @param unit
528 * The time unit of the {@code timeout} argument
543 TimeUnit unit,
624 * @param unit
388 read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) argument
494 read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument
541 write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) argument
641 write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument
[all...]

Completed in 66 milliseconds

12345