Searched refs:getDensity (Results 1 – 8 of 8) sorted by relevance
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()
198 assertEquals(11, mNinePatch.getDensity()); in testGetDensity()200 assertEquals(mNinePatch.getDensity(), mBitmap.getDensity()); in testGetDensity()
446 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 …]
563 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()
238 ratio = mReverb.getDensity(); in test1_4DiffusionAndDensity()241 ratio2 = mReverb.getDensity(); in test1_4DiffusionAndDensity()
207 int getDensity() { in getDensity() method in MultiDisplayTestBase.ReportedDisplayMetrics