/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ArrayTest.java | 81 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/org/json/ |
D | JSONArrayTest.java | 214 assertEquals(Double.MIN_VALUE, array.getDouble(0)); in testNumbers() 215 assertEquals(9.223372036854776E18, array.getDouble(1)); in testNumbers() 216 assertEquals(Double.MAX_VALUE, array.getDouble(2)); in testNumbers() 217 assertEquals(-0d, array.getDouble(3)); in testNumbers() 277 assertEquals(5.5d, array.getDouble(1)); in testStrings() 285 assertEquals(9.223372036854776E18, array.getDouble(2)); in testStrings() 290 array.getDouble(3); in testStrings() 425 assertEquals(5.5, array.getDouble(0)); in testCreateWithUnsupportedNumbers() 426 assertEquals(Double.NaN, array.getDouble(1)); in testCreateWithUnsupportedNumbers() 509 assertEquals(5.5, array.getDouble(0)); in testCreate()
|
D | JSONObjectTest.java | 61 object.getDouble("foo"); in testEmptyObject() 283 assertEquals(Double.MIN_VALUE, object.getDouble("foo")); in testNumbers() 284 assertEquals(9.223372036854776E18, object.getDouble("bar")); in testNumbers() 285 assertEquals(Double.MAX_VALUE, object.getDouble("baz")); in testNumbers() 286 assertEquals(-0d, object.getDouble("quux")); in testNumbers() 428 assertEquals(5.5d, object.getDouble("bar")); in testStrings() 436 assertEquals(9.223372036854776E18, object.getDouble("baz")); in testStrings() 441 object.getDouble("quux"); in testStrings()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | OldAndroidNIOTest.java | 306 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()
|
D | BufferTest.java | 547 b.getDouble(); in testRelativePositions() 1184 b.getDouble(); in testGetMethods() 1185 b.getDouble(0); in testGetMethods() 1231 b.getDouble(); in testFailForGetMethods() 1236 b.getDouble(0); in testFailForGetMethods()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | HeapByteBuffer.java | 449 public double getDouble() { in getDouble() method in HeapByteBuffer 450 return Bits.getDouble(this, ix(nextGetIndex(8)), bigEndian); in getDouble() 453 public double getDouble(int i) { in getDouble() method in HeapByteBuffer 454 return Bits.getDouble(this, ix(checkIndex(i, 8)), bigEndian); in getDouble() 458 return Bits.getDouble(this, ix(i), bigEndian); in getDoubleUnchecked()
|
D | DirectByteBuffer.java | 727 private double getDouble(long a) { in getDouble() method in DirectByteBuffer 732 public double getDouble() { in getDouble() method in DirectByteBuffer 736 return getDouble(ix(nextGetIndex(SizeOf.DOUBLE))); in getDouble() 739 public double getDouble(int i) { in getDouble() method in DirectByteBuffer 743 return getDouble(ix(checkIndex(i, SizeOf.DOUBLE))); in getDouble() 747 return getDouble(ix(i)); in getDoubleUnchecked()
|
D | ByteBuffer.java | 1421 public abstract double getDouble(); in getDouble() method in ByteBuffer 1451 public abstract double getDouble(int index); in getDouble() method in ByteBuffer
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | NativeObject.java | 337 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/ |
D | ArrayTest.java | 241 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()
|
D | FieldTest.java | 266 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/ |
D | OldAbstractPreferencesTest.java | 480 assertEquals(new Double(9.10938188e-31), pref.getDouble("DoubleValue", new Double(2.14))); in testPutDouble() 520 assertEquals(new Double(0.1), pref.getDouble("Value", new Double(0.1))); in testGetDouble() 521 assertEquals(new Double(0.2), pref.getDouble("BoolValue", new Double(0.2))); in testGetDouble() 522 assertEquals(new Double(9.10938188e-31), pref.getDouble("DoubleValue", new Double(2.14))); in testGetDouble() 523 assertEquals(new Double(2.99792458e8), pref.getDouble("IntValue", new Double(5))); in testGetDouble() 526 pref.getDouble(null, new Double(0.1)); in testGetDouble() 535 pref.getDouble("DoubleValue", new Double(0.1)); in testGetDouble() 1052 assertEquals(new Double(6.626e-34), ap2.getDouble("DoubleValue", new Double (3.14))); in testExportSubtree() 1090 assertEquals(new Double(6.626e-34), ap2.getDouble("DoubleValue", new Double (3.14))); in testExportSubtree()
|
D | OldPreferencesTest.java | 87 p.getDouble(null, 0.1); in testAbstractMethods() 240 pref.getDouble(null, 0); in testGetDouble() 249 assertEquals(1.0, pref.getDouble("testGetDoubleKey", 0.0), 0); in testGetDouble() 250 assertEquals(0.0, pref.getDouble("testGetDoubleKey2", 0.0), 0); in testGetDouble() 251 assertEquals(1.0, pref.getDouble("testGetDoubleKey3", 0.0), 0); in testGetDouble() 252 assertEquals(1.0, pref.getDouble("testGetDoubleKey4", 0.0), 0); in testGetDouble() 497 assertEquals(3, pref.getDouble("testPutDoubleKey", 0), 0); in testPutDouble() 1008 public double getDouble(String key, double deflt) { in getDouble() method in OldPreferencesTest.MockPreferences
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | SelectFunctionalityTest.java | 154 .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()
|
D | MultiThreadAccessTest.java | 289 .getDouble("fdecimal")); 292 .getDouble("fnumeric")); 304 .getDouble("fdouble"));
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Unsafe.java | 303 public native double getDouble(Object obj, long offset); in getDouble() method in Unsafe 385 public native double getDouble(long address); in getDouble() method in Unsafe
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | AbstractPreferencesTest.java | 329 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/ojluni/src/main/java/java/io/ |
D | Bits.java | 75 static double getDouble(byte[] b, int off) { in getDouble() method in Bits
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetGetterTests.java | 496 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/java/util/prefs/ |
D | Preferences.java | 767 public abstract double getDouble(String key, double def); in getDouble() method in Preferences
|
/libcore/ojluni/src/main/java/java/sql/ |
D | CallableStatement.java | 279 double getDouble(int parameterIndex) throws SQLException; in getDouble() method 1469 double getDouble(String parameterName) throws SQLException; in getDouble() method
|
D | ResultSet.java | 344 double getDouble(int columnIndex) throws SQLException; in getDouble() method 630 double getDouble(String columnLabel) throws SQLException; in getDouble() method
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Field.java | 529 public native double getDouble(Object object) in getDouble() method in Field
|
/libcore/ojluni/src/main/java/java/text/ |
D | DigitList.java | 158 public final double getDouble() { in getDouble() method in DigitList
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ByteBufferTest.java | 1322 value = buf.getDouble(); in testGetDouble() 1330 buf.getDouble(); in testGetDouble() 1348 value = buf.getDouble(i); in testGetDoubleint() 1358 buf.getDouble(-1); in testGetDoubleint() 1364 buf.getDouble(buf.limit() - nbytes + 1); in testGetDoubleint() 1373 ByteBuffer.allocateDirect(16).getDouble(Integer.MAX_VALUE); in testGetDoubleint()
|