/cts/tests/tests/renderscript/libcoremathtestcpp/ |
D | CoreMathTestJni.cpp | 119 Java_android_renderscript_cts_CoreMathVerifier_acos(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_acos() argument 120 return acosf(x); in Java_android_renderscript_cts_CoreMathVerifier_acos() 124 Java_android_renderscript_cts_CoreMathVerifier_acosh(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_acosh() argument 125 return acoshf(x); in Java_android_renderscript_cts_CoreMathVerifier_acosh() 129 Java_android_renderscript_cts_CoreMathVerifier_asin(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_asin() argument 130 return asinf(x); in Java_android_renderscript_cts_CoreMathVerifier_asin() 134 Java_android_renderscript_cts_CoreMathVerifier_asinh(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_asinh() argument 135 return asinhf(x); in Java_android_renderscript_cts_CoreMathVerifier_asinh() 139 Java_android_renderscript_cts_CoreMathVerifier_atan(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_atan() argument 140 return atanf(x); in Java_android_renderscript_cts_CoreMathVerifier_atan() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
D | TestClamp.rs | 25 float __attribute__((kernel)) testClampFloatFloatFloatFloat(float inValue, unsigned int x) { 26 float inMinValue = rsGetElementAt_float(gAllocInMinValue, x); 27 float inMaxValue = rsGetElementAt_float(gAllocInMaxValue, x); 31 float2 __attribute__((kernel)) testClampFloat2Float2Float2Float2(float2 inValue, unsigned int x) { 32 float2 inMinValue = rsGetElementAt_float2(gAllocInMinValue, x); 33 float2 inMaxValue = rsGetElementAt_float2(gAllocInMaxValue, x); 37 float3 __attribute__((kernel)) testClampFloat3Float3Float3Float3(float3 inValue, unsigned int x) { 38 float3 inMinValue = rsGetElementAt_float3(gAllocInMinValue, x); 39 float3 inMaxValue = rsGetElementAt_float3(gAllocInMaxValue, x); 43 float4 __attribute__((kernel)) testClampFloat4Float4Float4Float4(float4 inValue, unsigned int x) { [all …]
|
D | TestMax.rs | 24 float __attribute__((kernel)) testMaxFloatFloatFloat(float inA, unsigned int x) { 25 float inB = rsGetElementAt_float(gAllocInB, x); 29 float2 __attribute__((kernel)) testMaxFloat2Float2Float2(float2 inA, unsigned int x) { 30 float2 inB = rsGetElementAt_float2(gAllocInB, x); 34 float3 __attribute__((kernel)) testMaxFloat3Float3Float3(float3 inA, unsigned int x) { 35 float3 inB = rsGetElementAt_float3(gAllocInB, x); 39 float4 __attribute__((kernel)) testMaxFloat4Float4Float4(float4 inA, unsigned int x) { 40 float4 inB = rsGetElementAt_float4(gAllocInB, x); 44 float2 __attribute__((kernel)) testMaxFloat2FloatFloat2(float2 inA, unsigned int x) { 45 float inB = rsGetElementAt_float(gAllocInB, x); [all …]
|
D | TestMin.rs | 24 float __attribute__((kernel)) testMinFloatFloatFloat(float inA, unsigned int x) { 25 float inB = rsGetElementAt_float(gAllocInB, x); 29 float2 __attribute__((kernel)) testMinFloat2Float2Float2(float2 inA, unsigned int x) { 30 float2 inB = rsGetElementAt_float2(gAllocInB, x); 34 float3 __attribute__((kernel)) testMinFloat3Float3Float3(float3 inA, unsigned int x) { 35 float3 inB = rsGetElementAt_float3(gAllocInB, x); 39 float4 __attribute__((kernel)) testMinFloat4Float4Float4(float4 inA, unsigned int x) { 40 float4 inB = rsGetElementAt_float4(gAllocInB, x); 44 float2 __attribute__((kernel)) testMinFloat2FloatFloat2(float2 inA, unsigned int x) { 45 float inB = rsGetElementAt_float(gAllocInB, x); [all …]
|
D | TestMix.rs | 25 float __attribute__((kernel)) testMixFloatFloatFloatFloat(float inStart, unsigned int x) { 26 float inStop = rsGetElementAt_float(gAllocInStop, x); 27 float inFraction = rsGetElementAt_float(gAllocInFraction, x); 31 float2 __attribute__((kernel)) testMixFloat2Float2Float2Float2(float2 inStart, unsigned int x) { 32 float2 inStop = rsGetElementAt_float2(gAllocInStop, x); 33 float2 inFraction = rsGetElementAt_float2(gAllocInFraction, x); 37 float3 __attribute__((kernel)) testMixFloat3Float3Float3Float3(float3 inStart, unsigned int x) { 38 float3 inStop = rsGetElementAt_float3(gAllocInStop, x); 39 float3 inFraction = rsGetElementAt_float3(gAllocInFraction, x); 43 float4 __attribute__((kernel)) testMixFloat4Float4Float4Float4(float4 inStart, unsigned int x) { [all …]
|
D | TestStep.rs | 24 float __attribute__((kernel)) testStepFloatFloatFloat(float inEdge, unsigned int x) { 25 float inV = rsGetElementAt_float(gAllocInV, x); 29 float2 __attribute__((kernel)) testStepFloat2Float2Float2(float2 inEdge, unsigned int x) { 30 float2 inV = rsGetElementAt_float2(gAllocInV, x); 34 float3 __attribute__((kernel)) testStepFloat3Float3Float3(float3 inEdge, unsigned int x) { 35 float3 inV = rsGetElementAt_float3(gAllocInV, x); 39 float4 __attribute__((kernel)) testStepFloat4Float4Float4(float4 inEdge, unsigned int x) { 40 float4 inV = rsGetElementAt_float4(gAllocInV, x); 44 float2 __attribute__((kernel)) testStepFloat2FloatFloat2(float2 inEdge, unsigned int x) { 45 float inV = rsGetElementAt_float(gAllocInV, x); [all …]
|
D | TestLdexp.rs | 24 float __attribute__((kernel)) testLdexpFloatIntFloat(float inMantissa, unsigned int x) { 25 int inExponent = rsGetElementAt_int(gAllocInExponent, x); 29 float2 __attribute__((kernel)) testLdexpFloat2Int2Float2(float2 inMantissa, unsigned int x) { 30 int2 inExponent = rsGetElementAt_int2(gAllocInExponent, x); 34 float3 __attribute__((kernel)) testLdexpFloat3Int3Float3(float3 inMantissa, unsigned int x) { 35 int3 inExponent = rsGetElementAt_int3(gAllocInExponent, x); 39 float4 __attribute__((kernel)) testLdexpFloat4Int4Float4(float4 inMantissa, unsigned int x) { 40 int4 inExponent = rsGetElementAt_int4(gAllocInExponent, x); 44 float2 __attribute__((kernel)) testLdexpFloat2IntFloat2(float2 inMantissa, unsigned int x) { 45 int inExponent = rsGetElementAt_int(gAllocInExponent, x); [all …]
|
D | TestFmin.rs | 24 float __attribute__((kernel)) testFminFloatFloatFloat(float inA, unsigned int x) { 25 float inB = rsGetElementAt_float(gAllocInB, x); 29 float2 __attribute__((kernel)) testFminFloat2Float2Float2(float2 inA, unsigned int x) { 30 float2 inB = rsGetElementAt_float2(gAllocInB, x); 34 float3 __attribute__((kernel)) testFminFloat3Float3Float3(float3 inA, unsigned int x) { 35 float3 inB = rsGetElementAt_float3(gAllocInB, x); 39 float4 __attribute__((kernel)) testFminFloat4Float4Float4(float4 inA, unsigned int x) { 40 float4 inB = rsGetElementAt_float4(gAllocInB, x); 44 float2 __attribute__((kernel)) testFminFloat2FloatFloat2(float2 inA, unsigned int x) { 45 float inB = rsGetElementAt_float(gAllocInB, x); [all …]
|
D | TestFmax.rs | 24 float __attribute__((kernel)) testFmaxFloatFloatFloat(float inA, unsigned int x) { 25 float inB = rsGetElementAt_float(gAllocInB, x); 29 float2 __attribute__((kernel)) testFmaxFloat2Float2Float2(float2 inA, unsigned int x) { 30 float2 inB = rsGetElementAt_float2(gAllocInB, x); 34 float3 __attribute__((kernel)) testFmaxFloat3Float3Float3(float3 inA, unsigned int x) { 35 float3 inB = rsGetElementAt_float3(gAllocInB, x); 39 float4 __attribute__((kernel)) testFmaxFloat4Float4Float4(float4 inA, unsigned int x) { 40 float4 inB = rsGetElementAt_float4(gAllocInB, x); 44 float2 __attribute__((kernel)) testFmaxFloat2FloatFloat2(float2 inA, unsigned int x) { 45 float inB = rsGetElementAt_float(gAllocInB, x); [all …]
|
D | TestMad.rs | 25 float __attribute__((kernel)) testMadFloatFloatFloatFloat(float inMultiplicand1, unsigned int x) { 26 float inMultiplicand2 = rsGetElementAt_float(gAllocInMultiplicand2, x); 27 float inOffset = rsGetElementAt_float(gAllocInOffset, x); 31 …2 __attribute__((kernel)) testMadFloat2Float2Float2Float2(float2 inMultiplicand1, unsigned int x) { 32 float2 inMultiplicand2 = rsGetElementAt_float2(gAllocInMultiplicand2, x); 33 float2 inOffset = rsGetElementAt_float2(gAllocInOffset, x); 37 …3 __attribute__((kernel)) testMadFloat3Float3Float3Float3(float3 inMultiplicand1, unsigned int x) { 38 float3 inMultiplicand2 = rsGetElementAt_float3(gAllocInMultiplicand2, x); 39 float3 inOffset = rsGetElementAt_float3(gAllocInOffset, x); 43 …4 __attribute__((kernel)) testMadFloat4Float4Float4Float4(float4 inMultiplicand1, unsigned int x) { [all …]
|
D | TestFma.rs | 25 float __attribute__((kernel)) testFmaFloatFloatFloatFloat(float inMultiplicand1, unsigned int x) { 26 float inMultiplicand2 = rsGetElementAt_float(gAllocInMultiplicand2, x); 27 float inOffset = rsGetElementAt_float(gAllocInOffset, x); 31 …2 __attribute__((kernel)) testFmaFloat2Float2Float2Float2(float2 inMultiplicand1, unsigned int x) { 32 float2 inMultiplicand2 = rsGetElementAt_float2(gAllocInMultiplicand2, x); 33 float2 inOffset = rsGetElementAt_float2(gAllocInOffset, x); 37 …3 __attribute__((kernel)) testFmaFloat3Float3Float3Float3(float3 inMultiplicand1, unsigned int x) { 38 float3 inMultiplicand2 = rsGetElementAt_float3(gAllocInMultiplicand2, x); 39 float3 inOffset = rsGetElementAt_float3(gAllocInOffset, x); 43 …4 __attribute__((kernel)) testFmaFloat4Float4Float4Float4(float4 inMultiplicand1, unsigned int x) { [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | verify.rs | 38 for (uint32_t x=0; x < w; x++) { 39 float4 pref = rsGetElementAt_float4(in1, x, y); 40 float4 ptst = rsGetElementAt_float4(in2, x, y); 41 bool e = !compare_float(pref.x, ptst.x); 46 errorLoc.x = x; 59 for (uint32_t x=0; x < w; x++) { 60 float3 pref = rsGetElementAt_float3(in1, x, y); 61 float3 ptst = rsGetElementAt_float3(in2, x, y); 62 bool e = !compare_float(pref.x, ptst.x); 66 errorLoc.x = x; [all …]
|
D | intrinsic_colormatrix.rs | 30 for (uint32_t x = x1; x < x2; x++) { 36 pin.xyzw = rsGetElementAt_float4(in, x, y); 39 pin.xyz = rsGetElementAt_float3(in, x, y); 42 pin.xy = rsGetElementAt_float2(in, x, y); 45 pin.x = rsGetElementAt_float(in, x, y); 54 u.xyzw = rsGetElementAt_uchar4(in, x, y); 57 u.xyz = rsGetElementAt_uchar3(in, x, y); 60 u.xy = rsGetElementAt_uchar2(in, x, y); 63 u.x = rsGetElementAt_uchar(in, x, y); 75 rsSetElementAt_float4(out, pin, x, y); [all …]
|
D | ComputeTest.java | 55 b2.x = 1; in testJavaVectorTypes() 58 assertTrue(b2.x == 1); in testJavaVectorTypes() 61 b3.x = 1; in testJavaVectorTypes() 65 assertTrue(b3.x == 1); in testJavaVectorTypes() 69 b4.x = 1; in testJavaVectorTypes() 71 b4.x = 3; in testJavaVectorTypes() 74 assertTrue(b4.x == 1); in testJavaVectorTypes() 80 d2.x = 1.0; in testJavaVectorTypes() 83 assertTrue(d2.x == 1.0); in testJavaVectorTypes() 86 d3.x = 1.0; in testJavaVectorTypes() [all …]
|
D | void_ptr.rs | 7 void set_output_void_int(void *out, uint32_t x, uint32_t y) { 9 *out_int = x + y; 12 void __attribute__((kernel))check_output_int(const int in, uint32_t x, uint32_t y) 14 if (in != x + y) { 19 void set_output_void_char(void *out, uint32_t x, uint32_t y) { 21 *out_int = x + y; 24 void __attribute__((kernel))check_output_char(const uchar in, uint32_t x, uint32_t y) 26 if (in != x + y) { 31 int __attribute__((kernel)) set_output_int(uint32_t x, uint32_t y) { 32 return x + y; [all …]
|
D | yuv.rs | 33 p.x = (Y * 298 + V * 409 + 128) >> 8; 37 if(p.x < 0) { 38 p.x = 0; 40 if(p.x > 255) { 41 p.x = 255; 56 return (uchar4){p.x, p.y, p.z, p.w}; 79 for (int x = 0; x < w; x++) { 81 int py = rsGetElementAt_uchar(ay, x, y); 82 int pu = rsGetElementAt_uchar(au, x >> 1, y >> 1); 83 int pv = rsGetElementAt_uchar(av, x >> 1, y >> 1); [all …]
|
D | fe_all.rs | 10 aout[0].x = ain[0].x + 1; 16 aout[0].x = ain[0].x + 1; 23 aout[0].x = ain[0].x + 1; 36 aout[0].x = ain[0].x + 1; 42 aout[0].x = ain[0].x + 1; 49 aout[0].x = ain[0].x + 1; 62 aout[0].x = ain[0].x + 1; 68 aout[0].x = ain[0].x + 1; 75 aout[0].x = ain[0].x + 1; 88 aout[0].x = ain[0].x + 1; [all …]
|
D | kernel_all.rs | 10 r.x = ain.x + 1; 17 r.x = ain.x + 1; 25 r.x = ain.x + 1; 38 r.x = ain.x + 1; 45 r.x = ain.x + 1; 53 r.x = ain.x + 1; 66 r.x = ain.x + 1; 73 r.x = ain.x + 1; 81 r.x = ain.x + 1; 94 r.x = ain.x + 1; [all …]
|
D | vector.rs | 48 _RS_ASSERT(f2.x == 2.99f); 51 _RS_ASSERT(f3.x == 2.99f); 55 _RS_ASSERT(f4.x == 2.99f); 61 _RS_ASSERT(d2.x == 2.99); 64 _RS_ASSERT(d3.x == 2.99); 68 _RS_ASSERT(d4.x == 2.99); 74 _RS_ASSERT(i8_2.x == 2); 77 _RS_ASSERT(i8_3.x == 2); 81 _RS_ASSERT(i8_4.x == 2); 87 _RS_ASSERT(u8_2.x == 2); [all …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | verify.rs | 42 for (uint32_t x=0; x < w; x++) { 43 float4 pref = rsGetElementAt_float4(in1, x, y); 44 float4 ptst = rsGetElementAt_float4(in2, x, y); 45 bool e = !compare_float(pref.x, ptst.x); 50 errorLoc.x = x; 64 for (uint32_t x=0; x < w; x++) { 65 float3 pref = rsGetElementAt_float3(in1, x, y); 66 float3 ptst = rsGetElementAt_float3(in2, x, y); 67 bool e = !compare_float(pref.x, ptst.x); 71 errorLoc.x = x; [all …]
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | navier-stokes.js | 101 function addFields(x, s, dt) argument 103 for (var i=0; i<size ; i++ ) x[i] += dt*s[i]; 106 function set_bnd(b, x) argument 110 x[i] = x[i + rowSize]; 111 x[i + (height+1) *rowSize] = x[i + height * rowSize]; 115 x[j * rowSize] = -x[1 + j * rowSize]; 116 x[(width + 1) + j * rowSize] = -x[width + j * rowSize]; 120 x[i] = -x[i + rowSize]; 121 x[i + (height + 1) * rowSize] = -x[i + height * rowSize]; 125 x[j * rowSize] = x[1 + j * rowSize]; [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/ |
D | raw_converter.rs | 44 static float4 getGain(uint x, uint y) { 45 float interpX = (((float) x) / rawWidth) * gainMapWidth; 67 static float gammaEncode(float x) { 68 return (x <= 0.0031308f) ? x * 12.92f : 1.055f * pow(x, 0.4166667f) - 0.055f; 74 ret.x = gammaEncode(rgb.x); 106 if (sorted.y < sorted.x) { 108 sorted.y = sorted.x; 109 sorted.x = tmp; 120 minmax.x = sorted.x; 124 minmax = native_powr(minmax, 3.f) * toneMapCoeffs.x + [all …]
|
/cts/tests/tests/rscpp/librscpptest/ |
D | fe_all.rs | 10 aout[0].x = ain[0].x + 1; 16 aout[0].x = ain[0].x + 1; 23 aout[0].x = ain[0].x + 1; 36 aout[0].x = ain[0].x + 1; 42 aout[0].x = ain[0].x + 1; 49 aout[0].x = ain[0].x + 1; 62 aout[0].x = ain[0].x + 1; 68 aout[0].x = ain[0].x + 1; 75 aout[0].x = ain[0].x + 1; 88 aout[0].x = ain[0].x + 1; [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | means_yuvx_444_2d_to_1d.rs | 31 yuvx_444 RS_KERNEL means_yuvf_420(uint32_t x) { 33 LOGD("x", x); 38 uchar py = rsGetElementAtYuv_uchar_Y(mInput, src_x + i, src_y + x); 39 uchar pu = rsGetElementAtYuv_uchar_U(mInput, src_x + i, src_y + x); 40 uchar pv = rsGetElementAtYuv_uchar_V(mInput, src_x + i, src_y + x); 46 sum.x += elem.x; 51 sum.x *= inv_width; // multiply by 1/w 62 yuvx_444 RS_KERNEL means_yuvx_444(uint32_t x) { 64 LOGD("x", x); 69 yuvx_444 elem = rsGetElementAt_yuvx_444(mInput, src_x + i, src_y + x); [all …]
|
/cts/suite/audio_quality/lib/include/ |
D | Log.h | 55 #define LOGE(x...) do { Log::Instance()->printf(Log::ELogE, x); \ argument 57 #define LOGW(x...) do { Log::Instance()->printf(Log::ELogW, x); } while(0) argument 58 #define LOGI(x...) do { Log::Instance()->printf(Log::ELogI, x); } while(0) argument 59 #define LOGD(x...) do { Log::Instance()->printf(Log::ELogD, x); } while(0) argument 60 #define LOGV(x...) do { Log::Instance()->printf(Log::ELogV, x); } while(0) argument 62 #define MSG(x...) do { Log::Instance()->printf(Log::ELogE, x); } while(0) argument
|