/cts/tests/tests/widget/src/android/widget/cts/ |
D | ProgressBarDrawableContainerTest.java | 68 DrawableContainer d2 = (DrawableContainer) newBar.getIndeterminateDrawable(); in testMutate() local 69 boolean newMirrored = d2.isAutoMirrored(); in testMutate()
|
D | ProgressBarTest.java | 636 Drawable d2 = mActivity.getDrawable(R.drawable.red); in testVerifyDrawable() local 641 assertFalse(mockProgressBar.verifyDrawable(d2)); in testVerifyDrawable() 644 mockProgressBar.setIndeterminateDrawable(d2); in testVerifyDrawable() 646 assertTrue(mockProgressBar.verifyDrawable(d2)); in testVerifyDrawable() 651 assertTrue(mockProgressBar.verifyDrawable(d2)); in testVerifyDrawable()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedVectorDrawableTest.java | 173 AnimatedVectorDrawable d2 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() local 178 int originalAlpha = d2.getAlpha(); in testMutate() 186 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 192 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 195 d2.setAlpha(0x20); in testMutate() 197 assertEquals(0x20, d2.getAlpha()); in testMutate()
|
D | RotateDrawableTest.java | 293 RotateDrawable d2 = (RotateDrawable) mResources.getDrawable(R.drawable.rotatedrawable); in testMutate() local 302 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 308 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 311 d2.setAlpha(50); in testMutate() 313 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | VectorDrawableTest.java | 362 VectorDrawable d2 = (VectorDrawable) mResources.getDrawable(R.drawable.vector_icon_create); in testMutate() local 369 assertEquals(initialAlpha, d2.getAlpha()); in testMutate() 372 d2.mutate(); in testMutate() 373 d2.setAlpha(0x20); in testMutate() 375 assertEquals(0x20, d2.getAlpha()); in testMutate()
|
D | GradientDrawableTest.java | 635 GradientDrawable d2 = in testMutate() local 643 assertEquals(10, d2.getIntrinsicHeight()); in testMutate() 644 assertEquals(10, d2.getIntrinsicWidth()); in testMutate() 652 assertEquals(10, d2.getIntrinsicHeight()); in testMutate() 653 assertEquals(10, d2.getIntrinsicWidth()); in testMutate() 657 d2.setSize(40, 50); in testMutate() 660 assertEquals(50, d2.getIntrinsicHeight()); in testMutate() 661 assertEquals(40, d2.getIntrinsicWidth()); in testMutate()
|
D | ScaleDrawableTest.java | 480 ScaleDrawable d2 = (ScaleDrawable) mContext.getDrawable(R.drawable.scaledrawable); in testMutate() local 488 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 494 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 497 d2.setAlpha(50); in testMutate() 499 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | BitmapDrawableTest.java | 537 BitmapDrawable d2 = (BitmapDrawable) resources.getDrawable(R.drawable.testimage); in testMutate() local 545 assertEquals(100, d2.getPaint().getAlpha()); in testMutate() 551 assertEquals(100, d2.getPaint().getAlpha()); in testMutate() 553 d2.setAlpha(50); in testMutate() 555 assertEquals(50, d2.getPaint().getAlpha()); in testMutate()
|
D | LevelListDrawableTest.java | 194 LevelListDrawable d2 = in testMutate() local 202 assertEquals(2, ((DrawableContainerState) d2.getConstantState()).getChildCount()); in testMutate()
|
D | LayerDrawableTest.java | 264 Drawable d2 = new BitmapDrawable(); in testAccessDrawable() local 266 layerDrawable.setDrawableByLayerId(20, d2); in testAccessDrawable() 268 assertEquals(d2, layerDrawable.getDrawable(1)); in testAccessDrawable() 1648 LayerDrawable d2 = (LayerDrawable) mContext.getDrawable(R.drawable.layerdrawable); in testMutate() local 1657 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1658 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1660 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1666 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1667 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1671 d2.setAlpha(50); in testMutate() [all …]
|
D | StateListDrawableTest.java | 400 StateListDrawable d2 = in testMutate() local 408 assertEquals(255, ((BitmapDrawable) d2.getCurrent()).getPaint().getAlpha()); in testMutate()
|
D | NinePatchDrawableTest.java | 408 NinePatchDrawable d2 = in testMutate() local 416 assertTrue(d2.getPaint().isDither()); in testMutate()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ComponentInfoTest.java | 122 Drawable d2 = null; in testLoadIcon() local 128 d2 = mComponentInfo.loadIcon(pm); in testLoadIcon() 129 assertNotNull(d2); in testLoadIcon() 130 assertNotSame(d, d2); in testLoadIcon() 131 WidgetTestUtils.assertEquals(createIconBitmap(d), createIconBitmap(d2)); in testLoadIcon()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | vector.rscript | 8 double2 d2 = { 1.0, 2.0 }; 61 _RS_ASSERT(d2.x == 2.99); 62 _RS_ASSERT(d2.y == 3.99);
|
D | ComputeTest.java | 79 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/security/res/raw/ |
D | openssl_heartbleed_test_cert.pem | 75 1e:b8:0e:d9:a7:3c:e6:ac:d2:3e:f7:c6:36:32:87:17:f4:b7:
|
D | drm_uaf.dm | 235 G�Y/�S�FQ�`<�"x���� 8��Y�o���U�d2�`[�<�)�+z>��/|��9�&����:�H�
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 379 final double d2 = 10.07; in testGetDouble2() local 382 mBundle.putDouble(KEY1, d2); in testGetDouble2() 383 assertEquals(d2, mBundle.getDouble(KEY1, d1), 0.0); in testGetDouble2() 385 assertEquals(d2, mBundle.getDouble(KEY1, d1), 0.0); in testGetDouble2()
|
D | ParcelTest.java | 181 int d2; in testAppendFrom() local 187 d2 = p.dataPosition(); in testAppendFrom() 189 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom() 400 byte[] d2 = new byte[c.length]; in testMarshall() 401 p2.readByteArray(d2); in testMarshall() 404 assertEquals(c[i], d2[i]); in testMarshall()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 864 Drawable d2 = mResources.getDrawable(R.drawable.pass); in testAccessBackground() local 871 view.setBackgroundDrawable(d2); in testAccessBackground() 872 assertEquals(d2, view.getBackground()); in testAccessBackground() 925 Drawable d2 = mResources.getDrawable(R.drawable.pass); in testVerifyDrawable() local 933 assertFalse(view.verifyDrawable(d2)); in testVerifyDrawable() 3459 final Drawable d2 = mResources.getDrawable(R.drawable.pass); in testInvalidateDrawable() local 3470 mActivityRule.runOnUiThread(() -> view.invalidateDrawable(d2)); in testInvalidateDrawable()
|