Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java158 assertEquals(11, mNinePatch.getDensity()); in testGetDensity()
160 assertEquals(mNinePatch.getDensity(), mBitmap.getDensity()); in testGetDensity()
DBitmapTest.java962 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), dummyDensity); in testGetScaledHeight1()
971 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), metrics.densityDpi); in testGetScaledHeight2()
982 ret.getHeight(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledHeight3()
989 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), dummyDensity); in testGetScaledWidth1()
998 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), metrics.densityDpi); in testGetScaledWidth2()
1008 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), mCanvas.getDensity()); in testGetScaledWidth3()
DBitmapFactoryTest.java476 assertEquals(4, doubleScaled.getDensity()); in testDecodeReuseDoubleScaling()
487 assertEquals(2, densityReduced.getDensity()); in testDecodeReuseEquivalentScaling()
494 assertFalse(densityReduced.getDensity() == 2); in testDecodeReuseEquivalentScaling()
495 assertFalse(densityReduced.getDensity() == 0); in testDecodeReuseEquivalentScaling()
538 assertEquals(b.getDensity(), 2); in verifyScaled()
543 assertEquals(b.getDensity(), mDefaultCreationDensity); in verifyUnscaled()
557 mDefaultCreationDensity = Bitmap.createBitmap(1, 1, Config.ARGB_8888).getDensity(); in testDecodeScaling()
DCanvasTest.java1924 assertEquals(DisplayMetrics.DENSITY_DEFAULT, mCanvas.getDensity()); in testDensity()
1928 assertEquals(DisplayMetrics.DENSITY_HIGH, mCanvas.getDensity()); in testDensity()
/cts/hostsidetests/theme/
Dandroid_device.py80 def getDensity(self): member in androidDevice
Drun_theme_capture_device.py102 density = device.getDensity()
/cts/tests/tests/media/src/android/media/cts/
DEnvReverbTest.java236 ratio = mReverb.getDensity(); in test1_4DiffusionAndDensity()
239 ratio2 = mReverb.getDensity(); in test1_4DiffusionAndDensity()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DClipDrawableTest.java110 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicHeight()
124 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicWidth()
DBitmapDrawableTest.java313 bitmapDrawable.setTargetDensity(bitmap.getDensity()); in testGetIntrinsicSize()
331 bitmapDrawable.setTargetDensity(canvas.getDensity()); in testSetTargetDensity()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dnavier-stokes.js324 this.getDensity = function(x, y) { method in FluidField.Field