Home
last modified time | relevance | path

Searched refs:f2 (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rs81 volatile float2 f2;
352 f2 = rsGetElementAt_float2(aFloat2, 0);
353 rsSetElementAt_float2(aFloat2, f2, 0);
354 f2 = rsGetElementAt_float2(aFloat2, 0, 0);
355 rsSetElementAt_float2(aFloat2, f2, 0, 0);
356 f2 = rsGetElementAt_float2(aFloat2, 0, 0, 0);
357 rsSetElementAt_float2(aFloat2, f2, 0, 0, 0);
415 f4 += rsSample(allocDst, samplerNonNull, f2);
416 f4 += rsSample(allocDst, samplerNonNull, f2, f);
440 c2 = convert_char2(f2);
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dapitest.rs83 volatile float2 f2;
354 f2 = rsGetElementAt_float2(aFloat2, 0);
355 rsSetElementAt_float2(aFloat2, f2, 0);
356 f2 = rsGetElementAt_float2(aFloat2, 0, 0);
357 rsSetElementAt_float2(aFloat2, f2, 0, 0);
358 f2 = rsGetElementAt_float2(aFloat2, 0, 0, 0);
359 rsSetElementAt_float2(aFloat2, f2, 0, 0, 0);
417 f4 += rsSample(allocDst, samplerNonNull, f2);
418 f4 += rsSample(allocDst, samplerNonNull, f2, f);
442 c2 = convert_char2(f2);
[all …]
DUT_copy_test.java39 float[] f2 = new float[1024 * 2]; in testFloat2() local
47 a2.copyTo(f2); in testFloat2()
49 if (f1[ct] != f2[ct]) { in testFloat2()
51 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2()
63 float[] f2 = new float[1024 * 4]; in testFloat3() local
71 a2.copyTo(f2); in testFloat3()
73 if ((f1[ct] != f2[ct]) && ((ct & 3) != 3)) { in testFloat3()
75 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3()
87 float[] f2 = new float[1024 * 4]; in testFloat4() local
95 a2.copyTo(f2); in testFloat4()
[all …]
Dmath.rs24 volatile float2 f2;
163 f2 = fnc(f2); \
170 f2 = fnc(f2, (float2*) &f2); \
177 f2 = fnc(f2, f2); \
189 f2 = fnc(f2, f1); \
196 f2 = fnc(f1, f2); \
203 f1 = fnc(f2); \
210 f1 = fnc(f2, f2); \
217 f2 = fnc(f2, i2); \
224 f2 = fnc(f2, i1); \
[all …]
Dkernel_struct.rs27 float f2;
39 out->f2 = 1.0f;
48 s.f2 = in.f2 + x;
60 _RS_ASSERT(aout[i].f2 == (i + ain[i].f2));
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dapitest.rs65 volatile float2 f2;
334 f2 = rsGetElementAt_float2(aFloat2, 0);
335 rsSetElementAt_float2(aFloat2, f2, 0);
336 f2 = rsGetElementAt_float2(aFloat2, 0, 0);
337 rsSetElementAt_float2(aFloat2, f2, 0, 0);
338 f2 = rsGetElementAt_float2(aFloat2, 0, 0, 0);
339 rsSetElementAt_float2(aFloat2, f2, 0, 0, 0);
397 f4 += rsSample(allocDst, samplerNonNull, f2);
398 f4 += rsSample(allocDst, samplerNonNull, f2, f);
422 c2 = convert_char2(f2);
[all …]
DUT_copy_test.java38 float[] f2 = new float[1024 * 2]; in testFloat2() local
46 a2.copyTo(f2); in testFloat2()
48 if (f1[ct] != f2[ct]) { in testFloat2()
50 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2()
62 float[] f2 = new float[1024 * 4]; in testFloat3() local
70 a2.copyTo(f2); in testFloat3()
72 if ((f1[ct] != f2[ct]) && ((ct&3) != 3)) { in testFloat3()
74 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3()
86 float[] f2 = new float[1024 * 4]; in testFloat4() local
94 a2.copyTo(f2); in testFloat4()
[all …]
Dmath.rs6 volatile float2 f2;
145 f2 = fnc(f2); \
152 f2 = fnc(f2, (float2*) &f2); \
159 f2 = fnc(f2, f2); \
171 f2 = fnc(f2, f1); \
178 f1 = fnc(f2); \
185 f1 = fnc(f2, f2); \
192 f2 = fnc(f2, i2); \
199 f2 = fnc(f2, i1); \
206 f2 = fnc(f2, f2, f2); \
[all …]
Dkernel_struct.rs9 float f2;
21 out->f2 = 1.0f;
30 s.f2 = in.f2 + x;
42 _RS_ASSERT(aout[i].f2 == (i + ain[i].f2));
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rs10 float2 f2;
16 f2 = fnc(f2); \
22 i2 = fnc(f2); \
28 f2 = fnc(f2, f2); \
34 f2 = fnc(f2, &f2); \
40 f2 = fnc(f2, &i2); \
46 f2 = fnc(f2, f2); \
52 f2 = fnc(f2, i); \
58 f2 = fnc(f2, i2); \
64 f2 = fnc(f2, f2, f2); \
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rs41 triangleSetup(float3 f1, float3 f2, float3 f3) {
42 if (((f1.x - f2.x) * (f3.y - f2.y) - (f1.y - f2.y) * (f3.x - f2.x)) < 0) {
44 f1 = f2;
45 f2 = tmp;
50 double d = (f1.x * (f3.y - f2.y) - f2.x * f3.y + f3.x * f2.y + (f2.x - f3.x)
57 slope[total].x = (-(f1.y * (f3.z - f2.z) - f2.y * f3.z + f3.y * f2.z + (f2.y - f3.y) * f1.z)
59 slope[total].y = ((f1.x * (f3.z - f2.z) - f2.x * f3.z + f3.x * f2.z + (f2.x - f3.x) * f1.z)
61 zoff[total] = ((f1.x * (f3.y * f2.z - f2.y * f3.z) + f1.y * (f2.x * f3.z - f3.x * f2.z) +
62 (f3.x * f2.y - f2.x * f3.y) * f1.z) / d);
65 p2[total] = f2.xy;
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Disp_az.c47 Word32 f1[NC16k + 1], f2[NC16k]; in Isp_Az() local
66 Get_isp_pol_16kHz(&isp[1], f2, (nc - 1)); in Isp_Az()
69 f2[i] = f2[i] << 2; in Isp_Az()
72 Get_isp_pol(&isp[1], f2, (nc - 1)); in Isp_Az()
80 f2[i] = vo_L_sub(f2[i], f2[i - 2]); /* f2[i] -= f2[i-2]; */ in Isp_Az()
99 hi = f2[i] >> 16; in Isp_Az()
100 lo = (f2[i] & 0xffff)>>1; in Isp_Az()
102 f2[i] = vo_L_sub(f2[i], t0); in Isp_Az()
117 t0 = vo_L_add(f1[i], f2[i]); /* f1[i] + f2[i] */ in Isp_Az()
123 t0 = vo_L_sub(f1[i], f2[i]); /* f1[i] - f2[i] */ in Isp_Az()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_copy_test.java37 float[] f2 = new float[1024 * 2]; in testFloat2() local
45 a2.copyTo(f2); in testFloat2()
47 if (f1[ct] != f2[ct]) { in testFloat2()
49 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2()
61 float[] f2 = new float[1024 * 4]; in testFloat3() local
69 a2.copyTo(f2); in testFloat3()
71 if ((f1[ct] != f2[ct]) && ((ct & 3) != 3)) { in testFloat3()
73 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3()
85 float[] f2 = new float[1024 * 4]; in testFloat4() local
93 a2.copyTo(f2); in testFloat4()
[all …]
Dmath.rs22 volatile float2 f2;
161 f2 = fnc(f2); \
168 f2 = fnc(f2, (float2*) &f2); \
175 f2 = fnc(f2, f2); \
187 f2 = fnc(f2, f1); \
194 f2 = fnc(f1, f2); \
201 f1 = fnc(f2); \
208 f1 = fnc(f2, f2); \
215 f2 = fnc(f2, i2); \
222 f2 = fnc(f2, i1); \
[all …]
Dkernel_struct.rs25 float f2;
37 out->f2 = 1.0f;
46 s.f2 = in.f2 + x;
58 _RS_ASSERT(aout[i].f2 == (i + ain[i].f2));
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Disp_az.cpp142 int32 f1[NC16k + 1], f2[NC16k]; in Isp_Az() local
159 Get_isp_pol_16kHz(&isp[1], f2, nc - 1); in Isp_Az()
162 f2[i] = shl_int32(f2[i], 2); in Isp_Az()
168 Get_isp_pol(&isp[1], f2, nc - 1); in Isp_Az()
177 f2[i] -= f2[i - 2]; /* f2[i] -= f2[i-2]; */ in Isp_Az()
190 t1 = f2[i]; in Isp_Az()
194 f2[i] -= t1; in Isp_Az()
211 t0 = add_int32(f1[i], f2[i]); /* f1[i] + f2[i] */ in Isp_Az()
223 t0 = sub_int32(f1[i], f2[i]); /* f1[i] - f2[i] */ in Isp_Az()
255 t0 = add_int32(f1[i], f2[i]); /* f1[i] + f2[i] */ in Isp_Az()
[all …]
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rs6 volatile float2 f2;
43 f2 = fnc(f2); \
50 f2 = fnc(f2, (float2*) &f2); \
57 f2 = fnc(f2, f2); \
64 f2 = fnc(f2, f1); \
71 f2 = fnc(f2, i2); \
78 f2 = fnc(f2, i1); \
85 f2 = fnc(f2, f2, f2); \
92 f2 = fnc(f2, (int2*) &i2); \
99 f2 = fnc(f2, f2, (int2*) &i2); \
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rs6 volatile float2 f2;
145 f2 = fnc(f2); \
152 f2 = fnc(f2, (float2*) &f2); \
159 f2 = fnc(f2, f2); \
171 f2 = fnc(f2, f1); \
178 f1 = fnc(f2); \
185 f1 = fnc(f2, f2); \
192 f2 = fnc(f2, i2); \
199 f2 = fnc(f2, i1); \
206 f2 = fnc(f2, f2, f2); \
[all …]
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs6 volatile float2 f2;
145 f2 = fnc(f2); \
152 f2 = fnc(f2, (float2*) &f2); \
159 f2 = fnc(f2, f2); \
171 f2 = fnc(f2, f1); \
178 f1 = fnc(f2); \
185 f1 = fnc(f2, f2); \
192 f2 = fnc(f2, i2); \
199 f2 = fnc(f2, i1); \
206 f2 = fnc(f2, f2, f2); \
[all …]
Dmath.rs.bak6 volatile float2 f2;
131 f2 = fnc(f2); \
138 f2 = fnc(f2, (float2*) &f2); \
145 f2 = fnc(f2, f2); \
157 f2 = fnc(f2, f1); \
164 f1 = fnc(f2); \
171 f1 = fnc(f2, f2); \
178 f2 = fnc(f2, i2); \
185 f2 = fnc(f2, i1); \
192 f2 = fnc(f2, f2, f2); \
[all …]
Dmath.rs.orig6 volatile float2 f2;
145 f2 = fnc(f2); \
152 f2 = fnc(f2, (float2*) &f2); \
159 f2 = fnc(f2, f2); \
171 f2 = fnc(f2, f1); \
178 f1 = fnc(f2); \
185 f1 = fnc(f2, f2); \
192 f2 = fnc(f2, i2); \
199 f2 = fnc(f2, i1); \
206 f2 = fnc(f2, f2, f2); \
[all …]
/frameworks/native/libs/ui/
DFence.cpp79 const sp<Fence>& f2) { in merge() argument
85 if (f1->isValid() && f2->isValid()) { in merge()
86 result = sync_merge(name, f1->mFenceFd, f2->mFenceFd); in merge()
89 } else if (f2->isValid()) { in merge()
90 result = sync_merge(name, f2->mFenceFd, f2->mFenceFd); in merge()
97 name, f1->mFenceFd, f2->mFenceFd, in merge()
105 const sp<Fence>& f2) { in merge() argument
106 return merge(name.string(), f1, f2); in merge()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
DarmVCM4P10_TransformResidual4x4.c66 int f2 = e1 - e2; in armVCM4P10_TransformResidual4x4() local
70 pDst[i+2] = (OMX_S16)f2; in armVCM4P10_TransformResidual4x4()
79 int f2 = pDst[i+8]; in armVCM4P10_TransformResidual4x4() local
81 int g0 = f0 + f2; in armVCM4P10_TransformResidual4x4()
82 int g1 = f0 - f2; in armVCM4P10_TransformResidual4x4()
DarmVCM4P10_FwdTransformResidual4x4.c65 int f2 = e0 - e2; in armVCM4P10_FwdTransformResidual4x4() local
69 pDst[i+2] = (OMX_S16)f2; in armVCM4P10_FwdTransformResidual4x4()
78 int f2 = pDst[i+8]; in armVCM4P10_FwdTransformResidual4x4() local
82 int g2 = f1 + f2; in armVCM4P10_FwdTransformResidual4x4()
83 int g3 = f1 - f2; in armVCM4P10_FwdTransformResidual4x4()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DNameMappingTest.java36 final AtomicBoolean f2 = new AtomicBoolean(false); in testChanges() local
45 return f2.get(); in testChanges()
57 if (f2New != f2.get()) { in testChanges()
62 assertEquals(f2.get(), mBinder.textView.isEnabled()); in testChanges()
63 assertEquals(f2.get(), mBinder.textView2.isEnabled()); in testChanges()

123