Searched defs:floats (Results 1 - 3 of 3) sorted by relevance

/libcore/ojluni/src/main/native/
H A DObjectInputStream.c60 jfloat *floats; local
83 floats = (*env)->GetPrimitiveArrayCritical(env, dst, NULL);
84 if (floats == NULL) { /* exception thrown */
97 floats[dstpos] = (jfloat) u.f;
102 (*env)->ReleasePrimitiveArrayCritical(env, dst, floats, 0);
H A DObjectOutputStream.c59 jfloat *floats; local
73 floats = (*env)->GetPrimitiveArrayCritical(env, src, NULL);
74 if (floats == NULL) /* exception thrown */
79 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT);
85 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT);
92 fval = (float) floats[srcpos];
105 (*env)->ReleasePrimitiveArrayCritical(env, src, floats, JNI_ABORT);
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DArrayTest.java27 private static float[] floats; field in class:ArrayTest
38 floats = new float[] { (float) 0xffffffff };
49 try { Array.getBoolean(floats, 0); fail(); } catch (IllegalArgumentException expected) {}
61 try { Array.getByte(floats, 0); fail(); } catch (IllegalArgumentException expected) {}
73 try { Array.getChar(floats, 0); fail(); } catch (IllegalArgumentException expected) {}
85 assertEquals((double) floats[0], Array.getDouble(floats, 0));
96 assertEquals(floats[0], Array.getFloat(floats, 0));
109 try { Array.getInt(floats,
[all...]

Completed in 568 milliseconds