/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedVectorDrawableTest.java | 152 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() local 155 int restoreAlpha = d1.getAlpha(); in testMutate() 164 d1.setAlpha(newAlpha); in testMutate() 165 assertEquals(newAlpha, d1.getAlpha()); in testMutate() 169 d1.mutate(); in testMutate() 170 d1.setAlpha(0x40); in testMutate() 171 assertEquals(0x40, d1.getAlpha()); in testMutate() 176 assertEquals(0x40, d1.getAlpha()); in testMutate() 187 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testGetOpacity() local 188 assertEquals("Default is translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity() [all …]
|
D | AnimatedVectorDrawableParameterizedTest.java | 208 final AnimatedVectorDrawable d1 = in testSingleFrameAnimation() local 219 imageView.setImageDrawable(d1); in testSingleFrameAnimation() 220 d1.start(); in testSingleFrameAnimation() 221 d1.stop(); in testSingleFrameAnimation() 222 d1.setBounds(0, 0, IMAGE_WIDTH, IMAGE_HEIGHT); in testSingleFrameAnimation() 224 d1.draw(canvas); in testSingleFrameAnimation() 236 final AnimatedVectorDrawable d1 = in testEmptyAnimatorSet() local 238 d1.registerAnimationCallback(callback); in testEmptyAnimatorSet() 243 imageView.setImageDrawable(d1); in testEmptyAnimatorSet() 244 d1.registerAnimationCallback(callback); in testEmptyAnimatorSet() [all …]
|
D | RotateDrawableTest.java | 291 RotateDrawable d1 = (RotateDrawable) mResources.getDrawable(R.drawable.rotatedrawable); in testMutate() local 295 int restoreAlpha = d1.getAlpha(); in testMutate() 299 d1.setAlpha(100); in testMutate() 300 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 304 d1.mutate(); in testMutate() 305 d1.setAlpha(200); in testMutate() 306 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 311 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | GradientDrawableTest.java | 496 GradientDrawable d1 = in testMutate() local 503 d1.setSize(10, 10); in testMutate() 504 assertEquals(10, d1.getIntrinsicHeight()); in testMutate() 505 assertEquals(10, d1.getIntrinsicWidth()); in testMutate() 511 d1.mutate(); in testMutate() 512 d1.setSize(20, 30); in testMutate() 513 assertEquals(30, d1.getIntrinsicHeight()); in testMutate() 514 assertEquals(20, d1.getIntrinsicWidth()); in testMutate() 521 assertEquals(30, d1.getIntrinsicHeight()); in testMutate() 522 assertEquals(20, d1.getIntrinsicWidth()); in testMutate()
|
D | VectorDrawableTest.java | 351 VectorDrawable d1 = (VectorDrawable) mResources.getDrawable(R.drawable.vector_icon_create); in testMutate() local 354 int restoreAlpha = d1.getAlpha(); in testMutate() 358 d1.setAlpha(0x80); in testMutate() 359 assertEquals(0x80, d1.getAlpha()); in testMutate() 363 d1.mutate(); in testMutate() 364 d1.setAlpha(0x40); in testMutate() 365 assertEquals(0x40, d1.getAlpha()); in testMutate() 375 assertEquals(0x40, d1.getAlpha()); in testMutate()
|
D | LevelListDrawableTest.java | 191 LevelListDrawable d1 = in testMutate() local 199 d1.addLevel(100, 200, mResources.getDrawable(R.drawable.testimage)); in testMutate() 200 assertEquals(3, ((DrawableContainerState) d1.getConstantState()).getChildCount()); in testMutate() 205 d1.mutate(); in testMutate()
|
D | ScaleDrawableTest.java | 478 ScaleDrawable d1 = (ScaleDrawable) mContext.getDrawable(R.drawable.scaledrawable); in testMutate() local 481 int restoreAlpha = d1.getAlpha(); in testMutate() 485 d1.setAlpha(100); in testMutate() 486 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 490 d1.mutate(); in testMutate() 491 d1.setAlpha(200); in testMutate() 492 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 497 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | BitmapDrawableTest.java | 513 BitmapDrawable d1 = (BitmapDrawable) resources.getDrawable(R.drawable.testimage); in testMutate() local 516 int restoreAlpha = d1.getAlpha(); in testMutate() 520 d1.setAlpha(100); in testMutate() 521 assertEquals(100, d1.getPaint().getAlpha()); in testMutate() 525 d1.mutate(); in testMutate() 526 d1.setAlpha(200); in testMutate() 527 assertEquals(200, d1.getPaint().getAlpha()); in testMutate() 531 assertEquals(200, d1.getPaint().getAlpha()); in testMutate()
|
D | StateListDrawableTest.java | 333 StateListDrawable d1 = in testMutate() local 341 d1.getCurrent().setAlpha(100); in testMutate() 342 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate() 346 d1.mutate(); in testMutate()
|
D | LayerDrawableTest.java | 262 Drawable d1 = new ColorDrawable(Color.GREEN); in testAccessDrawable() local 264 layerDrawable.setDrawableByLayerId(10, d1); in testAccessDrawable() 266 assertEquals(d1, layerDrawable.getDrawable(0)); in testAccessDrawable() 269 assertFalse(layerDrawable.setDrawableByLayerId(30, d1)); in testAccessDrawable() 1636 LayerDrawable d1 = (LayerDrawable) mContext.getDrawable(R.drawable.layerdrawable); in testMutate() local 1639 int restoreAlpha = d1.getAlpha(); in testMutate() 1643 d1.setAlpha(100); in testMutate() 1644 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1645 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1651 d1.mutate(); in testMutate() [all …]
|
D | NinePatchDrawableTest.java | 394 NinePatchDrawable d1 = in testMutate() local 402 d1.setDither(false); in testMutate() 403 assertFalse(d1.getPaint().isDither()); in testMutate() 408 d1.mutate(); in testMutate()
|
D | AnimationDrawableTest.java | 319 AnimationDrawable d1 = (AnimationDrawable) mResources in testMutate() local 323 d1.mutate(); in testMutate()
|
/cts/tests/openglperf2/test/ |
D | MatrixTest.cpp | 63 float* d1 = m1.mData; in TEST() local 68 d1[i] = i; in TEST() 114 float* d1 = m1.mData; in TEST() local 123 d1[i] = i; in TEST()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | DragDropTest.java | 66 private static boolean equal(ClipDescription d1, ClipDescription d2) { in equal() argument 67 if ((d1 == null) != (d2 == null)) { in equal() 70 if (d1 == null) { in equal() 73 return d1.getLabel().equals(d2.getLabel()) && in equal() 74 d1.getMimeTypeCount() == 1 && d2.getMimeTypeCount() == 1 && in equal() 75 d1.getMimeType(0).equals(d2.getMimeType(0)); in equal() 85 private static boolean equal(ClipData d1, ClipData d2) { in equal() argument 86 if ((d1 == null) != (d2 == null)) { in equal() 89 if (d1 == null) { in equal() 92 return equal(d1.getDescription(), d2.getDescription()) && in equal() [all …]
|
D | ViewTest.java | 650 Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testAccessBackground() local 655 view.setBackgroundDrawable(d1); in testAccessBackground() 656 assertEquals(d1, view.getBackground()); in testAccessBackground() 711 Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testVerifyDrawable() local 716 assertFalse(view.verifyDrawable(d1)); in testVerifyDrawable() 718 view.setBackgroundDrawable(d1); in testVerifyDrawable() 719 assertTrue(view.verifyDrawable(d1)); in testVerifyDrawable() 2837 final Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testInvalidateDrawable() local 2842 view.setBackgroundDrawable(d1); in testInvalidateDrawable() 2843 view.invalidateDrawable(d1); in testInvalidateDrawable()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ProgressBarTest.java | 518 Drawable d1 = mActivity.getDrawable(R.drawable.blue); in testVerifyDrawable() local 522 mockProgressBar.setBackgroundDrawable(d1); in testVerifyDrawable() 523 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable() 528 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable() 533 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 318 final double d1 = 10.06; in testGetDouble2() local 321 assertEquals(d1, mBundle.getDouble(KEY, d1)); in testGetDouble2() 323 assertEquals(d2, mBundle.getDouble(KEY, d1)); in testGetDouble2() 325 assertEquals(d2, mBundle.getDouble(KEY, d1)); in testGetDouble2()
|
D | ParcelTest.java | 68 int d1; in testAppendFrom() local 72 d1 = p.dataPosition(); in testAppendFrom() 77 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom() 228 byte[] d1 = p1.marshall(); in testMarshall() 231 p2.unmarshall(d1, 0, d1.length); in testMarshall()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | ResultHandler.java | 554 Collections.sort(directoryList, (d1, d2) -> d1.getName().compareTo(d2.getName())); in getResultDirectories()
|
/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/media/assets/ |
D | fileSequence0.ts | 1807 …��mq�[<�`�|��%�.5-T���̛�>^+��9��MI�cR�C���Wg.��=��l2��.G���ӯ͡]��d1�TO�Q���D ��H��p�…
|
D | segment000000.ts | 4660 J�.�e�^]>=��v[x�T���F�d1`Y�Y�h)3s��y�����el��1�>�(�_4��g������M6���ݑ�+��v����GI��…
|
/cts/tests/tests/media/res/raw/ |
D | football_qvga.yuv | 56 …xwspmjhbaaejhikie_aegjnrqpppnqsrtuuutvvttusstttuxxwwyywutrqomjjj%1?D:6^d1-76329A:/38535:0/[|r… 82 …��tbX[_^^^_\\_behhgfeeefggghkjgihaa`\__^`epvx{������������������������}xst�d1+(?`\HXrppqokjiikjmon… 99 …87543744422.-,.4.)Pz~jNUz��������������Ҟa64\�������������������������������d1+r����w����I,,*! &+.+… 113 …_aacgjlnmorqstlhjov{|yz|�~wz�����������\Y���yV_����������{wusplid^^bhsu��d1+54( $"*NMARROQLMQWSK… 176 …kiea^YZ]dlpqonjhfebdhjhc[\m{���~}��vw�������������������yeH+(Ifjo}��nJr��d1`����������c@,-/47598… 273 …q^=&)"1Ypkcchv��wlmpjm�����h���f(.5:=<Rj]VZ\[ph2$)#+Qmxodejijoomq}{w{�d1#""Hojdcgxm9!"$')…
|