/libcore/ojluni/src/main/java/java/security/spec/ |
D | ECPoint.java | 42 private final BigInteger y; field in ECPoint 52 this.y = null; in ECPoint() 63 public ECPoint(BigInteger x, BigInteger y) { in ECPoint() argument 64 if ((x==null) || (y==null)) { in ECPoint() 68 this.y = y; in ECPoint() 86 return y; in getAffineY() 101 (y.equals(((ECPoint)obj).y))); in equals() 112 return x.hashCode() << 5 + y.hashCode(); in hashCode()
|
D | DSAPublicKeySpec.java | 47 private BigInteger y; field in DSAPublicKeySpec 63 public DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, in DSAPublicKeySpec() argument 65 this.y = y; in DSAPublicKeySpec() 77 return this.y; in getY()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Math.java | 466 public static native double atan2(double y, double x); in atan2() argument 749 public static int addExact(int x, int y) { in addExact() argument 750 int r = x + y; in addExact() 752 if (((x ^ r) & (y ^ r)) < 0) { in addExact() 768 public static long addExact(long x, long y) { in addExact() argument 769 long r = x + y; in addExact() 771 if (((x ^ r) & (y ^ r)) < 0) { in addExact() 787 public static int subtractExact(int x, int y) { in subtractExact() argument 788 int r = x - y; in subtractExact() 791 if (((x ^ y) & (x ^ r)) < 0) { in subtractExact() [all …]
|
D | StrictMath.java | 490 public static native double atan2(double y, double x); in atan2() argument 709 public static int addExact(int x, int y) { in addExact() argument 710 return Math.addExact(x, y); in addExact() 724 public static long addExact(long x, long y) { in addExact() argument 725 return Math.addExact(x, y); in addExact() 739 public static int subtractExact(int x, int y) { in subtractExact() argument 740 return Math.subtractExact(x, y); in subtractExact() 754 public static long subtractExact(long x, long y) { in subtractExact() argument 755 return Math.subtractExact(x, y); in subtractExact() 769 public static int multiplyExact(int x, int y) { in multiplyExact() argument [all …]
|
D | Long.java | 984 public static int compare(long x, long y) { in compare() argument 985 return (x < y) ? -1 : ((x == y) ? 0 : 1); in compare() 1097 int x, y; in numberOfTrailingZeros() local 1100 y = (int)i; if (y != 0) { n = n -32; x = y; } else x = (int)(i>>>32); in numberOfTrailingZeros() 1101 y = x <<16; if (y != 0) { n = n -16; x = y; } in numberOfTrailingZeros() 1102 y = x << 8; if (y != 0) { n = n - 8; x = y; } in numberOfTrailingZeros() 1103 y = x << 4; if (y != 0) { n = n - 4; x = y; } in numberOfTrailingZeros() 1104 y = x << 2; if (y != 0) { n = n - 2; x = y; } in numberOfTrailingZeros()
|
D | Integer.java | 1062 public static int compare(int x, int y) { 1063 return (x < y) ? -1 : ((x == y) ? 0 : 1); 1173 int y; in numberOfTrailingZeros() local 1176 y = i <<16; if (y != 0) { n = n -16; i = y; } in numberOfTrailingZeros() 1177 y = i << 8; if (y != 0) { n = n - 8; i = y; } in numberOfTrailingZeros() 1178 y = i << 4; if (y != 0) { n = n - 4; i = y; } in numberOfTrailingZeros() 1179 y = i << 2; if (y != 0) { n = n - 2; i = y; } in numberOfTrailingZeros()
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | BiPredicateTest.java | 37 … (x, y) -> { alwaysTrueInvoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return true; }; in testAnd() 39 …(x, y) -> { alwaysTrue2Invoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return true; }; in testAnd() 41 …(x, y) -> { alwaysFalseInvoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return false; … in testAnd() 43 …(x, y) -> { alwaysFalse2Invoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return false;… in testAnd() 67 BiPredicate<Object, Object> alwaysTrue = (x, y) -> true; in testAnd_null() 78 (x, y) -> { assertSame(arg1, x); assertSame(arg2, y); return true; }; in testNegate() 82 (x, y) -> { assertSame(arg1, x); assertSame(arg2, y); return false; }; in testNegate() 97 … (x, y) -> { alwaysTrueInvoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return true; }; in testOr() 99 …(x, y) -> { alwaysTrue2Invoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return true; }; in testOr() 101 …(x, y) -> { alwaysFalseInvoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return false; … in testOr() [all …]
|
D | BiFunctionTest.java | 27 BiFunction<Integer, Integer, Integer> add = (x, y) -> x + y; in testAndThen() 33 BiFunction<Integer, Integer, Integer> add = (x, y) -> x + y; in testAndThen_nullFunction() 41 BiFunction<Integer, Integer, Integer> toNull = (x, y) -> null; in testAndThen_nullResult()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ArraysTest.java | 258 Arrays.parallelPrefix(list, (x, y) -> x + y); in test_parallelPrefix$I() 268 Arrays.parallelPrefix((int[]) null, (x, y) -> x + y); in test_parallelPrefix$I() 293 Arrays.parallelPrefix(list, begin, end, (x, y) -> x + y); in test_parallelPrefix$III() 303 Arrays.parallelPrefix((int[]) null, begin, end, (x, y) -> x + y); in test_parallelPrefix$III() 309 Arrays.parallelPrefix(list, end, begin, (x, y) -> x + y); in test_parallelPrefix$III() 333 Arrays.parallelPrefix(list, (x, y) -> x + y); in test_parallelPrefix$L() 343 Arrays.parallelPrefix((long[]) null, (x, y) -> x + y); in test_parallelPrefix$L() 368 Arrays.parallelPrefix(list, begin, end, (x, y) -> x + y); in test_parallelPrefix$LII() 378 Arrays.parallelPrefix((long[]) null, begin, end, (x, y) -> x + y); in test_parallelPrefix$LII() 384 Arrays.parallelPrefix(list, end, begin, (x, y) -> x + y); in test_parallelPrefix$LII() [all …]
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | CalendarUtils.java | 135 public static final long mod(long x, long y) { in mod() argument 136 return (x - y * floorDivide(x, y)); in mod() 139 public static final int mod(int x, int y) { in mod() argument 140 return (x - y * floorDivide(x, y)); in mod() 143 public static final int amod(int x, int y) { in amod() argument 144 int z = mod(x, y); in amod() 145 return (z == 0) ? y : z; in amod() 148 public static final long amod(long x, long y) { in amod() argument 149 long z = mod(x, y); in amod() 150 return (z == 0) ? y : z; in amod()
|
D | JulianCalendar.java | 159 long y = jyear; in getFixedDate() local 160 long days = JULIAN_EPOCH - 1 + (365 * (y - 1)) + dayOfMonth; in getFixedDate() 161 if (y > 0) { in getFixedDate() 163 days += (y - 1) / 4; in getFixedDate() 166 days += CalendarUtils.floorDivide(y - 1, 4); in getFixedDate()
|
/libcore/luni/src/main/native/ |
D | java_lang_StringToReal.cpp | 270 uint64_t* y; in doubleAlgorithm() local 275 x = y = D = D2 = 0; in doubleAlgorithm() 286 free(y); in doubleAlgorithm() 299 allocateU64 (y, yLength); in doubleAlgorithm() 300 memset (y + 1, 0, sizeof (uint64_t) * (yLength - 1)); in doubleAlgorithm() 301 *y = m; in doubleAlgorithm() 302 simpleShiftLeftHighPrecision (y, yLength, k); in doubleAlgorithm() 314 allocateU64 (y, 1); in doubleAlgorithm() 315 *y = m; in doubleAlgorithm() 323 allocateU64 (y, yLength); in doubleAlgorithm() [all …]
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
D | DHPublicKeySpec.java | 46 private BigInteger y; field in DHPublicKeySpec 61 public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g) { in DHPublicKeySpec() argument 62 this.y = y; in DHPublicKeySpec() 73 return this.y; in getY()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | BigIntegerBenchmark.java | 26 BigInteger y = new BigInteger(1024, r); in timeRandomDivision() local 28 x.divide(y); in timeRandomDivision() 35 BigInteger y = new BigInteger(1024, r); in timeRandomGcd() local 37 x.gcd(y); in timeRandomGcd() 44 BigInteger y = new BigInteger(1024, r); in timeRandomMultiplication() local 46 x.multiply(y); in timeRandomMultiplication()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMap8Test.java | 96 map.computeIfPresent(six, (x, y) -> "Z"); in testComputeIfPresent() 105 assertEquals("Z", map.computeIfPresent(one, (x, y) -> "Z")); in testComputeIfPresent2() 113 map.compute(six, (x, y) -> null); in testCompute() 122 assertEquals("Z", map.compute(six, (x, y) -> "Z")); in testCompute2() 130 assertEquals("Z", map.compute(one, (x, y) -> "Z")); in testCompute3() 138 map.compute(one, (x, y) -> null); in testCompute4() 147 assertEquals("Y", map.merge(six, "Y", (x, y) -> "Z")); in testMerge1() 155 assertEquals("Z", map.merge(one, "Y", (x, y) -> "Z")); in testMerge2() 163 map.merge(one, "Y", (x, y) -> null); in testMerge3() 192 map.replaceAll((x, y) -> { return x > 3 ? "Z" : y; }); in testReplaceAll() argument [all …]
|
D | CopyOnWriteArraySetTest.java | 389 Set y = serialClone(x); in testSerialization() local 391 assertNotSame(y, x); in testSerialization() 392 assertEquals(x.size(), y.size()); in testSerialization() 393 assertEquals(x.toString(), y.toString()); in testSerialization() 394 assertTrue(Arrays.equals(x.toArray(), y.toArray())); in testSerialization() 395 assertEquals(x, y); in testSerialization() 396 assertEquals(y, x); in testSerialization() 404 Set y = new CopyOnWriteArraySet(x); in testAddAll_idempotent() local 405 y.addAll(x); in testAddAll_idempotent() 406 assertEquals(x, y); in testAddAll_idempotent() [all …]
|
D | AtomicReferenceTest.java | 128 AtomicReference y = serialClone(x); in testSerialization() local 129 assertNotSame(x, y); in testSerialization() 132 assertNotSame(y, z); in testSerialization() 134 assertEquals(null, y.get()); in testSerialization()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LambdaTestHelpers.java | 62 public static final BiConsumer bBiEmpty = (x,y) -> { }; 66 public static final BiConsumer bBiHashCode = (x,y) -> { Objects.hash(x, y); }; 97 public static final BinaryOperator<Integer> rPlus = (x, y) -> x+y; 98 public static final BinaryOperator<Integer> rMax = (x, y) -> Math.max(x, y); 99 public static final BinaryOperator<Integer> rMin = (x, y) -> Math.min(x,y); 100 public static final IntBinaryOperator irPlus = (x, y) -> x+y; 101 public static final IntBinaryOperator irMax = (x, y) -> Math.max(x, y); 102 public static final IntBinaryOperator irMin = (x, y) -> Math.min(x,y); 104 public static final LongBinaryOperator lrPlus = (x, y) -> x+y; 105 public static final DoubleBinaryOperator drPlus = (x, y) -> x+y; [all …]
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LambdaTestHelpers.java | 63 public static final BiConsumer bBiEmpty = (x,y) -> { }; 67 public static final BiConsumer bBiHashCode = (x,y) -> { Objects.hash(x, y); }; 98 public static final BinaryOperator<Integer> rPlus = (x, y) -> x+y; 99 public static final BinaryOperator<Integer> rMax = (x, y) -> Math.max(x, y); 100 public static final BinaryOperator<Integer> rMin = (x, y) -> Math.min(x,y); 101 public static final IntBinaryOperator irPlus = (x, y) -> x+y; 102 public static final IntBinaryOperator irMax = (x, y) -> Math.max(x, y); 103 public static final IntBinaryOperator irMin = (x, y) -> Math.min(x,y); 105 public static final LongBinaryOperator lrPlus = (x, y) -> x+y; 106 public static final DoubleBinaryOperator drPlus = (x, y) -> x+y; [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | DoubleBuffer.java | 657 private static boolean equals(double x, double y) { in equals() argument 659 return (x == y) || (Double.isNaN(x) && Double.isNaN(y)); in equals() 699 private static int compare(double x, double y) { in compare() argument 701 return ((x < y) ? -1 : in compare() 702 (x > y) ? +1 : in compare() 703 (x == y) ? 0 : in compare() 704 Double.isNaN(x) ? (Double.isNaN(y) ? 0 : +1) : -1); in compare()
|
D | FloatBuffer.java | 658 private static boolean equals(float x, float y) { in equals() argument 660 return (x == y) || (Float.isNaN(x) && Float.isNaN(y)); in equals() 698 private static int compare(float x, float y) { in compare() argument 700 return ((x < y) ? -1 : in compare() 701 (x > y) ? +1 : in compare() 702 (x == y) ? 0 : in compare() 703 Float.isNaN(x) ? (Float.isNaN(y) ? 0 : +1) : -1); in compare()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 242 int y = year + 1900; in Date() local 245 y += month / 12; in Date() 248 y += CalendarUtils.floorDivide(month, 12); in Date() 251 BaseCalendar cal = getCalendarSystem(y); in Date() 253 cdate.setNormalizedDate(y, month + 1, date).setTimeOfDay(hrs, min, sec, 0); in Date() 317 int y = year + 1900; in UTC() local 320 y += month / 12; in UTC() 323 y += CalendarUtils.floorDivide(month, 12); in UTC() 327 BaseCalendar cal = getCalendarSystem(y); in UTC() 329 udate.setNormalizedDate(y, m, date).setTimeOfDay(hrs, min, sec, 0); in UTC() [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | KeyUtil.java | 194 BigInteger y = publicKey.getY(); in validateDHPublicKey() local 196 validateDHPublicKey(p, g, y); in validateDHPublicKey() 206 BigInteger g, BigInteger y) throws InvalidKeyException { in validateDHPublicKey() argument 211 if (y.compareTo(leftOpen) <= 0) { in validateDHPublicKey() 215 if (y.compareTo(rightOpen) >= 0) { in validateDHPublicKey()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidStringReaderTest.java | 73 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()
|
D | OldAndroidByteArrayInputStreamTest.java | 76 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()
|