/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | Semaphore.java | 175 Sync(int permits) { in Sync() argument 176 setState(permits); in Sync() 230 NonfairSync(int permits) { in NonfairSync() argument 231 super(permits); in NonfairSync() 245 FairSync(int permits) { in FairSync() argument 246 super(permits); in FairSync() 270 public Semaphore(int permits) { in Semaphore() argument 271 sync = new NonfairSync(permits); in Semaphore() 285 public Semaphore(int permits, boolean fair) { in Semaphore() argument 286 sync = fair ? new FairSync(permits) : new NonfairSync(permits); in Semaphore() [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DisabledAlgorithmConstraints.java | 96 final public boolean permits(Set<CryptoPrimitive> primitives, in permits() method in DisabledAlgorithmConstraints 112 final public boolean permits(Set<CryptoPrimitive> primitives, Key key) { in permits() method in DisabledAlgorithmConstraints 121 final public boolean permits(Set<CryptoPrimitive> primitives, in permits() method in DisabledAlgorithmConstraints 138 public final void permits(Set<CryptoPrimitive> primitives, in permits() method in DisabledAlgorithmConstraints 147 public final void permits(Set<CryptoPrimitive> primitives, in permits() method in DisabledAlgorithmConstraints 174 if (!permits(primitives, algorithm, parameters)) { in checkConstraints() 180 if (!permits(primitives, key.getAlgorithm(), null)) { in checkConstraints() 185 return algorithmConstraints.permits(key); in checkConstraints() 199 if (!permits(primitives, algorithm, null)) { in checkConstraints() 207 if (!permits(primitives, cert.getPublicKey().getAlgorithm(), null)) { in checkConstraints() [all …]
|
D | SignatureFileVerifier.java | 228 if (!JAR_DISABLED_CHECK.permits(DIGEST_PRIMITIVE_SET, algorithm, null)) { in getDigest()
|
/libcore/ojluni/src/main/java/java/security/ |
D | AlgorithmConstraints.java | 69 public boolean permits(Set<CryptoPrimitive> primitives, in permits() method 87 public boolean permits(Set<CryptoPrimitive> primitives, Key key); in permits() method 105 public boolean permits(Set<CryptoPrimitive> primitives, in permits() method
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | SemaphoreTest.java | 36 PublicSemaphore(int permits) { super(permits); } in PublicSemaphore() argument 37 PublicSemaphore(int permits, boolean fair) { super(permits, fair); } in PublicSemaphore() argument 107 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN() argument 108 s.acquire(permits); in acquireN() 117 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN() argument 118 s.acquireUninterruptibly(permits); in acquireUninterruptiblyN() 127 void acquire(Semaphore s, int permits) { in tryAcquireN() argument 128 assertTrue(s.tryAcquire(permits)); in tryAcquireN() 137 void acquire(Semaphore s, int permits) throws InterruptedException { in acquire() argument 138 assertTrue(s.tryAcquire(permits, 2 * LONG_DELAY_MS, MILLISECONDS)); in acquire() [all …]
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | AlgorithmChecker.java | 261 ((DisabledAlgorithmConstraints)constraints).permits(primitives, in check() 287 if (!constraints.permits( in check() 296 if (!constraints.permits(primitives, currPubKey)) { in check() 306 if (!constraints.permits( in check() 416 if (!certPathDefaultConstraints.permits( in check()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | SignerInfo.java | 376 if (!JAR_DISABLED_CHECK.permits(DIGEST_PRIMITIVE_SET, in verify() 424 if (!JAR_DISABLED_CHECK.permits(SIG_PRIMITIVE_SET, algname, null)) { in verify() 436 if (!JAR_DISABLED_CHECK.permits(SIG_PRIMITIVE_SET, key)) { in verify() 622 if (!JAR_DISABLED_CHECK.permits(DIGEST_PRIMITIVE_SET, digestAlgname, in verifyTimestamp()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSpliterators.java | 909 private final AtomicLong permits; field in StreamSpliterators.AbstractWrappingSpliterator.UnorderedSliceSpliterator 915 this.permits = new AtomicLong(limit >= 0 ? skip + limit : skip); in UnorderedSliceSpliterator() 922 this.permits = parent.permits; in UnorderedSliceSpliterator() 946 remainingPermits = permits.get(); in acquirePermits() 951 !permits.compareAndSet(remainingPermits, remainingPermits - grabbing)); in acquirePermits() 965 if (permits.get() > 0) in permitStatus() 973 if (permits.get() == 0) in trySplit()
|