Searched refs:getDensity (Results 1 – 9 of 9) sorted by relevance
365 bitmapDrawable.setTargetDensity(bitmap.getDensity()); in testGetIntrinsicSize()371 bitmapDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in testGetIntrinsicSize()390 sourceDensity = bitmap.getDensity(); in testSetTargetDensity()391 targetDensity = canvas.getDensity(); in testSetTargetDensity()404 sourceDensity = bitmap.getDensity(); in testSetTargetDensity()419 sourceDensity = bitmap.getDensity(); in testSetTargetDensity()
140 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicHeight()155 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicWidth()
370 int sourceDensity = bitmap.getDensity(); in testInflate()
197 assertEquals(11, mNinePatch.getDensity()); in testGetDensity()199 assertEquals(mNinePatch.getDensity(), mBitmap.getDensity()); in testGetDensity()
395 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()399 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()403 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()409 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_mutable()425 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_immutable()429 assertEquals(metrics.densityDpi, bitmap.getDensity()); in testCreateBitmap_displayMetrics_immutable()446 bitmap.setDensity(bitmap.getDensity() + 4); in testGenerationId()1155 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), dummyDensity); in testGetScaledHeight1()1165 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), metrics.densityDpi); in testGetScaledHeight2()1177 ret.getHeight(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledHeight3()[all …]
513 assertEquals(4, doubleScaled.getDensity()); in testDecodeReuseDoubleScaling()525 assertEquals(2, densityReduced.getDensity()); in testDecodeReuseEquivalentScaling()532 assertFalse(densityReduced.getDensity() == 2); in testDecodeReuseEquivalentScaling()533 assertFalse(densityReduced.getDensity() == 0); in testDecodeReuseEquivalentScaling()579 assertEquals(b.getDensity(), 2); in verifyScaled()584 assertEquals(b.getDensity(), mDefaultCreationDensity); in verifyUnscaled()599 mDefaultCreationDensity = Bitmap.createBitmap(1, 1, Config.ARGB_8888).getDensity(); in testDecodeScaling()
1672 assertEquals(DisplayMetrics.DENSITY_DEFAULT, mCanvas.getDensity()); in testDensity()1676 assertEquals(DisplayMetrics.DENSITY_HIGH, mCanvas.getDensity()); in testDensity()
238 ratio = mReverb.getDensity(); in test1_4DiffusionAndDensity()241 ratio2 = mReverb.getDensity(); in test1_4DiffusionAndDensity()
174 int getDensity() { in getDensity() method in ActivityManagerDisplayTestBase.ReportedDisplayMetrics