Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 49) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/
DArraysParallelSortHelpers.java115 final T[] a, w; field in ArraysParallelSortHelpers.FJObject.Sorter
118 Sorter(CountedCompleter<?> par, T[] a, T[] w, int base, int size, in Sorter() argument
122 this.a = a; this.w = w; this.base = base; this.size = size; in Sorter()
129 T[] a = this.a, w = this.w; // localize all params in compute() local
133 Relay fc = new Relay(new Merger<T>(s, w, a, wb, h, in compute()
135 Relay rc = new Relay(new Merger<T>(fc, a, w, b+h, q, in compute()
137 new Sorter<T>(rc, a, w, b+u, n-u, wb+u, g, c).fork(); in compute()
138 new Sorter<T>(rc, a, w, b+h, q, wb+h, g, c).fork();; in compute()
139 Relay bc = new Relay(new Merger<T>(fc, a, w, b, q, in compute()
141 new Sorter<T>(bc, a, w, b+q, h-q, wb+q, g, c).fork(); in compute()
[all …]
DIllegalFormatWidthException.java38 private int w; field in IllegalFormatWidthException
46 public IllegalFormatWidthException(int w) { in IllegalFormatWidthException() argument
47 this.w = w; in IllegalFormatWidthException()
56 return w; in getWidth()
60 return Integer.toString(w); in getMessage()
DArrayList.java716 int r = 0, w = 0; in batchRemove() local
721 elementData[w++] = elementData[r]; in batchRemove()
727 elementData, w, in batchRemove()
729 w += size - r; in batchRemove()
731 if (w != size) { in batchRemove()
733 for (int i = w; i < size; i++) in batchRemove()
735 modCount += size - w; in batchRemove()
736 size = w; in batchRemove()
/libcore/ojluni/src/main/java/sun/invoke/util/
DWrapper.java167 for (Wrapper w : values()) { in checkConvertibleFrom()
168 assert(w.isConvertibleFrom(w)); in checkConvertibleFrom()
169 assert(VOID.isConvertibleFrom(w)); in checkConvertibleFrom()
170 if (w != VOID) { in checkConvertibleFrom()
171 assert(OBJECT.isConvertibleFrom(w)); in checkConvertibleFrom()
172 assert(!w.isConvertibleFrom(VOID)); in checkConvertibleFrom()
175 if (w != CHAR) { in checkConvertibleFrom()
176 assert(!CHAR.isConvertibleFrom(w)); in checkConvertibleFrom()
177 if (!w.isConvertibleFrom(INT)) in checkConvertibleFrom()
178 assert(!w.isConvertibleFrom(CHAR)); in checkConvertibleFrom()
[all …]
/libcore/ojluni/src/main/java/java/security/spec/
DECPublicKeySpec.java41 private ECPoint w; field in ECPublicKeySpec
55 public ECPublicKeySpec(ECPoint w, ECParameterSpec params) { in ECPublicKeySpec() argument
56 if (w == null) { in ECPublicKeySpec()
62 if (w == ECPoint.POINT_INFINITY) { in ECPublicKeySpec()
65 this.w = w; in ECPublicKeySpec()
74 return w; in getW()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinPool.java1594 WorkQueue w = new WorkQueue(this, wt); in registerWorker() local
1615 w.hint = s; // use as random seed in registerWorker()
1616 w.config = i | mode; in registerWorker()
1617 w.scanState = i | (s & 0x7fff0000); // random seq bits in registerWorker()
1618 ws[i] = w; in registerWorker()
1625 return w; in registerWorker()
1638 WorkQueue w = null; in deregisterWorker() local
1639 if (wt != null && (w = wt.workQueue) != null) { in deregisterWorker()
1641 int idx = w.config & SMASK; in deregisterWorker()
1642 int ns = w.nsteals; in deregisterWorker()
[all …]
DThreadPoolExecutor.java764 for (Worker w : workers) in checkShutdownAccess()
765 security.checkAccess(w.thread); in checkShutdownAccess()
780 for (Worker w : workers) in interruptWorkers()
781 w.interruptIfStarted(); in interruptWorkers()
810 for (Worker w : workers) { in interruptIdleWorkers()
811 Thread t = w.thread; in interruptIdleWorkers()
812 if (!t.isInterrupted() && w.tryLock()) { in interruptIdleWorkers()
817 w.unlock(); in interruptIdleWorkers()
948 Worker w = null; in addWorker() local
950 w = new Worker(firstTask); in addWorker()
[all …]
DExchanger.java368 Thread w = q.parked; in arenaExchange() local
369 if (w != null) in arenaExchange()
370 U.unpark(w); in arenaExchange()
463 Thread w = q.parked; in slotExchange() local
464 if (w != null) in slotExchange()
465 U.unpark(w); in slotExchange()
DSynchronousQueue.java264 Thread w = waiter; in tryMatch() local
265 if (w != null) { // waiters need at most one unpark in tryMatch()
267 LockSupport.unpark(w); in tryMatch()
437 Thread w = Thread.currentThread(); in awaitFulfill() local
442 if (w.isInterrupted()) in awaitFulfill()
457 s.waiter = w; // establish waiter so can park next iter in awaitFulfill()
738 Thread w = Thread.currentThread(); in awaitFulfill() local
743 if (w.isInterrupted()) in awaitFulfill()
758 s.waiter = w; in awaitFulfill()
/libcore/luni/src/test/java/tests/security/spec/
DECPublicKeySpecTest.java29 ECPoint w; field in ECPublicKeySpecTest
42 w = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1)); in setUp()
44 ecpks = new ECPublicKeySpec(w, params); in setUp()
48 w = null; in tearDown()
65 assertEquals("wrong w value", w, ecpks.getW()); in test_constructorLjava_security_spec_ECPointLjava_security_spec_ECParameterSpec()
77 new ECPublicKeySpec(w, null); in test_constructorLjava_security_spec_ECPointLjava_security_spec_ECParameterSpec()
88 assertEquals("wrong w value", w, ecpks.getW()); in testGetW()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodTypeForm.java182 Wrapper w = Wrapper.forPrimitiveType(pt); in MethodTypeForm() local
183 if (w.isDoubleWord()) ++lac; in MethodTypeForm()
184 if (w.isSubwordOrInt() && pt != int.class) { in MethodTypeForm()
196 Wrapper w = Wrapper.forPrimitiveType(rt); in MethodTypeForm() local
197 if (w.isDoubleWord()) ++lrc; in MethodTypeForm()
198 if (w.isSubwordOrInt() && rt != int.class) in MethodTypeForm()
229 Wrapper w = Wrapper.forBasicType(pt); in MethodTypeForm() local
230 if (w.isDoubleWord()) --slot; in MethodTypeForm()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleMatcher.java259 double w; in parse() local
263 w = MAX_WEIGHT; in parse()
268 w = Double.parseDouble(range.substring(index)); in parse()
276 if (w < MIN_WEIGHT || w > MAX_WEIGHT) { in parse()
277 throw new IllegalArgumentException("weight=" + w in parse()
285 LanguageRange lr = new LanguageRange(r, w); in parse()
288 if (list.get(j).getWeight() < w) { in parse()
304 list.add(index+1, new LanguageRange(equivalent, w)); in parse()
314 list.add(index+1, new LanguageRange(equiv, w)); in parse()
323 list.add(index+1, new LanguageRange(equivalent, w)); in parse()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java376 private StringBuilder append(StringBuilder sb, int w, int d) { in append() argument
377 while (w > 0) { in append()
378 sb.append((char)(d/w + '0')); in append()
379 d = d % w; in append()
380 w /= 10; in append()
463 int w = 100_000_000; in toString()
466 w /= 10; in toString()
468 append(sb, w, fraction); in toString()
DPosixFilePermissions.java42 private static void writeBits(StringBuilder sb, boolean r, boolean w, boolean x) { in writeBits() argument
48 if (w) { in writeBits()
/libcore/luni/src/main/java/java/math/
DNativeBN.java82 public static native void BN_add_word(long a, int w); in BN_add_word() argument
86 public static native void BN_mul_word(long a, int w); in BN_mul_word() argument
90 public static native int BN_mod_word(long a, int w); in BN_mod_word() argument
DBigInt.java240 void addPositiveInt(int w) { in addPositiveInt() argument
241 NativeBN.BN_add_word(this.bignum, w); in addPositiveInt()
244 void multiplyByPositiveInt(int w) { in multiplyByPositiveInt() argument
245 NativeBN.BN_mul_word(this.bignum, w); in multiplyByPositiveInt()
248 static int remainderByPositiveInt(BigInt a, int w) { in remainderByPositiveInt() argument
249 return NativeBN.BN_mod_word(a.bignum, w); in remainderByPositiveInt()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java1012 WNode q; Thread w; in release() local
1019 if (q != null && (w = q.thread) != null) in release()
1020 U.unpark(w); in release()
1088 WNode c; Thread w; in acquireWrite() local
1091 (w = c.thread) != null) in acquireWrite()
1092 U.unpark(w); in acquireWrite()
1191 WNode pp, c; Thread w; in acquireRead() local
1194 (w = c.thread) != null) // help release in acquireRead()
1195 U.unpark(w); in acquireRead()
1253 WNode c; Thread w; in acquireRead() local
[all …]
DAbstractQueuedLongSynchronizer.java1762 for (Node w = firstWaiter; w != null; w = w.nextWaiter) { in hasWaiters()
1763 if (w.waitStatus == Node.CONDITION) in hasWaiters()
1782 for (Node w = firstWaiter; w != null; w = w.nextWaiter) { in getWaitQueueLength()
1783 if (w.waitStatus == Node.CONDITION) in getWaitQueueLength()
1802 for (Node w = firstWaiter; w != null; w = w.nextWaiter) { in getWaitingThreads()
1803 if (w.waitStatus == Node.CONDITION) { in getWaitingThreads()
1804 Thread t = w.thread; in getWaitingThreads()
DReentrantReadWriteLock.java396 int w = exclusiveCount(c); in tryAcquire() local
399 if (w == 0 || current != getExclusiveOwnerThread()) in tryAcquire()
401 if (w + exclusiveCount(acquires) > MAX_COUNT) in tryAcquire()
561 int w = exclusiveCount(c); in tryWriteLock() local
562 if (w == 0 || current != getExclusiveOwnerThread()) in tryWriteLock()
564 if (w == MAX_COUNT) in tryWriteLock()
1486 int w = Sync.exclusiveCount(c); in toString() local
1490 "[Write locks = " + w + ", Read locks = " + r + "]"; in toString()
DAbstractQueuedSynchronizer.java2234 for (Node w = firstWaiter; w != null; w = w.nextWaiter) { in hasWaiters()
2235 if (w.waitStatus == Node.CONDITION) in hasWaiters()
2254 for (Node w = firstWaiter; w != null; w = w.nextWaiter) { in getWaitQueueLength()
2255 if (w.waitStatus == Node.CONDITION) in getWaitQueueLength()
2274 for (Node w = firstWaiter; w != null; w = w.nextWaiter) { in getWaitingThreads()
2275 if (w.waitStatus == Node.CONDITION) { in getWaitingThreads()
2276 Thread t = w.thread; in getWaitingThreads()
/libcore/ojluni/src/main/java/java/nio/charset/
DCoderResult.java204 WeakReference<CoderResult> w; in get() local
208 } else if ((w = cache.get(k)) != null) { in get()
209 e = w.get(); in get()
/libcore/ojluni/src/main/java/java/sql/
DSQLWarning.java212 public void setNextWarning(SQLWarning w) { in setNextWarning() argument
213 setNextException(w); in setNextWarning()
/libcore/benchmarks/src/benchmarks/
DXmlSerializeBenchmark.java51 CharArrayWriter w = new CharArrayWriter(); in serializeRandomXml() local
52 serializer.setOutput(w); in serializeRandomXml()
/libcore/luni/src/main/native/
Djava_math_NativeBN.cpp414 static void NativeBN_BN_add_word(JNIEnv* env, jclass, jlong a, jint w) { in NativeBN_BN_add_word() argument
416 if (!BN_add_word(toBigNum(a), w)) { in NativeBN_BN_add_word()
421 static void NativeBN_BN_mul_word(JNIEnv* env, jclass, jlong a, jint w) { in NativeBN_BN_mul_word() argument
423 if (!BN_mul_word(toBigNum(a), w)) { in NativeBN_BN_mul_word()
428 static jint NativeBN_BN_mod_word(JNIEnv* env, jclass, jlong a, jint w) { in NativeBN_BN_mod_word() argument
430 BN_ULONG result = BN_mod_word(toBigNum(a), w); in NativeBN_BN_mod_word()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DThreadPoolExecutor.java163 private void addWorkerFailed(java.util.concurrent.ThreadPoolExecutor.Worker w) { in addWorkerFailed() argument
168 java.util.concurrent.ThreadPoolExecutor.Worker w, boolean completedAbruptly) { in processWorkerExit() argument
176 final void runWorker(java.util.concurrent.ThreadPoolExecutor.Worker w) { in runWorker() argument

12