Searched refs:getDouble (Results 1 - 25 of 27) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DArrayTest.java81 try { Array.getDouble(booleans, 0); fail(); } catch (IllegalArgumentException expected) {}
82 assertEquals((double) bytes[0], Array.getDouble(bytes, 0));
83 assertEquals((double) chars[0], Array.getDouble(chars, 0));
84 assertEquals(doubles[0], Array.getDouble(doubles, 0));
85 assertEquals((double) floats[0], Array.getDouble(floats, 0));
86 assertEquals((double) ints[0], Array.getDouble(ints, 0));
87 assertEquals((double) longs[0], Array.getDouble(longs, 0));
88 assertEquals((double) shorts[0], Array.getDouble(shorts, 0));
89 try { Array.getDouble(null, 0); fail(); } catch (NullPointerException expected) {}
/libcore/luni/src/main/java/java/nio/
H A DMappedByteBufferAdapter.java163 public double getDouble() { method in class:MappedByteBufferAdapter
165 double result = wrapped.getDouble();
171 public double getDouble(int index) { method in class:MappedByteBufferAdapter
172 return wrapped.getDouble(index);
H A DDoubleToByteBufferAdapter.java91 return byteBuffer.getDouble(position++ * SizeOf.DOUBLE);
97 return byteBuffer.getDouble(index * SizeOf.DOUBLE);
H A DByteBuffer.java465 public abstract double getDouble(); method in class:ByteBuffer
481 public abstract double getDouble(int index); method in class:ByteBuffer
H A DDirectByteBuffer.java115 public final double getDouble() { method in class:DirectByteBuffer
126 public final double getDouble(int index) { method in class:DirectByteBuffer
H A DHeapByteBuffer.java137 public final double getDouble() { method in class:HeapByteBuffer
142 public final double getDouble(int index) { method in class:HeapByteBuffer
/libcore/json/src/test/java/org/json/
H A DJSONArrayTest.java213 assertEquals(Double.MIN_VALUE, array.getDouble(0));
214 assertEquals(9.223372036854776E18, array.getDouble(1));
215 assertEquals(Double.MAX_VALUE, array.getDouble(2));
216 assertEquals(-0d, array.getDouble(3));
276 assertEquals(5.5d, array.getDouble(1));
284 assertEquals(9.223372036854776E18, array.getDouble(2));
289 array.getDouble(3);
424 assertEquals(5.5, array.getDouble(0));
425 assertEquals(Double.NaN, array.getDouble(1));
508 assertEquals(5.5, array.getDouble(
[all...]
H A DJSONObjectTest.java58 object.getDouble("foo");
280 assertEquals(Double.MIN_VALUE, object.getDouble("foo"));
281 assertEquals(9.223372036854776E18, object.getDouble("bar"));
282 assertEquals(Double.MAX_VALUE, object.getDouble("baz"));
283 assertEquals(-0d, object.getDouble("quux"));
425 assertEquals(5.5d, object.getDouble("bar"));
433 assertEquals(9.223372036854776E18, object.getDouble("baz"));
438 object.getDouble("quux");
/libcore/luni/src/test/java/libcore/java/nio/
H A DOldAndroidNIOTest.java304 // Check 'getDouble(int position)'
306 assertEquals(0xA7A6A5A4A3A2A1A0L, Double.doubleToRawLongBits(b.getDouble(0)));
307 assertEquals(0xA8A7A6A5A4A3A2A1L, Double.doubleToRawLongBits(b.getDouble(1)));
309 b.getDouble(-1);
315 b.getDouble(5);
322 assertEquals(0xA0A1A2A3A4A5A6A7L, Double.doubleToRawLongBits(b.getDouble(0)));
323 assertEquals(0xA1A2A3A4A5A6A7A8L, Double.doubleToRawLongBits(b.getDouble(1)));
325 b.getDouble(-1);
331 b.getDouble(5);
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DArrayTest.java232 * java.lang.reflect.Array#getDouble(java.lang.Object, int)
236 // java.lang.reflect.Array.getDouble(java.lang.Object, int)
241 ret = Array.getDouble(x, 0);
247 ret = Array.getDouble(new Object(), 0);
258 ret = Array.getDouble(x, 4);
268 ret = Array.getDouble(null, 0);
771 assertEquals("Get returned incorrect value", 1, Array.getDouble(x, 0), 0.0);
H A DFieldTest.java279 res = new Double(f.getDouble(o));
360 * java.lang.reflect.Field#getDouble(java.lang.Object)
792 * java.lang.reflect.Field#getDouble(java.lang.Object)
796 // java.lang.reflect.Field.getDouble(java.lang.Object)
802 val = f.getDouble(x);
804 fail("Exception during getDouble test: " + e.toString());
812 f.getDouble(x);
825 f.getDouble(x);
839 f.getDouble(null);
852 double staticValue = f.getDouble(nul
[all...]
/libcore/luni/src/test/java/tests/java/sql/
H A DMultiThreadAccessTest.java289 .getDouble("fdecimal"));
292 .getDouble("fnumeric"));
304 .getDouble("fdouble"));
H A DSelectFunctionalityTest.java154 .valueOf(id + 0.1).doubleValue(), result.getDouble("freal"));
157 .getDouble("fdouble"));
216 (double) (id + 0.1), result.getDouble("freal"));
218 (double) (id + 0.1), result.getDouble("fdouble"));
536 Double max = result.getDouble("max");
/libcore/luni/src/main/java/java/util/prefs/
H A DPreferences.java329 public abstract double getDouble(String key, double deflt); method in class:Preferences
H A DAbstractPreferences.java455 public double getDouble(String key, double deflt) { method in class:AbstractPreferences
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldAbstractPreferencesTest.java460 assertEquals(new Double(9.10938188e-31), pref.getDouble("DoubleValue", new Double(2.14)));
500 assertEquals(new Double(0.1), pref.getDouble("Value", new Double(0.1)));
501 assertEquals(new Double(0.2), pref.getDouble("BoolValue", new Double(0.2)));
502 assertEquals(new Double(9.10938188e-31), pref.getDouble("DoubleValue", new Double(2.14)));
503 assertEquals(new Double(2.99792458e8), pref.getDouble("IntValue", new Double(5)));
506 pref.getDouble(null, new Double(0.1));
515 pref.getDouble("DoubleValue", new Double(0.1));
1026 assertEquals(new Double(6.626e-34), ap2.getDouble("DoubleValue", new Double (3.14)));
1064 assertEquals(new Double(6.626e-34), ap2.getDouble("DoubleValue", new Double (3.14)));
H A DOldPreferencesTest.java73 p.getDouble(null, 0.1);
226 pref.getDouble(null, 0);
235 assertEquals(1.0, pref.getDouble("testGetDoubleKey", 0.0), 0);
236 assertEquals(0.0, pref.getDouble("testGetDoubleKey2", 0.0), 0);
237 assertEquals(1.0, pref.getDouble("testGetDoubleKey3", 0.0), 0);
238 assertEquals(1.0, pref.getDouble("testGetDoubleKey4", 0.0), 0);
483 assertEquals(3, pref.getDouble("testPutDoubleKey", 0), 0);
994 public double getDouble(String key, double deflt) { method in class:OldPreferencesTest.MockPreferences
/libcore/luni/src/main/java/java/sql/
H A DCallableStatement.java356 public double getDouble(int parameterIndex) throws SQLException; method in interface:CallableStatement
369 public double getDouble(String parameterName) throws SQLException; method in interface:CallableStatement
H A DResultSet.java617 public double getDouble(int columnIndex) throws SQLException; method in interface:ResultSet
630 public double getDouble(String columnName) throws SQLException; method in interface:ResultSet
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldResultSetGetterTests.java496 output = res.getDouble(8);
499 output = res.getDouble(9);
502 output = res.getDouble(10);
506 res.getDouble(500);
513 output = res.getDouble(8);
516 output = res.getDouble(9);
519 output = res.getDouble(10);
527 output = res.getDouble("DoubleVal");
531 res.getDouble("bla");
539 output = res.getDouble("DoubleVa
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeDecimalFormat.cpp321 double resultDouble = res.getDouble(status);
330 case Formattable::kDouble: return doubleValueOf(env, res.getDouble());
/libcore/json/src/main/java/org/json/
H A DJSONArray.java319 public double getDouble(int index) throws JSONException { method in class:JSONArray
H A DJSONObject.java408 public double getDouble(String name) throws JSONException { method in class:JSONObject
/libcore/luni/src/main/java/java/lang/reflect/
H A DArray.java166 public static double getDouble(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException { method in class:Array
H A DField.java386 public double getDouble(Object object) throws IllegalAccessException, IllegalArgumentException { method in class:Field

Completed in 542 milliseconds

12