Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableTest.java167 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() local
176 d1.setAlpha(newAlpha); in testMutate()
177 assertEquals(newAlpha, d1.getAlpha()); in testMutate()
181 d1.mutate(); in testMutate()
182 d1.setAlpha(0x40); in testMutate()
183 assertEquals(0x40, d1.getAlpha()); in testMutate()
188 assertEquals(0x40, d1.getAlpha()); in testMutate()
194 final AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testReset() local
199 d1.reset(); in testReset()
200 assertFalse(d1.isRunning()); in testReset()
[all …]
DGradientDrawableTest.java294 GradientDrawable d1 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate() local
298 d1.setSize(10, 10); in testMutate()
299 assertEquals(10, d1.getIntrinsicHeight()); in testMutate()
300 assertEquals(10, d1.getIntrinsicWidth()); in testMutate()
306 d1.mutate(); in testMutate()
307 d1.setSize(20, 30); in testMutate()
308 assertEquals(30, d1.getIntrinsicHeight()); in testMutate()
309 assertEquals(20, d1.getIntrinsicWidth()); in testMutate()
316 assertEquals(30, d1.getIntrinsicHeight()); in testMutate()
317 assertEquals(20, d1.getIntrinsicWidth()); in testMutate()
DRotateDrawableTest.java213 RotateDrawable d1 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate() local
217 d1.setAlpha(100); in testMutate()
218 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
222 d1.mutate(); in testMutate()
223 d1.setAlpha(200); in testMutate()
224 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
229 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
DVectorDrawableTest.java271 VectorDrawable d1 = (VectorDrawable) resources.getDrawable(R.drawable.vector_icon_create); in testMutate() local
276 d1.setAlpha(0x80); in testMutate()
277 assertEquals(0x80, d1.getAlpha()); in testMutate()
281 d1.mutate(); in testMutate()
282 d1.setAlpha(0x40); in testMutate()
283 assertEquals(0x40, d1.getAlpha()); in testMutate()
288 assertEquals(0x40, d1.getAlpha()); in testMutate()
DLevelListDrawableTest.java168 LevelListDrawable d1 = in testMutate() local
176 d1.addLevel(100, 200, resources.getDrawable(R.drawable.testimage)); in testMutate()
177 assertEquals(3, ((DrawableContainerState) d1.getConstantState()).getChildCount()); in testMutate()
182 d1.mutate(); in testMutate()
DStateListDrawableTest.java227 StateListDrawable d1 = in testMutate() local
235 d1.getCurrent().setAlpha(100); in testMutate()
236 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate()
240 d1.mutate(); in testMutate()
DScaleDrawableTest.java447 ScaleDrawable d1 = (ScaleDrawable) mContext.getDrawable(R.drawable.scaledrawable); in testMutate() local
451 d1.setAlpha(100); in testMutate()
452 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
456 d1.mutate(); in testMutate()
457 d1.setAlpha(200); in testMutate()
458 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
463 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
DBitmapDrawableTest.java424 BitmapDrawable d1 = (BitmapDrawable) resources.getDrawable(R.drawable.testimage); in testMutate() local
428 d1.setAlpha(100); in testMutate()
429 assertEquals(100, d1.getPaint().getAlpha()); in testMutate()
433 d1.mutate(); in testMutate()
434 d1.setAlpha(200); in testMutate()
435 assertEquals(200, d1.getPaint().getAlpha()); in testMutate()
439 assertEquals(200, d1.getPaint().getAlpha()); in testMutate()
DNinePatchDrawableTest.java337 NinePatchDrawable d1 = in testMutate() local
345 d1.setDither(false); in testMutate()
346 assertFalse(d1.getPaint().isDither()); in testMutate()
351 d1.mutate(); in testMutate()
DLayerDrawableTest.java216 Drawable d1 = new ColorDrawable(Color.GREEN); in testAccessDrawable() local
218 layerDrawable.setDrawableByLayerId(10, d1); in testAccessDrawable()
220 assertEquals(d1, layerDrawable.getDrawable(0)); in testAccessDrawable()
223 assertFalse(layerDrawable.setDrawableByLayerId(30, d1)); in testAccessDrawable()
1557 LayerDrawable d1 = (LayerDrawable) mContext.getDrawable(R.drawable.layerdrawable); in testMutate() local
1561 d1.setAlpha(100); in testMutate()
1562 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1563 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1569 d1.mutate(); in testMutate()
1570 d1.setAlpha(200); in testMutate()
[all …]
DAnimationDrawableTest.java343 AnimationDrawable d1 = (AnimationDrawable) mResources in testMutate() local
347 d1.mutate(); in testMutate()
/cts/suite/cts/deviceTests/opengl/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.java449 Drawable d1 = mContext.getResources().getDrawable(R.drawable.blue); in testVerifyDrawable() local
453 mockProgressBar.setBackgroundDrawable(d1); in testVerifyDrawable()
455 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable()
461 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable()
467 assertTrue(mockProgressBar.verifyDrawable(d1)); in testVerifyDrawable()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java318 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()
DParcelTest.java68 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/tests/tests/view/src/android/view/cts/
DViewTest.java458 Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testAccessBackground() local
463 view.setBackgroundDrawable(d1); in testAccessBackground()
464 assertEquals(d1, view.getBackground()); in testAccessBackground()
515 Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testVerifyDrawable() local
520 assertFalse(view.verifyDrawable(d1)); in testVerifyDrawable()
522 view.setBackgroundDrawable(d1); in testVerifyDrawable()
523 assertTrue(view.verifyDrawable(d1)); in testVerifyDrawable()
2434 final Drawable d1 = mResources.getDrawable(R.drawable.scenery); in testInvalidateDrawable() local
2440 view.setBackgroundDrawable(d1); in testInvalidateDrawable()
2441 view.invalidateDrawable(d1); in testInvalidateDrawable()
/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/suite/cts/deviceTests/browserbench/assets/octane/
Dcrypto.js473 var d1 = BI_FV/yt, d2 = (1<<BI_F1)/yt, e = 1<<BI_F2;
487 var qd = (r_array[--i]==y0)?BI_DM:Math.floor(r_array[i]*d1+(r_array[i-1]+e)*d2);
/cts/tests/tests/media/assets/
DfileSequence0.ts1807 …��mq�[<�`�|��%�.5-T���̛�>^+��9��MI�cR�C���Wg.��=��l2��.G���ӯ͡]��d1�TO�Q���D �� �H��p�…
Dsegment000000.ts4660 J�.�e�^]>=��v[x�T���F�d1`Y�Y�h)3s��y�����el��1�>�(�_4 ��g������M6� ��ݑ�+��v����GI��…