Home
last modified time | relevance | path

Searched refs:floats (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/media/mca/filterfw/jni/
Djni_vertex_frame.cpp55 jfloatArray floats) { in Java_android_filterfw_core_VertexFrame_setNativeFloats() argument
57 if (frame && floats) { in Java_android_filterfw_core_VertexFrame_setNativeFloats()
58 jfloat* float_ptr = env->GetFloatArrayElements(floats, NULL); in Java_android_filterfw_core_VertexFrame_setNativeFloats()
59 const int length = env->GetArrayLength(floats); in Java_android_filterfw_core_VertexFrame_setNativeFloats()
63 env->ReleaseFloatArrayElements(floats, float_ptr, JNI_ABORT); in Java_android_filterfw_core_VertexFrame_setNativeFloats()
Djni_gl_frame.cpp31 void ConvertFloatsToRGBA(const float* floats, int length, uint8_t* result) { in ConvertFloatsToRGBA() argument
33 result[i] = static_cast<uint8_t>(floats[i] * 255.0); in ConvertFloatsToRGBA()
164 jfloatArray floats) { in Java_android_filterfw_core_GLFrame_setNativeFloats() argument
166 if (frame && floats) { in Java_android_filterfw_core_GLFrame_setNativeFloats()
167 jfloat* float_ptr = env->GetFloatArrayElements(floats, NULL); in Java_android_filterfw_core_GLFrame_setNativeFloats()
168 const int length = env->GetArrayLength(floats); in Java_android_filterfw_core_GLFrame_setNativeFloats()
173 env->ReleaseFloatArrayElements(floats, float_ptr, JNI_ABORT); in Java_android_filterfw_core_GLFrame_setNativeFloats()
Djni_native_frame.cpp135 jfloatArray floats) { in Java_android_filterfw_core_NativeFrame_setNativeFloats() argument
137 if (frame && floats) { in Java_android_filterfw_core_NativeFrame_setNativeFloats()
138 jfloat* float_ptr = env->GetFloatArrayElements(floats, NULL); in Java_android_filterfw_core_NativeFrame_setNativeFloats()
139 const int length = env->GetArrayLength(floats); in Java_android_filterfw_core_NativeFrame_setNativeFloats()
144 env->ReleaseFloatArrayElements(floats, float_ptr, JNI_ABORT); in Java_android_filterfw_core_NativeFrame_setNativeFloats()
Djni_vertex_frame.h38 jfloatArray floats);
/frameworks/rs/script_api/include/
Drs_value_types.rsh83 * RenderScript supports fixed size square matrices of floats of size 2x2, 3x3, and 4x4.
104 * half2: Two 16 bit floats
114 * half3: Three 16 bit floats
124 * half4: Four 16 bit floats
256 * float2: Two 32 bit floats
258 * A vector of two floats. These two floats are packed into a single 64 bit field
261 * A vector of two floats. These two floats are packed into a single 64 bit field
267 * float3: Three 32 bit floats
269 * A vector of three floats. These three floats are packed into a single 128 bit field
275 * float4: Four 32 bit floats
[all …]
Drs_object_types.rsh154 RS_TYPE_MATRIX_4X4 = 16, // A 4x4 matrix of 32 bit floats, aligned on a 32 bit boundary.
155 RS_TYPE_MATRIX_3X3 = 17, // A 3x3 matrix of 32 bit floats, aligned on a 32 bit boundary.
156 RS_TYPE_MATRIX_2X2 = 18, // A 2x2 matrix of 32 bit floats, aligned on a 32 bit boundary.
/frameworks/native/libs/sensor/
DISensorServer.cpp126 const Vector<float> &floats, in setOperationParameter() argument
132 data.writeUint32(static_cast<uint32_t>(floats.size())); in setOperationParameter()
133 for (auto i : floats) { in setOperationParameter()
213 Vector<float> floats; in onTransact() local
218 floats.resize(data.readUint32()); in onTransact()
219 for (auto &i : floats) { in onTransact()
227 int32_t ret = setOperationParameter(handle, type, floats, ints); in onTransact()
DSensorManager.cpp310 const Vector<float> &floats, const Vector<int32_t> &ints) { in setOperationParameter() argument
315 return mSensorServer->setOperationParameter(handle, type, floats, ints); in setOperationParameter()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeFrame.java126 public void setFloats(float[] floats) { in setFloats() argument
128 if (floats.length * nativeFloatSize() > getFormat().getSize()) { in setFloats()
130 "NativeFrame cannot hold " + floats.length + " floats. (Can only hold " + in setFloats()
132 } else if (!setNativeFloats(floats)) { in setFloats()
250 private native boolean setNativeFloats(float[] floats); in setNativeFloats() argument
DVertexFrame.java75 public void setFloats(float[] floats) { in setFloats() argument
77 if (!setNativeFloats(floats)) { in setFloats()
140 private native boolean setNativeFloats(float[] floats); in setNativeFloats() argument
DSimpleFrame.java99 public void setFloats(float[] floats) { in setFloats() argument
101 setGenericObjectValue(floats); in setFloats()
DGLFrame.java192 public void setFloats(float[] floats) { in setFloats() argument
195 if (!setNativeFloats(floats)) { in setFloats()
391 private native boolean setNativeFloats(float[] floats); in setNativeFloats() argument
DSerializedFrame.java214 public void setFloats(float[] floats) { in setFloats() argument
216 setGenericObjectValue(floats); in setFloats()
/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp273 jint handle, jint type, jfloatArray floats, jintArray ints) { in nativeSetOperationParameter() argument
278 if (floats != nullptr) { in nativeSetOperationParameter()
279 floatVector.resize(_env->GetArrayLength(floats)); in nativeSetOperationParameter()
280 _env->GetFloatArrayRegion(floats, 0, _env->GetArrayLength(floats), floatVector.editArray()); in nativeSetOperationParameter()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dshared.rsh77 /* Absolute epsilon used for floats. Value is similar to float.h. */
91 /* Check if two floats are essentially equal. Will fail with some values
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/
Dshared.rsh80 /* Absolute epsilon used for floats. Value is similar to float.h. */
94 /* Check if two floats are essentially equal. Will fail with some values
/frameworks/base/services/core/java/com/android/server/wm/
DWindowAnimationSpec.java99 t.setMatrix(leash, tmp.transformation.getMatrix(), tmp.floats); in apply()
204 final float[] floats = new float[9]; field in WindowAnimationSpec.TmpValues
/frameworks/native/libs/sensor/include/sensor/
DISensorServer.h55 … int32_t handle, int32_t type, const Vector<float> &floats, const Vector<int32_t> &ints) = 0;
DSensorManager.h67 …int setOperationParameter(int handle, int type, const Vector<float> &floats, const Vector<int32_t>…
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dshared.rsh96 /* Absolute epsilon used for floats. Value is similar to float.h. */
110 /* Check if two floats are essentially equal. Will fail with some values
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/
Dunittest_repeated_packables_nano.proto62 repeated float floats = 11; field
87 repeated float floats = 11 [ packed = true ]; field
/frameworks/rs/script_api/
Drs_convert.spec102 summary: Create a uchar4 RGBA from floats
150 Unpacks a uchar4 color to float4. The resulting floats will be between 0.0 and 1.0 inclusive.
Drs_vector_math.spec23 The precision of the mathematical operations on 32 bit floats is affected by the pragmas
32 <li>fast_: May perform internal computations using 16 bit floats. Additionally, subnormal
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dshared.rsh98 /* Absolute epsilon used for floats. Value is similar to float.h. */
112 /* Check if two floats are essentially equal. Will fail with some values
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DBackingStore.java753 float[] floats = new float[getSize() / 4]; in syncToAllocationBacking() local
754 allocation.copyTo(floats); in syncToAllocationBacking()
755 mBuffer.asFloatBuffer().put(floats); in syncToAllocationBacking()

12