Searched refs:getDensity (Results 1 – 10 of 10) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | NinePatchTest.java | 158 assertEquals(11, mNinePatch.getDensity()); in testGetDensity() 160 assertEquals(mNinePatch.getDensity(), mBitmap.getDensity()); in testGetDensity()
|
D | BitmapTest.java | 962 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()
|
D | BitmapFactoryTest.java | 476 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()
|
D | CanvasTest.java | 1924 assertEquals(DisplayMetrics.DENSITY_DEFAULT, mCanvas.getDensity()); in testDensity() 1928 assertEquals(DisplayMetrics.DENSITY_HIGH, mCanvas.getDensity()); in testDensity()
|
/cts/hostsidetests/theme/ |
D | android_device.py | 80 def getDensity(self): member in androidDevice
|
D | run_theme_capture_device.py | 102 density = device.getDensity()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EnvReverbTest.java | 236 ratio = mReverb.getDensity(); in test1_4DiffusionAndDensity() 239 ratio2 = mReverb.getDensity(); in test1_4DiffusionAndDensity()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ClipDrawableTest.java | 110 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicHeight() 124 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling in testGetIntrinsicWidth()
|
D | BitmapDrawableTest.java | 313 bitmapDrawable.setTargetDensity(bitmap.getDensity()); in testGetIntrinsicSize() 331 bitmapDrawable.setTargetDensity(canvas.getDensity()); in testSetTargetDensity()
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | navier-stokes.js | 324 this.getDensity = function(x, y) { method in FluidField.Field
|