Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dkernel_all.rscript9 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 …]
DRSUtils.java72 Random r = new Random(seed); in genRandomDoubles() local
79 double mantissa = r.nextDouble(); in genRandomDoubles()
80 int exponent = minExponent + r.nextInt(maxExponent - minExponent); in genRandomDoubles()
81 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 in genRandomDoubles()
91 double rand = r.nextDouble(); in genRandomDoubles()
99 array[r.nextInt(array.length)] = d; in genRandomDoubles()
102 array[r.nextInt(array.length)] = min; in genRandomDoubles()
103 array[r.nextInt(array.length)] = max; in genRandomDoubles()
105 array[r.nextInt(array.length)] = Double.NaN; in genRandomDoubles()
106 array[r.nextInt(array.length)] = Double.POSITIVE_INFINITY; in genRandomDoubles()
[all …]
Dintrinsic_blur.rscript31 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 …]
DAtomicTest.java273 Random r = new Random(78); in testAnd() local
281 mSrcData[r.nextInt(mSrcData.length)] = ~0x40000000; in testAnd()
282 mSrcData[r.nextInt(mSrcData.length)] = ~0x10000000; in testAnd()
283 mSrcData[r.nextInt(mSrcData.length)] = ~0x02000000; in testAnd()
284 mSrcData[r.nextInt(mSrcData.length)] = ~0x00c00000; in testAnd()
285 mSrcData[r.nextInt(mSrcData.length)] = ~0x00010000; in testAnd()
286 mSrcData[r.nextInt(mSrcData.length)] = ~0x00080000; in testAnd()
287 mSrcData[r.nextInt(mSrcData.length)] = ~0x00001000; in testAnd()
288 mSrcData[r.nextInt(mSrcData.length)] = ~0x00000200; in testAnd()
289 mSrcData[r.nextInt(mSrcData.length)] = ~0x0000000f; in testAnd()
[all …]
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DLineBreakerTest.java147 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple() local
149 assertEquals(1, r.getLineCount()); in testLineBreak_Simple()
150 assertEquals(13, r.getLineBreakOffset(0)); in testLineBreak_Simple()
151 assertEquals(-10.0f, r.getLineAscent(0), 0.0f); in testLineBreak_Simple()
152 assertEquals(2.0f, r.getLineDescent(0), 0.0f); in testLineBreak_Simple()
153 assertEquals(Paint.START_HYPHEN_EDIT_NO_EDIT, r.getStartLineHyphenEdit(0)); in testLineBreak_Simple()
154 assertEquals(Paint.END_HYPHEN_EDIT_NO_EDIT, r.getEndLineHyphenEdit(0)); in testLineBreak_Simple()
155 assertFalse(r.hasLineTab(0)); in testLineBreak_Simple()
156 assertEquals(130.0f, r.getLineWidth(0), 0.0f); in testLineBreak_Simple()
170 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple2() local
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaint_TextBoundsTest.java74 Rect r = new Rect(); in testSingleChar_1em() local
75 p.getTextBounds(CHAR_1EMx1EM, 0, 1, r); in testSingleChar_1em()
76 assertThat(r.left).isEqualTo(0); in testSingleChar_1em()
77 assertThat(r.top).isEqualTo(-100); in testSingleChar_1em()
78 assertThat(r.right).isEqualTo(100); in testSingleChar_1em()
79 assertThat(r.bottom).isEqualTo(0); in testSingleChar_1em()
85 Rect r = new Rect(); in testSingleChar_2em() local
86 p.getTextBounds(CHAR_2EMx2EM, 0, 1, r); in testSingleChar_2em()
87 assertThat(r.left).isEqualTo(0); in testSingleChar_2em()
88 assertThat(r.top).isEqualTo(-200); in testSingleChar_2em()
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfo_RangeInfoTest.java50 RangeInfo r; in testObtain() local
52 r = RangeInfo.obtain(RangeInfo.RANGE_TYPE_INT, -100, 0, -50); in testObtain()
53 assertEquals(RangeInfo.RANGE_TYPE_INT, r.getType()); in testObtain()
54 assertEquals(-100, r.getMin(), FLOAT_TOLERANCE); in testObtain()
55 assertEquals(0, r.getMax(), FLOAT_TOLERANCE); in testObtain()
56 assertEquals(-50, r.getCurrent(), FLOAT_TOLERANCE); in testObtain()
58 r = RangeInfo.obtain(RangeInfo.RANGE_TYPE_FLOAT, -1.5f, 1.5f, 0.0f); in testObtain()
59 assertEquals(RangeInfo.RANGE_TYPE_FLOAT, r.getType()); in testObtain()
60 assertEquals(-1.5f, r.getMin(), FLOAT_TOLERANCE); in testObtain()
61 assertEquals(1.5f, r.getMax(), FLOAT_TOLERANCE); in testObtain()
[all …]
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSUtils.java50 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/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspFftServer.java52 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 …]
DDspBufferMath.java54 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 …]
DDspWindow.java62 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/opengl/src/android/opengl/cts/
DColorBufferTest.java45 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 …]
DNativeColorBufferTest.java40 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/tools/vm-tests-tf/src/dot/junit/opcodes/new_array/
DTest_new_array.java34 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/graphics/src/android/graphics/drawable/cts/
DInsetDrawableTest.java86 Resources r = mContext.getResources(); in testInflate() local
87 XmlPullParser parser = r.getXml(R.layout.framelayout_layout); in testInflate()
91 insetDrawable.inflate(r, parser, attrs); in testInflate()
152 Rect r = new Rect(); in testGetPadding_dimension() local
153 assertEquals(0, r.left); in testGetPadding_dimension()
154 assertEquals(0, r.top); in testGetPadding_dimension()
155 assertEquals(0, r.right); in testGetPadding_dimension()
156 assertEquals(0, r.bottom); in testGetPadding_dimension()
158 assertTrue(insetDrawable.getPadding(r)); in testGetPadding_dimension()
160 assertEquals(1, r.left); in testGetPadding_dimension()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DDeviceOwnerUserRestrictionsTest.java95 for (String r : ALL_USER_RESTRICTIONS) { in testHasBaseUserRestrictions()
96 if(!hasBaseUserRestriction(r, userHandle)) { in testHasBaseUserRestrictions()
97 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, r); in testHasBaseUserRestrictions()
98 assertTrue("Restriction " + r + " expected", in testHasBaseUserRestrictions()
99 mUserManager.hasUserRestriction(r, userHandle)); in testHasBaseUserRestrictions()
100 assertFalse("Restriction " + r + " not expected as a baseRestriction", in testHasBaseUserRestrictions()
101 hasBaseUserRestriction(r, userHandle)); in testHasBaseUserRestrictions()
103 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, r); in testHasBaseUserRestrictions()
104 assertFalse("Restriction " + r + " not expected", in testHasBaseUserRestrictions()
105 mUserManager.hasUserRestriction(r, userHandle)); in testHasBaseUserRestrictions()
[all …]
DBaseUserRestrictionsTest.java137 for (String r : ALL_USER_RESTRICTIONS) { in assertRestrictions()
138 assertLayeredRestriction(r, in assertRestrictions()
139 expected.contains(r) || hasBaseUserRestriction(r, userHandle)); in assertRestrictions()
246 for (String r : getAllowedRestrictions()) { in testSetAllRestrictionsIndividually()
248 assertSetClearUserRestriction(r); in testSetAllRestrictionsIndividually()
250 assertRestrictions(new HashSet<>(Arrays.asList(new String[]{r}))); in testSetAllRestrictionsIndividually()
253 assertClearUserRestriction(r); in testSetAllRestrictionsIndividually()
262 for (String r : getAllowedRestrictions()) { in testSetAllRestrictions()
263 assertSetClearUserRestriction(r); in testSetAllRestrictions()
265 for (String r : getDisallowedRestrictions()) { in testSetAllRestrictions()
[all …]
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java136 final Resources r = getContext().getResources(); in testSingleBase() local
140 assertEquals(false, r.getBoolean(R.bool.my_receiver_enabled)); in testSingleBase()
142 assertEquals("blue", r.getString(R.string.my_string1)); in testSingleBase()
143 assertEquals("purple", r.getString(R.string.my_string2)); in testSingleBase()
145 assertEquals(0xff00ff00, r.getColor(R.color.my_color)); in testSingleBase()
146 assertEquals(123, r.getInteger(R.integer.my_integer)); in testSingleBase()
148 assertEquals("base", getXmlTestValue(r.getXml(R.xml.my_activity_meta))); in testSingleBase()
152 r.getDrawable(R.drawable.image); in testSingleBase()
158 assertAssetContents(r, "file1.txt", "FILE1"); in testSingleBase()
159 assertAssetContents(r, "dir/dirfile1.txt", "DIRFILE1"); in testSingleBase()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DRationalTest.java57 Rational r = new Rational(1, 2); in testConstructor() local
58 assertEquals(1, r.getNumerator()); in testConstructor()
59 assertEquals(2, r.getDenominator()); in testConstructor()
62 r = new Rational(-1, 2); in testConstructor()
63 assertEquals(-1, r.getNumerator()); in testConstructor()
64 assertEquals(2, r.getDenominator()); in testConstructor()
67 r = new Rational(1, -2); in testConstructor()
68 assertEquals(-1, r.getNumerator()); in testConstructor()
69 assertEquals(2, r.getDenominator()); in testConstructor()
72 r = new Rational(-1, -2); in testConstructor()
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java25 int r = (argb >> 16) & 0xFF; in brightness() local
29 int V = Math.max(b, Math.max(r, g)); in brightness()
35 int r = (argb >> 16) & 0xFF; in hue() local
39 int V = Math.max(b, Math.max(r, g)); in hue()
40 int temp = Math.min(b, Math.min(r, g)); in hue()
48 final float cr = (V - r) / vtemp; in hue()
52 if (r == V) { in hue()
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSUtils.java30 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/tests/tests/graphics/src/android/graphics/cts/utils/
DColorUtils.java46 double r = (x * 3.2406 + y * -1.5372 + z * -0.4986) / 100; in xyzToColor() local
50 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in xyzToColor()
55 (int) constrain((int) Math.round(r * 255), 0, 255), in xyzToColor()
/cts/tools/utils/
DbuildCts.py61 pattern = re.compile(r'^\s*([^:#=\s]+)\s*:=\s*(.*?[^\\])$', re.MULTILINE + re.DOTALL)
138 plan.Exclude(r'android\.signature')
139 plan.Exclude(r'android\.core.*')
143 plan.Include(r'android\.core\.tests.*')
144 plan.Exclude(r'android\.core\.tests\.libcore\.package\.harmony*')
149 plan.Include(r'android\.core\.tests\.libcore\.package\.harmony*')
153 plan.Include(r'android\.core\.vm-tests-tf')
157 plan.Include(r'android\.tests\.appsecurity')
184 plan.Exclude(r'android\.browser')
194 plan.Include(r'android\.browser')
[all …]
/cts/tests/app/src/android/app/cts/
DActivityManager_RunningAppProcessInfoTest.java47 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/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DTestTaskQueue.java62 public synchronized void addTask(Runnable r) { in addTask() argument
63 addTask(r, 0); in addTask()
73 public synchronized void addTask(final Runnable r, long delay) { in addTask() argument
74 if ((mHandler != null) && (r != null)) { in addTask()
79 r.run(); in addTask()

12345678910>>...14