/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.rscript | 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.rscript | 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 half __attribute__((kernel)) testMaxHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x); [all …]
|
D | TestMin.rscript | 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 half __attribute__((kernel)) testMinHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x); [all …]
|
D | TestMix.rscript | 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.rscript | 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 half __attribute__((kernel)) testStepHalfHalfHalf(half inEdge, unsigned int x) { 45 half inV = rsGetElementAt_half(gAllocInV, x); [all …]
|
D | TestFmax.rscript | 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 half __attribute__((kernel)) testFmaxHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x); [all …]
|
D | TestFmin.rscript | 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 half __attribute__((kernel)) testFminHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x); [all …]
|
D | TestFma.rscript | 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 …]
|
D | TestMad.rscript | 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 …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
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 | verify.rscript | 36 for (uint32_t x=0; x < w; x++) { 37 float4 pref = rsGetElementAt_float4(in1, x, y); 38 float4 ptst = rsGetElementAt_float4(in2, x, y); 39 bool e = !compare_float(pref.x, ptst.x); 44 errorLoc.x = x; 57 for (uint32_t x=0; x < w; x++) { 58 float3 pref = rsGetElementAt_float3(in1, x, y); 59 float3 ptst = rsGetElementAt_float3(in2, x, y); 60 bool e = !compare_float(pref.x, ptst.x); 64 errorLoc.x = x; [all …]
|
D | Float16ArithmeticTest.java | 83 private boolean checkFloat16Output(int x, int y, short[][][] refValues, in checkFloat16Output() argument 87 short in1 = Float16TestData.input[x]; in checkFloat16Output() 89 short out = output[x + y * numInputs]; in checkFloat16Output() 90 short lb = refValues[x][y][0]; in checkFloat16Output() 91 short ub = refValues[x][y][1]; in checkFloat16Output() 129 private boolean checkFloat16Add(int x, int y) { in checkFloat16Add() argument 130 return checkFloat16Output(x, y, Float16TestData.ReferenceOutputForAdd, in checkFloat16Add() 140 for (int x = 0; x < numInputs; x ++) { in testFloat16Add() 142 checkFloat16Add(x, y); in testFloat16Add() 147 private boolean checkFloat16Sub(int x, int y) { in checkFloat16Sub() argument [all …]
|
D | fe_all.rscript | 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.rscript | 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 | void_ptr.rscript | 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 | vector.rscript | 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 …]
|
D | intrinsic_colormatrix.rscript | 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 | yuv.rscript | 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 …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | verify.rscript | 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/tests/tests/rscpp/librscpptest/ |
D | fe_all.rscript | 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/renderscript/src/android/renderscript/cts/refocus/ |
D | luts_for_speedup_f32.rsh | 11 // depth y is visible in the presence of a pixel with depth x. 12 // VisibilityProbability.lut[y][x] = 1.0f/(max(x-y,0)+1). 13 // The value range of both x and y is [0,g_kMaxDepthValue]. 14 // The value range of VisibilityProbability.lut[y][x] is [0,1]. 20 // When a = b, RemoveInterval(x,a,b) always returns x. 22 // if x <= a, RemoveInterval(x,a,b) = x; 23 // if a < x <= b, RemoveInterval(x,a,b) = a; 24 // if b < x, RemoveInterval(x,a,b) = a + (x-b). 25 static inline int RemoveInterval(int x, int a, int b) { 26 return (x <= a) ? (x) : (a + max(x - b, 0)); [all …]
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | verify.rscript | 33 rsDebug(txt, rsGetElementAt_uchar4(a, xy.x, xy.y)); \ 36 rsDebug(txt, rsGetElementAt_uchar3(a, xy.x, xy.y)); \ 39 rsDebug(txt, rsGetElementAt_uchar2(a, xy.x, xy.y)); \ 42 rsDebug(txt, rsGetElementAt_uchar(a, xy.x, xy.y)); \ 48 rsDebug(txt, rsGetElementAt_float4(a, xy.x, xy.y)); \ 51 rsDebug(txt, rsGetElementAt_float3(a, xy.x, xy.y)); \ 54 rsDebug(txt, rsGetElementAt_float2(a, xy.x, xy.y)); \ 57 rsDebug(txt, rsGetElementAt_float(a, xy.x, xy.y)); \ 63 rsDebug(txt, rsGetElementAt_double4(a, xy.x, xy.y)); \ 66 rsDebug(txt, rsGetElementAt_double3(a, xy.x, xy.y)); \ [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
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | raw_converter.rscript | 45 static float4 getGain(uint x, uint y) { 46 float interpX = (((float) x) / rawWidth) * gainMapWidth; 68 static float gammaEncode(float x) { 69 return (x <= 0.0031308f) ? x * 12.92f : 1.055f * pow(x, 0.4166667f) - 0.055f; 75 ret.x = gammaEncode(rgb.x); 107 if (sorted.y < sorted.x) { 109 sorted.y = sorted.x; 110 sorted.x = tmp; 121 minmax.x = sorted.x; 125 minmax = native_powr(minmax, 3.f) * toneMapCoeffs.x + [all …]
|