Home
last modified time | relevance | path

Searched refs:f1 (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/native/services/surfaceflinger/tests/unittests/
DStrongTypingTest.cpp27 SpunkyType f1(10); in TEST() local
29 EXPECT_TRUE(f1 == f1); in TEST()
53 FunkyType f1(10); in TEST() local
55 EXPECT_THAT(f1 + f2, Eq(FunkyType(32))); in TEST()
56 EXPECT_THAT(f2 + f1, Eq(FunkyType(32))); in TEST()
58 EXPECT_THAT(++f1.value(), Eq(11)); in TEST()
59 EXPECT_THAT(f1.value(), Eq(11)); in TEST()
60 EXPECT_THAT(f1++.value(), Eq(11)); in TEST()
61 EXPECT_THAT(f1++.value(), Eq(12)); in TEST()
62 EXPECT_THAT(f1.value(), Eq(13)); in TEST()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_copy_test.java38 float[] f1 = new float[1024 * 2]; in testFloat2() local
40 for (int ct = 0; ct < f1.length; ct++) { in testFloat2()
41 f1[ct] = (float) ct; in testFloat2()
43 a1.copyFrom(f1); in testFloat2()
48 for (int ct = 0; ct < f1.length; ct++) { 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()
62 float[] f1 = new float[1024 * 4]; in testFloat3() local
64 for (int ct = 0; ct < f1.length; ct++) { in testFloat3()
65 f1[ct] = (float) ct; in testFloat3()
[all …]
Dmath.rscript23 volatile float f1;
162 f1 = fnc(f1); \
169 f1 = fnc(f1, (float*) &f1); \
176 f1 = fnc(f1, f1); \
188 f1 = fnc(f1, f1); \
189 f2 = fnc(f2, f1); \
190 f3 = fnc(f3, f1); \
191 f4 = fnc(f4, f1);
195 f1 = fnc(f1, f1); \
196 f2 = fnc(f1, f2); \
[all …]
Dkernel_struct.rscript24 float f1;
37 out->f1 = 0.f;
46 s.f1 = in.f1 + x;
58 _RS_ASSERT(aout[i].f1 == (i + ain[i].f1));
Dshared.rsh108 static inline int float_dist(float f1, float f2) {
109 return *((int *)(&f1)) - *((int *)(&f2));
114 static inline bool float_almost_equal(float f1, float f2) {
115 int *i1 = (int*)(&f1);
121 if (f1 == f2)
127 if (float_dist(f1, f2) > FLT_MAX_ULP)
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_copy_test.java36 float[] f1 = new float[1024 * 2]; in testFloat2() local
38 for (int ct = 0; ct < f1.length; ct++) { in testFloat2()
39 f1[ct] = (float) ct; in testFloat2()
41 a1.copyFrom(f1); in testFloat2()
46 for (int ct = 0; ct < f1.length; ct++) { 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()
60 float[] f1 = new float[1024 * 4]; in testFloat3() local
62 for (int ct = 0; ct < f1.length; ct++) { in testFloat3()
63 f1[ct] = (float) ct; in testFloat3()
[all …]
Dmath.rscript21 volatile float f1;
160 f1 = fnc(f1); \
167 f1 = fnc(f1, (float*) &f1); \
174 f1 = fnc(f1, f1); \
186 f1 = fnc(f1, f1); \
187 f2 = fnc(f2, f1); \
188 f3 = fnc(f3, f1); \
189 f4 = fnc(f4, f1);
193 f1 = fnc(f1, f1); \
194 f2 = fnc(f1, f2); \
[all …]
Dkernel_struct.rscript22 float f1;
35 out->f1 = 0.f;
44 s.f1 = in.f1 + x;
56 _RS_ASSERT(aout[i].f1 == (i + ain[i].f1));
Dshared.rsh106 static inline int float_dist(float f1, float f2) {
107 return *((int *)(&f1)) - *((int *)(&f2));
112 static inline bool float_almost_equal(float f1, float f2) {
113 int *i1 = (int*)(&f1);
119 if (f1 == f2)
125 if (float_dist(f1, f2) > FLT_MAX_ULP)
Dmath_24.rscript21 volatile float f1;
28 f1 = fnc(f1); \
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs.bak5 volatile float f1;
130 f1 = fnc(f1); \
137 f1 = fnc(f1, (float*) &f1); \
144 f1 = fnc(f1, f1); \
156 f1 = fnc(f1, f1); \
157 f2 = fnc(f2, f1); \
158 f3 = fnc(f3, f1); \
159 f4 = fnc(f4, f1);
163 f1 = fnc(f1); \
164 f1 = fnc(f2); \
[all …]
Dmath.rs.orig5 volatile float f1;
144 f1 = fnc(f1); \
151 f1 = fnc(f1, (float*) &f1); \
158 f1 = fnc(f1, f1); \
170 f1 = fnc(f1, f1); \
171 f2 = fnc(f2, f1); \
172 f3 = fnc(f3, f1); \
173 f4 = fnc(f4, f1);
177 f1 = fnc(f1); \
178 f1 = fnc(f2); \
[all …]
Dmath.rscript5 volatile float f1;
144 f1 = fnc(f1); \
151 f1 = fnc(f1, (float*) &f1); \
158 f1 = fnc(f1, f1); \
170 f1 = fnc(f1, f1); \
171 f2 = fnc(f2, f1); \
172 f3 = fnc(f3, f1); \
173 f4 = fnc(f4, f1);
177 f1 = fnc(f1); \
178 f1 = fnc(f2); \
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rscript5 volatile float f1;
144 f1 = fnc(f1); \
151 f1 = fnc(f1, (float*) &f1); \
158 f1 = fnc(f1, f1); \
170 f1 = fnc(f1, f1); \
171 f2 = fnc(f2, f1); \
172 f3 = fnc(f3, f1); \
173 f4 = fnc(f4, f1);
177 f1 = fnc(f1); \
178 f1 = fnc(f2); \
[all …]
/frameworks/av/media/module/codecs/amrwb/enc/src/
Disp_az.c47 Word32 f1[NC16k + 1], f2[NC16k]; in Isp_Az() local
56 Get_isp_pol_16kHz(&isp[0], f1, nc); in Isp_Az()
59 f1[i] = f1[i] << 2; in Isp_Az()
62 Get_isp_pol(&isp[0], f1, nc); in Isp_Az()
91 hi = f1[i] >> 16; in Isp_Az()
92 lo = (f1[i] & 0xffff)>>1; in Isp_Az()
95 f1[i] = vo_L_add(f1[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()
140 t0 = vo_L_add(f1[i], f2[i]); /* f1[i] + f2[i] */ in Isp_Az()
[all …]
Daz_isp.c70 Word16 f1[NC + 1], f2[NC]; in Az_isp() local
90 f1[i] = vo_round(t0 + (a[M - i] << 15)); /* =(a[i]+a[M-i])/2 */ in Az_isp()
93 f1[NC] = a[NC]; in Az_isp()
110 coef = f1; in Az_isp()
175 coef = f1; in Az_isp()
/frameworks/av/media/module/codecs/amrwb/dec/src/
Disp_az.cpp142 int32 f1[NC16k + 1], f2[NC16k]; in Isp_Az() local
154 Get_isp_pol_16kHz(&isp[0], f1, nc); in Isp_Az()
157 f1[i] = shl_int32(f1[i], 2); in Isp_Az()
167 Get_isp_pol(&isp[0], f1, nc); in Isp_Az()
189 t0 = f1[i]; in Isp_Az()
193 f1[i] += t0; 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()
262 t0 = sub_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.rscript5 volatile float f1;
42 f1 = fnc(f1); \
49 f1 = fnc(f1, (float*) &f1); \
56 f1 = fnc(f1, f1); \
63 f1 = fnc(f1, f1); \
64 f2 = fnc(f2, f1); \
65 f3 = fnc(f3, f1); \
66 f4 = fnc(f4, f1);
70 f1 = fnc(f1, i1); \
77 f1 = fnc(f1, i1); \
[all …]
/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rscript184 RUN_BENCH(res_f_1 = fnc(src1_f_1), "f1 " #fnc "(f1)") \
191 RUN_BENCH(res_f_1 = fnc(src1_f_1, (float*) &src2_f_1), "f1 " #fnc "(f1, f1*)") \
198 RUN_BENCH(res_f_1 = fnc(src1_f_1, src2_f_1), "f1 " #fnc "(f1, f1)") \
210 RUN_BENCH(res_f_1 = fnc(src1_f_1, src2_f_1), "f1 " #fnc "(f1, f1)") \
211 RUN_BENCH(res_f_2 = fnc(src1_f_2, src2_f_1), "f2 " #fnc "(f2, f1)") \
212 RUN_BENCH(res_f_3 = fnc(src1_f_3, src2_f_1), "f3 " #fnc "(f3, f1)") \
213 RUN_BENCH(res_f_4 = fnc(src1_f_4, src2_f_1), "f4 " #fnc "(f4, f1)")
217 RUN_BENCH(res_f_1 = fnc(src1_f_1), "f1 " #fnc "(f1)") \
218 RUN_BENCH(res_f_1 = fnc(src1_f_2), "f1 " #fnc "(f2)") \
219 RUN_BENCH(res_f_1 = fnc(src1_f_3), "f1 " #fnc "(f3)") \
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rscript41 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) {
43 float3 tmp = f1;
44 f1 = f2;
50 double d = (f1.x * (f3.y - f2.y) - f2.x * f3.y + f3.x * f2.y + (f2.x - f3.x)
51 * f1.y);
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);
[all …]
/frameworks/native/libs/ui/
DFence.cpp90 sp<Fence> Fence::merge(const char* name, const sp<Fence>& f1, in merge() argument
97 if (f1->isValid() && f2->isValid()) { in merge()
98 result = sync_merge(name, f1->mFenceFd, f2->mFenceFd); in merge()
99 } else if (f1->isValid()) { in merge()
100 result = sync_merge(name, f1->mFenceFd, f1->mFenceFd); in merge()
109 name, f1->mFenceFd.get(), f2->mFenceFd.get(), in merge()
116 sp<Fence> Fence::merge(const String8& name, const sp<Fence>& f1, in merge() argument
118 return merge(name.string(), f1, f2); in merge()
/frameworks/base/core/tests/coretests/src/android/app/
DLoaderLifecycleTest.java57 final Fragment f1 = new Fragment(); in loaderIdentityTest() local
58 fm1.beginTransaction().add(f1, "one").commitNow(); in loaderIdentityTest()
62 final LoaderManager lm1 = f1.getLoaderManager(); in loaderIdentityTest()
67 fm1.beginTransaction().remove(f1).commitNow(); in loaderIdentityTest()
69 fm1.beginTransaction().add(f1, "one").commitNow(); in loaderIdentityTest()
74 final LoaderManager lm12 = f1.getLoaderManager(); in loaderIdentityTest()
151 final Fragment f1 = new Fragment(); in backStackLoaderIdentityTest() local
152 fm1.beginTransaction().add(f1, "one").commitNow(); in backStackLoaderIdentityTest()
154 final LoaderManager lm1 = f1.getLoaderManager(); in backStackLoaderIdentityTest()
157 fm1.beginTransaction().remove(f1).addToBackStack("backentry").commit(); in backStackLoaderIdentityTest()
/frameworks/av/media/module/codecs/amrnb/common/src/
Dlsp_az.cpp517 Word32 f1[6]; in Lsp_Az() local
525 Get_lsp_pol(&lsp[0], f1, pOverflow); in Lsp_Az()
529 p_f1 = &f1[5]; in Lsp_Az()
534 *(p_f1--) += f1[i-1]; in Lsp_Az()
539 p_f1 = &f1[1]; in Lsp_Az()
/frameworks/compile/slang/tests/P_float3/
Dfloat3.rscript5 float3 f1[1];
9 float3 f1[1];
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DLinearResampler.cpp39 float f1 = *current++; in readFrame() local
40 *frame++ = f0 + (phase * (f1 - f0)); in readFrame()

123