Home
last modified time | relevance | path

Searched refs:getDensity (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java388 bitmapDrawable.setTargetDensity(bitmap.getDensity()); in testGetIntrinsicSize()
394 bitmapDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in testGetIntrinsicSize()
413 sourceDensity = bitmap.getDensity(); in testSetTargetDensity()
414 targetDensity = canvas.getDensity(); in testSetTargetDensity()
427 sourceDensity = bitmap.getDensity(); in testSetTargetDensity()
442 sourceDensity = bitmap.getDensity(); in testSetTargetDensity()
DClipDrawableTest.java141 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicHeight()
156 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicWidth()
DNinePatchDrawableTest.java382 int sourceDensity = bitmap.getDensity(); in testInflate()
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java198 assertEquals(11, mNinePatch.getDensity()); in testGetDensity()
200 assertEquals(mNinePatch.getDensity(), mBitmap.getDensity()); in testGetDensity()
DBitmapTest.java446 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()
450 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()
454 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()
460 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()
494 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_immutable()
498 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_immutable()
580 bitmap.setDensity(bitmap.getDensity() + 4); in testGenerationId()
1630 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), dummyDensity); in testGetScaledHeight1()
1640 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), metrics.densityDpi); in testGetScaledHeight2()
1652 ret.getHeight(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledHeight3()
[all …]
DBitmapFactoryTest.java563 assertEquals(4, doubleScaled.getDensity()); in testDecodeReuseDoubleScaling()
575 assertEquals(2, densityReduced.getDensity()); in testDecodeReuseEquivalentScaling()
582 assertFalse(densityReduced.getDensity() == 2); in testDecodeReuseEquivalentScaling()
583 assertFalse(densityReduced.getDensity() == 0); in testDecodeReuseEquivalentScaling()
629 assertEquals(b.getDensity(), 2); in verifyScaled()
634 assertEquals(b.getDensity(), mDefaultCreationDensity); in verifyUnscaled()
649 mDefaultCreationDensity = Bitmap.createBitmap(1, 1, Config.ARGB_8888).getDensity(); in testDecodeScaling()
/cts/tests/tests/media/src/android/media/cts/
DEnvReverbTest.java239 ratio = mReverb.getDensity(); in test1_4DiffusionAndDensity()
242 ratio2 = mReverb.getDensity(); in test1_4DiffusionAndDensity()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayTestBase.java208 int getDensity() { in getDensity() method in MultiDisplayTestBase.ReportedDisplayMetrics