/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedVectorDrawableTest.java | 172 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() local 175 int restoreAlpha = d1.getAlpha(); in testMutate() 184 d1.setAlpha(newAlpha); in testMutate() 185 assertEquals(newAlpha, d1.getAlpha()); in testMutate() 189 d1.mutate(); in testMutate() 190 d1.setAlpha(0x40); in testMutate() 191 assertEquals(0x40, d1.getAlpha()); in testMutate() 196 assertEquals(0x40, d1.getAlpha()); in testMutate() 207 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testGetOpacity() local 208 assertEquals("Default is translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity() [all …]
|
D | AnimatedVectorDrawableParameterizedTest.java | 215 final AnimatedVectorDrawable d1 = in testSingleFrameAnimation() local 226 imageView.setImageDrawable(d1); in testSingleFrameAnimation() 227 d1.start(); in testSingleFrameAnimation() 228 d1.stop(); in testSingleFrameAnimation() 229 d1.setBounds(0, 0, IMAGE_WIDTH, IMAGE_HEIGHT); in testSingleFrameAnimation() 231 d1.draw(canvas); in testSingleFrameAnimation() 242 final AnimatedVectorDrawable d1 = in testEmptyAnimatorSet() local 244 d1.registerAnimationCallback(callback); in testEmptyAnimatorSet() 249 imageView.setImageDrawable(d1); in testEmptyAnimatorSet() 250 d1.registerAnimationCallback(callback); in testEmptyAnimatorSet() [all …]
|
D | RotateDrawableTest.java | 292 RotateDrawable d1 = (RotateDrawable) mResources.getDrawable(R.drawable.rotatedrawable); in testMutate() local 296 int restoreAlpha = d1.getAlpha(); in testMutate() 300 d1.setAlpha(100); in testMutate() 301 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 305 d1.mutate(); in testMutate() 306 d1.setAlpha(200); in testMutate() 307 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 312 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | LevelListDrawableTest.java | 192 LevelListDrawable d1 = in testMutate() local 200 d1.addLevel(100, 200, mResources.getDrawable(R.drawable.testimage)); in testMutate() 201 assertEquals(3, ((DrawableContainerState) d1.getConstantState()).getChildCount()); in testMutate() 206 d1.mutate(); in testMutate()
|
D | VectorDrawableTest.java | 361 VectorDrawable d1 = (VectorDrawable) mResources.getDrawable(R.drawable.vector_icon_create); in testMutate() local 364 final int initialAlpha = d1.getAlpha(); in testMutate() 366 d1.mutate(); in testMutate() 367 d1.setAlpha(0x40); in testMutate() 368 assertEquals(0x40, d1.getAlpha()); in testMutate() 374 assertEquals(0x40, d1.getAlpha()); in testMutate()
|
D | ScaleDrawableTest.java | 479 ScaleDrawable d1 = (ScaleDrawable) mContext.getDrawable(R.drawable.scaledrawable); in testMutate() local 482 int restoreAlpha = d1.getAlpha(); in testMutate() 486 d1.setAlpha(100); in testMutate() 487 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 491 d1.mutate(); in testMutate() 492 d1.setAlpha(200); in testMutate() 493 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 498 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | BitmapDrawableTest.java | 536 BitmapDrawable d1 = (BitmapDrawable) resources.getDrawable(R.drawable.testimage); in testMutate() local 539 int restoreAlpha = d1.getAlpha(); in testMutate() 543 d1.setAlpha(100); in testMutate() 544 assertEquals(100, d1.getPaint().getAlpha()); in testMutate() 548 d1.mutate(); in testMutate() 549 d1.setAlpha(200); in testMutate() 550 assertEquals(200, d1.getPaint().getAlpha()); in testMutate() 554 assertEquals(200, d1.getPaint().getAlpha()); in testMutate()
|
D | GradientDrawableTest.java | 633 GradientDrawable d1 = in testMutate() local 640 d1.setSize(10, 10); in testMutate() 641 assertEquals(10, d1.getIntrinsicHeight()); in testMutate() 642 assertEquals(10, d1.getIntrinsicWidth()); in testMutate() 648 d1.mutate(); in testMutate() 649 d1.setSize(20, 30); in testMutate() 650 assertEquals(30, d1.getIntrinsicHeight()); in testMutate() 651 assertEquals(20, d1.getIntrinsicWidth()); in testMutate() 658 assertEquals(30, d1.getIntrinsicHeight()); in testMutate() 659 assertEquals(20, d1.getIntrinsicWidth()); in testMutate()
|
D | StateListDrawableTest.java | 398 StateListDrawable d1 = in testMutate() local 406 d1.getCurrent().setAlpha(100); in testMutate() 407 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate() 411 d1.mutate(); in testMutate()
|
D | LayerDrawableTest.java | 263 Drawable d1 = new ColorDrawable(Color.GREEN); in testAccessDrawable() local 265 layerDrawable.setDrawableByLayerId(10, d1); in testAccessDrawable() 267 assertEquals(d1, layerDrawable.getDrawable(0)); in testAccessDrawable() 270 assertFalse(layerDrawable.setDrawableByLayerId(30, d1)); in testAccessDrawable() 1647 LayerDrawable d1 = (LayerDrawable) mContext.getDrawable(R.drawable.layerdrawable); in testMutate() local 1650 int restoreAlpha = d1.getAlpha(); in testMutate() 1654 d1.setAlpha(100); in testMutate() 1655 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1656 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1662 d1.mutate(); in testMutate() [all …]
|
D | NinePatchDrawableTest.java | 406 NinePatchDrawable d1 = in testMutate() local 414 d1.setDither(false); in testMutate() 415 assertFalse(d1.getPaint().isDither()); in testMutate() 420 d1.mutate(); in testMutate()
|
D | AnimationDrawableTest.java | 344 AnimationDrawable d1 = (AnimationDrawable) mResources in testMutate() local 348 d1.mutate(); in testMutate()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/ |
D | AtomTestUtils.java | 176 StatsLog.EventMetricData d0, StatsLog.EventMetricData d1, in assertTimeDiffBetween() argument 178 long diffMs = (d1.getElapsedTimestampNanos() - d0.getElapsedTimestampNanos()) / 1_000_000; in assertTimeDiffBetween()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ProgressBarTest.java | 635 Drawable d1 = mActivity.getDrawable(R.drawable.blue); in testVerifyDrawable() local 639 mockProgressBar.setBackgroundDrawable(d1); in testVerifyDrawable() 640 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable() 645 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable() 650 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 378 final double d1 = 10.06; in testGetDouble2() local 381 assertEquals(d1, mBundle.getDouble(KEY1, d1), 0.0); 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 | 180 int d1; in testAppendFrom() local 184 d1 = p.dataPosition(); in testAppendFrom() 189 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom() 395 byte[] d1 = p1.marshall(); in testMarshall() 398 p2.unmarshall(d1, 0, d1.length); in testMarshall()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sparse_switch/d/ |
D | T_sparse_switch_12.dfh | 9 // parsed: offset 12, len 20: signature : 17df...83d1
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 863 Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testAccessBackground() local 868 view.setBackgroundDrawable(d1); in testAccessBackground() 869 assertEquals(d1, view.getBackground()); in testAccessBackground() 924 Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testVerifyDrawable() local 929 assertFalse(view.verifyDrawable(d1)); in testVerifyDrawable() 931 view.setBackgroundDrawable(d1); in testVerifyDrawable() 932 assertTrue(view.verifyDrawable(d1)); in testVerifyDrawable() 3458 final Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testInvalidateDrawable() local 3463 view.setBackgroundDrawable(d1); in testInvalidateDrawable() 3464 view.invalidateDrawable(d1); in testInvalidateDrawable()
|
/cts/tests/tests/security/res/raw/ |
D | cve_2019_2245.ts | 610 "��9�*3���g-p"��`^fڽ���Q�DG1�0,y����C�/� ��1��HG^I�/�ez'3��b�CĔb�p�]�>d1�մ�F��3… 6153 …U�wg��t�淞ЯD���/�/4���.z( �$o�D���QЁ��q`]���]���Ćrًd�(0��5� ���(�b�d1�eYHS��BR�5d$B����`S…
|
D | cve_2018_13925.ts | 611 "��9�*3���g-p"��`^fڽ���Q�DG1�0,y����C�/� ��1��HG^I�/�ez'3��b�CĔb�p�]�>d1�մ�F��3… 6612 d1�50�����j���M��a���efa�G�h�
|
D | cve_2019_2244.ts | 610 "��9�*3���g-p"��`^fڽ���Q�DG1�0,y����C�/� ��1��HG^I�/�ez'3��b�CĔb�p�]�>d1�մ�F��3… 6615 d1�50�����j���M��a���efa�G�h�
|