/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | StrongTypingTest.cpp | 27 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/ |
D | UT_copy_test.java | 38 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 …]
|
D | math.rscript | 23 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 …]
|
D | kernel_struct.rscript | 24 float f1; 37 out->f1 = 0.f; 46 s.f1 = in.f1 + x; 58 _RS_ASSERT(aout[i].f1 == (i + ain[i].f1));
|
D | shared.rsh | 108 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/ |
D | UT_copy_test.java | 36 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 …]
|
D | math.rscript | 21 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 …]
|
D | kernel_struct.rscript | 22 float f1; 35 out->f1 = 0.f; 44 s.f1 = in.f1 + x; 56 _RS_ASSERT(aout[i].f1 == (i + ain[i].f1));
|
D | shared.rsh | 106 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)
|
D | math_24.rscript | 21 volatile float f1; 28 f1 = fnc(f1); \
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | math.rs.bak | 5 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 …]
|
D | math.rs.orig | 5 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 …]
|
D | math.rscript | 5 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/ |
D | math.rscript | 5 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/ |
D | isp_az.c | 47 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 …]
|
D | az_isp.c | 70 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/ |
D | isp_az.cpp | 142 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/ |
D | math.rscript | 5 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/ |
D | compute_benchmark.rscript | 184 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/ |
D | rasterize.rscript | 41 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/ |
D | Fence.cpp | 90 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/ |
D | LoaderLifecycleTest.java | 57 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/ |
D | lsp_az.cpp | 517 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/ |
D | float3.rscript | 5 float3 f1[1]; 9 float3 f1[1];
|
/frameworks/av/media/libaaudio/src/flowgraph/resampler/ |
D | LinearResampler.cpp | 39 float f1 = *current++; in readFrame() local 40 *frame++ = f0 + (phase * (f1 - f0)); in readFrame()
|