Home
last modified time | relevance | path

Searched refs:getDouble (Results 1 – 25 of 50) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DArrayTest.java81 try { Array.getDouble(booleans, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetDouble()
82 assertEquals((double) bytes[0], Array.getDouble(bytes, 0)); in testGetDouble()
83 assertEquals((double) chars[0], Array.getDouble(chars, 0)); in testGetDouble()
84 assertEquals(doubles[0], Array.getDouble(doubles, 0)); in testGetDouble()
85 assertEquals((double) floats[0], Array.getDouble(floats, 0)); in testGetDouble()
86 assertEquals((double) ints[0], Array.getDouble(ints, 0)); in testGetDouble()
87 assertEquals((double) longs[0], Array.getDouble(longs, 0)); in testGetDouble()
88 assertEquals((double) shorts[0], Array.getDouble(shorts, 0)); in testGetDouble()
89 try { Array.getDouble(null, 0); fail(); } catch (NullPointerException expected) {} in testGetDouble()
/libcore/json/src/test/java/libcore/org/json/
DJSONArrayTest.java219 assertEquals(Double.MIN_VALUE, array.getDouble(0)); in testNumbers()
220 assertEquals(9.223372036854776E18, array.getDouble(1)); in testNumbers()
221 assertEquals(Double.MAX_VALUE, array.getDouble(2)); in testNumbers()
222 assertEquals(-0d, array.getDouble(3)); in testNumbers()
282 assertEquals(5.5d, array.getDouble(1)); in testStrings()
290 assertEquals(9.223372036854776E18, array.getDouble(2)); in testStrings()
295 array.getDouble(3); in testStrings()
430 assertEquals(5.5, array.getDouble(0)); in testCreateWithUnsupportedNumbers()
431 assertEquals(Double.NaN, array.getDouble(1)); in testCreateWithUnsupportedNumbers()
514 assertEquals(5.5, array.getDouble(0)); in testCreate()
DJSONObjectTest.java67 object.getDouble("foo"); in testEmptyObject()
289 assertEquals(Double.MIN_VALUE, object.getDouble("foo")); in testNumbers()
290 assertEquals(9.223372036854776E18, object.getDouble("bar")); in testNumbers()
291 assertEquals(Double.MAX_VALUE, object.getDouble("baz")); in testNumbers()
292 assertEquals(-0d, object.getDouble("quux")); in testNumbers()
434 assertEquals(5.5d, object.getDouble("bar")); in testStrings()
442 assertEquals(9.223372036854776E18, object.getDouble("baz")); in testStrings()
447 object.getDouble("quux"); in testStrings()
/libcore/luni/src/test/java/libcore/java/nio/
DOldAndroidNIOTest.java306 assertEquals(0xA7A6A5A4A3A2A1A0L, Double.doubleToRawLongBits(b.getDouble(0))); in byteBufferTest()
307 assertEquals(0xA8A7A6A5A4A3A2A1L, Double.doubleToRawLongBits(b.getDouble(1))); in byteBufferTest()
309 b.getDouble(-1); in byteBufferTest()
315 b.getDouble(5); in byteBufferTest()
322 assertEquals(0xA0A1A2A3A4A5A6A7L, Double.doubleToRawLongBits(b.getDouble(0))); in byteBufferTest()
323 assertEquals(0xA1A2A3A4A5A6A7A8L, Double.doubleToRawLongBits(b.getDouble(1))); in byteBufferTest()
325 b.getDouble(-1); in byteBufferTest()
331 b.getDouble(5); in byteBufferTest()
/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java502 public double getDouble() { in getDouble() method in HeapByteBuffer
503 return Bits.getDouble(this, ix(nextGetIndex(8)), bigEndian); in getDouble()
507 public double getDouble(int i) { in getDouble() method in HeapByteBuffer
508 return Bits.getDouble(this, ix(checkIndex(i, 8)), bigEndian); in getDouble()
513 return Bits.getDouble(this, ix(i), bigEndian); in getDoubleUnchecked()
DDirectByteBuffer.java861 private double getDouble(long a) { in getDouble() method in DirectByteBuffer
867 public final double getDouble() { in getDouble() method in DirectByteBuffer
871 return getDouble(ix(nextGetIndex(Double.BYTES))); in getDouble()
875 public final double getDouble(int i) { in getDouble() method in DirectByteBuffer
879 return getDouble(ix(checkIndex(i, Double.BYTES))); in getDouble()
887 return getDouble(ix(i)); in getDoubleUnchecked()
DByteBuffer.java1636 public abstract double getDouble(); in getDouble() method in ByteBuffer
1676 public abstract double getDouble(int index); in getDouble() method in ByteBuffer
/libcore/ojluni/src/main/java/sun/nio/ch/
DNativeObject.java337 final double getDouble(int offset) { in getDouble() method in NativeObject
338 return unsafe.getDouble(offset + address); in getDouble()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java241 ret = Array.getDouble(x, 0); in test_getDoubleLjava_lang_ObjectI()
247 ret = Array.getDouble(new Object(), 0); in test_getDoubleLjava_lang_ObjectI()
258 ret = Array.getDouble(x, 4); in test_getDoubleLjava_lang_ObjectI()
268 ret = Array.getDouble(null, 0); in test_getDoubleLjava_lang_ObjectI()
771 assertEquals("Get returned incorrect value", 1, Array.getDouble(x, 0), 0.0); in test_setDoubleLjava_lang_ObjectID()
DFieldTest.java266 res = new Double(f.getDouble(o)); in getField()
746 val = f.getDouble(x); in test_getDoubleLjava_lang_Object()
756 f.getDouble(x); in test_getDoubleLjava_lang_Object()
770 f.getDouble(null); in test_getDoubleLjava_lang_Object()
783 double staticValue = f.getDouble(null); in test_getDoubleLjava_lang_Object()
1073 val = f.getDouble(x); in test_setLjava_lang_ObjectLjava_lang_Object()
1106 val = f.getDouble(x); in test_setLjava_lang_ObjectLjava_lang_Object()
1271 val = f.getDouble(x); in test_setDoubleLjava_lang_ObjectD()
1305 val = f.getDouble(x); in test_setDoubleLjava_lang_ObjectD()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java481 assertEquals(new Double(9.10938188e-31), pref.getDouble("DoubleValue", new Double(2.14))); in testPutDouble()
521 assertEquals(new Double(0.1), pref.getDouble("Value", new Double(0.1))); in testGetDouble()
522 assertEquals(new Double(0.2), pref.getDouble("BoolValue", new Double(0.2))); in testGetDouble()
523 assertEquals(new Double(9.10938188e-31), pref.getDouble("DoubleValue", new Double(2.14))); in testGetDouble()
524 assertEquals(new Double(2.99792458e8), pref.getDouble("IntValue", new Double(5))); in testGetDouble()
527 pref.getDouble(null, new Double(0.1)); in testGetDouble()
536 pref.getDouble("DoubleValue", new Double(0.1)); in testGetDouble()
1053 assertEquals(new Double(6.626e-34), ap2.getDouble("DoubleValue", new Double (3.14))); in testExportSubtree()
1091 assertEquals(new Double(6.626e-34), ap2.getDouble("DoubleValue", new Double (3.14))); in testExportSubtree()
DOldPreferencesTest.java88 p.getDouble(null, 0.1); in testAbstractMethods()
241 pref.getDouble(null, 0); in testGetDouble()
250 assertEquals(1.0, pref.getDouble("testGetDoubleKey", 0.0), 0); in testGetDouble()
251 assertEquals(0.0, pref.getDouble("testGetDoubleKey2", 0.0), 0); in testGetDouble()
252 assertEquals(1.0, pref.getDouble("testGetDoubleKey3", 0.0), 0); in testGetDouble()
253 assertEquals(1.0, pref.getDouble("testGetDoubleKey4", 0.0), 0); in testGetDouble()
498 assertEquals(3, pref.getDouble("testPutDoubleKey", 0), 0); in testPutDouble()
1009 public double getDouble(String key, double deflt) { in getDouble() method in OldPreferencesTest.MockPreferences
/libcore/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java154 .valueOf(id + 0.1).doubleValue(), result.getDouble("freal")); in test_SelectSimple()
157 .getDouble("fdouble")); in test_SelectSimple()
216 (double) (id + 0.1), result.getDouble("freal")); in test_SelectPrepared()
218 (double) (id + 0.1), result.getDouble("fdouble")); in test_SelectPrepared()
536 Double max = result.getDouble("max"); in test_SelectHaving()
DMultiThreadAccessTest.java289 .getDouble("fdecimal"));
292 .getDouble("fnumeric"));
304 .getDouble("fdouble"));
/libcore/ojluni/annotations/mmodule/java/nio/
DByteBuffer.annotated.java142 public abstract double getDouble(); in getDouble() method in ByteBuffer
146 public abstract double getDouble(int index); in getDouble() method in ByteBuffer
DDirectByteBuffer.annotated.java168 public final double getDouble() { throw new RuntimeException("Stub!"); } in getDouble() method in DirectByteBuffer
171 public final double getDouble(int i) { throw new RuntimeException("Stub!"); } in getDouble() method in DirectByteBuffer
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java379 private double getDouble(long a) { in getDouble() method in DirectByteBuffer
383 public final double getDouble() { in getDouble() method in DirectByteBuffer
387 public final double getDouble(int i) { in getDouble() method in DirectByteBuffer
DByteBuffer.java239 public abstract double getDouble(); in getDouble() method in ByteBuffer
243 public abstract double getDouble(int index); in getDouble() method in ByteBuffer
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DAbstractPreferencesTest.java329 pref.getDouble(null, 0); in testGetDouble()
338 assertEquals(1.0, pref.getDouble("testGetDoubleKey", 0.0), 0); in testGetDouble()
339 assertEquals(0.0, pref.getDouble("testGetDoubleKey2", 0.0), 0); in testGetDouble()
340 assertEquals(1.0, pref.getDouble("testGetDoubleKey3", 0.0), 0); in testGetDouble()
341 assertEquals(1.0, pref.getDouble("testGetDoubleKey4", 0.0), 0); in testGetDouble()
657 assertEquals(3, pref.getDouble("testPutDoubleKey", 0), 0); in testPutDouble()
1062 p.getDouble("key", 3); in testBackingStoreException()
1179 p.getDouble("key", 3); in testRuntimeException()
1286 p.getDouble("key", 3); in testSPIReturnNull()
1409 pref.getDouble("key", 3); in testIllegalStateException()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java496 output = res.getDouble(8); in testGetDoubleInt()
499 output = res.getDouble(9); in testGetDoubleInt()
502 output = res.getDouble(10); in testGetDoubleInt()
506 res.getDouble(500); in testGetDoubleInt()
513 output = res.getDouble(8); in testGetDoubleInt()
516 output = res.getDouble(9); in testGetDoubleInt()
519 output = res.getDouble(10); in testGetDoubleInt()
527 output = res.getDouble("DoubleVal"); in testGetDoubleString()
531 res.getDouble("bla"); in testGetDoubleString()
539 output = res.getDouble("DoubleVal"); in testGetDoubleString()
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java435 public native double getDouble(Object obj, long offset); in getDouble() method in Unsafe
640 public native double getDouble(long address); in getDouble() method in Unsafe
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java153 public abstract double getDouble(); in getDouble() method in ByteBuffer
157 public abstract double getDouble(int index); in getDouble() method in ByteBuffer
/libcore/ojluni/src/main/java/java/io/
DBits.java75 static double getDouble(byte[] b, int off) { in getDouble() method in Bits
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java158 public native double getDouble(java.lang.Object obj, long offset); in getDouble() method in Unsafe
228 public native double getDouble(long address); in getDouble() method in Unsafe
/libcore/ojluni/src/main/java/java/sql/
DCallableStatement.java279 double getDouble(int parameterIndex) throws SQLException; in getDouble() method
1471 double getDouble(String parameterName) throws SQLException; in getDouble() method

12