Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/libcore/luni/src/test/java/dalvik/system/
DJniTest.java95 final Object[] a = new Object[16]; in testPassingObjectReferences() local
99 a[i] = literal; in testPassingObjectReferences()
102 assertEquals(a[i], returnObjectArgFrom16(i, a[0], a[1], a[2], a[3], a[4], in testPassingObjectReferences()
103 a[5], a[6], a[7], a[8], a[9], a[10], in testPassingObjectReferences()
104 a[11], a[12], a[13], a[14], a[15])); in testPassingObjectReferences()
110 a[i] = literals[(i + j) % literals.length]; in testPassingObjectReferences()
113 assertEquals(a[i], returnObjectArgFrom16(i, a[0], a[1], a[2], a[3], a[4], in testPassingObjectReferences()
114 a[5], a[6], a[7], a[8], a[9], a[10], in testPassingObjectReferences()
115 a[11], a[12], a[13], a[14], a[15])); in testPassingObjectReferences()
123 final boolean[] a = new boolean[16]; in testPassingBooleans()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicLongFieldUpdaterTest.java60 AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> a; in testGetSet() local
61 a = updaterFor("x"); in testGetSet()
63 assertEquals(1, a.get(this)); in testGetSet()
64 a.set(this, 2); in testGetSet()
65 assertEquals(2, a.get(this)); in testGetSet()
66 a.set(this, -3); in testGetSet()
67 assertEquals(-3, a.get(this)); in testGetSet()
74 AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> a; in testGetLazySet() local
75 a = updaterFor("x"); in testGetLazySet()
77 assertEquals(1, a.get(this)); in testGetLazySet()
[all …]
DAtomicIntegerFieldUpdaterTest.java60 AtomicIntegerFieldUpdater<AtomicIntegerFieldUpdaterTest> a; in testGetSet() local
61 a = updaterFor("x"); in testGetSet()
63 assertEquals(1, a.get(this)); in testGetSet()
64 a.set(this, 2); in testGetSet()
65 assertEquals(2, a.get(this)); in testGetSet()
66 a.set(this, -3); in testGetSet()
67 assertEquals(-3, a.get(this)); in testGetSet()
74 AtomicIntegerFieldUpdater<AtomicIntegerFieldUpdaterTest> a; in testGetLazySet() local
75 a = updaterFor("x"); in testGetLazySet()
77 assertEquals(1, a.get(this)); in testGetLazySet()
[all …]
DAtomicReferenceFieldUpdaterTest.java71 AtomicReferenceFieldUpdater<AtomicReferenceFieldUpdaterTest, Integer>a; in testGetSet() local
72 a = updaterFor("x"); in testGetSet()
74 assertSame(one, a.get(this)); in testGetSet()
75 a.set(this, two); in testGetSet()
76 assertSame(two, a.get(this)); in testGetSet()
77 a.set(this, m3); in testGetSet()
78 assertSame(m3, a.get(this)); in testGetSet()
85 AtomicReferenceFieldUpdater<AtomicReferenceFieldUpdaterTest, Integer>a; in testGetLazySet() local
86 a = updaterFor("x"); in testGetLazySet()
88 assertSame(one, a.get(this)); in testGetLazySet()
[all …]
DCountedCompleterTest.java46 private void testInvokeOnPool(ForkJoinPool pool, ForkJoinTask a) { in testInvokeOnPool() argument
48 assertFalse(a.isDone()); in testInvokeOnPool()
49 assertFalse(a.isCompletedNormally()); in testInvokeOnPool()
50 assertFalse(a.isCompletedAbnormally()); in testInvokeOnPool()
51 assertFalse(a.isCancelled()); in testInvokeOnPool()
52 assertNull(a.getException()); in testInvokeOnPool()
53 assertNull(a.getRawResult()); in testInvokeOnPool()
55 assertNull(pool.invoke(a)); in testInvokeOnPool()
57 assertTrue(a.isDone()); in testInvokeOnPool()
58 assertTrue(a.isCompletedNormally()); in testInvokeOnPool()
[all …]
DForkJoinTaskTest.java43 private void testInvokeOnPool(ForkJoinPool pool, RecursiveAction a) { in testInvokeOnPool() argument
45 assertFalse(a.isDone()); in testInvokeOnPool()
46 assertFalse(a.isCompletedNormally()); in testInvokeOnPool()
47 assertFalse(a.isCompletedAbnormally()); in testInvokeOnPool()
48 assertFalse(a.isCancelled()); in testInvokeOnPool()
49 assertNull(a.getException()); in testInvokeOnPool()
50 assertNull(a.getRawResult()); in testInvokeOnPool()
52 assertNull(pool.invoke(a)); in testInvokeOnPool()
54 assertTrue(a.isDone()); in testInvokeOnPool()
55 assertTrue(a.isCompletedNormally()); in testInvokeOnPool()
[all …]
DRecursiveTaskTest.java37 private <T> T testInvokeOnPool(ForkJoinPool pool, RecursiveTask<T> a) { in testInvokeOnPool() argument
39 checkNotDone(a); in testInvokeOnPool()
41 T result = pool.invoke(a); in testInvokeOnPool()
43 checkCompletedNormally(a, result); in testInvokeOnPool()
50 void checkNotDone(RecursiveTask a) { in checkNotDone() argument
51 assertFalse(a.isDone()); in checkNotDone()
52 assertFalse(a.isCompletedNormally()); in checkNotDone()
53 assertFalse(a.isCompletedAbnormally()); in checkNotDone()
54 assertFalse(a.isCancelled()); in checkNotDone()
55 assertNull(a.getException()); in checkNotDone()
[all …]
DCopyOnWriteArraySetTest.java25 CopyOnWriteArraySet<Integer> a = new CopyOnWriteArraySet<Integer>(); in populatedSet() local
26 assertTrue(a.isEmpty()); in populatedSet()
28 a.add(i); in populatedSet()
29 assertFalse(a.isEmpty()); in populatedSet()
30 assertEquals(n, a.size()); in populatedSet()
31 return a; in populatedSet()
35 CopyOnWriteArraySet<Integer> a = new CopyOnWriteArraySet<Integer>(); in populatedSet() local
36 assertTrue(a.isEmpty()); in populatedSet()
38 a.add(elements[i]); in populatedSet()
39 assertFalse(a.isEmpty()); in populatedSet()
[all …]
/libcore/luni/src/main/java/java/util/
DDualPivotQuicksort.java71 public static void sort(int[] a) { in sort() argument
72 doSort(a, 0, a.length - 1); in sort()
88 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() argument
89 Arrays.checkStartAndEnd(a.length, fromIndex, toIndex); in sort()
90 doSort(a, fromIndex, toIndex - 1); in sort()
103 private static void doSort(int[] a, int left, int right) { in doSort() argument
107 int ai = a[i]; in doSort()
109 for (j = i - 1; j >= left && ai < a[j]; j--) { in doSort()
110 a[j + 1] = a[j]; in doSort()
112 a[j + 1] = ai; in doSort()
[all …]
DObjects.java32 public static <T> int compare(T a, T b, Comparator<? super T> c) { in compare() argument
33 if (a == b) { in compare()
36 return c.compare(a, b); in compare()
45 public static boolean deepEquals(Object a, Object b) { in deepEquals() argument
46 if (a == null || b == null) { in deepEquals()
47 return a == b; in deepEquals()
48 } else if (a instanceof Object[] && b instanceof Object[]) { in deepEquals()
49 return Arrays.deepEquals((Object[]) a, (Object[]) b); in deepEquals()
50 } else if (a instanceof boolean[] && b instanceof boolean[]) { in deepEquals()
51 return Arrays.equals((boolean[]) a, (boolean[]) b); in deepEquals()
[all …]
DComparableTimSort.java53 private final Object[] a; field in ComparableTimSort
108 private ComparableTimSort(Object[] a) { in ComparableTimSort() argument
109 this.a = a; in ComparableTimSort()
112 int len = a.length; in ComparableTimSort()
141 static void sort(Object[] a) { in sort() argument
142 sort(a, 0, a.length); in sort()
145 static void sort(Object[] a, int lo, int hi) { in sort() argument
146 Arrays.checkStartAndEnd(a.length, lo, hi); in sort()
153 int initRunLen = countRunAndMakeAscending(a, lo, hi); in sort()
154 binarySort(a, lo, hi, lo + initRunLen); in sort()
[all …]
DTimSort.java73 private final T[] a; field in TimSort
134 private TimSort(T[] a, Comparator<? super T> c) { in TimSort() argument
135 this.a = a; in TimSort()
139 int len = a.length; in TimSort()
168 static <T> void sort(T[] a, Comparator<? super T> c) { in sort() argument
169 sort(a, 0, a.length, c); in sort()
172 static <T> void sort(T[] a, int lo, int hi, Comparator<? super T> c) { in sort() argument
174 Arrays.sort(a, lo, hi); in sort()
178 Arrays.checkStartAndEnd(a.length, lo, hi); in sort()
185 int initRunLen = countRunAndMakeAscending(a, lo, hi, c); in sort()
[all …]
DArrayList.java97 Object[] a = collection.toArray(); in ArrayList() local
98 if (a.getClass() != Object[].class) { in ArrayList()
99 Object[] newArray = new Object[a.length]; in ArrayList()
100 System.arraycopy(a, 0, newArray, 0, a.length); in ArrayList()
101 a = newArray; in ArrayList()
103 array = a; in ArrayList()
104 size = a.length; in ArrayList()
115 Object[] a = array; in add() local
117 if (s == a.length) { in add()
121 System.arraycopy(a, 0, newArray, 0, s); in add()
[all …]
/libcore/luni/src/main/native/
Djava_lang_StrictMath.cpp25 static jdouble StrictMath_sin(JNIEnv*, jclass, jdouble a) { in StrictMath_sin() argument
26 return ieee_sin(a); in StrictMath_sin()
29 static jdouble StrictMath_cos(JNIEnv*, jclass, jdouble a) { in StrictMath_cos() argument
30 return ieee_cos(a); in StrictMath_cos()
33 static jdouble StrictMath_tan(JNIEnv*, jclass, jdouble a) { in StrictMath_tan() argument
34 return ieee_tan(a); in StrictMath_tan()
37 static jdouble StrictMath_asin(JNIEnv*, jclass, jdouble a) { in StrictMath_asin() argument
38 return ieee_asin(a); in StrictMath_asin()
41 static jdouble StrictMath_acos(JNIEnv*, jclass, jdouble a) { in StrictMath_acos() argument
42 return ieee_acos(a); in StrictMath_acos()
[all …]
Djava_lang_Math.cpp26 static jdouble Math_sin(JNIEnv*, jclass, jdouble a) { in Math_sin() argument
27 return sin(a); in Math_sin()
30 static jdouble Math_cos(JNIEnv*, jclass, jdouble a) { in Math_cos() argument
31 return cos(a); in Math_cos()
34 static jdouble Math_tan(JNIEnv*, jclass, jdouble a) { in Math_tan() argument
35 return tan(a); in Math_tan()
38 static jdouble Math_asin(JNIEnv*, jclass, jdouble a) { in Math_asin() argument
39 return asin(a); in Math_asin()
42 static jdouble Math_acos(JNIEnv*, jclass, jdouble a) { in Math_acos() argument
43 return acos(a); in Math_acos()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalConvertTest.java37 String a = "-123809648392384754573567356745735.63567890295784902768787678287E+21"; in testDoubleValueNeg() local
38 BigDecimal aNumber = new BigDecimal(a); in testDoubleValueNeg()
47 String a = "123809648392384754573567356745735.63567890295784902768787678287E+21"; in testDoubleValuePos() local
48 BigDecimal aNumber = new BigDecimal(a); in testDoubleValuePos()
57 String a = "123809648392384754573567356745735.63567890295784902768787678287E+400"; in testDoubleValuePosInfinity() local
58 BigDecimal aNumber = new BigDecimal(a); in testDoubleValuePosInfinity()
67 String a = "-123809648392384754573567356745735.63567890295784902768787678287E+400"; in testDoubleValueNegInfinity() local
68 BigDecimal aNumber = new BigDecimal(a); in testDoubleValueNegInfinity()
77 String a = "-123809648392384754573567356745735.63567890295784902768787678287E-400"; in testDoubleValueMinusZero() local
78 BigDecimal aNumber = new BigDecimal(a); in testDoubleValueMinusZero()
[all …]
DBigIntegerConvertTest.java36 String a = "0"; in testDoubleValueZero() local
38 double aNumber = new BigInteger(a).doubleValue(); in testDoubleValueZero()
47 String a = "27467238945"; in testDoubleValuePositive1() local
49 double aNumber = new BigInteger(a).doubleValue(); in testDoubleValuePositive1()
58 String a = "2746723894572364578265426346273456972"; in testDoubleValuePositive2() local
60 double aNumber = new BigInteger(a).doubleValue(); in testDoubleValuePositive2()
69 String a = "-27467238945"; in testDoubleValueNegative1() local
71 double aNumber = new BigInteger(a).doubleValue(); in testDoubleValueNegative1()
80 String a = "-2746723894572364578265426346273456972"; in testDoubleValueNegative2() local
82 double aNumber = new BigInteger(a).doubleValue(); in testDoubleValueNegative2()
[all …]
DBigDecimalScaleOperationsTest.java35 String a = "1231212478987482988429808779810457634781384756794987"; in testScaleDefault() local
37 BigDecimal aNumber = new BigDecimal(new BigInteger(a)); in testScaleDefault()
45 String a = "1231212478987482988429808779810457634781384756794987"; in testScaleNeg() local
48 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); in testScaleNeg()
56 String a = "1231212478987482988429808779810457634781384756794987"; in testScalePos() local
59 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); in testScalePos()
67 String a = "1231212478987482988429808779810457634781384756794987"; in testScaleZero() local
70 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); in testScaleZero()
78 String a = "1231212478987482988429808779810457634781384756794987"; in testUnscaledValue() local
80 BigInteger bNumber = new BigInteger(a); in testUnscaledValue()
[all …]
DBigDecimalConstructorsTest.java69 String a = "1231212478987482988429808779810457634781384756794987"; in testConstrBI() local
70 BigInteger bA = new BigInteger(a); in testConstrBI()
87 String a = "1231212478987482988429808779810457634781384756794987"; in testConstrBIScale() local
88 BigInteger bA = new BigInteger(a); in testConstrBIScale()
99 String a = "1231212478987482988429808779810457634781384756794987"; in testConstrBigIntegerMathContext() local
100 BigInteger bA = new BigInteger(a); in testConstrBigIntegerMathContext()
115 String a = "1231212478987482988429808779810457634781384756794987"; in testConstrBigIntegerScaleMathContext() local
116 BigInteger bA = new BigInteger(a); in testConstrBigIntegerScaleMathContext()
242 double a = Double.NaN; in testConstrDoubleNaN() local
244 new BigDecimal(a); in testConstrDoubleNaN()
[all …]
/libcore/luni/src/main/java/java/math/
DNativeBN.java24 public static native void BN_free(long a); in BN_free() argument
27 public static native int BN_cmp(long a, long b); in BN_cmp() argument
33 public static native void putLongInt(long a, long dw); in putLongInt() argument
34 public static native void putULongInt(long a, long dw, boolean neg); in putULongInt() argument
36 public static native int BN_dec2bn(long a, String str); in BN_dec2bn() argument
39 public static native int BN_hex2bn(long a, String str); in BN_hex2bn() argument
52 public static native long longInt(long a); in longInt() argument
55 public static native String BN_bn2dec(long a); in BN_bn2dec() argument
58 public static native String BN_bn2hex(long a); in BN_bn2hex() argument
61 public static native byte[] BN_bn2bin(long a); in BN_bn2bin() argument
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DCountedCompleter.java534 CountedCompleter<?> a = this, p; in getRoot() local
535 while ((p = a.completer) != null) in getRoot()
536 a = p; in getRoot()
537 return a; in getRoot()
547 CountedCompleter<?> a = this, s = a; in tryComplete() local
549 if ((c = a.pending) == 0) { in tryComplete()
550 a.onCompletion(s); in tryComplete()
551 if ((a = (s = a).completer) == null) { in tryComplete()
556 else if (U.compareAndSwapInt(a, PENDING, c, c - 1)) in tryComplete()
571 CountedCompleter<?> a = this, s = a; in propagateCompletion() local
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalArithmeticTest.java30 BigDecimal a, b, res; in testAddMathContextNonTrivial() local
33 a = new BigDecimal("123456789012345.678"); in testAddMathContextNonTrivial()
36 a.round(mc).toString()); in testAddMathContextNonTrivial()
40 a.round(mc).add(b.round(mc)).toString()); in testAddMathContextNonTrivial()
41 res = a.add(b, mc); in testAddMathContextNonTrivial()
45 a = new BigDecimal("1234567890123456789012345678.9012395"); in testAddMathContextNonTrivial()
47 res = a.add(b, mc); in testAddMathContextNonTrivial()
55 BigDecimal a, b, res; in testSubtractMathContextNonTrivial() local
58 a = new BigDecimal("12345678901234567.8"); in testSubtractMathContextNonTrivial()
61 a.round(mc).subtract(b.round(mc)).toString()); in testSubtractMathContextNonTrivial()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java30 private Attributes a; field in AttributesTest
34 a = new Attributes(); in setUp()
35 a.putValue("1", "one"); in setUp()
36 a.putValue("2", "two"); in setUp()
37 a.putValue("3", "three"); in setUp()
38 a.putValue("4", "four"); in setUp()
45 Attributes a2 = new Attributes(a); in test_ConstructorLjava_util_jar_Attributes()
46 assertEquals(a, a2); in test_ConstructorLjava_util_jar_Attributes()
47 a.putValue("1", "one(1)"); in test_ConstructorLjava_util_jar_Attributes()
48 assertTrue("equal", !a.equals(a2)); in test_ConstructorLjava_util_jar_Attributes()
[all …]
/libcore/luni/src/main/files/cacerts/
D9d6523ce.050 3a:4e:6d:9d:d3:2f:14:f3:63:74:cb:01:21:6a:37:
51 ea:84:50:07:4b:26:5b:09:43:6c:21:9e:6a:c8:d5:
52 03:f5:60:69:8f:cc:f0:22:e4:1f:e7:f7:6a:22:31:
53 b7:2c:15:f2:e0:fe:00:6a:43:ff:87:65:c6:b5:1a:
54 c1:a7:4c:6d:22:70:21:8a:31:f2:97:74:89:09:12:
56 64:e3:d6:42:b7:45:ef:97:f4:f6:f5:d7:b5:4a:15:
57 02:58:7d:98:58:4b:60:bc:cd:d7:0d:9a:13:33:53:
58 d1:61:f9:7a:d5:d7:78:b3:9a:33:f7:00:86:ce:1d:
59 4d:94:38:af:a8:ec:78:51:70:8a:5c:10:83:51:21:
62 10:0a:d9:24:3b:ba:be:44:13:46:30:3f:97:3c:d8:
[all …]
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldAttributesTest.java24 private Attributes a; field in OldAttributesTest
28 a = new Attributes(); in setUp()
29 a.putValue("1", "one"); in setUp()
30 a.putValue("2", "two"); in setUp()
31 a.putValue("3", "three"); in setUp()
32 a.putValue("4", "four"); in setUp()
38 a.getValue("IllegalArgumentException expected"); in test_getLjava_lang_Object()
55 assertEquals("a) Incorrect value returned", "one", a in test_getLjava_lang_Object_true()
57 assertNull("b) Incorrect value returned", a.get("0")); in test_getLjava_lang_Object_true()
58 assertNull("b) Incorrect value returned", a.get("1")); in test_getLjava_lang_Object_true()
[all …]

12345678910>>...16