Home
last modified time | relevance | path

Searched refs:d1 (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableTest.java172 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 …]
DAnimatedVectorDrawableParameterizedTest.java215 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 …]
DRotateDrawableTest.java292 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()
DLevelListDrawableTest.java192 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()
DVectorDrawableTest.java361 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()
DScaleDrawableTest.java479 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()
DBitmapDrawableTest.java536 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()
DGradientDrawableTest.java633 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()
DStateListDrawableTest.java398 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()
DLayerDrawableTest.java263 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 …]
DNinePatchDrawableTest.java406 NinePatchDrawable d1 = in testMutate() local
414 d1.setDither(false); in testMutate()
415 assertFalse(d1.getPaint().isDither()); in testMutate()
420 d1.mutate(); in testMutate()
DAnimationDrawableTest.java344 AnimationDrawable d1 = (AnimationDrawable) mResources in testMutate() local
348 d1.mutate(); in testMutate()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DAtomTestUtils.java176 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/
DProgressBarTest.java635 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/
DBundleTest.java378 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()
DParcelTest.java180 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/
DT_sparse_switch_12.dfh9 // parsed: offset 12, len 20: signature : 17df...83d1
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java863 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/
Dcve_2019_2245.ts610 "��9���*3� ��g-p"��`^fڽ���Q�DG�1�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…
Dcve_2018_13925.ts611 "��9���*3� ��g-p"��`^fڽ���Q�DG�1�0,y����C�/� ��1��HG^I�/�ez'3��b�C�Ĕb�p�]�>d1�մ�F��3…
6612 d1�5 0�����j���M��a���efa�G�h�
Dcve_2019_2244.ts610 "��9���*3� ��g-p"��`^fڽ���Q�DG�1�0,y����C�/� ��1��HG^I�/�ez'3��b�C�Ĕb�p�]�>d1�մ�F��3…
6615 d1�5 0�����j���M��a���efa�G�h�