Home
last modified time | relevance | path

Searched refs:d2 (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java295 GradientDrawable d2 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate() local
301 assertEquals(10, d2.getIntrinsicHeight()); in testMutate()
302 assertEquals(10, d2.getIntrinsicWidth()); in testMutate()
310 assertEquals(10, d2.getIntrinsicHeight()); in testMutate()
311 assertEquals(10, d2.getIntrinsicWidth()); in testMutate()
315 d2.setSize(40, 50); in testMutate()
318 assertEquals(50, d2.getIntrinsicHeight()); in testMutate()
319 assertEquals(40, d2.getIntrinsicWidth()); in testMutate()
DAnimatedVectorDrawableTest.java168 AnimatedVectorDrawable d2 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() local
170 int originalAlpha = d2.getAlpha(); in testMutate()
178 assertEquals(originalAlpha, d2.getAlpha()); in testMutate()
184 assertEquals(originalAlpha, d2.getAlpha()); in testMutate()
187 d2.setAlpha(0x20); in testMutate()
189 assertEquals(0x20, d2.getAlpha()); in testMutate()
DVectorDrawableTest.java272 VectorDrawable d2 = (VectorDrawable) resources.getDrawable(R.drawable.vector_icon_create); in testMutate() local
274 int originalAlpha = d2.getAlpha(); in testMutate()
278 assertEquals(0x80, d2.getAlpha()); in testMutate()
284 assertEquals(0x80, d2.getAlpha()); in testMutate()
287 d2.setAlpha(0x20); in testMutate()
289 assertEquals(0x20, d2.getAlpha()); in testMutate()
292 d2.setAlpha(originalAlpha); in testMutate()
DRotateDrawableTest.java214 RotateDrawable d2 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate() local
219 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
225 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
228 d2.setAlpha(50); in testMutate()
230 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
DScaleDrawableTest.java448 ScaleDrawable d2 = (ScaleDrawable) mContext.getDrawable(R.drawable.scaledrawable); in testMutate() local
453 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
459 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
462 d2.setAlpha(50); in testMutate()
464 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
DBitmapDrawableTest.java425 BitmapDrawable d2 = (BitmapDrawable) resources.getDrawable(R.drawable.testimage); in testMutate() local
430 assertEquals(100, d2.getPaint().getAlpha()); in testMutate()
436 assertEquals(100, d2.getPaint().getAlpha()); in testMutate()
438 d2.setAlpha(50); in testMutate()
440 assertEquals(50, d2.getPaint().getAlpha()); in testMutate()
DLevelListDrawableTest.java170 LevelListDrawable d2 = in testMutate() local
178 assertEquals(2, ((DrawableContainerState) d2.getConstantState()).getChildCount()); in testMutate()
DLayerDrawableTest.java217 Drawable d2 = new BitmapDrawable(); in testAccessDrawable() local
219 layerDrawable.setDrawableByLayerId(20, d2); in testAccessDrawable()
221 assertEquals(d2, layerDrawable.getDrawable(1)); in testAccessDrawable()
1558 LayerDrawable d2 = (LayerDrawable) mContext.getDrawable(R.drawable.layerdrawable); in testMutate() local
1564 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1565 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1567 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1573 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1574 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1578 d2.setAlpha(50); in testMutate()
[all …]
DStateListDrawableTest.java229 StateListDrawable d2 = in testMutate() local
237 assertEquals(255, ((BitmapDrawable) d2.getCurrent()).getPaint().getAlpha()); in testMutate()
DNinePatchDrawableTest.java339 NinePatchDrawable d2 = in testMutate() local
347 assertTrue(d2.getPaint().isDither()); in testMutate()
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java78 Drawable d2 = null; in testLoadIcon() local
85 d2 = mComponentInfo.loadIcon(pm); in testLoadIcon()
86 assertNotNull(d2); in testLoadIcon()
87 assertNotSame(d, d2); in testLoadIcon()
89 ((BitmapDrawable) d2).getBitmap()); in testLoadIcon()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dvector.rs8 double2 d2 = { 1.0, 2.0 };
61 _RS_ASSERT(d2.x == 2.99);
62 _RS_ASSERT(d2.y == 3.99);
DComputeTest.java79 Double2 d2 = new Double2(); in testJavaVectorTypes() local
80 d2.x = 1.0; in testJavaVectorTypes()
81 d2.y = 2.0; in testJavaVectorTypes()
82 d2 = new Double2(1.0, 2.0); in testJavaVectorTypes()
83 assertTrue(d2.x == 1.0); in testJavaVectorTypes()
84 assertTrue(d2.y == 2.0); in testJavaVectorTypes()
/cts/tests/tests/widget/src/android/widget/cts/
DProgressBarTest.java450 Drawable d2 = mContext.getResources().getDrawable(R.drawable.red); in testVerifyDrawable() local
456 assertFalse(mockProgressBar.verifyDrawable(d2)); in testVerifyDrawable()
459 mockProgressBar.setIndeterminateDrawable(d2); in testVerifyDrawable()
462 assertTrue(mockProgressBar.verifyDrawable(d2)); in testVerifyDrawable()
468 assertTrue(mockProgressBar.verifyDrawable(d2)); in testVerifyDrawable()
/cts/suite/cts/deviceTests/opengl/test/
DMatrixTest.cpp115 float* d2 = m2.mData; in TEST() local
124 d2[i] = i; in TEST()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java319 final double d2 = 10.07; in testGetDouble2() local
322 mBundle.putDouble(KEY, d2); in testGetDouble2()
323 assertEquals(d2, mBundle.getDouble(KEY, d1)); in testGetDouble2()
325 assertEquals(d2, mBundle.getDouble(KEY, d1)); in testGetDouble2()
DParcelTest.java69 int d2; in testAppendFrom() local
75 d2 = p.dataPosition(); in testAppendFrom()
77 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom()
233 byte[] d2 = new byte[c.length]; in testMarshall()
234 p2.readByteArray(d2); in testMarshall()
237 assertEquals(c[i], d2[i]); in testMarshall()
/cts/tests/tests/security/res/raw/
Dopenssl_heartbleed_test_cert.pem75 1e:b8:0e:d9:a7:3c:e6:ac:d2:3e:f7:c6:36:32:87:17:f4:b7:
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java459 Drawable d2 = mResources.getDrawable(R.drawable.pass); in testAccessBackground() local
466 view.setBackgroundDrawable(d2); in testAccessBackground()
467 assertEquals(d2, view.getBackground()); in testAccessBackground()
516 Drawable d2 = mResources.getDrawable(R.drawable.pass); in testVerifyDrawable() local
524 assertFalse(view.verifyDrawable(d2)); in testVerifyDrawable()
2435 final Drawable d2 = mResources.getDrawable(R.drawable.pass); in testInvalidateDrawable() local
2455 view.invalidateDrawable(d2); in testInvalidateDrawable()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dcrypto.js473 var d1 = BI_FV/yt, d2 = (1<<BI_F1)/yt, e = 1<<BI_F2;
487 var qd = (r_array[--i]==y0)?BI_DM:Math.floor(r_array[i]*d1+(r_array[i-1]+e)*d2);
/cts/tests/tests/media/assets/
DfileSequence1.ts2770 ju�<��4��P�Z%��t˂��%D8mK�e�0��+��O\�a!��s�t�2��d2�ɞ����݁�
Dsegment000001.ts2432 …'?����Ў��Z�"T�6�}�+Vp�?�X1�%� �X��5�y��ͮ�*�eb ���䛟���K�&�o��>�lߌ���d2�Y�$O3j�-�B\�v����7-…