/libcore/luni/src/test/java/libcore/java/util/ |
D | OldGregorianCalendarTest.java | 55 GregorianCalendar g = new GregorianCalendar( in test_computeFields() local 58 g.clear(); in test_computeFields() 59 g.setTimeInMillis(1222185600225L); in test_computeFields() 60 assertEquals(1, g.get(Calendar.ERA)); in test_computeFields() 61 assertEquals(2008, g.get(Calendar.YEAR)); in test_computeFields() 62 assertEquals(Calendar.SEPTEMBER, g.get(Calendar.MONTH)); in test_computeFields() 63 assertEquals(23, g.get(Calendar.DAY_OF_MONTH)); in test_computeFields() 64 assertEquals(17, g.get(Calendar.HOUR_OF_DAY)); in test_computeFields() 65 assertEquals(0, g.get(Calendar.MINUTE)); in test_computeFields() 69 GregorianCalendar g = new GregorianCalendar( in test_hashCode() local [all …]
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
D | DHParameterSpec.java | 61 private BigInteger g; field in DHParameterSpec 73 public DHParameterSpec(BigInteger p, BigInteger g) { in DHParameterSpec() argument 75 this.g = g; in DHParameterSpec() 89 public DHParameterSpec(BigInteger p, BigInteger g, int l) { in DHParameterSpec() argument 91 this.g = g; in DHParameterSpec() 110 return this.g; in getG()
|
D | DHPublicKeySpec.java | 52 private BigInteger g; field in DHPublicKeySpec 61 public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g) { in DHPublicKeySpec() argument 64 this.g = g; in DHPublicKeySpec() 91 return this.g; in getG()
|
D | DHPrivateKeySpec.java | 52 private BigInteger g; field in DHPrivateKeySpec 61 public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g) { in DHPrivateKeySpec() argument 64 this.g = g; in DHPrivateKeySpec() 91 return this.g; in getG()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CompletableFutureTest.java | 324 final CompletableFuture<Void> g = m.thenRun(f, new Noop(m)); 326 assertEquals(0, g.getNumberOfDependents()); 331 checkCompletedNormally(g, null); 334 assertEquals(0, g.getNumberOfDependents()); 611 (CompletableFuture<T> f, CompletableFuture<U> g, Runnable a) { 612 return f.runAfterBoth(g, a); 616 CompletionStage<? extends U> g, 618 return f.thenAcceptBoth(g, a); 622 CompletionStage<? extends U> g, 624 return f.thenCombine(g, a); [all …]
|
D | ForkJoinTaskTest.java | 810 AsyncFib g = new AsyncFib(9); 811 invokeAll(f, g); 813 assertEquals(34, g.number); 815 checkCompletedNormally(g); 841 AsyncFib g = new AsyncFib(9); 843 invokeAll(f, g, h); 845 assertEquals(34, g.number); 848 checkCompletedNormally(g); 861 AsyncFib g = new AsyncFib(9); 865 set.add(g); [all …]
|
D | RecursiveTaskTest.java | 701 FibTask g = new FibTask(9); in testInvokeAll2() 702 invokeAll(f, g); in testInvokeAll2() 704 checkCompletedNormally(g, 34); in testInvokeAll2() 731 FibTask g = new FibTask(9); in testInvokeAll3() 733 invokeAll(f, g, h); in testInvokeAll3() 735 assertTrue(g.isDone()); in testInvokeAll3() 738 checkCompletedNormally(g, 34); in testInvokeAll3() 752 FibTask g = new FibTask(9); in testInvokeAllCollection() 756 set.add(g); in testInvokeAllCollection() 760 assertTrue(g.isDone()); in testInvokeAllCollection() [all …]
|
D | RecursiveActionTest.java | 882 FibAction g = new FibAction(9); in testInvokeAll2() 883 invokeAll(f, g); in testInvokeAll2() 886 checkCompletedNormally(g); in testInvokeAll2() 887 assertEquals(34, g.result); in testInvokeAll2() 913 FibAction g = new FibAction(9); in testInvokeAll3() 915 invokeAll(f, g, h); in testInvokeAll3() 917 assertTrue(g.isDone()); in testInvokeAll3() 921 checkCompletedNormally(g); in testInvokeAll3() 922 assertEquals(34, g.result); in testInvokeAll3() 923 checkCompletedNormally(g); in testInvokeAll3() [all …]
|
D | CountedCompleterTest.java | 1022 CCF g = new LCCF(9); in testInvokeAll2() 1023 invokeAll(f, g); in testInvokeAll2() 1025 assertEquals(34, g.number); in testInvokeAll2() 1027 checkCompletedNormally(g); in testInvokeAll2() 1053 CCF g = new LCCF(9); in testInvokeAll3() 1055 invokeAll(f, g, h); in testInvokeAll3() 1057 assertEquals(34, g.number); in testInvokeAll3() 1060 checkCompletedNormally(g); in testInvokeAll3() 1073 CCF g = new LCCF(9); in testInvokeAllCollection() 1077 set.add(g); in testInvokeAllCollection() [all …]
|
D | ForkJoinTask8Test.java | 902 FailingAsyncFib g = new FailingAsyncFib(9); 904 invokeAll(g); 907 checkCompletedAbnormally(g, success); 926 FailingAsyncFib g = new FailingAsyncFib(9); 927 ForkJoinTask[] tasks = { f, g }; 933 checkCompletedAbnormally(g, success); 952 FailingAsyncFib g = new FailingAsyncFib(9); 954 ForkJoinTask[] tasks = { f, g, h }; 960 checkCompletedAbnormally(g, success); 979 AsyncFib g = new AsyncFib(9); [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidDataInputStreamTest.java | 86 DataInputStream g = new DataInputStream(ga); in testDataInputStream() local 89 assertTrue(g.readBoolean()); in testDataInputStream() 90 assertEquals('a', g.readByte()); in testDataInputStream() 91 assertEquals(2, g.skipBytes(2)); in testDataInputStream() 92 assertEquals('D', g.readByte()); in testDataInputStream() 93 assertEquals('e', g.readChar()); in testDataInputStream() 94 assertEquals('F', g.readChar()); in testDataInputStream() 95 assertEquals('G', g.readChar()); in testDataInputStream() 96 assertEquals('H', g.readChar()); in testDataInputStream() 97 assertEquals("ijklm", g.readUTF()); in testDataInputStream() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ForkJoinTaskTest.java | 832 AsyncFib g = new AsyncFib(9); 833 invokeAll(f, g); 835 assertEquals(34, g.number); 837 checkCompletedNormally(g); 863 AsyncFib g = new AsyncFib(9); 865 invokeAll(f, g, h); 867 assertEquals(34, g.number); 870 checkCompletedNormally(g); 883 AsyncFib g = new AsyncFib(9); 887 set.add(g); [all …]
|
D | CompletableFutureTest.java | 347 final CompletableFuture<Void> g = m.thenRun(f, new Noop(m)); 349 assertEquals(0, g.getNumberOfDependents()); 354 checkCompletedNormally(g, null); 357 assertEquals(0, g.getNumberOfDependents()); 650 (CompletableFuture<T> f, CompletableFuture<U> g, Runnable a) { 651 return f.runAfterBoth(g, a); 655 CompletionStage<? extends U> g, 657 return f.thenAcceptBoth(g, a); 661 CompletionStage<? extends U> g, 663 return f.thenCombine(g, a); [all …]
|
D | RecursiveTaskTest.java | 724 FibTask g = new FibTask(9); in testInvokeAll2() 725 invokeAll(f, g); in testInvokeAll2() 727 checkCompletedNormally(g, 34); in testInvokeAll2() 754 FibTask g = new FibTask(9); in testInvokeAll3() 756 invokeAll(f, g, h); in testInvokeAll3() 758 assertTrue(g.isDone()); in testInvokeAll3() 761 checkCompletedNormally(g, 34); in testInvokeAll3() 775 FibTask g = new FibTask(9); in testInvokeAllCollection() 779 set.add(g); in testInvokeAllCollection() 783 assertTrue(g.isDone()); in testInvokeAllCollection() [all …]
|
D | RecursiveActionTest.java | 894 FibAction g = new FibAction(9); in testInvokeAll2() 895 invokeAll(f, g); in testInvokeAll2() 898 checkCompletedNormally(g); in testInvokeAll2() 899 assertEquals(34, g.result); in testInvokeAll2() 925 FibAction g = new FibAction(9); in testInvokeAll3() 927 invokeAll(f, g, h); in testInvokeAll3() 929 assertTrue(g.isDone()); in testInvokeAll3() 933 checkCompletedNormally(g); in testInvokeAll3() 934 assertEquals(34, g.result); in testInvokeAll3() 935 checkCompletedNormally(g); in testInvokeAll3() [all …]
|
D | CountedCompleterTest.java | 1047 CCF g = new LCCF(9); in testInvokeAll2() 1048 invokeAll(f, g); in testInvokeAll2() 1050 assertEquals(34, g.number); in testInvokeAll2() 1052 checkCompletedNormally(g); in testInvokeAll2() 1078 CCF g = new LCCF(9); in testInvokeAll3() 1080 invokeAll(f, g, h); in testInvokeAll3() 1082 assertEquals(34, g.number); in testInvokeAll3() 1085 checkCompletedNormally(g); in testInvokeAll3() 1098 CCF g = new LCCF(9); in testInvokeAllCollection() 1102 set.add(g); in testInvokeAllCollection() [all …]
|
D | ForkJoinTask8Test.java | 925 FailingAsyncFib g = new FailingAsyncFib(9); 927 invokeAll(g); 930 checkCompletedAbnormally(g, success); 949 FailingAsyncFib g = new FailingAsyncFib(9); 950 ForkJoinTask[] tasks = { f, g }; 956 checkCompletedAbnormally(g, success); 975 FailingAsyncFib g = new FailingAsyncFib(9); 977 ForkJoinTask[] tasks = { f, g, h }; 983 checkCompletedAbnormally(g, success); 1002 AsyncFib g = new AsyncFib(9); [all …]
|
D | ForkJoinPool8Test.java | 713 FibAction g = new FibAction(9); in testInvokeAll2() 714 invokeAll(f, g); in testInvokeAll2() 717 checkCompletedNormally(g); in testInvokeAll2() 718 assertEquals(34, g.result); in testInvokeAll2() 744 FibAction g = new FibAction(9); in testInvokeAll3() 746 invokeAll(f, g, h); in testInvokeAll3() 748 assertTrue(g.isDone()); in testInvokeAll3() 752 checkCompletedNormally(g); in testInvokeAll3() 753 assertEquals(34, g.result); in testInvokeAll3() 754 checkCompletedNormally(g); in testInvokeAll3() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | EncryptedPrivateKeyInfoTest.java | 202 TestDataGenerator g = new TestDataGenerator(algName[i][0], in test_getAlgName() local 207 if (g.ap() == null) { in test_getAlgName() 208 epki = new EncryptedPrivateKeyInfo(algName[i][0], g.ct()); in test_getAlgName() 210 epki = new EncryptedPrivateKeyInfo(g.ap(), g.ct()); in test_getAlgName() 1119 TestDataGenerator g = new TestDataGenerator(algName[i][0], in test_ROUNDTRIP_GetKeySpecCipher01() local 1124 if (g.ap() == null) { in test_ROUNDTRIP_GetKeySpecCipher01() 1125 epki = new EncryptedPrivateKeyInfo(algName[i][0], g.ct()); in test_ROUNDTRIP_GetKeySpecCipher01() 1127 epki = new EncryptedPrivateKeyInfo(g.ap(), g.ct()); in test_ROUNDTRIP_GetKeySpecCipher01() 1133 PKCS8EncodedKeySpec eks = epki.getKeySpec(g.c()); in test_ROUNDTRIP_GetKeySpecCipher01() 1158 TestDataGenerator g = new TestDataGenerator(algName[i][0], in test_ROUNDTRIP_GetKeySpecCipher02() local [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | ArraysParallelSortHelpers.java | 130 int b = this.base, n = this.size, wb = this.wbase, g = this.gran; in compute() local 131 while (n > g) { in compute() 134 wb+h, n-h, b, g, c)); in compute() 136 b+u, n-u, wb+h, g, c)); 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() 140 b+q, h-q, wb, g, c)); in compute() 141 new Sorter<T>(bc, a, w, b+q, h-q, wb+q, g, c).fork(); in compute() 171 rn = this.rsize, k = this.wbase, g = this.gran; in compute() local 177 if (ln <= g) in compute() [all …]
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | ECParameterSpec.java | 43 private final ECPoint g; field in ECParameterSpec 60 public ECParameterSpec(EllipticCurve curve, ECPoint g, in ECParameterSpec() argument 65 if (g == null) { in ECParameterSpec() 78 this.g = g; in ECParameterSpec() 96 return g; in getGenerator()
|
D | DSAParameterSpec.java | 46 BigInteger g; field in DSAParameterSpec 57 public DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) { in DSAParameterSpec() argument 60 this.g = g; in DSAParameterSpec() 87 return this.g; in getG()
|
D | DSAPublicKeySpec.java | 50 private BigInteger g; field in DSAPublicKeySpec 64 BigInteger g) { in DSAPublicKeySpec() argument 68 this.g = g; in DSAPublicKeySpec() 104 return this.g; in getG()
|
D | DSAPrivateKeySpec.java | 50 private BigInteger g; field in DSAPrivateKeySpec 64 BigInteger g) { in DSAPrivateKeySpec() argument 68 this.g = g; in DSAPrivateKeySpec() 104 return this.g; in getG()
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
D | DSAParamsTest.java | 28 private final BigInteger g = BigInteger.ZERO; field in DSAParamsTest 35 DSAParams params = new DSAParameterSpec(p, q, g); in test_getG() 36 assertEquals("Invalid G", g, params.getG()); in test_getG() 44 DSAParams params = new DSAParameterSpec(p, q, g); in test_getP() 53 DSAParams params = new DSAParameterSpec(p, q, g); in test_getQ()
|