Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 149) sorted by relevance

123456

/libcore/luni/src/main/java/java/lang/
DStrictMath.java147 public static double acos(double x) { in acos() argument
150 final long bits = Double.doubleToRawLongBits(x); in acos()
161 return (x - x) / (x - x); /* ieee_acos(|x|>1) is NaN */ in acos()
169 z = x * x; in acos()
174 return PIO2_HI - (x - (PIO2_LO - x * r)); in acos()
176 z = (1.00000000000000000000e+00 + x) * 0.5; in acos()
185 z = (1.00000000000000000000e+00 - x) * 0.5; in acos()
215 public static double asin(double x) { in asin() argument
218 final long bits = Double.doubleToRawLongBits(x); in asin()
224 return x * PIO2_HI + x * PIO2_LO; in asin()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java31 int[] x = { 1 }; in test_getLjava_lang_ObjectI() local
35 ret = Array.get(x, 0); in test_getLjava_lang_ObjectI()
52 ret = Array.get(x, 4); in test_getLjava_lang_ObjectI()
99 boolean[] x = { true }; in test_getBooleanLjava_lang_ObjectI()
103 ret = Array.getBoolean(x, 0); in test_getBooleanLjava_lang_ObjectI()
119 ret = Array.getBoolean(x, 4); in test_getBooleanLjava_lang_ObjectI()
145 byte[] x = { 1 }; in test_getByteLjava_lang_ObjectI()
149 ret = Array.getByte(x, 0); in test_getByteLjava_lang_ObjectI()
165 ret = Array.getByte(x, 4); in test_getByteLjava_lang_ObjectI()
191 char[] x = { 1 }; in test_getCharLjava_lang_ObjectI() local
[all …]
DFieldTest.java134 private static final int x = 1; field in FieldTest.TestField
162 TestField x = new TestField(); in test_equalsLjava_lang_Object() local
186 TestField x = new TestField(); in test_getLjava_lang_Object() local
188 Double val = (Double) f.get(x); in test_getLjava_lang_Object()
194 f.set(x, new Double(1.0)); in test_getLjava_lang_Object()
195 val = (Double) f.get(x); in test_getLjava_lang_Object()
558 TestField x = new TestField(); in test_getBooleanLjava_lang_Object() local
563 val = f.getBoolean(x); in test_getBooleanLjava_lang_Object()
572 f.getBoolean(x); in test_getBooleanLjava_lang_Object()
612 TestField x = new TestField(); in test_getByteLjava_lang_Object() local
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DIntegerBenchmark.java65 private static int popX(long x) { in popX() argument
69 x = x - ((x >>> 1) & 0x55555555); in popX()
70 x = (x & 0x33333333) + ((x >>> 2) & 0x33333333); in popX()
71 x = (x + (x >>> 4)) & 0x0f0f0f0f; in popX()
72 x = x + (x >>> 8); in popX()
73 x = x + (x >>> 16); in popX()
74 return (int) x & 0x0000003f; in popX()
DPropertyAccessBenchmark.java28 private Field x; field in PropertyAccessBenchmark
33 x = View.class.getDeclaredField("x"); in setUp()
44 view.x = 0.1f; in timeDirectFieldSet()
58 view.x = value; in timeDirectFieldSetAndBoxing()
77 x.setFloat(view, 0.1f); in timeReflectionFieldSet()
94 float x; field in PropertyAccessBenchmark.View
96 public void setX(float x) { in setX() argument
97 this.x = x; in setX()
113 v.x = f; in setFloat()
DBigIntegerBenchmark.java27 BigInteger x = new BigInteger(1024, r); in timeRandomDivision() local
30 x.divide(y); in timeRandomDivision()
36 BigInteger x = new BigInteger(1024, r); in timeRandomGcd() local
39 x.gcd(y); in timeRandomGcd()
45 BigInteger x = new BigInteger(1024, r); in timeRandomMultiplication() local
48 x.multiply(y); in timeRandomMultiplication()
/libcore/luni/src/main/java/java/sql/
DResultSet.java1337 public void updateArray(int columnIndex, Array x) throws SQLException; in updateArray() argument
1350 public void updateArray(String columnName, Array x) throws SQLException; in updateArray() argument
1364 public void updateAsciiStream(int columnIndex, InputStream x, int length) in updateAsciiStream() argument
1379 public void updateAsciiStream(String columnName, InputStream x, int length) in updateAsciiStream() argument
1393 public void updateBigDecimal(int columnIndex, BigDecimal x) in updateBigDecimal() argument
1407 public void updateBigDecimal(String columnName, BigDecimal x) in updateBigDecimal() argument
1422 public void updateBinaryStream(int columnIndex, InputStream x, int length) in updateBinaryStream() argument
1437 public void updateBinaryStream(String columnName, InputStream x, int length) in updateBinaryStream() argument
1451 public void updateBlob(int columnIndex, Blob x) throws SQLException; in updateBlob() argument
1464 public void updateBlob(String columnName, Blob x) throws SQLException; in updateBlob() argument
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicLongTest.java204 AtomicLong x = new AtomicLong(); in testSerialization() local
205 AtomicLong y = serialClone(x); in testSerialization()
206 assertNotSame(x, y); in testSerialization()
207 x.set(-22); in testSerialization()
208 AtomicLong z = serialClone(x); in testSerialization()
210 assertEquals(-22, x.get()); in testSerialization()
221 for (long x : VALUES) { in testToString()
222 ai.set(x); in testToString()
223 assertEquals(Long.toString(x), ai.toString()); in testToString()
233 for (long x : VALUES) { in testIntValue()
[all …]
DAtomicIntegerTest.java202 AtomicInteger x = new AtomicInteger(); in testSerialization() local
203 AtomicInteger y = serialClone(x); in testSerialization()
204 assertNotSame(x, y); in testSerialization()
205 x.set(22); in testSerialization()
206 AtomicInteger z = serialClone(x); in testSerialization()
207 assertEquals(22, x.get()); in testSerialization()
218 for (int x : VALUES) { in testToString()
219 ai.set(x); in testToString()
220 assertEquals(Integer.toString(x), ai.toString()); in testToString()
230 for (int x : VALUES) { in testIntValue()
[all …]
DThreadLocalTest.java66 final int[] x; field in ThreadLocalTest.ITLThread
67 ITLThread(int[] array) { x = array; } in ITLThread()
70 if (itl.get().intValue() < x.length - 1) { in run()
71 child = new ITLThread(x); in run()
78 x[threadId]++; in run()
97 final int[] x = new int[threadCount]; in testGenericITL() local
98 Thread progenitor = new ITLThread(x); in testGenericITL()
102 assertEquals(i, x[i]); in testGenericITL()
DAtomicLongFieldUpdaterTest.java17 volatile long x = 0; field in AtomicLongFieldUpdaterTest
74 x = 1; in testGetSet()
88 x = 1; in testGetLazySet()
102 x = 1; in testCompareAndSet()
117 x = 1; in testCompareAndSetInMultipleThreads()
141 x = 1; in testWeakCompareAndSet()
155 x = 1; in testGetAndSet()
167 x = 1; in testGetAndAdd()
180 x = 1; in testGetAndDecrement()
192 x = 1; in testGetAndIncrement()
[all …]
DAtomicIntegerFieldUpdaterTest.java17 volatile int x = 0; field in AtomicIntegerFieldUpdaterTest
73 x = 1; in testGetSet()
87 x = 1; in testGetLazySet()
101 x = 1; in testCompareAndSet()
116 x = 1; in testCompareAndSetInMultipleThreads()
140 x = 1; in testWeakCompareAndSet()
154 x = 1; in testGetAndSet()
166 x = 1; in testGetAndAdd()
179 x = 1; in testGetAndDecrement()
191 x = 1; in testGetAndIncrement()
[all …]
/libcore/luni/src/main/native/
Djava_lang_StringToReal.cpp46 #define allocateU64(x, n) if (!((x) = reinterpret_cast<uint64_t*>(malloc((n) * sizeof(uint64_t)))))… argument
269 uint64_t* x; in doubleAlgorithm() local
275 x = y = D = D2 = 0; in doubleAlgorithm()
283 if (x && x != f) in doubleAlgorithm()
284 free(x); in doubleAlgorithm()
293 allocateU64 (x, xLength); in doubleAlgorithm()
294 memset (x + length, 0, sizeof (uint64_t) * (xLength - length)); in doubleAlgorithm()
295 memcpy (x, f, sizeof (uint64_t) * length); in doubleAlgorithm()
296 timesTenToTheEHighPrecision (x, xLength, e); in doubleAlgorithm()
307 allocateU64 (x, xLength); in doubleAlgorithm()
[all …]
Dcbigint.cpp82 #define TIMES_TEN(x) (((x) << 3) + ((x) << 1)) argument
83 #define bitSection(x, mask, shift) (((x) & (mask)) >> (shift)) argument
371 uint32_t x; in highestSetBit() local
380 x = HIGH_U32_FROM_PTR (y); in highestSetBit()
385 x = LOW_U32_FROM_PTR (y); in highestSetBit()
392 x = HIGH_U32_FROM_PTR (y); in highestSetBit()
397 x = LOW_U32_FROM_PTR (y); in highestSetBit()
403 x = HIGH_U32_FROM_PTR (y); in highestSetBit()
408 x = LOW_U32_FROM_PTR (y); in highestSetBit()
414 if (x & 0xFFFF0000) in highestSetBit()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidInputStreamReaderTest.java37 int x = a.read(); in testAscii() local
38 assertEquals('A', x); in testAscii()
40 x = a.read(c, 0, 26); in testAscii()
42 assertEquals(26, x); in testAscii()
63 int x = a.read(); in testUtf8() local
64 assertEquals('A', x); in testUtf8()
67 x = a.read(c, 0, 3); in testUtf8()
68 assertEquals(3, x); in testUtf8()
71 x = a.read(c, 3, 26); in testUtf8()
72 assertEquals(26, x); in testUtf8()
DOldAndroidStringReaderTest.java52 public static String read(Reader a, int x) throws IOException { in read() argument
53 char[] b = new char[x]; in read()
54 int len = a.read(b, 0, x); in read()
73 public static String markRead(Reader a, int x, int y) throws IOException { in markRead() argument
80 if (m == x) in markRead()
81 a.mark((x + y)); in markRead()
82 if (m == (x + y)) in markRead()
DOldAndroidByteArrayInputStreamTest.java55 public static String read(InputStream a, int x) throws IOException { in read() argument
56 byte[] b = new byte[x]; in read()
57 int len = a.read(b, 0, x); in read()
76 public static String markRead(InputStream a, int x, int y) throws IOException { in markRead() argument
83 if (m == x) in markRead()
84 a.mark((x + y)); in markRead()
85 if (m == (x + y)) in markRead()
DOldAndroidCharArrayReaderTest.java54 public static String read(Reader a, int x) throws IOException { in read() argument
55 char[] b = new char[x]; in read()
56 int len = a.read(b, 0, x); in read()
75 public static String markRead(Reader a, int x, int y) throws IOException { in markRead() argument
82 if (m == x) in markRead()
83 a.mark((x + y)); in markRead()
84 if (m == (x + y)) in markRead()
DOldAndroidBufferedReaderTest.java77 public static String read(Reader a, int x) throws IOException { in read() argument
78 char[] b = new char[x]; in read()
79 int len = a.read(b, 0, x); in read()
98 public static String markRead(Reader a, int x, int y) throws IOException { in markRead() argument
105 if (m == x) in markRead()
106 a.mark((x + y)); in markRead()
107 if (m == (x + y)) in markRead()
/libcore/luni/src/main/java/java/util/
DAbstractQueue.java84 E x = poll(); in remove() local
85 if (x != null) in remove()
86 return x; in remove()
103 E x = peek(); in element() local
104 if (x != null) in element()
105 return x; in element()
/libcore/luni/src/main/java/java/util/concurrent/
DTimeUnit.java62 public long toNanos(long d) { return x(d, C1/C0, MAX/(C1/C0)); } in toNanos()
77 public long toNanos(long d) { return x(d, C2/C0, MAX/(C2/C0)); } in toNanos()
78 public long toMicros(long d) { return x(d, C2/C1, MAX/(C2/C1)); } in toMicros()
92 public long toNanos(long d) { return x(d, C3/C0, MAX/(C3/C0)); } in toNanos()
93 public long toMicros(long d) { return x(d, C3/C1, MAX/(C3/C1)); } in toMicros()
94 public long toMillis(long d) { return x(d, C3/C2, MAX/(C3/C2)); } in toMillis()
108 public long toNanos(long d) { return x(d, C4/C0, MAX/(C4/C0)); } in toNanos()
109 public long toMicros(long d) { return x(d, C4/C1, MAX/(C4/C1)); } in toMicros()
110 public long toMillis(long d) { return x(d, C4/C2, MAX/(C4/C2)); } in toMillis()
111 public long toSeconds(long d) { return x(d, C4/C3, MAX/(C4/C3)); } in toSeconds()
[all …]
DLinkedBlockingDeque.java100 Node(E x) { in Node() argument
101 item = x; in Node()
267 void unlink(Node<E> x) { in unlink() argument
269 Node<E> p = x.prev; in unlink()
270 Node<E> n = x.next; in unlink()
278 x.item = null; in unlink()
420 E x = pollFirst(); in removeFirst() local
421 if (x == null) throw new NoSuchElementException(); in removeFirst()
422 return x; in removeFirst()
429 E x = pollLast(); in removeLast() local
[all …]
/libcore/luni/src/main/java/javax/crypto/spec/
DDHPrivateKeySpec.java28 private final BigInteger x; field in DHPrivateKeySpec
44 public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g) { in DHPrivateKeySpec() argument
45 this.x = x; in DHPrivateKeySpec()
56 return x; in getX()
/libcore/luni/src/main/java/java/security/spec/
DDSAPrivateKeySpec.java27 private final BigInteger x; field in DSAPrivateKeySpec
48 public DSAPrivateKeySpec(BigInteger x, BigInteger p, in DSAPrivateKeySpec() argument
50 this.x = x; in DSAPrivateKeySpec()
89 return x; in getX()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThrowableTest.java53 public int x; in test_fillInStackTrace() field in ThrowableTest.Test
55 public Test(int x) { in test_fillInStackTrace() argument
56 this.x = x; in test_fillInStackTrace()
65 if (x == 0) in test_fillInStackTrace()
129 Throwable x = new ClassNotFoundException("A Test Message"); in test_printStackTrace() local
134 x.printStackTrace(); in test_printStackTrace()
150 Throwable x = new java.net.UnknownHostException("A Message"); in test_printStackTraceLjava_io_PrintStream() local
151 x.printStackTrace(ps); in test_printStackTraceLjava_io_PrintStream()
167 Throwable x = new java.net.UnknownHostException("A Message"); in test_printStackTraceLjava_io_PrintWriter() local
168 x.printStackTrace(pw); in test_printStackTraceLjava_io_PrintWriter()

123456