Searched refs:getDensity (Results 1 – 9 of 9) sorted by relevance
198 assertEquals(11, mNinePatch.getDensity()); in testGetDensity()200 assertEquals(mNinePatch.getDensity(), mBitmap.getDensity()); in testGetDensity()
585 assertEquals(4, doubleScaled.getDensity()); in testDecodeReuseDoubleScaling()597 assertEquals(2, densityReduced.getDensity()); in testDecodeReuseEquivalentScaling()604 assertFalse(densityReduced.getDensity() == 2); in testDecodeReuseEquivalentScaling()605 assertFalse(densityReduced.getDensity() == 0); in testDecodeReuseEquivalentScaling()651 assertEquals(b.getDensity(), 2); in verifyScaled()656 assertEquals(b.getDensity(), mDefaultCreationDensity); in verifyUnscaled()671 mDefaultCreationDensity = Bitmap.createBitmap(1, 1, Config.ARGB_8888).getDensity(); in testDecodeScaling()
550 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()554 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()558 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()564 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()598 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_immutable()602 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_immutable()781 bitmap.setDensity(bitmap.getDensity() + 4); in testGenerationId()1861 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), dummyDensity); in testGetScaledHeight1()1871 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), metrics.densityDpi); in testGetScaledHeight2()1883 ret.getHeight(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledHeight3()[all …]
388 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()
141 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicHeight()156 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicWidth()
382 int sourceDensity = bitmap.getDensity(); in testInflate()
239 ratio = mReverb.getDensity(); in test1_4DiffusionAndDensity()242 ratio2 = mReverb.getDensity(); in test1_4DiffusionAndDensity()
244 int getDensity() { in getDensity() method in MultiDisplayTestBase.ReportedDisplayMetrics
177 bm.setDensity(canvas.getDensity()); in drawRotatedBitmap()