/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | verify.rs | 35 for (uint32_t y = 0; y < h; y++) { 37 float4 pref = rsGetElementAt_float4(in1, x, y); 38 float4 ptst = rsGetElementAt_float4(in2, x, y); 40 e |= !compare_float(pref.y, ptst.y); 45 errorLoc.y = y; 56 for (uint32_t y = 0; y < h; y++) { 58 float3 pref = rsGetElementAt_float3(in1, x, y); 59 float3 ptst = rsGetElementAt_float3(in2, x, y); 61 e |= !compare_float(pref.y, ptst.y); 65 errorLoc.y = y; [all …]
|
D | yuv.rs | 27 static uchar4 yuvToRGBA4(uchar y, uchar u, uchar v) { 28 short Y = ((short)y) - 16; 34 p.y = (Y * 298 - U * 100 - V * 208 + 128) >> 8; 43 if(p.y < 0) { 44 p.y = 0; 46 if(p.y > 255) { 47 p.y = 255; 56 return (uchar4){p.x, p.y, p.z, p.w}; 59 static float4 yuvToRGBA_f4(uchar y, uchar u, uchar v) { 63 float4 color = (float)y * 0.003921569f; [all …]
|
D | fe_all.rs | 11 aout[0].y = ain[0].y + 1; 17 aout[0].y = ain[0].y + 1; 24 aout[0].y = ain[0].y + 1; 37 aout[0].y = ain[0].y + 1; 43 aout[0].y = ain[0].y + 1; 50 aout[0].y = ain[0].y + 1; 63 aout[0].y = ain[0].y + 1; 69 aout[0].y = ain[0].y + 1; 76 aout[0].y = ain[0].y + 1; 89 aout[0].y = ain[0].y + 1; [all …]
|
D | ComputeTest.java | 56 b2.y = 2; in testJavaVectorTypes() 59 assertTrue(b2.y == 2); in testJavaVectorTypes() 62 b3.y = 2; in testJavaVectorTypes() 66 assertTrue(b3.y == 2); in testJavaVectorTypes() 70 b4.y = 2; in testJavaVectorTypes() 75 assertTrue(b4.y == 2); in testJavaVectorTypes() 81 d2.y = 2.0; in testJavaVectorTypes() 84 assertTrue(d2.y == 2.0); in testJavaVectorTypes() 87 d3.y = 2.0; in testJavaVectorTypes() 91 assertTrue(d3.y == 2.0); in testJavaVectorTypes() [all …]
|
D | kernel_all.rs | 11 r.y = ain.y + 1; 18 r.y = ain.y + 1; 26 r.y = ain.y + 1; 39 r.y = ain.y + 1; 46 r.y = ain.y + 1; 54 r.y = ain.y + 1; 67 r.y = ain.y + 1; 74 r.y = ain.y + 1; 82 r.y = ain.y + 1; 95 r.y = ain.y + 1; [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 | Float16ArithmeticTest.java | 83 private boolean checkFloat16Output(int x, int y, short[][][] refValues, in checkFloat16Output() argument 88 short in2 = Float16TestData.input[y]; 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() 141 for (int y = 0; y < numInputs; y ++) { in testFloat16Add() 142 checkFloat16Add(x, y); in testFloat16Add() 147 private boolean checkFloat16Sub(int x, int y) { in checkFloat16Sub() argument [all …]
|
D | vector.rs | 49 _RS_ASSERT(f2.y == 3.99f); 52 _RS_ASSERT(f3.y == 3.99f); 56 _RS_ASSERT(f4.y == 3.99f); 62 _RS_ASSERT(d2.y == 3.99); 65 _RS_ASSERT(d3.y == 3.99); 69 _RS_ASSERT(d4.y == 3.99); 75 _RS_ASSERT(i8_2.y == 3); 78 _RS_ASSERT(i8_3.y == 3); 82 _RS_ASSERT(i8_4.y == 3); 88 _RS_ASSERT(u8_2.y == 3); [all …]
|
D | intrinsic_colormatrix.rs | 29 for (uint32_t y = y1; y < y2; y++) { 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 | getset.rs | 67 uint y = idx / gWidth; \ 68 ty i = rsGetElementAt_##ty(gAlloc2DIn, x, y); \ 69 rsSetElementAt_##ty(gAlloc2DOut, i, x, y); \ 74 uint y = idx / realWidth; \ 75 ty##2 i = rsGetElementAt_##ty##2(gAlloc2DIn, x, y); \ 76 rsSetElementAt_##ty##2(gAlloc2DOut, i, x, y); \ 81 uint y = idx / realWidth; \ 82 ty##3 i = rsGetElementAt_##ty##3(gAlloc2DIn, x, y); \ 83 rsSetElementAt_##ty##3(gAlloc2DOut, i, x, y); \ 88 uint y = idx / realWidth; \ [all …]
|
D | intrinsic_convolve3x3.rs | 25 uchar4 __attribute__((kernel)) convolve_U4(uint32_t x, uint32_t y) { 28 uint32_t y1 = min((int32_t)y+1, gHeight-1); 29 uint32_t y2 = max((int32_t)y-1, 0); 34 float4 p10 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y)); 35 float4 p11 = convert_float4(rsGetElementAt_uchar4(gIn, x, y)); 36 float4 p12 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y)); 66 uchar3 __attribute__((kernel)) convolve_U3(uint32_t x, uint32_t y) { 69 uint32_t y1 = min((int32_t)y+1, gHeight-1); 70 uint32_t y2 = max((int32_t)y-1, 0); 75 float3 p10 = convert_float3(rsGetElementAt_uchar3(gIn, x1, y)); [all …]
|
D | AtomicTest.rs | 67 for (uint32_t y = 0; y < dimY; y++) { 69 int v = rsGetElementAt_int(a, x, y); 79 for (uint32_t y = 0; y < dimY; y++) { 81 uint v = rsGetElementAt_uint(a, x, y); 91 for (uint32_t y = 0; y < dimY; y++) { 93 int v = rsGetElementAt_int(a, x, y); 103 for (uint32_t y = 0; y < dimY; y++) { 105 uint v = rsGetElementAt_uint(a, x, y);
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | verify.rs | 41 for (uint32_t y=0; y < h; y++) { 43 float4 pref = rsGetElementAt_float4(in1, x, y); 44 float4 ptst = rsGetElementAt_float4(in2, x, y); 46 e |= !compare_float(pref.y, ptst.y); 51 errorLoc.y = y; 63 for (uint32_t y=0; y < h; y++) { 65 float3 pref = rsGetElementAt_float3(in1, x, y); 66 float3 ptst = rsGetElementAt_float3(in2, x, y); 68 e |= !compare_float(pref.y, ptst.y); 72 errorLoc.y = y; [all …]
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | verify.rs | 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/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | raw_converter.rs | 45 static float4 getGain(uint x, uint y) { 47 float interpY = (((float) y) / rawHeight) * gainMapHeight; 76 ret.y = gammaEncode(rgb.y); 101 if (sorted.z < sorted.y) { 103 sorted.z = sorted.y; 104 sorted.y = tmp; 107 if (sorted.y < sorted.x) { 108 tmp = sorted.y; 109 sorted.y = sorted.x; 113 if (sorted.z < sorted.y) { [all …]
|
/cts/tests/tests/rscpp/librscpptest/ |
D | fe_all.rs | 11 aout[0].y = ain[0].y + 1; 17 aout[0].y = ain[0].y + 1; 24 aout[0].y = ain[0].y + 1; 37 aout[0].y = ain[0].y + 1; 43 aout[0].y = ain[0].y + 1; 50 aout[0].y = ain[0].y + 1; 63 aout[0].y = ain[0].y + 1; 69 aout[0].y = ain[0].y + 1; 76 aout[0].y = ain[0].y + 1; 89 aout[0].y = ain[0].y + 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]. 33 for (int y = 0; y <= g_kMaxDepthValue; y++) { 35 if (y == 0 || x == 0) { 36 visibility_probability->lut[y][x] = 0; 37 } else if (y <= back_focal_depth) { 39 visibility_probability->lut[y][x] = 1.0f / (max(z - y, 0) + 1); 40 } else if (y <= front_focal_depth) { [all …]
|
D | layered_filter_fast_f32.rs | 97 UnpackInputImage(uchar4 in, uint32_t x, uint32_t y) { 100 y += g_image_size.margin; 102 const int index = y * g_image_size.width + x; 130 void __attribute__((kernel)) MarkLayerMask(uchar4 in, uint32_t x, uint32_t y) { 136 y += g_image_size.margin; 138 const int index = y * g_image_size.width + x; // index of this pixel 205 ComputeLayerMatteBehindFocalDepth(uchar4 in, uint32_t x, uint32_t y) { 208 y += g_image_size.margin; 210 const int index = y * g_image_size.width + x; 220 ComputeLayerMatteHelper(sharp, x, y, &g_image_size, [all …]
|
/cts/tests/openglperf2/jni/graphics/ |
D | Matrix.cpp | 76 void Matrix::translate(float x, float y, float z) { in translate() argument 77 Matrix* m = newTranslate(x, y, z); in translate() 86 void Matrix::scale(float x, float y, float z) { in scale() argument 87 Matrix* m = newScale(x, y, z); in scale() 96 void Matrix::rotate(float radians, float x, float y, float z) { in rotate() argument 97 Matrix* m = newRotate(radians, x, y, z); in rotate() 112 float y = 0; in multiply() local 120 y += lhs[j4 + 1] * e; in multiply() 126 mData[i4 + 1] = y; in multiply() 197 const float y = 2.0f * (near * r_height); in newFrustum() local [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BlurMaskFilterTest.java | 55 for (int y = 0; y < CENTER; y++) { in testBlurMaskFilter() 56 if (x < CENTER - OFFSET - CHECK_RADIUS || y < CENTER - OFFSET - CHECK_RADIUS) { in testBlurMaskFilter() 58 verifyQuadrants(Color.TRANSPARENT, b, x, y, 5); in testBlurMaskFilter() 59 } else if (x > CENTER - OFFSET + RADIUS && y > CENTER - OFFSET + RADIUS) { in testBlurMaskFilter() 61 verifyQuadrants(Color.RED, b, x, y, 8); in testBlurMaskFilter() 62 } else if (x > CENTER - OFFSET - RADIUS && y > CENTER - OFFSET - RADIUS) { in testBlurMaskFilter() 64 verifyQuadrants(Color.RED, b, x, y, 255); in testBlurMaskFilter() 70 private void verifyQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) { in verifyQuadrants() argument 74 verifyColor(color, bitmap.getPixel(x, y), alphaTolerance); in verifyQuadrants() 75 verifyColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in verifyQuadrants() [all …]
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/differencevisualizers/ |
D | PassFailVisualizer.java | 32 for (int y = 0; y < output.length; y++) { in getDifferences() 33 if (ideal[y] == given[y]) { in getDifferences() 34 output[y] = Color.WHITE; in getDifferences() 36 output[y] = Color.RED; in getDifferences()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/ |
D | PassFailVisualizer.java | 32 for (int y = 0; y < output.length; y++) { in getDifferences() 33 if (ideal[y] == given[y]) { in getDifferences() 34 output[y] = Color.WHITE; in getDifferences() 36 output[y] = Color.RED; in getDifferences()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | TouchHelper.java | 43 public boolean click(int x, int y) { in click() argument 44 if (touchDown(x, y)) { in click() 46 if (touchUp(x, y)) { in click() 53 private boolean touchDown(int x, int y) { in touchDown() argument 55 MotionEvent event = getMotionEvent(mDownTime, mDownTime, MotionEvent.ACTION_DOWN, x, y); in touchDown() 59 private boolean touchUp(int x, int y) { in touchUp() argument 61 MotionEvent event = getMotionEvent(mDownTime, eventTime, MotionEvent.ACTION_UP, x, y); in touchUp() 67 float x, float y) { in getMotionEvent() argument 77 coords.y = y; in getMotionEvent()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapverifiers/ |
D | PerPixelBitmapVerifier.java | 51 protected int getExpectedColor(int x, int y) { in getExpectedColor() argument 58 for (int y = 0 ; y < height ; y++) { in verify() 60 int index = indexFromXAndY(x, y, stride, offset); in verify() 61 if (!verifyPixel(x, y, bitmap[index])) { in verify() 63 Log.d(TAG, "Expected : " + Integer.toHexString(getExpectedColor(x, y)) in verify() 65 + " at position (" + x + "," + y + ")"); in verify() 86 protected boolean verifyPixel(int x, int y, int observedColor) { in verifyPixel() argument 87 int expectedColor = getExpectedColor(x, y); in verifyPixel()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | PerPixelBitmapVerifier.java | 51 protected int getExpectedColor(int x, int y) { in getExpectedColor() argument 58 for (int y = 0 ; y < height ; y++) { in verify() 60 int index = indexFromXAndY(x, y, stride, offset); in verify() 61 if (!verifyPixel(x, y, bitmap[index])) { in verify() 63 Log.d(TAG, "Expected : " + Integer.toHexString(getExpectedColor(x, y)) in verify() 65 + " at position (" + x + "," + y + ")"); in verify() 86 protected boolean verifyPixel(int x, int y, int observedColor) { in verifyPixel() argument 87 int expectedColor = getExpectedColor(x, y); in verifyPixel()
|