Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 2812) sorted by relevance

12345678910>>...113

/cts/tests/sensor/jni/
DnativeTestHelper.h33 #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/src/android/graphics/cts/
DANativeWindowTest.java224 private void matrixMultiply(float[] result, float[] a, float[] b, float[] tmp) { in matrixMultiply() argument
225 tmp[ 0] = a[ 0]*b[ 0] + a[ 4]*b[ 1] + a[ 8]*b[ 2] + a[12]*b[ 3]; in matrixMultiply()
226 tmp[ 1] = a[ 1]*b[ 0] + a[ 5]*b[ 1] + a[ 9]*b[ 2] + a[13]*b[ 3]; in matrixMultiply()
227 tmp[ 2] = a[ 2]*b[ 0] + a[ 6]*b[ 1] + a[10]*b[ 2] + a[14]*b[ 3]; in matrixMultiply()
228 tmp[ 3] = a[ 3]*b[ 0] + a[ 7]*b[ 1] + a[11]*b[ 2] + a[15]*b[ 3]; in matrixMultiply()
230 tmp[ 4] = a[ 0]*b[ 4] + a[ 4]*b[ 5] + a[ 8]*b[ 6] + a[12]*b[ 7]; in matrixMultiply()
231 tmp[ 5] = a[ 1]*b[ 4] + a[ 5]*b[ 5] + a[ 9]*b[ 6] + a[13]*b[ 7]; in matrixMultiply()
232 tmp[ 6] = a[ 2]*b[ 4] + a[ 6]*b[ 5] + a[10]*b[ 6] + a[14]*b[ 7]; in matrixMultiply()
233 tmp[ 7] = a[ 3]*b[ 4] + a[ 7]*b[ 5] + a[11]*b[ 6] + a[15]*b[ 7]; in matrixMultiply()
235 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/
DTarget.java113 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 …]
DAtomicTest.rs64 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 …]
DLaunchClip.java114 private void verifyCell(int x, int y, int z, int[] a, Script.LaunchOptions sc) { in verifyCell() argument
146 int val = a[x + y * mDimX + z * mDimX * mDimY]; in verifyCell()
155 void verifyRange(Script.LaunchOptions sc, int[] a) { in verifyRange() argument
162 verifyCell(x, y, z, a, sc); in verifyRange()
179 AllocationAdapter a = AllocationAdapter.createTyped(mRS, base, t); in makeAdapter() local
180 a.setX(ox); in makeAdapter()
182 a.setY(oy); in makeAdapter()
185 a.setZ(oz); in makeAdapter()
191 return a; in makeAdapter()
210 AllocationAdapter a = makeAdapter(mAout, 68, 0, 0, 9, 0, 0); in testWrite1DAdapter1D() local
[all …]
Dfloat16_arithmetic.rs7 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;
Dreduction.rs20 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),
/cts/tests/tests/graphics/jni/
DNativeTestHelpers.h30 #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/rsblas/assets/
Dblas_gen.py27 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/
Dmd5_utils.cpp160 /*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/
DCpuNativeJni.cpp28 #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/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int_lit8/d/
DT_rsub_int_lit8_1.java21 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 …]
DT_rsub_int_lit8_2.java21 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/d/
DT_rsub_int_1.java21 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 …]
DT_rsub_int_2.java21 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/opengl/src/android/opengl/cts/
DColorBufferTest.java48 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 …]
DNativeColorBufferTest.java43 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/tests/app/src/android/app/cts/
DActivityCallbacksTest.java95 ActivityCallbacksTestActivity a = (ActivityCallbacksTestActivity) activity; in testActivityCallbackOrder()
96 a.collectEvent(Source.APPLICATION_ACTIVITY_CALLBACK, ON_PRE_CREATE); in testActivityCallbackOrder()
101 ActivityCallbacksTestActivity a = (ActivityCallbacksTestActivity) activity; in testActivityCallbackOrder()
102 a.collectEvent(Source.APPLICATION_ACTIVITY_CALLBACK, ON_CREATE); in testActivityCallbackOrder()
107 ActivityCallbacksTestActivity a = (ActivityCallbacksTestActivity) activity; in testActivityCallbackOrder()
108 a.collectEvent(Source.APPLICATION_ACTIVITY_CALLBACK, ON_POST_CREATE); in testActivityCallbackOrder()
113 ActivityCallbacksTestActivity a = (ActivityCallbacksTestActivity) activity; in testActivityCallbackOrder()
114 a.collectEvent(Source.APPLICATION_ACTIVITY_CALLBACK, ON_PRE_START); in testActivityCallbackOrder()
119 ActivityCallbacksTestActivity a = (ActivityCallbacksTestActivity) activity; in testActivityCallbackOrder()
120 a.collectEvent(Source.APPLICATION_ACTIVITY_CALLBACK, ON_START); in testActivityCallbackOrder()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dluts_for_speedup_f32.rsh10 // 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 …]
/cts/apps/CameraITS/tests/scene1/
Dtest_crop_regions.py42 a = props["android.sensor.info.activeArraySize"]
43 ax, ay = a["left"], a["top"]
44 aw, ah = a["right"] - a["left"], a["bottom"] - a["top"]
75 a = cap["metadata"]["android.scaler.cropRegion"]
76 ax, ay = a["left"], a["top"]
77 aw, ah = a["right"] - a["left"], a["bottom"] - a["top"]
/cts/apps/CameraITS/build/scripts/
Dgpylint_rcfile68 # Add a comment according to your evaluation note. This is used by the global
72 # Python expression which should return a note less than 10 (10 is the highest
79 # Put messages in a separate file for each module / package specified on the
81 # written in a file name "pylint_global.[txt|html]".
91 # Template used to display messages. This is a python new-style format string
96 # (visual studio) and html. You can also give a reporter class, eg
100 # Tells whether to display a full report or only the messages
107 argument-rgx=^[a-z][a-z0-9_]*$
110 attr-rgx=^_{0,2}[a-z][a-z0-9_]*$
112 # List of builtins function names that should not be used, separated by a comma
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DListsHelper.java20 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/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspBufferMath.java32 static private<T extends DspBufferBase> int estimateOperandsType(T a, T b) { in estimateOperandsType() argument
33 if (a instanceof DspBufferComplex) { in estimateOperandsType()
39 } else if (a instanceof DspBufferDouble) { in estimateOperandsType()
54 static public <T extends DspBufferBase> int add(T r, T a, T b) { in add() argument
55 int size = Math.min(a.getSize(), b.getSize()); in add()
58 T x = a; in add()
60 int opType = estimateOperandsType(a, b); in add()
63 if (a instanceof DspBufferDouble) { in add()
65 y = a; in add()
126 static public <T extends DspBufferBase> int mult(T r, T a, T b) { in mult() argument
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java76 public static BitmapCompareResult compareBitmap(Bitmap a, Bitmap b) { in compareBitmap() argument
77 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in compareBitmap()
79 a.getWidth() + "x" + a.getHeight() + ", b=" + b.getWidth() + "x" + in compareBitmap()
83 int[] aPixels = new int[a.getHeight() * a.getWidth()]; in compareBitmap()
85 a.getPixels(aPixels, /*offset*/0, /*stride*/a.getWidth(), /*x*/0, /*y*/0, a.getWidth(), in compareBitmap()
86 a.getHeight()); in compareBitmap()
149 public static double calcDifferenceMetric(Bitmap a, Bitmap b) { in calcDifferenceMetric() argument
150 BitmapCompareResult result = compareBitmap(a, b); in calcDifferenceMetric()
/cts/tests/tests/security/res/raw/
Dopenssl_heartbleed_test_cert.pem30 8c:96:0a:3a:45:25:87:67
41 00:b7:85:fc:7d:7b:11:34:10:6a:24:a4:cc:8d:8f:
42 a0:80:69:20:1d:60:be:5b:08:26:9f:67:0a:6b:e7:
43 f5:3d:1a:72:82:e6:2e:6c:a6:8a:66:a9:a4:0a:52:
44 3d:ca:b1:a2:c4:06:cf:64:d4:bb:18:aa:05:46:7a:
45 86:ce:6f:f2:28:9d:8a:e7:36:c4:70:a8:16:b0:18:
47 df:22:80:99:30:58:2c:61:85:02:e7:4f:f8:7a:db:
54 c3:68:2a:23:5b:dc:d8:b2:1f:29:d9:f3:8f:55:0c:
56 d6:fd:24:3a:b8:7a:cc:e3:62:b9:82:73:43:e2:0d:
70 b6:a3:40:1d:2a:c6:45:95:4a:4c:de:a2:77:5e:fa:2c:2e:a7:
[all …]

12345678910>>...113