Searched refs:targetDensity (Results 1 – 4 of 4) sorted by relevance
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ |
D | DisplaySizeTest.java | 107 final int targetDensity = (int) (stableDensity * 0.85); in setUnsupportedDensity() local 108 setDensity(targetDensity); in setUnsupportedDensity() 126 private void setDensity(int targetDensity) throws DeviceNotAvailableException { in setDensity() argument 127 mDevice.executeShellCommand("wm density " + targetDensity); in setDensity() 131 final boolean success = output.contains("Override density: " + targetDensity); in setDensity() 133 assertTrue("Failed to set density to " + targetDensity, success); in setDensity()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 381 int sourceDensity, targetDensity; in testSetTargetDensity() local 391 targetDensity = canvas.getDensity(); in testSetTargetDensity() 394 sourceWidth, sourceDensity, targetDensity); in testSetTargetDensity() 396 sourceHeight, sourceDensity, targetDensity); in testSetTargetDensity() 405 targetDensity = mContext.getResources().getDisplayMetrics().densityDpi; in testSetTargetDensity() 408 sourceWidth, sourceDensity, targetDensity); in testSetTargetDensity() 410 sourceHeight, sourceDensity, targetDensity); in testSetTargetDensity() 420 targetDensity = sourceDensity * 2; in testSetTargetDensity() 421 bitmapDrawable.setTargetDensity(targetDensity); in testSetTargetDensity() 423 sourceWidth, sourceDensity, targetDensity); in testSetTargetDensity() [all …]
|
D | NinePatchDrawableTest.java | 371 int targetDensity = mResources.getDisplayMetrics().densityDpi; in testInflate() local 373 sourceWidth, sourceDensity, targetDensity); in testInflate() 375 sourceHeight, sourceDensity, targetDensity); in testInflate()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ResourcesTest.java | 311 int targetDensity = mResources.getDisplayMetrics().densityDpi; in testGetDrawable() local 314 assertEquals(212 * targetDensity / defaultDensity, draw.getIntrinsicWidth(), 1); in testGetDrawable() 315 assertEquals(142 * targetDensity / defaultDensity, draw.getIntrinsicHeight(), 1); in testGetDrawable()
|