Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 260) sorted by relevance

1234567891011

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dverify.rs35 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 …]
Dyuv.rs27 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 …]
Dvoid_ptr.rs7 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 …]
Dfe_all.rs11 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 …]
DComputeTest.java56 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 …]
Dkernel_all.rs11 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 …]
DFloat16ArithmeticTest.java83 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 …]
Dintrinsic_colormatrix.rs29 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 …]
Dvector.rs49 _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 …]
Dgetset.rs67 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 …]
Dintrinsic_convolve3x3.rs25 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 …]
DAtomicTest.rs67 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);
Dfloat16_arithmetic.rs6 half RS_KERNEL add(int x, int y) {
8 half b = rsGetElementAt_half(gInput, y);
12 half RS_KERNEL sub(int x, int y) {
14 half b = rsGetElementAt_half(gInput, y);
18 half RS_KERNEL mul(int x, int y) {
20 half b = rsGetElementAt_half(gInput, y);
24 half RS_KERNEL div(int x, int y) {
26 half b = rsGetElementAt_half(gInput, y);
/cts/tests/tests/rsblas/src/android/renderscript/cts/
Dverify.rs33 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/tests/rscpp/src/android/cts/rscpp/
Dverify.rs41 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/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rs44 static float4 getGain(uint x, uint y) {
46 float interpY = (((float) y) / rawHeight) * gainMapHeight;
75 ret.y = gammaEncode(rgb.y);
100 if (sorted.z < sorted.y) {
102 sorted.z = sorted.y;
103 sorted.y = tmp;
106 if (sorted.y < sorted.x) {
107 tmp = sorted.y;
108 sorted.y = sorted.x;
112 if (sorted.z < sorted.y) {
[all …]
/cts/tests/tests/rscpp/librscpptest/
Dfe_all.rs11 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/
Dluts_for_speedup_f32.rsh11 // 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 …]
Dlayered_filter_fast_f32.rs97 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/tests/uirendering/src/android/uirendering/cts/differencevisualizers/
DPassFailVisualizer.java32 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/openglperf2/jni/graphics/
DMatrix.cpp76 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/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/
DSplashscreenTests.java39 for (int y = bounds.y; y < bounds.y + bounds.height; y++) { in assertAllColor()
41 assertTrue(y < img.getHeight()); in assertAllColor()
42 final int color = img.getRGB(x, y); in assertAllColor()
43 assertEquals("Colors must match at x=" + x + " y=" + y, expectedColor, color); in assertAllColor()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBlurMaskFilterTest.java53 for (int y = 0; y < CENTER; y++) { in testBlurMaskFilter()
54 if (x < CENTER - OFFSET - RADIUS || y < CENTER - OFFSET - RADIUS) { in testBlurMaskFilter()
56 verifyQuadrants(Color.TRANSPARENT, b, x, y, 5); in testBlurMaskFilter()
57 } else if (x > CENTER - OFFSET + RADIUS && y > CENTER - OFFSET + RADIUS) { in testBlurMaskFilter()
59 verifyQuadrants(Color.RED, b, x, y, 5); in testBlurMaskFilter()
62 verifyQuadrants(Color.RED, b, x, y, 255); in testBlurMaskFilter()
68 private void verifyQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) { in verifyQuadrants() argument
72 verifyColor(color, bitmap.getPixel(x, y), alphaTolerance); in verifyQuadrants()
73 verifyColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in verifyQuadrants()
74 verifyColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); in verifyQuadrants()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DPerPixelBitmapVerifier.java52 protected int getExpectedColor(int x, int y) { in getExpectedColor() argument
59 for (int y = 0 ; y < height ; y++) { in verify()
61 int index = indexFromXAndY(x, y, stride, offset); in verify()
62 if (!verifyPixel(x, y, bitmap[index])) { in verify()
64 Log.d(TAG, "Expected : " + Integer.toHexString(getExpectedColor(x, y)) in verify()
66 + " at position (" + x + "," + y + ")"); in verify()
89 protected boolean verifyPixel(int x, int y, int observedColor) { in verifyPixel() argument
90 int expectedColor = getExpectedColor(x, y); in verifyPixel()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java46 final int h = min.y * 2; in testSuggestDesiredDimensions()
47 assertDesiredMinimum(new Point(min.x / 2, min.y / 2), min); in testSuggestDesiredDimensions()
53 assertDesiredMinimum(new Point(w, min.y / 2), min); in testSuggestDesiredDimensions()
57 mWallpaperManager.suggestDesiredDimensions(suggestedSize.x, suggestedSize.y); in assertDesiredMinimum()
60 if (actualSize.x > 0 || actualSize.y > 0) { in assertDesiredMinimum()
61 if((actualSize.x < minSize.x || actualSize.y < minSize.y)){ in assertDesiredMinimum()
63 + minSize.y + ", got x: " + actualSize.x + in assertDesiredMinimum()
64 " y: " + actualSize.y ); in assertDesiredMinimum()

1234567891011