/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | ScheduledThreadPoolExecutor.java | 233 public long getDelay(TimeUnit unit) { argument 234 return unit.convert(time - now(), TimeUnit.NANOSECONDS); 489 private long triggerTime(long delay, TimeUnit unit) { argument 490 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay)); 524 TimeUnit unit) { 525 if (command == null || unit == null) 529 triggerTime(delay, unit))); 540 TimeUnit unit) { 541 if (callable == null || unit == null) 545 triggerTime(delay, unit))); 522 schedule(Runnable command, long delay, TimeUnit unit) argument 538 schedule(Callable<V> callable, long delay, TimeUnit unit) argument 555 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument 579 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument 1038 offer(Runnable e, long timeout, TimeUnit unit) argument 1105 poll(long timeout, TimeUnit unit) argument [all...] |
H A D | SynchronousQueue.java | 893 public boolean offer(E o, long timeout, TimeUnit unit) argument 896 if (transferer.transfer(o, true, unit.toNanos(timeout)) != null) 941 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument 942 Object e = transferer.transfer(null, true, unit.toNanos(timeout));
|
H A D | ForkJoinPool.java | 1993 * @param unit the time unit of the timeout argument 1998 public boolean awaitTermination(long timeout, TimeUnit unit) argument 2000 long nanos = unit.toNanos(timeout);
|
H A D | ThreadPoolExecutor.java | 1182 * @param unit the time unit for the {@code keepAliveTime} argument 1196 TimeUnit unit, 1198 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, 1213 * @param unit the time unit for the {@code keepAliveTime} argument 1230 TimeUnit unit, 1233 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, 1248 * @param unit the time unit fo 1193 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) argument 1227 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument 1262 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler) argument 1299 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument 1457 awaitTermination(long timeout, TimeUnit unit) argument 1697 setKeepAliveTime(long time, TimeUnit unit) argument 1718 getKeepAliveTime(TimeUnit unit) argument [all...] |
/openjdk7/hotspot/src/share/vm/services/ |
H A D | memTracker.cpp | 514 bool MemTracker::print_memory_usage(BaselineOutputer& out, size_t unit, bool summary_only) { argument 519 BaselineReporter reporter(out, unit); 572 bool MemTracker::compare_memory_usage(BaselineOutputer& out, size_t unit, bool summary_only) { argument 578 BaselineReporter reporter(out, unit);
|
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/ |
H A D | Plotter.java | 115 private Unit unit; field in class:Plotter 133 public Plotter(Unit unit) { argument 134 this(unit, 0); 137 public Plotter(Unit unit, int decimals) { argument 138 this(unit,decimals,true); 143 public Plotter(Unit unit, int decimals, boolean displayLegend) { argument 145 setUnit(unit); 161 public void setUnit(Unit unit) { argument 162 this.unit = unit; [all...] |
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/ |
H A D | AbstractQueuedLongSynchronizer.java | 1937 public final boolean await(long time, TimeUnit unit) argument 1939 if (unit == null) 1941 long nanosTimeout = unit.toNanos(time);
|
H A D | AbstractQueuedSynchronizer.java | 249 * public boolean tryLock(long timeout, TimeUnit unit) 251 * return sync.tryAcquireNanos(1, unit.toNanos(timeout)); 2158 public final boolean await(long time, TimeUnit unit) argument 2160 if (unit == null) 2162 long nanosTimeout = unit.toNanos(time);
|
/openjdk7/jdk/src/share/native/sun/awt/libpng/ |
H A D | pngget.c | 757 int *unit, png_fixed_point *width, png_fixed_point *height) 762 *unit = info_ptr->scal_unit; 777 int *unit, double *width, double *height) 782 *unit = info_ptr->scal_unit; 793 int *unit, png_charpp width, png_charpp height) 798 *unit = info_ptr->scal_unit; 756 png_get_sCAL_fixed(png_structp png_ptr, png_const_infop info_ptr, int *unit, png_fixed_point *width, png_fixed_point *height) argument 776 png_get_sCAL(png_const_structp png_ptr, png_const_infop info_ptr, int *unit, double *width, double *height) argument 792 png_get_sCAL_s(png_const_structp png_ptr, png_const_infop info_ptr, int *unit, png_charpp width, png_charpp height) argument
|
H A D | pngset.c | 280 /* TODO: validate format of calibration name and unit name */ 357 int unit, png_const_charp swidth, png_const_charp sheight) 366 /* Double check the unit (should never get here with an invalid 367 * unit unless this is an API call.) 369 if (unit != 1 && unit != 2) 370 png_error(png_ptr, "Invalid sCAL unit"); 380 info_ptr->scal_unit = (png_byte)unit; 384 png_debug1(3, "allocating unit for info (%u bytes)", (unsigned int)lengthw); 398 png_debug1(3, "allocating unit fo 356 png_set_sCAL_s(png_structp png_ptr, png_infop info_ptr, int unit, png_const_charp swidth, png_const_charp sheight) argument 419 png_set_sCAL(png_structp png_ptr, png_infop info_ptr, int unit, double width, double height) argument 449 png_set_sCAL_fixed(png_structp png_ptr, png_infop info_ptr, int unit, png_fixed_point width, png_fixed_point height) argument [all...] |
H A D | pngtest.c | 1160 int unit; local 1163 if (png_get_sCAL(read_ptr, read_info_ptr, &unit, &scal_width, 1166 png_set_sCAL(write_ptr, write_info_ptr, unit, scal_width, scal_height); 1172 int unit; local 1175 if (png_get_sCAL_s(read_ptr, read_info_ptr, &unit, &scal_width, 1178 png_set_sCAL_s(write_ptr, write_info_ptr, unit, scal_width,
|
H A D | pngwutil.c | 1873 png_warning(png_ptr, "Unrecognized unit type for oFFs chunk"); 1948 png_write_sCAL_s(png_structp png_ptr, int unit, png_const_charp width, argument 1967 buf[0] = (png_byte)unit; 1989 png_warning(png_ptr, "Unrecognized unit type for pHYs chunk");
|
/openjdk7/jdk/src/macosx/native/com/sun/media/sound/ |
H A D | PLATFORM_API_MacOSX_PCM.cpp | 631 AudioUnit unit; local 642 err = OpenAComponent(comp, &unit); 651 err = AudioUnitSetProperty(unit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Output, 657 err = AudioUnitSetProperty(unit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input, 667 CloseComponent(unit); 674 err = AudioUnitSetProperty(unit, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 678 CloseComponent(unit); 683 return unit;
|
/openjdk7/hotspot/src/share/vm/opto/ |
H A D | memnode.cpp | 2633 const int unit = BytesPerLong; local 2639 if (!Matcher::init_array_count_is_in_bytes) size *= unit; 2643 if (size <= 0 || size % unit != 0) return NULL; 2644 intptr_t count = size / unit; 2706 int unit = BytesPerLong; local 2707 if ((offset % unit) != 0) { 2715 assert((offset % unit) == 0, ""); 2731 int unit = BytesPerLong; local 2735 // Scale to the unit required by the CPU: 2737 Node* shift = phase->intcon(exact_log2(unit)); [all...] |