Home
last modified time | relevance | path

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

123

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableTest.java163 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() local
166 int restoreAlpha = d1.getAlpha(); in testMutate()
175 d1.setAlpha(newAlpha); in testMutate()
176 assertEquals(newAlpha, d1.getAlpha()); in testMutate()
180 d1.mutate(); in testMutate()
181 d1.setAlpha(0x40); in testMutate()
182 assertEquals(0x40, d1.getAlpha()); in testMutate()
187 assertEquals(0x40, d1.getAlpha()); in testMutate()
198 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testGetOpacity() local
199 assertEquals("Default is translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity()
[all …]
DAnimatedVectorDrawableParameterizedTest.java208 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()
235 final AnimatedVectorDrawable d1 = in testEmptyAnimatorSet() local
237 d1.registerAnimationCallback(callback); in testEmptyAnimatorSet()
242 imageView.setImageDrawable(d1); in testEmptyAnimatorSet()
243 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()
DVectorDrawableTest.java350 VectorDrawable d1 = (VectorDrawable) mResources.getDrawable(R.drawable.vector_icon_create); in testMutate() local
353 int restoreAlpha = d1.getAlpha(); in testMutate()
357 d1.setAlpha(0x80); in testMutate()
358 assertEquals(0x80, d1.getAlpha()); in testMutate()
362 d1.mutate(); in testMutate()
363 d1.setAlpha(0x40); in testMutate()
364 assertEquals(0x40, d1.getAlpha()); in testMutate()
374 assertEquals(0x40, d1.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()
DGradientDrawableTest.java630 GradientDrawable d1 = in testMutate() local
637 d1.setSize(10, 10); in testMutate()
638 assertEquals(10, d1.getIntrinsicHeight()); in testMutate()
639 assertEquals(10, d1.getIntrinsicWidth()); in testMutate()
645 d1.mutate(); in testMutate()
646 d1.setSize(20, 30); in testMutate()
647 assertEquals(30, d1.getIntrinsicHeight()); in testMutate()
648 assertEquals(20, d1.getIntrinsicWidth()); in testMutate()
655 assertEquals(30, d1.getIntrinsicHeight()); in testMutate()
656 assertEquals(20, d1.getIntrinsicWidth()); 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()
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.java336 AnimationDrawable d1 = (AnimationDrawable) mResources in testMutate() local
340 d1.mutate(); in testMutate()
/cts/tests/openglperf2/test/
DMatrixTest.cpp63 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/widget/src/android/widget/cts/
DProgressBarTest.java623 Drawable d1 = mActivity.getDrawable(R.drawable.blue); in testVerifyDrawable() local
627 mockProgressBar.setBackgroundDrawable(d1); in testVerifyDrawable()
628 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable()
633 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable()
638 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java321 final double d1 = 10.06; in testGetDouble2() local
324 assertEquals(d1, mBundle.getDouble(KEY, d1)); in testGetDouble2()
326 assertEquals(d2, mBundle.getDouble(KEY, d1)); in testGetDouble2()
328 assertEquals(d2, mBundle.getDouble(KEY, d1)); in testGetDouble2()
DParcelTest.java82 int d1; in testAppendFrom() local
86 d1 = p.dataPosition(); in testAppendFrom()
91 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom()
242 byte[] d1 = p1.marshall(); in testMarshall()
245 p2.unmarshall(d1, 0, d1.length); in testMarshall()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DAtomTestCase.java888 public static void assertTimeDiffBetween(EventMetricData d0, EventMetricData d1, in assertTimeDiffBetween() argument
890 long diffMs = (d1.getElapsedTimestampNanos() - d0.getElapsedTimestampNanos()) / 1_000_000; in assertTimeDiffBetween()
/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.java844 Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testAccessBackground() local
849 view.setBackgroundDrawable(d1); in testAccessBackground()
850 assertEquals(d1, view.getBackground()); in testAccessBackground()
905 Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testVerifyDrawable() local
910 assertFalse(view.verifyDrawable(d1)); in testVerifyDrawable()
912 view.setBackgroundDrawable(d1); in testVerifyDrawable()
913 assertTrue(view.verifyDrawable(d1)); in testVerifyDrawable()
3264 final Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testInvalidateDrawable() local
3269 view.setBackgroundDrawable(d1); in testInvalidateDrawable()
3270 view.invalidateDrawable(d1); in testInvalidateDrawable()
/cts/tests/tests/media/assets/hls_variant/387360/
D18.ts172 …"aʬ;���r�oP�P����+ �x'Kb/�5����q�p���� �c��͘��J��g摦:oV�[��gD�������d1�yGs��׷���O��?%����P…
D17.ts370 …�����������������������������������������GA������!�c���� �����ԓ�d1�{(%k�����Ki���9…
1203 1��ѱ��� ���A�2zR&��e�����v��?[+n����d1�F�zӦ�D�.���q&/2Y[�A�6X|�Of�ӗ�j-��ǯX�ԅ��r�� F��K�…
D09.ts84 …��mG���P��1��P��~��� �/��wR�)����DԓGb��nDc,�T�v��sgQJB��n����\����@D*d1�?F@z\���Ӄw���]U�5Xe
/cts/tests/tests/media/assets/hls_variant/165340/
D19.ts330 …q�ǿ!"�����޳��~C�!�@y�&�ոz��I�:�-�d1 ؁"� />�E���؀;)����G�¼i�=@�݆���P��j`w�0�…
D21.ts137 …4g[E���:_�k�tt��2+��S�uidfG�0޿F�� L�'t��� �7C�L�6O� ��hzg�7���d1�a���O��|t�Ba����j…
/cts/tests/tests/media/assets/hls_variant/765178/
D23.ts61 W�,�]���=BG�*�a@_�����O����� %aa��Z��TZX�d1� �S�)=���fx�E
1669 [�ZI5� "tV�>�+�z5��`����ZL�K������4��T�@��d1�pG$�Z��Yq���e\���Q���G�0���������������������…
1873 …f��f� G��_�D�H4�p�����tYZ����w&T���L�q�#93���~;��k��3���Ms��6|�,6B�od1�& !���¥�b�<�^�\���…
2964 �縫�5�n&��;2`߉�2��n��7�¼OSN3�nŒY��uKP����~�Nݳ�:X ��}��)��/ W���d1�k�mG�����uʼ\^��4l�a�ٍ�…

123