/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableContainerTest.java | 63 MockDrawable dr = new MockDrawable(); in testDraw() local 64 addAndSelectDrawable(dr); in testDraw() 66 dr.reset(); in testDraw() 68 assertTrue(dr.hasDrawCalled()); in testDraw() 70 dr.reset(); in testDraw() 72 assertTrue(dr.hasDrawCalled()); in testDraw() 101 DrawableContainer dr = mDrawableContainer; in testGetChangingConfigurations() local 118 dr.selectDrawable(0); in testGetChangingConfigurations() 129 DrawableContainer dr = mDrawableContainer; in testGetPadding() local 148 dr.selectDrawable(0); in testGetPadding() [all …]
|
D | AnimationDrawableTest.java | 313 AnimationDrawable dr = new AnimationDrawable(); in testInflateCorrect() local 314 dr.inflate(mResources, parser, Xml.asAttributeSet(parser)); in testInflateCorrect() 316 assertFalse(dr.isVisible()); in testInflateCorrect() 318 assertTrue(dr.isOneShot()); in testInflateCorrect() 321 (DrawableContainerState) dr.getConstantState(); in testInflateCorrect() 323 assertEquals(2, dr.getNumberOfFrames()); in testInflateCorrect() 324 assertEquals(2000, dr.getDuration(0)); in testInflateCorrect() 325 assertEquals(1000, dr.getDuration(1)); in testInflateCorrect() 326 assertSame(dr.getFrame(0), dr.getCurrent()); in testInflateCorrect() 331 AnimationDrawable dr = new AnimationDrawable(); in testInflateMissingDrawable() local [all …]
|
D | CustomDrawableTest.java | 40 Drawable dr = getContext().getDrawable(R.drawable.custom_drawable); in testInflation() local 41 assertTrue(dr instanceof CustomDrawable); in testInflation() 42 assertEquals(Color.RED, ((CustomDrawable) dr).getColor()); in testInflation()
|
D | RippleDrawableTest.java | 106 RippleDrawable dr = new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testSetColor() local 107 dr.setCallback(cb); in testSetColor() 109 dr.setColor(ColorStateList.valueOf(Color.BLACK)); in testSetColor() 110 verify(cb, times(1)).invalidateDrawable(dr); in testSetColor()
|
D | NinePatchDrawableTest.java | 395 void setTargetDensity(NinePatchDrawable dr, int density); in setTargetDensity() argument 461 public void setTargetDensity(NinePatchDrawable dr, int density) { in testSetTargetDensity() 462 dr.setTargetDensity(density); in testSetTargetDensity() 472 public void setTargetDensity(NinePatchDrawable dr, int density) { in testSetTargetDensity_Canvas() 475 dr.setTargetDensity(c); in testSetTargetDensity_Canvas() 485 public void setTargetDensity(NinePatchDrawable dr, int density) { in testSetTargetDensity_DisplayMetrics() 488 dr.setTargetDensity(dm); in testSetTargetDensity_DisplayMetrics() 638 private void compareOrSave(Drawable dr, int densityDpi, int sourceResId, int goldenResId) { in compareOrSave() argument 639 final int width = dr.getIntrinsicWidth(); in compareOrSave() 640 final int height = dr.getIntrinsicHeight(); in compareOrSave() [all …]
|
D | ClipDrawableTest.java | 131 MockDrawable dr; in testGetOpacity() local 134 dr = new MockDrawable(); in testGetOpacity() 135 dr.setOpacity(PixelFormat.OPAQUE); in testGetOpacity() 136 clipDrawable = new ClipDrawable(dr, Gravity.BOTTOM, ClipDrawable.HORIZONTAL); in testGetOpacity() 147 dr = new MockDrawable(); in testGetOpacity() 148 dr.setOpacity(PixelFormat.TRANSLUCENT); in testGetOpacity() 149 clipDrawable = new ClipDrawable(dr, Gravity.BOTTOM, ClipDrawable.HORIZONTAL); in testGetOpacity()
|
D | StateListDrawableTest.java | 68 StateListDrawable dr = mMockDrawable; in testAddState() local 74 dr.addState(StateSet.WILD_CARD, null); in testAddState() 80 dr.addState(StateSet.WILD_CARD, new MockDrawable()); in testAddState() 85 dr.addState(new int[] { attr.state_focused, - attr.state_selected }, new MockDrawable()); in testAddState() 92 dr.addState(null, new MockDrawable()); in testAddState()
|
D | ScaleDrawableTest.java | 301 ScaleDrawable dr = new ScaleDrawable(null, Gravity.CENTER, 1, 1); in testInitialLevel() local 307 dr.inflate(res, parser, attrs); in testInitialLevel() 308 assertEquals(5000, dr.getLevel()); in testInitialLevel() 310 dr.setLevel(0); in testInitialLevel() 311 assertEquals(0, dr.getLevel()); in testInitialLevel() 314 ScaleDrawable clone = (ScaleDrawable) dr.getConstantState().newDrawable(res); in testInitialLevel() 318 dr.setLevel(1000); in testInitialLevel() 319 assertEquals(1000, dr.getLevel()); in testInitialLevel()
|
D | DrawableContainerStateTest.java | 256 DrawableContainer dr = new LevelListDrawable(); in testCanConstantState() local 257 DrawableContainerState cs = (DrawableContainerState) dr.getConstantState(); in testCanConstantState() 265 DrawableContainer dr = new LevelListDrawable(); in testGrowArray() local 266 DrawableContainerState cs = (DrawableContainerState) dr.getConstantState(); in testGrowArray()
|
D | LayerDrawableTest.java | 1445 LayerDrawable dr; in testChildIntrinsicSize() local 1448 dr = (LayerDrawable) getContext().getDrawable(R.drawable.layer_drawable_intrinsic); in testChildIntrinsicSize() 1449 assertEquals(-1, dr.getIntrinsicWidth()); in testChildIntrinsicSize() 1450 assertEquals(-1, dr.getIntrinsicHeight()); in testChildIntrinsicSize() 1453 dr = new LayerDrawable(new Drawable[] { new ColorDrawable(Color.RED) }); in testChildIntrinsicSize() 1454 dr.setLayerInset(0, 10, 10, 10, 10); in testChildIntrinsicSize() 1455 assertEquals(-1, dr.getIntrinsicWidth()); in testChildIntrinsicSize() 1456 assertEquals(-1, dr.getIntrinsicHeight()); in testChildIntrinsicSize() 1459 dr = (LayerDrawable) getContext().getDrawable(R.drawable.layer_drawable_intrinsic_mixed); in testChildIntrinsicSize() 1460 int width = dr.getLayerInsetLeft(0) + dr.getLayerInsetRight(0) in testChildIntrinsicSize() [all …]
|
D | BitmapDrawableTest.java | 579 private void compareOrSave(Drawable dr, int densityDpi, int sourceResId, int goldenResId) { in compareOrSave() argument 580 final int width = dr.getIntrinsicWidth(); in compareOrSave() 581 final int height = dr.getIntrinsicHeight(); in compareOrSave() 586 dr.setBounds(0, 0, width, height); in compareOrSave() 587 dr.draw(canvas); in compareOrSave()
|
D | DrawableWrapperTest.java | 37 public MyWrapper(Drawable dr) { in MyWrapper() argument 38 super(dr); in MyWrapper()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | Resources_ThemeTest.java | 150 final ColorDrawable dr = (ColorDrawable) theme.getDrawable(R.drawable.colordrawable_themed); in testGetDrawable() local 151 assertEquals(Color.BLACK, dr.getColor()); in testGetDrawable()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 106 final int dr = getAlphaScaledRed(p1) - getAlphaScaledRed(p2); in compare() local 112 Math.abs(dr) > threshold) { in compare()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ImageViewTest.java | 646 protected boolean verifyDrawable(Drawable dr) { in verifyDrawable() argument 647 return super.verifyDrawable(dr); in verifyDrawable()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecoderTest.java | 2822 for (DecodeRunnable dr : runnables) { 2823 assertTrue("Expected to decode " + frames + " frames, found " + dr.getFrames(), 2824 frames == dr.getFrames()); 2827 for (DecodeRunnable dr : runnables) { 2828 Log.d(TAG, "Decoded at " + dr.getMeasuredFps()); 2829 assertTrue("Expected to decode at " + fps + " fps, measured " + dr.getMeasuredFps(), 2830 fps < dr.getMeasuredFps());
|
/cts/tests/tests/media/assets/ |
D | fileSequence1.ts | 3431 �K�G���dr���q����� �A���ld4�&41���;Ld�.�_�0L�t;8�"��
|
D | segment000001.ts | 282 �6�*�Qldr
|
/cts/tests/tests/media/res/raw/ |
D | football_qvga.yuv | 19 …ddedccbccccdddeedddddddcccddcaa]TMIKRVVStqqssrqqspoppoonmmkhlolheeefhmsskd`dr}�����}uiWJBA<.,-/4… 41 …ttsqRSTRPQRPPRSPPQTK:14<CILRWbs���������������������ή}^bjlooonkkkiijikjc^]\dr����������ihm|�~~��{… 55 …?IQ[ckv������������������Ϲ�qjr_Xfljijfb`^\]adgeceggkmkjz����������{pe^`fle\dr|zmix����������������… 63 …�}voni`\^ZJ@BFIJHFFEFGFFDCCCC?@JPVYVS`}���������x0>�͚A?�����������������~d^dr{{{ysolkjkklligfdegkn… 88 …|zyxsssromkihghiifhqvriaREFHDDFFFDA:6536<?B=:CP]dhhgfegecdffhjklkhgjkb[[YZ^dr|}yrkgotolie^fzY"��>1… 114 …>?>:1-K~�����~t^SXWU\^bfhmkijmliifeiebhq~��������������������vlhd^\XMCBFPY^dr~~}tai����m88v�����{… 119 …liijihimlnqrpoopronqssqqrpsqlllljiiid\`t�}d`^PDBCA;X�{h__^kuY.1stZRGILKPU[dr~���������������{vsnh… 122 …nnopqqnmjfegijknpnkiillmoqqooqnnzvV>@GCM[NGN[_Xk��������������������������шdr������ǎV-!&CZ\TCMclng… 130 …swvusmhea^XSSPNQSSUVUTUSRZdkstqnkkkkmnoonidefejostttqnkijghgcc`]\^^`bdddfe`dr|ztstwwojjq���������… 187 …HPRc~�|gTJJJJLMTX\]\_`_aceeaa`]][VVSRTMDCIKD=9881058BVblw|�����������������dr��jkjechnrvvro������o… [all …]
|
D | testmp3_3.raw | 1 …BEYEG7fCiACAACAMyWb8CSTUCK4CmOcSelCEv7/6cKl6ixuCpLoFC93URXoYeL2830PTPX0Pb1+dr/t6v/5v26V56v1k40jQc/…
|