Searched refs:floats (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ArrayTest.java | 27 private static float[] floats; field in ArrayTest 38 floats = new float[] { (float) 0xffffffff }; in setUp() 49 try { Array.getBoolean(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean() 61 try { Array.getByte(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte() 73 try { Array.getChar(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar() 85 assertEquals((double) floats[0], Array.getDouble(floats, 0)); in testGetDouble() 96 assertEquals(floats[0], Array.getFloat(floats, 0)); in testGetFloat() 109 try { Array.getInt(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetInt() 121 try { Array.getLong(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetLong() 133 try { Array.getShort(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort() [all …]
|
/libcore/ojluni/src/main/native/ |
D | ObjectOutputStream.c | 59 jfloat *floats; in Java_java_io_ObjectOutputStream_floatsToBytes() local 73 floats = (*env)->GetPrimitiveArrayCritical(env, src, NULL); in Java_java_io_ObjectOutputStream_floatsToBytes() 74 if (floats == NULL) /* exception thrown */ in Java_java_io_ObjectOutputStream_floatsToBytes() 79 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT); in Java_java_io_ObjectOutputStream_floatsToBytes() 85 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT); in Java_java_io_ObjectOutputStream_floatsToBytes() 92 fval = (float) floats[srcpos]; in Java_java_io_ObjectOutputStream_floatsToBytes() 105 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT); in Java_java_io_ObjectOutputStream_floatsToBytes()
|
D | ObjectInputStream.c | 60 jfloat *floats; in Java_java_io_ObjectInputStream_bytesToFloats() local 83 floats = (*env)->GetPrimitiveArrayCritical(env, dst, NULL); in Java_java_io_ObjectInputStream_bytesToFloats() 84 if (floats == NULL) { /* exception thrown */ in Java_java_io_ObjectInputStream_bytesToFloats() 97 floats[dstpos] = (jfloat) u.f; in Java_java_io_ObjectInputStream_bytesToFloats() 102 (*env)->ReleasePrimitiveArrayCritical(env, dst, floats, 0); in Java_java_io_ObjectInputStream_bytesToFloats()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandlesTest.java | 1201 public String update(Float f0, Float... floats) { in update() argument 1202 return "base " + f0 + ", " + Arrays.toString(floats); in update() 1217 public VariableArityTester(float... floats) { update(floats); } in VariableArityTester() argument 1219 public VariableArityTester(Float f0, Float... floats) { update(f0, floats); } in VariableArityTester() argument 1238 public String update(float... floats) { return lastResult = tally(floats); } in update() argument 1241 public String update(Float f0, Float... floats) { return lastResult = tally(f0, floats); } in update() argument 1264 public static String tally(float... floats) { return Arrays.toString(floats); } in tally() argument 1266 public static String tally(Float f0, Float... floats) { in tally() argument 1267 return f0 + ", " + Arrays.toString(floats); in tally()
|
D | MethodHandleAccessorsTest.java | 640 float[] floats = {0.99f, -1.23e-17f}; in testFloatSettersAndGetters() local 641 for (float f : floats) { in testFloatSettersAndGetters()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest1.java | 542 float[] floats = { 0.0f, 1.1f, 2.2f, 3.3f }; in test_18_7_writeObject() local 543 objToSave = floats; in test_18_7_writeObject()
|