Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java365 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()
DClipDrawableTest.java140 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicHeight()
155 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicWidth()
DNinePatchDrawableTest.java370 int sourceDensity = bitmap.getDensity(); in testInflate()
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java197 assertEquals(11, mNinePatch.getDensity()); in testGetDensity()
199 assertEquals(mNinePatch.getDensity(), mBitmap.getDensity()); in testGetDensity()
DBitmapTest.java395 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 …]
DBitmapFactoryTest.java513 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()
DCanvasTest.java1672 assertEquals(DisplayMetrics.DENSITY_DEFAULT, mCanvas.getDensity()); in testDensity()
1676 assertEquals(DisplayMetrics.DENSITY_HIGH, mCanvas.getDensity()); in testDensity()
/cts/tests/tests/media/src/android/media/cts/
DEnvReverbTest.java238 ratio = mReverb.getDensity(); in test1_4DiffusionAndDensity()
241 ratio2 = mReverb.getDensity(); in test1_4DiffusionAndDensity()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerDisplayTestBase.java174 int getDensity() { in getDensity() method in ActivityManagerDisplayTestBase.ReportedDisplayMetrics