/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | kernel_all.rs | 9 uchar2 r; 10 r.x = ain.x + 1; 11 r.y = ain.y + 1; 12 return r; 16 uchar3 r; 17 r.x = ain.x + 1; 18 r.y = ain.y + 1; 19 r.z = ain.z + 1; 20 return r; 24 uchar4 r; [all …]
|
D | intrinsic_blur.rs | 31 float4 r = rsUnpackColor8888(v); 32 return r.r; 40 uchar4 r = rsPackColorTo8888(v); 41 return r.r; 60 for (int r = -radius; r <= radius; r ++) { 61 floatR = (float)r; 62 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 63 normalizeFactor += gaussian[r + radius]; 67 for (int r = -radius; r <= radius; r ++) { 68 floatR = (float)r; [all …]
|
D | RSUtils.java | 50 Random r = new Random(seed); in genRandomDoubles() local 57 double mantissa = r.nextDouble(); in genRandomDoubles() 58 int exponent = minExponent + r.nextInt(maxExponent - minExponent); in genRandomDoubles() 59 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 in genRandomDoubles() 69 double rand = r.nextDouble(); in genRandomDoubles() 77 array[r.nextInt(array.length)] = d; in genRandomDoubles() 80 array[r.nextInt(array.length)] = min; in genRandomDoubles() 81 array[r.nextInt(array.length)] = max; in genRandomDoubles() 83 array[r.nextInt(array.length)] = Double.NaN; in genRandomDoubles() 84 array[r.nextInt(array.length)] = Double.POSITIVE_INFINITY; in genRandomDoubles() [all …]
|
D | AtomicTest.java | 259 Random r = new Random(78); in testAnd() local 267 mSrcData[r.nextInt(mSrcData.length)] = ~0x40000000; in testAnd() 268 mSrcData[r.nextInt(mSrcData.length)] = ~0x10000000; in testAnd() 269 mSrcData[r.nextInt(mSrcData.length)] = ~0x02000000; in testAnd() 270 mSrcData[r.nextInt(mSrcData.length)] = ~0x00c00000; in testAnd() 271 mSrcData[r.nextInt(mSrcData.length)] = ~0x00010000; in testAnd() 272 mSrcData[r.nextInt(mSrcData.length)] = ~0x00080000; in testAnd() 273 mSrcData[r.nextInt(mSrcData.length)] = ~0x00001000; in testAnd() 274 mSrcData[r.nextInt(mSrcData.length)] = ~0x00000200; in testAnd() 275 mSrcData[r.nextInt(mSrcData.length)] = ~0x0000000f; in testAnd() [all …]
|
D | IntrinsicColorMatrix.java | 76 java.util.Random r = new java.util.Random(100); in test() local 98 if (r.nextFloat() > 0.5f) { in test() 99 f[i] = r.nextFloat() * (subtest - 1); in test() 103 if (r.nextFloat() > 0.5f) { in test() 104 add.x = r.nextFloat() * (subtest - 1); in test() 106 if (r.nextFloat() > 0.5f) { in test() 107 add.y = r.nextFloat() * (subtest - 1); in test() 109 if (r.nextFloat() > 0.5f) { in test() 110 add.z = r.nextFloat() * (subtest - 1); in test() 112 if (r.nextFloat() > 0.5f) { in test() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/ |
D | DspBufferMath.java | 54 static public <T extends DspBufferBase> int add(T r, T a, T b) { in add() argument 56 r.setSize(size); in add() 73 if (r instanceof DspBufferComplex) { in add() 77 ((DspBufferComplex) r).mReal[i] = in add() 79 ((DspBufferComplex) r).mImag[i] = 0; in add() 84 ((DspBufferComplex) r).mReal[i] = in add() 86 ((DspBufferComplex) r).mImag[i] = in add() 92 ((DspBufferComplex) r).mReal[i] = in add() 94 ((DspBufferComplex) r).mImag[i] = ((DspBufferComplex) x).mImag[i]; in add() 98 } else if (r instanceof DspBufferDouble) { in add() [all …]
|
D | DspFftServer.java | 52 public void fft(DspBufferComplex r, int sign) { in fft() argument 68 t1 = r.mReal[ii]; in fft() 69 r.mReal[ii] = r.mReal[jj]; in fft() 70 r.mReal[jj] = t1; in fft() 71 t1 = r.mImag[ii]; in fft() 72 r.mImag[ii] = r.mImag[jj]; in fft() 73 r.mImag[jj] = t1; in fft() 90 t1 = cc * r.mReal[kk + n1] - ss * r.mImag[kk + n1]; in fft() 91 t2 = ss * r.mReal[kk + n1] + cc * r.mImag[kk + n1]; in fft() 92 r.mReal[kk + n1] = r.mReal[kk] - t1; in fft() [all …]
|
D | DspWindow.java | 62 public static boolean fillWindow(DspBufferDouble r, int type, int overlap) { in fillWindow() argument 64 int size = r.getSize(); in fillWindow() 71 status = fillRectangular(r); in fillWindow() 74 status = fillTriangular(r, size / 2); in fillWindow() 77 status = fillTriangular(r, overlap); in fillWindow() 80 status = fillHamming(r, size / 2); in fillWindow() 83 status = fillHamming(r, overlap); in fillWindow() 86 status = fillHanning(r, size / 2); in fillWindow() 89 status = fillHanning(r, overlap); in fillWindow() 95 private static boolean fillRectangular(DspBufferDouble r) { in fillRectangular() argument [all …]
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | RSUtils.java | 50 Random r = new Random(seed); in genRandomDoubles() local 57 double mantissa = r.nextDouble(); in genRandomDoubles() 58 int exponent = minExponent + r.nextInt(maxExponent - minExponent); in genRandomDoubles() 59 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 in genRandomDoubles() 69 double rand = r.nextDouble(); in genRandomDoubles() 77 array[r.nextInt(array.length)] = d; in genRandomDoubles() 80 array[r.nextInt(array.length)] = min; in genRandomDoubles() 81 array[r.nextInt(array.length)] = max; in genRandomDoubles() 83 array[r.nextInt(array.length)] = Double.NaN; in genRandomDoubles() 84 array[r.nextInt(array.length)] = Double.POSITIVE_INFINITY; in genRandomDoubles() [all …]
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | ColorBufferTest.java | 45 float r = 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() 63 float r = 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() 81 float r = 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() 100 float r = 0.0f; in test_RGBA_0101() local [all …]
|
D | NativeColorBufferTest.java | 40 float r = 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() 58 float r = 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() 76 float r = 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() 95 float r = 0.0f; in test_RGBA_0101() local [all …]
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | crypto.js | 180 function bnpCopyTo(r) { argument 182 var r_array = r.array; 185 r.t = this.t; 186 r.s = this.s; 200 function nbv(i) { var r = nbi(); r.fromInt(i); return r; } 260 var km = (1<<k)-1, d, m = false, r = "", i = this.t; 263 if(p < BI_DB && (d = this_array[i]>>p) > 0) { m = true; r = int2char(d); } 274 if(m) r += int2char(d); 277 return m?r:"0"; 281 function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } [all …]
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 77 final Resources r = getContext().getResources(); in testSingleBase() local 81 assertEquals(false, r.getBoolean(R.bool.my_receiver_enabled)); in testSingleBase() 83 assertEquals("blue", r.getString(R.string.my_string1)); in testSingleBase() 84 assertEquals("purple", r.getString(R.string.my_string2)); in testSingleBase() 86 assertEquals(0xff00ff00, r.getColor(R.color.my_color)); in testSingleBase() 87 assertEquals(123, r.getInteger(R.integer.my_integer)); in testSingleBase() 89 assertEquals("base", getXmlTestValue(r.getXml(R.xml.my_activity_meta))); in testSingleBase() 93 r.getDrawable(R.drawable.image); in testSingleBase() 99 assertAssetContents(r, "file1.txt", "FILE1"); in testSingleBase() 100 assertAssetContents(r, "dir/dirfile1.txt", "DIRFILE1"); in testSingleBase() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/new_array/ |
D | Test_new_array.java | 34 int[] r = t.run(10); in testN1() local 35 int l = r.length; in testN1() 40 assertEquals(0, r[i]); in testN1() 50 boolean[] r = t.run(10); in testN2() 51 int l = r.length; in testN2() 56 assertFalse(r[i]); in testN2() 65 Object[] r = t.run(10); in testN3() local 66 int l = r.length; in testN3() 71 assertNull(r[i]); in testN3() 80 int[] r = t.run(0); in testB1() local [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | RationalTest.java | 42 Rational r = new Rational(1, 2); in testConstructor() local 43 assertEquals(1, r.getNumerator()); in testConstructor() 44 assertEquals(2, r.getDenominator()); in testConstructor() 47 r = new Rational(-1, 2); in testConstructor() 48 assertEquals(-1, r.getNumerator()); in testConstructor() 49 assertEquals(2, r.getDenominator()); in testConstructor() 52 r = new Rational(1, -2); in testConstructor() 53 assertEquals(-1, r.getNumerator()); in testConstructor() 54 assertEquals(2, r.getDenominator()); in testConstructor() 57 r = new Rational(-1, -2); in testConstructor() [all …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSUtils.java | 30 Random r = new Random(seed); in genRandom() local 32 array[i] = r.nextFloat() * factor + offset; in genRandom() 38 Random r = new Random(seed); in genRandom() local 44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom() 50 Random r = new Random(seed); in genRandom() local 52 array[i] = (r.nextInt(max) * factor + offset); in genRandom() 58 Random r = new Random(seed); in genRandom() local 64 array[i * stride + j] = r.nextInt() * factor + offset; in genRandom() 71 Random r = new Random(seed); in genRandom() local 77 array[i * stride + j] = r.nextInt(max) * factor + offset; in genRandom()
|
/cts/tools/utils/ |
D | buildCts.py | 50 pattern = re.compile(r'^\s*([^:#=\s]+)\s*:=\s*(.*?[^\\])$', re.MULTILINE + re.DOTALL) 124 plan.Exclude(r'android\.signature') 125 plan.Exclude(r'android\.core.*') 129 plan.Include(r'android\.core\.tests.*') 130 plan.Exclude(r'android\.core\.tests\.libcore.\package.\harmony*') 135 plan.Include(r'android\.core\.tests\.libcore.\package.\harmony*') 139 plan.Include(r'android\.core\.vm-tests-tf') 143 plan.Include(r'android\.tests\.appsecurity') 168 plan.Exclude(r'com\.android\.cts\.browserbench') 178 plan.Include(r'com\.android\.cts\.browserbench') [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | InsetDrawableTest.java | 54 Resources r = mContext.getResources(); in testInflate() local 55 XmlPullParser parser = r.getXml(R.layout.framelayout_layout); in testInflate() 59 insetDrawable.inflate(r, parser, attrs); in testInflate() 148 Rect r = new Rect(); in testGetPadding() local 149 assertEquals(0, r.left); in testGetPadding() 150 assertEquals(0, r.top); in testGetPadding() 151 assertEquals(0, r.right); in testGetPadding() 152 assertEquals(0, r.bottom); in testGetPadding() 154 assertTrue(insetDrawable.getPadding(r)); in testGetPadding() 156 assertEquals(1, r.left); in testGetPadding() [all …]
|
D | NinePatchDrawableTest.java | 65 Rect r = new Rect(); in testConstructors() local 70 new NinePatchDrawable(bmp, chunk, r, name); in testConstructors() 77 new NinePatchDrawable(bmp, chunk, r, name); in testConstructors() 141 Rect r = new Rect(); in testGetPadding() local 143 assertTrue(npd.getPadding(r)); in testGetPadding() 145 assertEquals(0, r.left); in testGetPadding() 146 assertEquals(0, r.top); in testGetPadding() 147 assertTrue(r.right > 0); in testGetPadding() 148 assertTrue(r.bottom > 0); in testGetPadding() 151 assertTrue(npd.getPadding(r)); in testGetPadding() [all …]
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ActivityManager_RunningAppProcessInfoTest.java | 47 final RunningAppProcessInfo r = new RunningAppProcessInfo(); in testRunningAppProcessInfo() local 49 r.readFromParcel(p); in testRunningAppProcessInfo() 51 assertEquals(rap.pid, r.pid); in testRunningAppProcessInfo() 52 assertEquals(rap.processName, r.processName); in testRunningAppProcessInfo() 53 assertEquals(rap.pkgList.length, r.pkgList.length); in testRunningAppProcessInfo() 56 assertEquals(rap.pkgList[i], r.pkgList[i]); in testRunningAppProcessInfo()
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_format_combos.py | 76 for r,req in enumerate(reqs): 81 successes.append((n,r,f,b)) 82 print "==> Success[%02d]: R%d F%d B%d" % (n,r,f,b) 93 "%s_n%02d_r%d_f%d_b%d_c%d.jpg"%(NAME,n,r,f,b,c)) 97 print "==> Failure[%02d]: R%d F%d B%d" % (n,r,f,b) 98 failures.append((n,r,f,b)) 109 for (n,r,f,b) in failures: 110 print " %02d: R%d F%d B%d" % (n,r,f,b) 112 for (n,r,f,b) in successes: 113 print " %02d: R%d F%d B%d" % (n,r,f,b)
|
/cts/tests/tests/os/src/android/os/cts/ |
D | HandlerTest.java | 71 MockRunnable r = new MockRunnable(); in testPostAtTime1() local 72 assertTrue(mHandler.postAtTime(r, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime1() 73 assertFalse(r.isRun()); in testPostAtTime1() 75 assertTrue(r.isRun()); in testPostAtTime1() 76 mHandler.removeCallbacks(r); in testPostAtTime1() 80 MockRunnable r = new MockRunnable(); in testPostAtTime2() local 82 assertTrue(mHandler.postAtTime(r, token, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime2() 83 assertFalse(r.isRun()); in testPostAtTime2() 85 assertTrue(r.isRun()); in testPostAtTime2() 86 mHandler.removeCallbacks(r); in testPostAtTime2() [all …]
|
/cts/suite/cts/deviceTests/simplecpu/jni/ |
D | CpuNativeJni.cpp | 78 int d, r, swaptype, swap_cnt; in qsort_local() local 107 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in qsort_local() 108 if (r == 0) { in qsort_local() 115 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in qsort_local() 116 if (r == 0) { in qsort_local() 139 r = min(pa - (char *)a, pb - pa); in qsort_local() 140 vecswap(a, pb - r, r); in qsort_local() 141 r = min(pd - pc, pn - pd - (int)es); in qsort_local() 142 vecswap(pb, pn - r, r); in qsort_local() 143 if ((r = pb - pa) > (int)es) in qsort_local() [all …]
|
/cts/apps/CtsVerifier/include/colorchecker/ |
D | vec3.h | 37 Vec3<T> temp(mRed + param.r(), mGreen + param.g(), mBlue + param.b()); 42 Vec3<T> temp(mRed - param.r(), mGreen - param.g(), mBlue - param.b()); 53 Vec3<float> temp(mRed * static_cast<U>(param.r()), 72 assert((param.r() != 0.f) && (param.g() != 0.f) && (param.b() != 0.f)); 73 temp.set(static_cast<float>(mRed) / static_cast<float>(param.r()), 82 difference = static_cast<float>(mRed - param.r()) * in squareDistance() 83 static_cast<float>(mRed - param.r()) + in squareDistance() 98 inline T r() const { return mRed; } in r() function
|
/cts/suite/cts/utils/ |
D | grapher.py | 53 for r in results: 54 score = r.get('result', 'no results') 58 y = r['details']['Fps Values'] 61 score = r['summary']['Average Frames Per Second'] 66 name = r['device']
|