/libcore/luni/src/main/native/ |
D | java_lang_Math.cpp | 26 static jdouble Math_tan(JNIEnv*, jclass, jdouble a) { in Math_tan() 30 static jdouble Math_asin(JNIEnv*, jclass, jdouble a) { in Math_asin() 34 static jdouble Math_acos(JNIEnv*, jclass, jdouble a) { in Math_acos() 38 static jdouble Math_atan(JNIEnv*, jclass, jdouble a) { in Math_atan() 42 static jdouble Math_exp(JNIEnv*, jclass, jdouble a) { in Math_exp() 46 static jdouble Math_log(JNIEnv*, jclass, jdouble a) { in Math_log() 50 static jdouble Math_IEEEremainder(JNIEnv*, jclass, jdouble a, jdouble b) { in Math_IEEEremainder() 54 static jdouble Math_floor(JNIEnv*, jclass, jdouble a) { in Math_floor() 58 static jdouble Math_ceil(JNIEnv*, jclass, jdouble a) { in Math_ceil() 62 static jdouble Math_rint(JNIEnv*, jclass, jdouble a) { in Math_rint() [all …]
|
D | java_lang_StrictMath.cpp | 25 static jdouble StrictMath_sin(JNIEnv*, jclass, jdouble a) { in StrictMath_sin() 29 static jdouble StrictMath_cos(JNIEnv*, jclass, jdouble a) { in StrictMath_cos() 33 static jdouble StrictMath_tan(JNIEnv*, jclass, jdouble a) { in StrictMath_tan() 37 static jdouble StrictMath_asin(JNIEnv*, jclass, jdouble a) { in StrictMath_asin() 41 static jdouble StrictMath_acos(JNIEnv*, jclass, jdouble a) { in StrictMath_acos() 45 static jdouble StrictMath_atan(JNIEnv*, jclass, jdouble a) { in StrictMath_atan() 49 static jdouble StrictMath_exp(JNIEnv*, jclass, jdouble a) { in StrictMath_exp() 53 static jdouble StrictMath_log(JNIEnv*, jclass, jdouble a) { in StrictMath_log() 57 static jdouble StrictMath_sqrt(JNIEnv*, jclass, jdouble a) { in StrictMath_sqrt() 61 static jdouble StrictMath_IEEEremainder(JNIEnv*, jclass, jdouble a, jdouble b) { in StrictMath_IEEEremainder() [all …]
|
D | java_math_NativeBN.cpp | 50 static int oneValidHandle (JNIEnv* env, void* a) in oneValidHandle() 55 static int twoValidHandles (JNIEnv* env, void* a, void* b) in twoValidHandles() 61 static int threeValidHandles (JNIEnv* env, void* a, void* b, void* c) in threeValidHandles() 67 static int fourValidHandles (JNIEnv* env, void* a, void* b, void* c, void* d) in fourValidHandles() 86 static void NativeBN_BN_free(JNIEnv* env, jclass, BIGNUM* a) { in NativeBN_BN_free() 91 static int NativeBN_BN_cmp(JNIEnv* env, jclass, BIGNUM* a, BIGNUM* b) { in NativeBN_BN_cmp() 101 static jboolean NativeBN_putULongInt(JNIEnv* env, jclass, BIGNUM* a, unsigned long long dw, jboolea… in NativeBN_putULongInt() 119 static jboolean NativeBN_putLongInt(JNIEnv* env, jclass cls, BIGNUM* a, long long dw) { in NativeBN_putLongInt() 124 static int NativeBN_BN_dec2bn(JNIEnv* env, jclass, BIGNUM* a, jstring str) { in NativeBN_BN_dec2bn() 133 static int NativeBN_BN_hex2bn(JNIEnv* env, jclass, BIGNUM* a, jstring str) { in NativeBN_BN_hex2bn() [all …]
|
/libcore/luni/src/main/java/java/math/ |
D | NativeBN.java | 30 public static native void BN_free(int a); in BN_free() 33 public static native int BN_cmp(int a, int b); in BN_cmp() 43 public static native boolean putLongInt(int a, long dw); in putLongInt() 45 public static native boolean putULongInt(int a, long dw, boolean neg); in putULongInt() 47 public static native int BN_dec2bn(int a, String str); in BN_dec2bn() 50 public static native int BN_hex2bn(int a, String str); in BN_hex2bn() 64 public static native long longInt(int a); in longInt() 67 public static native String BN_bn2dec(int a); in BN_bn2dec() 70 public static native String BN_bn2hex(int a); in BN_bn2hex() 73 public static native byte[] BN_bn2bin(int a); in BN_bn2bin() [all …]
|
D | BigInt.java | 96 static int cmp(BigInt a, BigInt b) { in cmp() 206 void putBigEndian(byte[] a, boolean neg) { in putBigEndian() 211 void putLittleEndianInts(int[] a, boolean neg) { in putLittleEndianInts() 216 void putBigEndianTwosComplement(byte[] a) { in putBigEndianTwosComplement() 268 static BigInt shift(BigInt a, int n) { in shift() 286 static int remainderByPositiveInt(BigInt a, int w) { in remainderByPositiveInt() 292 static BigInt addition(BigInt a, BigInt b) { in addition() 298 void add(BigInt a) { in add() 302 static BigInt subtraction(BigInt a, BigInt b) { in subtraction() 309 static BigInt gcd(BigInt a, BigInt b) { in gcd() [all …]
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EllipticCurveTest.java | 45 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() local 79 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() local 126 BigInteger a = BigInteger.valueOf(24L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03() local 187 BigInteger a = BigInteger.valueOf(32L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray04() local 231 BigInteger a = BigInteger.valueOf(0L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray05() local 253 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigInteger01() local 285 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigInteger02() local 329 BigInteger a = BigInteger.valueOf(24L); in testEllipticCurveECFieldBigIntegerBigInteger03() local 386 BigInteger a = BigInteger.valueOf(32L); in testEllipticCurveECFieldBigIntegerBigInteger04() local 428 BigInteger a = BigInteger.valueOf(5L); in testGetA() local [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalArithmeticTest.java | 30 BigDecimal a, b, res; in testAddMathContextNonTrivial() local 55 BigDecimal a, b, res; in testSubtractMathContextNonTrivial() local 78 BigDecimal a, b, res; in testMultiplyMathContextNonTrivial() local 94 BigDecimal a, b, res; in testPowNonTrivial() local 112 String a = "123121247898748298842980"; in testPowMathContext() local 126 BigDecimal a, b, res; in testPowMathContextNonTrivial() local 191 BigDecimal a, b, res; in testDivideINonTrivial() local 218 BigDecimal a, b, res; in testDivideIINonTrivial() local 246 BigDecimal a, b, res; in testDivideScaleRoundingModeNonTrivial() local 276 BigDecimal a, b, res; in testDivideMathContextNonTrivial() local [all …]
|
D | OldBigDecimalScaleOperationsTest.java | 30 BigDecimal a = new BigDecimal("12345.6789012345678901234567890123456789"); in testMovePointRightEx() local 46 BigDecimal a = new BigDecimal("123456789012345678901234567890123456789E25"); in testMovePointRightEx2() local 55 BigDecimal a = new BigDecimal("12345.6789012345678901234567890123456789"); in testScaleByPowerOfTenEx() local
|
D | OldBigDecimalConvertTest.java | 32 String a = "-123809648392384754573567356745735.63567890295784902768787678287E+21"; in test_IntValueExactNeg() local 43 String a = "123809648392384754573567356745735.63567890295784902768787678287E+21"; in test_IntValueExactPos() local 64 float a = 2147483646.99999F; in test_IntValueExactFloatPos() local 75 long a = 2147483647L; in test_IntValueExactLongPos() local 82 long a = -2147483648L; in test_IntValueExactLongNeg() local 89 String a = "-123809648392384754573567356745735.63567890295784902768787678287E+21"; in test_LongValueExactNeg() local 100 String a = "123809648392384754573567356745735.63567890295784902768787678287E+21"; in test_LongValueExactPos() local 125 float a = 9223372036854775806.99999F; in test_LongValueExactFloatPos() local 346 String a = "-123809648392384754573567356745735.63567890295784902768787678287E+21"; in test_ShortValueNeg() local 353 String a = "123809648392384754573567356745735.63567890295784902768787678287E+21"; in test_ShortValuePos() local [all …]
|
D | OldBigDecimalCompareTest.java | 33 String a = "-123809648392384754573567356745735.63567890295784902768787678287E+21"; in testAbsMathContextNeg() local 56 String a = "92948782094488478231212478987482988429808779810457634781384756794987"; in testNegateMathContextPositive() local
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidByteArrayInputStreamTest.java | 33 ByteArrayInputStream a = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream() local 44 public static String read(InputStream a) throws IOException { in read() 55 public static String read(InputStream a, int x) throws IOException { in read() 64 public static String skipRead(InputStream a) throws IOException { in skipRead() 76 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead()
|
D | OldAndroidStringReaderTest.java | 30 StringReader a = new StringReader(str); in testStringReader() local 41 public static String read(Reader a) throws IOException { in read() 52 public static String read(Reader a, int x) throws IOException { in read() 61 public static String skipRead(Reader a) throws IOException { in skipRead() 73 public static String markRead(Reader a, int x, int y) throws IOException { in markRead()
|
D | OldAndroidCharArrayReaderTest.java | 32 CharArrayReader a = new CharArrayReader(str.toCharArray()); in testCharArrayReader() local 43 public static String read(Reader a) throws IOException { in read() 54 public static String read(Reader a, int x) throws IOException { in read() 63 public static String skipRead(Reader a) throws IOException { in skipRead() 75 public static String markRead(Reader a, int x, int y) throws IOException { in markRead()
|
D | OldAndroidPushbackInputStreamTest.java | 34 PushbackInputStream a = new PushbackInputStream(aa, 7); in testPushbackInputStream() local 58 public static String read(InputStream a) throws IOException { in read() 69 public static String read(InputStream a, int x) throws IOException { in read() 78 public static String skipRead(InputStream a) throws IOException { in skipRead() 90 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead()
|
D | OldAndroidPushbackReaderTest.java | 34 PushbackReader a = new PushbackReader(aa, 5); in testPushbackReader() local 58 public static String read(Reader a) throws IOException { in read() 69 public static String read(Reader a, int x) throws IOException { in read() 78 public static String skipRead(Reader a) throws IOException { in skipRead()
|
D | OldAndroidBufferedReaderTest.java | 37 BufferedReader a = new BufferedReader(aa, 5); in testBufferedReader() local 66 public static String read(Reader a) throws IOException { in read() 77 public static String read(Reader a, int x) throws IOException { in read() 86 public static String skipRead(Reader a) throws IOException { in skipRead() 98 public static String markRead(Reader a, int x, int y) throws IOException { in markRead()
|
D | OldAndroidLineNumberReaderTest.java | 40 LineNumberReader a = new LineNumberReader(aa); in testLineNumberReader() local 80 public static String read(Reader a) throws IOException { in read() 91 public static String read(Reader a, int x) throws IOException { in read() 100 public static String skipRead(Reader a) throws IOException { in skipRead() 112 public static String markRead(Reader a, int x, int y) throws IOException { in markRead()
|
D | OldAndroidDataInputStreamTest.java | 37 DataInputStream a = new DataInputStream(aa); in testDataInputStream() local 108 public static String read(InputStream a) throws IOException { in read() 119 public static String read(InputStream a, int x) throws IOException { in read() 128 public static String skipRead(InputStream a) throws IOException { in skipRead() 140 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead()
|
D | OldAndroidBufferedInputStreamTest.java | 39 BufferedInputStream a = new BufferedInputStream(aa, 6); in testBufferedInputStream() local 82 public static String read(InputStream a) throws IOException { in read() 93 public static String skipRead(InputStream a) throws IOException { in skipRead() 105 public static String read(InputStream a, int x) throws IOException { in read()
|
/libcore/luni/src/main/java/java/util/ |
D | ArrayList.java | 93 Object[] a = collection.toArray(); in ArrayList() local 111 Object[] a = array; in add() local 140 Object[] a = array; in add() local 189 Object[] a = array; in addAll() local 229 Object[] a = array; in addAll() local 293 Object[] a = array; in ensureCapacity() local 331 Object[] a = array; in contains() local 350 Object[] a = array; in indexOf() local 369 Object[] a = array; in lastIndexOf() local 396 Object[] a = array; in remove() local [all …]
|
D | ComparableTimSort.java | 53 private final Object[] a; field in ComparableTimSort 108 private ComparableTimSort(Object[] a) { in ComparableTimSort() 141 static void sort(Object[] a) { in sort() 145 static void sort(Object[] a, int lo, int hi) { in sort() 209 private static void binarySort(Object[] a, int lo, int hi, int start) { in binarySort() 279 private static int countRunAndMakeAscending(Object[] a, int lo, int hi) { in countRunAndMakeAscending() 469 private static int gallopLeft(Comparable<Object> key, Object[] a, in gallopLeft() 539 private static int gallopRight(Comparable<Object> key, Object[] a, in gallopRight() 828 System.arraycopy(a, cursor1 + 1, a, dest + 1, len1); in System.arraycopy() argument
|
D | DualPivotQuicksort.java | 71 public static void sort(int[] a) { in sort() 88 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() 103 private static void doSort(int[] a, int left, int right) { in doSort() 127 private static void dualPivotQuicksort(int[] a, int left, int right) { in dualPivotQuicksort() 349 public static void sort(long[] a) { in sort() 366 public static void sort(long[] a, int fromIndex, int toIndex) { in sort() 381 private static void doSort(long[] a, int left, int right) { in doSort() 405 private static void dualPivotQuicksort(long[] a, int left, int right) { in dualPivotQuicksort() 627 public static void sort(short[] a) { in sort() 644 public static void sort(short[] a, int fromIndex, int toIndex) { in sort() [all …]
|
D | TimSort.java | 73 private final T[] a; field in TimSort 134 private TimSort(T[] a, Comparator<? super T> c) { in TimSort() 168 static <T> void sort(T[] a, Comparator<? super T> c) { in sort() 172 static <T> void sort(T[] a, int lo, int hi, Comparator<? super T> c) { in sort() 242 private static <T> void binarySort(T[] a, int lo, int hi, int start, in binarySort() 312 private static <T> int countRunAndMakeAscending(T[] a, int lo, int hi, in countRunAndMakeAscending() 502 private static <T> int gallopLeft(T key, T[] a, int base, int len, int hint, in gallopLeft() 572 private static <T> int gallopRight(T key, T[] a, int base, int len, in gallopRight() 767 T[] a = this.a; // For performance local 869 System.arraycopy(tmp, 0, a, dest - (len2 - 1), len2); in System.arraycopy() argument
|
/libcore/luni/src/test/java/tests/api/java/util/ |
D | ArraysTest.java | 1776 private void checkSorted(int[] a) { in checkSorted() 1784 private void checkSorted(long[] a) { in checkSorted() 1792 private void checkSorted(short[] a) { in checkSorted() 1800 private void checkSorted(byte[] a) { in checkSorted() 1808 private void checkSorted(char[] a) { in checkSorted() 1816 private void checkSorted(float[] a) { in checkSorted() 1824 private void checkSorted(double[] a) { in checkSorted() 1858 private int checkSum(int[] a) { in checkSum() 1867 private int checkSum(long[] a) { in checkSum() 1876 private int checkSum(short[] a) { in checkSum() [all …]
|
/libcore/luni/src/main/java/java/security/spec/ |
D | EllipticCurve.java | 32 private final BigInteger a; field in EllipticCurve 59 public EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) { in EllipticCurve() 114 public EllipticCurve(ECField field, BigInteger a, BigInteger b) { in EllipticCurve()
|