Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 48) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DOldGregorianCalendarTest.java55 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/
DDHParameterSpec.java61 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()
DDHPublicKeySpec.java52 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()
DDHPrivateKeySpec.java52 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/luni/src/test/java/libcore/java/io/
DOldAndroidDataInputStreamTest.java86 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/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java324 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 …]
DForkJoinTaskTest.java810 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 …]
DRecursiveTaskTest.java701 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 …]
DRecursiveActionTest.java882 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 …]
DCountedCompleterTest.java1022 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 …]
DForkJoinTask8Test.java902 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 …]
DForkJoinPool8Test.java695 FibAction g = new FibAction(9); in testInvokeAll2()
696 invokeAll(f, g); in testInvokeAll2()
699 checkCompletedNormally(g); in testInvokeAll2()
700 assertEquals(34, g.result); in testInvokeAll2()
726 FibAction g = new FibAction(9); in testInvokeAll3()
728 invokeAll(f, g, h); in testInvokeAll3()
730 assertTrue(g.isDone()); in testInvokeAll3()
734 checkCompletedNormally(g); in testInvokeAll3()
735 assertEquals(34, g.result); in testInvokeAll3()
736 checkCompletedNormally(g); in testInvokeAll3()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DEncryptedPrivateKeyInfoTest.java202 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/
DArraysParallelSortHelpers.java130 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 …]
DArrays.java466 int n = a.length, p, g; in parallelSort() local
473 ((g = n / (p << 2)) <= MIN_ARRAY_SORT_GRAN) ? in parallelSort()
474 MIN_ARRAY_SORT_GRAN : g).invoke(); in parallelSort()
506 int n = toIndex - fromIndex, p, g; in parallelSort() local
513 ((g = n / (p << 2)) <= MIN_ARRAY_SORT_GRAN) ? in parallelSort()
514 MIN_ARRAY_SORT_GRAN : g).invoke(); in parallelSort()
536 int n = a.length, p, g; in parallelSort() local
543 ((g = n / (p << 2)) <= MIN_ARRAY_SORT_GRAN) ? in parallelSort()
544 MIN_ARRAY_SORT_GRAN : g).invoke(); in parallelSort()
576 int n = toIndex - fromIndex, p, g; in parallelSort() local
[all …]
/libcore/ojluni/src/main/java/java/security/spec/
DECParameterSpec.java43 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()
DDSAParameterSpec.java46 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()
DDSAPublicKeySpec.java50 private BigInteger g; field in DSAPublicKeySpec
64 BigInteger g) { in DSAPublicKeySpec() argument
68 this.g = g; in DSAPublicKeySpec()
104 return this.g; in getG()
DDSAPrivateKeySpec.java50 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/
DDSAParamsTest.java28 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()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCyclicBarrier.java205 final Generation g = generation; in dowait() local
207 if (g.broken) in dowait()
239 if (g == generation && ! g.broken) { in dowait()
250 if (g.broken) in dowait()
253 if (g != generation) in dowait()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dattrsetvaluenomodificationallowederr.java80 Node g; in runTest() local
91 g = gList.item(0); in runTest()
92 assertNotNull("genderFirstGrandchildNotNull", g); in runTest()
93 attrList = g.getAttributes(); in runTest()
/libcore/benchmarks/src/benchmarks/regression/
DAnnotatedElementBenchmark.java219 c = @Small(e="E1", f=1695938256, g=7264081114510713000L),
220 d = { @Small(e="E2", f=1695938256, g=7264081114510713000L) })
223 @Small(e="E1", f=1695938256, g=7264081114510713000L)
232 c = @Small(e="E1", f=1695938256, g=7264081114510713000L),
233 d = { @Small(e="E2", f=1695938256, g=7264081114510713000L) })
234 @Small(e="E1", f=1695938256, g=7264081114510713000L)
258 long g() default 0L; in g() method
/libcore/ojluni/annotations/hiddenapi/java/security/spec/
DECParameterSpec.java36 java.security.spec.ECPoint g, in ECParameterSpec() argument
76 private final java.security.spec.ECPoint g; field in ECParameterSpec
79 g = null;
/libcore/support/src/test/java/tests/resources/
Dhyts_PropertiesTest.properties22 g g key

12