/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/ |
D | TimeUnitTest.java | 28 for (long t = 0; t < 10; ++t) { in testConvert() 29 assertEquals(t, in testConvert() 30 TimeUnit.SECONDS.convert(t, in testConvert() 32 assertEquals(t, in testConvert() 33 TimeUnit.SECONDS.convert(1000 * t, in testConvert() 35 assertEquals(t, in testConvert() 36 TimeUnit.SECONDS.convert(1000000 * t, in testConvert() 38 assertEquals(t, in testConvert() 39 TimeUnit.SECONDS.convert(1000000000 * t, in testConvert() 41 assertEquals(1000 * t, in testConvert() [all …]
|
D | LockSupportTest.java | 28 Thread t = new Thread(new Runnable() { in testPark() local 38 t.start(); in testPark() 40 LockSupport.unpark(t); in testPark() 41 t.join(); in testPark() 52 Thread t = new Thread(new Runnable() { in testPark2() local 63 t.start(); in testPark2() 64 LockSupport.unpark(t); in testPark2() 65 t.join(); in testPark2() 76 Thread t = new Thread(new Runnable() { in testPark3() local 87 t.start(); in testPark3() [all …]
|
D | CountDownLatchTest.java | 61 Thread t = new Thread(new Runnable() { in testAwait() local 72 t.start(); in testAwait() 80 t.join(); in testAwait() 93 Thread t = new Thread(new Runnable() { in testTimedAwait() local 103 t.start(); in testTimedAwait() 111 t.join(); in testTimedAwait() 122 Thread t = new Thread(new Runnable() { in testAwait_InterruptedException() local 131 t.start(); in testAwait_InterruptedException() 134 t.interrupt(); in testAwait_InterruptedException() 135 t.join(); in testAwait_InterruptedException() [all …]
|
D | SynchronousQueueTest.java | 162 Thread t = new Thread(new Runnable() { in testBlockingPut() local 171 t.start(); in testBlockingPut() 174 t.interrupt(); in testBlockingPut() 175 t.join(); in testBlockingPut() 187 Thread t = new Thread(new Runnable() { in testPutWithTake() local 206 t.start(); in testPutWithTake() 210 t.interrupt(); in testPutWithTake() 211 t.join(); in testPutWithTake() 222 Thread t = new Thread(new Runnable() { in testTimedOffer() local 234 t.start(); in testTimedOffer() [all …]
|
D | ReentrantReadWriteLockTest.java | 161 Thread t = new Thread(new Runnable() { in testWriteLockInterruptibly_Interrupted() local 173 t.start(); in testWriteLockInterruptibly_Interrupted() 174 t.interrupt(); in testWriteLockInterruptibly_Interrupted() 176 t.join(); in testWriteLockInterruptibly_Interrupted() 188 Thread t = new Thread(new Runnable() { in testWriteTryLock_Interrupted() local 196 t.start(); in testWriteTryLock_Interrupted() 197 t.interrupt(); in testWriteTryLock_Interrupted() 199 t.join(); in testWriteTryLock_Interrupted() 211 Thread t = new Thread(new Runnable() { in testReadLockInterruptibly_Interrupted() local 219 t.start(); in testReadLockInterruptibly_Interrupted() [all …]
|
D | AbstractQueuedSynchronizerTest.java | 361 Thread t = new Thread(new Runnable() { in testInterruptedException2() local 370 t.start(); in testInterruptedException2() 371 t.interrupt(); in testInterruptedException2() 384 Thread t = new Thread(new Runnable() { in testTryAcquireWhenSynced() local 390 t.start(); in testTryAcquireWhenSynced() 391 t.join(); in testTryAcquireWhenSynced() 404 Thread t = new Thread(new Runnable() { in testAcquireNanos_Timeout() local 414 t.start(); in testAcquireNanos_Timeout() 415 t.join(); in testAcquireNanos_Timeout() 432 Thread t = new Thread(new Runnable() { in testGetState() local [all …]
|
D | FutureTaskTest.java | 31 public void setException(Throwable t) { super.setException(t); } in setException() argument 170 Thread t = new Thread(task); in testCancelInterrupt() local 171 t.start(); in testCancelInterrupt() 176 t.join(); in testCancelInterrupt() 199 Thread t = new Thread(task); in testCancelNoInterrupt() local 200 t.start(); in testCancelNoInterrupt() 205 t.join(); in testCancelNoInterrupt() 227 Thread t = new Thread(new Runnable() { in testGet1() local 239 t.start(); in testGet1() 242 t.join(); in testGet1() [all …]
|
D | SemaphoreTest.java | 180 Thread t = new Thread(new Runnable() { in testAcquireReleaseInDifferentThreads() local 193 t.start(); in testAcquireReleaseInDifferentThreads() 200 t.join(); in testAcquireReleaseInDifferentThreads() 211 Thread t = new Thread(new Runnable() { in testUninterruptibleAcquireReleaseInDifferentThreads() local 220 t.start(); in testUninterruptibleAcquireReleaseInDifferentThreads() 227 t.join(); in testUninterruptibleAcquireReleaseInDifferentThreads() 239 Thread t = new Thread(new Runnable() { in testTimedAcquireReleaseInDifferentThreads() local 253 t.start(); in testTimedAcquireReleaseInDifferentThreads() 259 t.join(); in testTimedAcquireReleaseInDifferentThreads() 270 Thread t = new Thread(new Runnable() { in testAcquire_InterruptedException() local [all …]
|
/dalvik/libcore/luni/src/test/java/tests/api/java/util/ |
D | TimerTest.java | 58 public TimerTestTask(Timer t) { in TimerTestTask() argument 59 timer = t; in TimerTestTask() 108 Timer t = null; in test_ConstructorZ() local 111 t = new Timer(true); in test_ConstructorZ() 113 t.schedule(testTask, 200); in test_ConstructorZ() 122 t.cancel(); in test_ConstructorZ() 124 if (t != null) in test_ConstructorZ() 125 t.cancel(); in test_ConstructorZ() 140 Timer t = null; in test_Constructor() local 143 t = new Timer(); in test_Constructor() [all …]
|
D | TimerTaskTest.java | 95 Timer t = null; in test_cancel() local 103 t = new Timer(); in test_cancel() 105 t.schedule(testTask, 500); in test_cancel() 107 t.cancel(); in test_cancel() 110 t = new Timer(); in test_cancel() 112 t.schedule(testTask, 50); in test_cancel() 125 t.cancel(); in test_cancel() 129 t = new Timer(); in test_cancel() 131 t.schedule(testTask, 500, 500); // should never run in test_cancel() 135 t.cancel(); in test_cancel() [all …]
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/digests/ |
D | LongDigest.java | 40 protected LongDigest(LongDigest t) in LongDigest() argument 42 xBuf = new byte[t.xBuf.length]; in LongDigest() 43 System.arraycopy(t.xBuf, 0, xBuf, 0, t.xBuf.length); in LongDigest() 45 xBufOff = t.xBufOff; in LongDigest() 46 byteCount1 = t.byteCount1; in LongDigest() 47 byteCount2 = t.byteCount2; in LongDigest() 49 H1 = t.H1; in LongDigest() 50 H2 = t.H2; in LongDigest() 51 H3 = t.H3; in LongDigest() 52 H4 = t.H4; in LongDigest() [all …]
|
D | SHA224Digest.java | 40 public SHA224Digest(SHA224Digest t) in SHA224Digest() argument 42 super(t); in SHA224Digest() 44 H1 = t.H1; in SHA224Digest() 45 H2 = t.H2; in SHA224Digest() 46 H3 = t.H3; in SHA224Digest() 47 H4 = t.H4; in SHA224Digest() 48 H5 = t.H5; in SHA224Digest() 49 H6 = t.H6; in SHA224Digest() 50 H7 = t.H7; in SHA224Digest() 51 H8 = t.H8; in SHA224Digest() [all …]
|
D | SHA256Digest.java | 40 public SHA256Digest(SHA256Digest t) in SHA256Digest() argument 42 super(t); in SHA256Digest() 44 H1 = t.H1; in SHA256Digest() 45 H2 = t.H2; in SHA256Digest() 46 H3 = t.H3; in SHA256Digest() 47 H4 = t.H4; in SHA256Digest() 48 H5 = t.H5; in SHA256Digest() 49 H6 = t.H6; in SHA256Digest() 50 H7 = t.H7; in SHA256Digest() 51 H8 = t.H8; in SHA256Digest() [all …]
|
D | GeneralDigest.java | 32 protected GeneralDigest(GeneralDigest t) in GeneralDigest() argument 34 xBuf = new byte[t.xBuf.length]; in GeneralDigest() 35 System.arraycopy(t.xBuf, 0, xBuf, 0, t.xBuf.length); in GeneralDigest() 37 xBufOff = t.xBufOff; in GeneralDigest() 38 byteCount = t.byteCount; in GeneralDigest()
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/crypto/ |
D | SHA1Impl.java | 92 for ( int t = 16; t < 80 ; t++ ) { in computeHash() 94 temp = arrW[t-3] ^ arrW[t-8] ^ arrW[t-14] ^ arrW[t-16]; in computeHash() 95 arrW[t] = ( temp<<1 ) | ( temp>>>31 ); in computeHash() 98 for ( int t = 0 ; t < 20 ; t++ ) { in computeHash() 102 ( e + arrW[t] + 0x5A827999 ) ; in computeHash() 109 for ( int t = 20 ; t < 40 ; t++ ) { in computeHash() 111 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; in computeHash() 118 for ( int t = 40 ; t < 60 ; t++ ) { in computeHash() 121 (e + arrW[t] + 0x8F1BBCDC) ; in computeHash() 128 for ( int t = 60 ; t < 80 ; t++ ) { in computeHash() [all …]
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/ |
D | SHAOutputStream.java | 280 int t; // t, for iteration, from spec in processBuffer() local 282 for (t = 0; t <= 15; t++) { // step a, page 7 of spec. Here we convert 4 in processBuffer() 284 WArray[t] = (MArray[4 * t] & 0xff) << 24 in processBuffer() 285 | ((MArray[4 * t + 1] & 0xff) << 16) in processBuffer() 286 | ((MArray[4 * t + 2] & 0xff) << 8) in processBuffer() 287 | (MArray[4 * t + 3] & 0xff); in processBuffer() 289 for (t = 16; t <= 79; t++) { // step b, page 7 of spec in processBuffer() 290 temp = (WArray[t - 3] ^ WArray[t - 8] ^ WArray[t - 14] ^ WArray[t - 16]); in processBuffer() 293 WArray[t] = temp; in processBuffer() 304 for (t = 0; t <= 19; t++) { in processBuffer() [all …]
|
/dalvik/libcore/luni/src/main/java/java/io/ |
D | ObjectStreamField.java | 247 Class<?> t = getTypeInternal(); in getTypeCode() local 248 if (t == Integer.TYPE) { in getTypeCode() 251 if (t == Byte.TYPE) { in getTypeCode() 254 if (t == Character.TYPE) { in getTypeCode() 257 if (t == Short.TYPE) { in getTypeCode() 260 if (t == Boolean.TYPE) { in getTypeCode() 263 if (t == Long.TYPE) { in getTypeCode() 266 if (t == Float.TYPE) { in getTypeCode() 269 if (t == Double.TYPE) { in getTypeCode() 272 if (t.isArray()) { in getTypeCode() [all …]
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/ |
D | ListOfTypes.java | 41 for(Type t : types) { in ListOfTypes() 42 list.add(t); in ListOfTypes() 54 for (Type t : list) { in toString() 56 sb.append(t.toString()); in toString() 66 for (Type t : list) { in getResolvedTypes() 68 resolvedTypes[i] = ((ImplForType)t).getResolvedType(); in getResolvedTypes() 70 resolvedTypes[i] = t; in getResolvedTypes()
|
/dalvik/libcore/prefs/src/main/java/java/util/prefs/ |
D | InvalidPreferencesFormatException.java | 53 public InvalidPreferencesFormatException (String s, Throwable t) { in InvalidPreferencesFormatException() argument 54 super(s,t); in InvalidPreferencesFormatException() 65 public InvalidPreferencesFormatException (Throwable t) { in InvalidPreferencesFormatException() argument 66 super(t); in InvalidPreferencesFormatException()
|
/dalvik/tests/044-proxy/src/ |
D | WrappedThrow.java | 49 } catch (Throwable t) { in main() 50 System.err.println("Got unexpected exception: " + t); in main() 58 } catch (Throwable t) { in main() 59 System.err.println("Got unexpected exception: " + t); in main() 67 } catch (Throwable t) { in main() 68 System.err.println("Got unexpected exception: " + t); in main() 79 } catch (Throwable t) { in main() 80 System.err.println("Got unexpected exception: " + t); in main() 88 } catch (Throwable t) { in main() 89 System.err.println("Got unexpected exception: " + t); in main() [all …]
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1Choice.java | 241 ASN1Type t = type[index]; in ASN1Choice() local 243 if (t instanceof ASN1Any) { in ASN1Choice() 248 } else if (t instanceof ASN1Choice) { in ASN1Choice() 251 int[][] choiceToAdd = ((ASN1Choice) t).identifiers; in ASN1Choice() 259 if (t.checkTag(t.id)) { in ASN1Choice() 260 addIdentifier(map, t.id, index); in ASN1Choice() 264 if (t.checkTag(t.constrId)) { in ASN1Choice() 265 addIdentifier(map, t.constrId, index); in ASN1Choice()
|
/dalvik/libcore/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/ |
D | InvalidPreferencesFormatExceptionTest.java | 63 Throwable t = new Throwable("root"); in testInvalidPreferencesFormatExceptionStringThrowable() local 65 "msg", t); in testInvalidPreferencesFormatExceptionStringThrowable() 66 assertSame(t, e.getCause()); in testInvalidPreferencesFormatExceptionStringThrowable() 68 assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0); in testInvalidPreferencesFormatExceptionStringThrowable() 82 Throwable t = new Throwable("root"); 84 t); 85 assertSame(t, e.getCause()); 87 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
|
/dalvik/libcore/math/src/main/java/java/math/ |
D | BigInt.java | 50 static int getCtx (Context t) { in getCtx() argument 51 return (t != null) ? t.bnctx : defaultContext.bnctx; in getCtx() 314 public static BigInt gcd(BigInt a, BigInt b, Context t) { in gcd() argument 316 Check(NativeBN.BN_gcd(r.bignum, a.bignum, b.bignum, getCtx(t))); in gcd() 320 public static BigInt product(BigInt a, BigInt b, Context t) { in product() argument 322 Check(NativeBN.BN_mul(r.bignum, a.bignum, b.bignum, getCtx(t))); in product() 326 public void multiplyBy(BigInt a, Context t) { in multiplyBy() argument 327 Check(NativeBN.BN_mul(this.bignum, this.bignum, a.bignum, getCtx(t))); in multiplyBy() 330 public static BigInt bigExp(BigInt a, BigInt p, Context t) { in bigExp() argument 333 Check(NativeBN.BN_exp(r.bignum, a.bignum, p.bignum, getCtx(t))); in bigExp() [all …]
|
/dalvik/libcore/security/src/test/java/tests/security/permissions/ |
D | JavaLangThreadTest.java | 75 Thread t = Thread.currentThread(); in test_setContextClassLoader() local 76 ClassLoader cl = t.getContextClassLoader(); in test_setContextClassLoader() 82 t.setContextClassLoader(cl); in test_setContextClassLoader() 102 Thread t; in test_enumerate() field in JavaLangThreadTest.TestSecurityManager 106 t = null; in test_enumerate() 110 public void checkAccess(Thread t) { in test_enumerate() argument 112 this.t = t; in test_enumerate() 121 Thread t = Thread.currentThread(); in test_enumerate() local 134 t, s.t); in test_enumerate()
|
/dalvik/tests/051-thread/src/ |
D | Main.java | 23 Thread t = new Thread(null, new ThreadTestSub(), "Thready", 7168); in go() local 25 t.setDaemon(false); in go() 27 System.out.print("Starting thread '" + t.getName() + "'\n"); in go() 28 t.start(); in go() 31 t.join(); in go()
|