Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 67) sorted by relevance

123

/libcore/luni/src/main/java/javax/crypto/spec/
DDHPublicKeySpec.java28 private final BigInteger y; field in DHPublicKeySpec
44 public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g) { in DHPublicKeySpec() argument
45 this.y = y; in DHPublicKeySpec()
56 return y; in getY()
/libcore/luni/src/main/native/
Djava_lang_StringToReal.cpp340 uint64_t* y; in doubleAlgorithm() local
345 x = y = D = D2 = 0; in doubleAlgorithm()
357 free(y); in doubleAlgorithm()
370 allocateU64 (y, yLength); in doubleAlgorithm()
371 memset (y + 1, 0, sizeof (uint64_t) * (yLength - 1)); in doubleAlgorithm()
372 *y = m; in doubleAlgorithm()
373 simpleShiftLeftHighPrecision (y, yLength, k); in doubleAlgorithm()
385 allocateU64 (y, 1); in doubleAlgorithm()
386 *y = m; in doubleAlgorithm()
394 allocateU64 (y, yLength); in doubleAlgorithm()
[all …]
Dcbigint.cpp369 highestSetBit (uint64_t * y) in highestSetBit() argument
374 if (*y == 0) in highestSetBit()
378 if (*y & 0xFFFFFFFF00000000LL) in highestSetBit()
380 x = HIGH_U32_FROM_PTR (y); in highestSetBit()
385 x = LOW_U32_FROM_PTR (y); in highestSetBit()
390 if (*y & 0xFFFFFFFF00000000L) in highestSetBit()
392 x = HIGH_U32_FROM_PTR (y); in highestSetBit()
397 x = LOW_U32_FROM_PTR (y); in highestSetBit()
401 if (*y & 0xFFFFFFFF00000000) in highestSetBit()
403 x = HIGH_U32_FROM_PTR (y); in highestSetBit()
[all …]
/libcore/luni/src/main/java/java/security/spec/
DDSAPublicKeySpec.java27 private final BigInteger y; field in DSAPublicKeySpec
48 public DSAPublicKeySpec(BigInteger y, BigInteger p, in DSAPublicKeySpec() argument
50 this.y = y; in DSAPublicKeySpec()
89 return y; in getY()
/libcore/benchmarks/src/benchmarks/regression/
DBigIntegerBenchmark.java28 BigInteger y = new BigInteger(1024, r); in timeRandomDivision() local
30 x.divide(y); in timeRandomDivision()
37 BigInteger y = new BigInteger(1024, r); in timeRandomGcd() local
39 x.gcd(y); in timeRandomGcd()
46 BigInteger y = new BigInteger(1024, r); in timeRandomMultiplication() local
48 x.multiply(y); in timeRandomMultiplication()
/libcore/luni/src/main/java/java/util/
DGrego.java94 int y = year - 1; in fieldsToDay() local
96 365 * y + floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal in fieldsToDay()
97 floorDivide(y, 400) - floorDivide(y, 100) + 2 + // => Gregorian cal in fieldsToDay()
/libcore/jsr166-tests/src/test/java/jsr166/
DCopyOnWriteArraySetTest.java338 Set y = serialClone(x); in testSerialization() local
340 assertNotSame(y, x); in testSerialization()
341 assertEquals(x.size(), y.size()); in testSerialization()
342 assertEquals(x.toString(), y.toString()); in testSerialization()
343 assertTrue(Arrays.equals(x.toArray(), y.toArray())); in testSerialization()
344 assertEquals(x, y); in testSerialization()
345 assertEquals(y, x); in testSerialization()
353 Set y = new CopyOnWriteArraySet(x); in testAddAll_idempotent() local
354 y.addAll(x); in testAddAll_idempotent()
355 assertEquals(x, y); in testAddAll_idempotent()
[all …]
DAtomicReferenceTest.java117 AtomicReference y = serialClone(x); in testSerialization() local
118 assertNotSame(x, y); in testSerialization()
121 assertNotSame(y, z); in testSerialization()
123 assertEquals(null, y.get()); in testSerialization()
DTreeSubSetTest.java21 public int compare(Object x, Object y) { in compare() argument
22 return ((Comparable)y).compareTo(x); in compare()
483 NavigableSet y = serialClone(x); in testSerialization() local
485 assertNotSame(x, y); in testSerialization()
486 assertEquals(x.size(), y.size()); in testSerialization()
487 assertEquals(x, y); in testSerialization()
488 assertEquals(y, x); in testSerialization()
490 assertFalse(y.isEmpty()); in testSerialization()
491 assertEquals(x.pollFirst(), y.pollFirst()); in testSerialization()
493 assertTrue(y.isEmpty()); in testSerialization()
[all …]
DAtomicLongTest.java194 AtomicLong y = serialClone(x); in testSerialization() local
195 assertNotSame(x, y); in testSerialization()
198 assertNotSame(y, z); in testSerialization()
200 assertEquals(0, y.get()); in testSerialization()
DConcurrentLinkedQueueTest.java498 Queue y = serialClone(x); in testSerialization() local
500 assertNotSame(x, y); in testSerialization()
501 assertEquals(x.size(), y.size()); in testSerialization()
502 assertEquals(x.toString(), y.toString()); in testSerialization()
503 assertTrue(Arrays.equals(x.toArray(), y.toArray())); in testSerialization()
505 assertFalse(y.isEmpty()); in testSerialization()
506 assertEquals(x.remove(), y.remove()); in testSerialization()
508 assertTrue(y.isEmpty()); in testSerialization()
DPriorityQueueTest.java23 public int compare(Object x, Object y) { in compare() argument
24 return ((Comparable)y).compareTo(x); in compare()
482 Queue y = serialClone(x); in testSerialization() local
484 assertNotSame(x, y); in testSerialization()
485 assertEquals(x.size(), y.size()); in testSerialization()
487 assertFalse(y.isEmpty()); in testSerialization()
488 assertEquals(x.remove(), y.remove()); in testSerialization()
490 assertTrue(y.isEmpty()); in testSerialization()
DCopyOnWriteArrayListTest.java690 List y = serialClone(x); in testSerialization() local
692 assertNotSame(x, y); in testSerialization()
693 assertEquals(x.size(), y.size()); in testSerialization()
694 assertEquals(x.toString(), y.toString()); in testSerialization()
695 assertTrue(Arrays.equals(x.toArray(), y.toArray())); in testSerialization()
696 assertEquals(x, y); in testSerialization()
697 assertEquals(y, x); in testSerialization()
699 assertFalse(y.isEmpty()); in testSerialization()
700 assertEquals(x.remove(0), y.remove(0)); in testSerialization()
702 assertTrue(y.isEmpty()); in testSerialization()
DConcurrentSkipListSubSetTest.java25 public int compare(Object x, Object y) { in compare() argument
26 return ((Comparable)y).compareTo(x); in compare()
491 NavigableSet y = serialClone(x); in testSerialization() local
493 assertNotSame(y, x); in testSerialization()
494 assertEquals(x.size(), y.size()); in testSerialization()
495 assertEquals(x, y); in testSerialization()
496 assertEquals(y, x); in testSerialization()
498 assertFalse(y.isEmpty()); in testSerialization()
499 assertEquals(x.pollFirst(), y.pollFirst()); in testSerialization()
501 assertTrue(y.isEmpty()); in testSerialization()
[all …]
DJSR166TestCase.java288 public void threadAssertEquals(long x, long y) { in threadAssertEquals() argument
290 assertEquals(x, y); in threadAssertEquals()
302 public void threadAssertEquals(Object x, Object y) { in threadAssertEquals() argument
304 assertEquals(x, y); in threadAssertEquals()
318 public void threadAssertSame(Object x, Object y) { in threadAssertSame() argument
320 assertSame(x, y); in threadAssertSame()
1084 void assertSerialEquals(Object x, Object y) {
1085 assertTrue(Arrays.equals(serialBytes(x), serialBytes(y)));
1088 void assertNotSerialEquals(Object x, Object y) {
1089 assertFalse(Arrays.equals(serialBytes(x), serialBytes(y)));
DAtomicReferenceArrayTest.java197 AtomicReferenceArray y = serialClone(x); in testSerialization() local
198 assertNotSame(x, y); in testSerialization()
199 assertEquals(x.length(), y.length()); in testSerialization()
201 assertEquals(x.get(i), y.get(i)); in testSerialization()
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidStringReaderTest.java73 public static String markRead(Reader a, int x, int y) throws IOException { in markRead() argument
81 a.mark((x + y)); in markRead()
82 if (m == (x + y)) in markRead()
DOldAndroidCharArrayReaderTest.java75 public static String markRead(Reader a, int x, int y) throws IOException { in markRead() argument
83 a.mark((x + y)); in markRead()
84 if (m == (x + y)) in markRead()
DOldAndroidByteArrayInputStreamTest.java76 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead() argument
84 a.mark((x + y)); in markRead()
85 if (m == (x + y)) in markRead()
DOldAndroidBufferedReaderTest.java98 public static String markRead(Reader a, int x, int y) throws IOException { in markRead() argument
106 a.mark((x + y)); in markRead()
107 if (m == (x + y)) in markRead()
DOldAndroidPushbackInputStreamTest.java90 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead() argument
98 a.mark((x + y)); in markRead()
99 if (m == (x + y)) in markRead()
DOldAndroidLineNumberReaderTest.java112 public static String markRead(Reader a, int x, int y) throws IOException { in markRead() argument
120 a.mark((x + y)); in markRead()
121 if (m == (x + y)) in markRead()
DOldAndroidDataInputStreamTest.java140 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead() argument
148 a.mark((x + y)); in markRead()
149 if (m == (x + y)) in markRead()
/libcore/luni/src/test/java/tests/security/spec/
DECPointTest.java124 BigInteger y = BigInteger.valueOf(23456L); in testGetAffineY01() local
125 ECPoint p = new ECPoint(BigInteger.valueOf(-23456L), y); in testGetAffineY01()
127 assertEquals(y, yRet); in testGetAffineY01()
128 assertSame(y, yRet); in testGetAffineY01()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DInflaterTest.java193 int y = 0; in test_getTotalOut() local
213 y += inflate.inflate(outPutInf); in test_getTotalOut()
221 inflate.getTotalOut(), y); in test_getTotalOut()
228 y = 0; in test_getTotalOut()
237 y += inflate.inflate(outPutInf, offSet, length); in test_getTotalOut()
245 y, inflate.getTotalOut()); in test_getTotalOut()
361 int y = 0; in test_inflate$BII() local
369 y += inflate.inflate(outPutInf, y, outPutInf.length - y); in test_inflate$BII()
592 int y = 0; in test_reset() local
599 y += inflate.inflate(outPutInf, y, outPutInf.length - y); in test_reset()

123