/cts/tests/sensor/jni/ |
D | nativeTestHelper.h | 33 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__) argument 34 #define ASSERT_FALSE(a) ASSERT(!(a), "assert failed on (!" #a ") at " __FILE__ ":%d", __LINE__) argument 35 #define ASSERT_EQ(a, b) \ argument 36 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__) 37 #define ASSERT_NE(a, b) \ argument 38 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__) 39 #define ASSERT_GT(a, b) \ argument 40 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__) 41 #define ASSERT_GE(a, b) \ argument 42 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__) [all …]
|
/cts/tests/tests/graphics/jni/ |
D | NativeTestHelpers.h | 30 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__) argument 31 #define ASSERT_FALSE(a) ASSERT(!(a), "assert failed on (!" #a ") at " __FILE__ ":%d", __LINE__) argument 32 #define ASSERT_EQ(a, b) \ argument 33 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__) 34 #define ASSERT_NE(a, b) \ argument 35 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__) 36 #define ASSERT_GT(a, b) \ argument 37 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__) 38 #define ASSERT_GE(a, b) \ argument 39 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__) [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ANativeWindowTest.java | 223 private void matrixMultiply(float[] result, float[] a, float[] b, float[] tmp) { in matrixMultiply() argument 224 tmp[ 0] = a[ 0]*b[ 0] + a[ 4]*b[ 1] + a[ 8]*b[ 2] + a[12]*b[ 3]; in matrixMultiply() 225 tmp[ 1] = a[ 1]*b[ 0] + a[ 5]*b[ 1] + a[ 9]*b[ 2] + a[13]*b[ 3]; in matrixMultiply() 226 tmp[ 2] = a[ 2]*b[ 0] + a[ 6]*b[ 1] + a[10]*b[ 2] + a[14]*b[ 3]; in matrixMultiply() 227 tmp[ 3] = a[ 3]*b[ 0] + a[ 7]*b[ 1] + a[11]*b[ 2] + a[15]*b[ 3]; in matrixMultiply() 229 tmp[ 4] = a[ 0]*b[ 4] + a[ 4]*b[ 5] + a[ 8]*b[ 6] + a[12]*b[ 7]; in matrixMultiply() 230 tmp[ 5] = a[ 1]*b[ 4] + a[ 5]*b[ 5] + a[ 9]*b[ 6] + a[13]*b[ 7]; in matrixMultiply() 231 tmp[ 6] = a[ 2]*b[ 4] + a[ 6]*b[ 5] + a[10]*b[ 6] + a[14]*b[ 7]; in matrixMultiply() 232 tmp[ 7] = a[ 3]*b[ 4] + a[ 7]*b[ 5] + a[11]*b[ 6] + a[15]*b[ 7]; in matrixMultiply() 234 tmp[ 8] = a[ 0]*b[ 8] + a[ 4]*b[ 9] + a[ 8]*b[10] + a[12]*b[11]; in matrixMultiply() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | Target.java | 113 Floaty newFloaty(double a) { in newFloaty() argument 114 return new Floaty(mFloatSize, new double [] { a }); in newFloaty() 117 Floaty newFloaty(double a, double b) { in newFloaty() argument 118 return new Floaty(mFloatSize, new double [] { a, b }); in newFloaty() 121 Floaty newFloaty(double a, double b, double c) { in newFloaty() argument 122 return new Floaty(mFloatSize, new double [] { a, b, c }); in newFloaty() 125 Floaty newFloaty(double a, double b, double c, double d) { in newFloaty() argument 126 return new Floaty(mFloatSize, new double [] { a, b, c, d }); in newFloaty() 129 Floaty newFloaty(double a, double b, double c, double d, double e) { in newFloaty() argument 130 return new Floaty(mFloatSize, new double [] { a, b, c, d, e }); in newFloaty() [all …]
|
D | reduction.rs | 20 rs_allocation a; 25 return rsGetElementAt_int4(a, x) + rsGetElementAt_int4(a, x + reduction_stride); 30 rsSetElementAt_int4(a, 31 rsGetElementAt_int4(a, x) + 32 rsGetElementAt_int4(a, x + reduction_stride),
|
D | AtomicTest.rs | 64 void computeReference_Min(rs_allocation a, rs_allocation result) { 65 uint32_t dimX = rsAllocationGetDimX(a); 66 uint32_t dimY = rsAllocationGetDimY(a); 69 int v = rsGetElementAt_int(a, x, y); 76 void computeReference_uMin(rs_allocation a, rs_allocation result) { 77 uint32_t dimX = rsAllocationGetDimX(a); 78 uint32_t dimY = rsAllocationGetDimY(a); 81 uint v = rsGetElementAt_uint(a, x, y); 88 void computeReference_Max(rs_allocation a, rs_allocation result) { 89 uint32_t dimX = rsAllocationGetDimX(a); [all …]
|
D | float16_arithmetic.rs | 7 half a = rsGetElementAt_half(gInput, x); 9 return a + b; 13 half a = rsGetElementAt_half(gInput, x); 15 return a - b; 19 half a = rsGetElementAt_half(gInput, x); 21 return a * b; 25 half a = rsGetElementAt_half(gInput, x); 27 return a / b;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int/d/ |
D | T_rsub_int_1.java | 21 public int run(int a) { in run() argument 23 return b-a; in run() 26 public int run1(int a) { in run1() argument 28 return b-a; in run1() 31 public int run2(int a) { in run2() argument 33 return b-a; in run2() 36 public int run3(int a) { in run3() argument 38 return b-a; in run3() 41 public int run4(int a) { in run4() argument 43 return b-a; in run4() [all …]
|
D | T_rsub_int_2.java | 21 public int run(int a) { in run() argument 23 return b-a; in run() 26 public int run1(int a) { in run1() argument 28 return b-a; in run1() 31 public int run2(int a) { in run2() argument 33 return b-a; in run2()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int_lit8/d/ |
D | T_rsub_int_lit8_1.java | 21 public int run(int a) { in run() argument 23 return b-a; in run() 26 public int run1(int a) { in run1() argument 28 return b-a; in run1() 31 public int run2(int a) { in run2() argument 33 return b-a; in run2() 36 public int run3(int a) { in run3() argument 38 return b-a; in run3() 41 public int run4(int a) { in run4() argument 43 return b-a; in run4() [all …]
|
D | T_rsub_int_lit8_2.java | 21 public int run(int a) { in run() argument 23 return b-a; in run() 26 public int run1(int a) { in run1() argument 28 return b-a; in run1() 31 public int run2(int a) { in run2() argument 33 return b-a; in run2()
|
/cts/tests/tests/rsblas/assets/ |
D | blas_gen.py | 27 def triangularMatrixGen(a, uplo): argument 29 for i in range(1, a.shape[0]): 31 a[i, j] = 0 33 for i in range(0, a.shape[0]-1): 34 for j in range(i+1, a.shape[1]): 35 a[i, j] = 0 38 def symm(a): argument 39 for i in range(1, a.shape[0]): 41 a[i, j] = a[j, i]; 44 def herm(a): argument [all …]
|
/cts/tests/tests/media/libmediandkjni/ |
D | md5_utils.cpp | 160 /*register*/ UWORD32 a, b, c, d; in MD5Transform() local 162 a = buf[0]; in MD5Transform() 167 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform() 168 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in MD5Transform() 169 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in MD5Transform() 170 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in MD5Transform() 171 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform() 172 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in MD5Transform() 173 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in MD5Transform() 174 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in MD5Transform() [all …]
|
/cts/tests/simplecpu/jni/ |
D | CpuNativeJni.cpp | 28 #define min(a, b) (a) < (b) ? a : b argument 44 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ argument 48 swapfunc(char *a, char *b, int n, int swaptype) in swapfunc() argument 51 swapcode(long, a, b, n) in swapfunc() 53 swapcode(char, a, b, n) in swapfunc() 56 #define swap(a, b) \ argument 58 long t = *(long *)(a); \ 59 *(long *)(a) = *(long *)(b); \ 62 swapfunc(a, b, es, swaptype) 64 #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) argument [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/ |
D | ListsHelper.java | 20 static public boolean isMatch(int[] a, int[] b) { in isMatch() argument 21 if (a.length != b.length) { in isMatch() 25 int len = a.length; in isMatch() 27 if (a[index] != b[index]) { in isMatch() 35 static private boolean hasValue(int[] a, int value) { in hasValue() argument 37 for (int aVal : a) { in hasValue() 50 static public boolean isSubset(int[] a, int[] b) { in isSubset() argument 51 if (a.length > b.length) { in isSubset() 55 for (int aVal : a) { in isSubset()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | ColorBufferTest.java | 48 float a = 1.0f; in test_RGBA_1001() local 49 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1001() 51 float[] expectedColor = {r, g, b, a}; in test_RGBA_1001() 66 float a = 1.0f; in test_RGBA_1101() local 67 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1101() 68 float[] expectedColor = {r, g, b, a}; in test_RGBA_1101() 84 float a = 1.0f; in test_RGBA_1111() local 85 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1111() 87 float[] expectedColor = {r, g, b, a}; in test_RGBA_1111() 103 float a = 1.0f; in test_RGBA_0101() local [all …]
|
D | NativeColorBufferTest.java | 43 float a = 1.0f; in test_RGBA_1001() local 44 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1001() 46 float[] expectedColor = {r, g, b, a}; in test_RGBA_1001() 61 float a = 1.0f; in test_RGBA_1101() local 62 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1101() 63 float[] expectedColor = {r, g, b, a}; in test_RGBA_1101() 79 float a = 1.0f; in test_RGBA_1111() local 80 final float[] vertexColors = getVertexColors(r, g, b, a); in test_RGBA_1111() 82 float[] expectedColor = {r, g, b, a}; in test_RGBA_1111() 98 float a = 1.0f; in test_RGBA_0101() local [all …]
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_crop_regions.py | 42 a = props['android.sensor.info.activeArraySize'] 43 ax, ay = a["left"], a["top"] 44 aw, ah = a["right"] - a["left"], a["bottom"] - a["top"] 74 a = cap["metadata"]["android.scaler.cropRegion"] 75 ax, ay = a["left"], a["top"] 76 aw, ah = a["right"] - a["left"], a["bottom"] - a["top"]
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 67 public static double calcDifferenceMetric(Bitmap a, Bitmap b) { in calcDifferenceMetric() argument 68 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in calcDifferenceMetric() 70 a.getWidth() + "x" + a.getHeight() + ", b=" + b.getWidth() + "x" + in calcDifferenceMetric() 74 int[] aPixels = new int[a.getHeight() * a.getWidth()]; in calcDifferenceMetric() 76 a.getPixels(aPixels, /*offset*/0, /*stride*/a.getWidth(), /*x*/0, /*y*/0, a.getWidth(), in calcDifferenceMetric() 77 a.getHeight()); in calcDifferenceMetric()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | luts_for_speedup_f32.rsh | 10 // A lookup table that heuristically computes the probability that a layer with 11 // depth y is visible in the presence of a pixel with depth x. 19 // Assumes a <= b. 20 // When a = b, RemoveInterval(x,a,b) always returns x. 21 // When a < b, 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 …]
|
D | image_and_kernel.rsh | 6 // width-by-height is the dimension of a padded image with a margin. 20 // Auxiliary information that is needed to extract a kernel matrix from a buffer 21 // of a stack of kernel matrices. 23 // The starting position of a kernel matrix in a buffer of a stack of kernel
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/goto_16/d/ |
D | T_goto_16_1.java | 21 public int run(int a) { in run() argument 22 while (a > 0) { in run() 23 a--; in run() 25 return a; in run()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/opc_goto/d/ |
D | T_opc_goto_1.java | 21 public int run(int a) { in run() argument 22 while (a > 0) { in run() 23 a--; in run() 25 return a; in run()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/goto_32/d/ |
D | T_goto_32_1.java | 21 public int run(int a) { in run() argument 22 while (a > 0) { in run() 23 a--; in run() 25 return a; in run()
|
/cts/suite/audio_quality/test/ |
D | LogTest.cpp | 44 int64_t a = 0; in TEST_F() local 52 printf("printf " PrintABCDEF "\n", a, b, c, d, e, f); in TEST_F() 53 LOGD( "logd " PrintABCDEF, a, b, c, d, e, f); in TEST_F() 54 LOGV( "logv " PrintABCDEF, a, b, c, d, e, f); in TEST_F() 55 LOGI( "logi " PrintABCDEF, a, b, c, d, e, f); in TEST_F() 56 LOGW( "logw " PrintABCDEF, a, b, c, d, e, f); in TEST_F() 57 LOGE( "loge " PrintABCDEF, a, b, c, d, e, f); in TEST_F()
|