Home
last modified time | relevance | path

Searched refs:densityDpi (Results 1 – 16 of 16) sorted by relevance

/cts/hostsidetests/theme/app/src/android/theme/app/
DDisplayInfoActivity.java48 text.setText(getString(R.string.display_info_text, metrics.densityDpi, in onCreate()
53 switch (metrics.densityDpi) { in getScreenDensityBucket()
88 return "" + metrics.densityDpi; in getScreenDensityBucket()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java69 + allowedDensities, allowedDensities.contains(metrics.densityDpi)); in testScreenConfiguration()
72 (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT, in testScreenConfiguration()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java67 … mService.startRendering(mSurface, mWidth, mHeight, metrics.densityDpi, mType.ordinal());
/cts/tests/tests/app/src/android/app/cts/
DActivityManagerMemoryClassTest.java134 return metrics.densityDpi; in getScreenDensity()
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java78 int density = mDisplayMetrics.densityDpi; in testMinimumMemory()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java222 switch (metrics.densityDpi) { in getScreenDensityBucket()
239 return "" + metrics.densityDpi; in getScreenDensityBucket()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java492 private static void updateDpi(Resources r, int densityDpi) { in updateDpi() argument
494 c.densityDpi = densityDpi; in updateDpi()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java319 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics().densityDpi); in testGetIntrinsicSize()
339 bitmapDrawable.setTargetDensity(disMetrics.densityDpi); in testSetTargetDensity()
DNinePatchDrawableTest.java372 opts.inDensity = opts.inTargetDensity = mResources.getDisplayMetrics().densityDpi; in getBitmapUnscaled()
DScaleDrawableTest.java415 res.getDisplayMetrics().densityDpi / DisplayMetrics.DENSITY_DEFAULT); in testInflate()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java200 assertEquals(SECONDARY_DISPLAY_DPI, outMetrics.densityDpi); in testGetMetrics()
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java52 mOptNoScale.inDensity = mOptNoScale.inTargetDensity = mRes.getDisplayMetrics().densityDpi; in setUp()
DBitmapTest.java971 int scaledHeight = scaleFromDensity(ret.getHeight(), ret.getDensity(), metrics.densityDpi); in testGetScaledHeight2()
998 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), metrics.densityDpi); in testGetScaledWidth2()
DBitmapFactoryTest.java96 mTargetDensity = mRes.getDisplayMetrics().densityDpi; in setUp()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java252 int targetDensity = mResources.getDisplayMetrics().densityDpi; in testGetDrawable()
DConfigTest.java133 mConfig.densityDpi = value; in setProperty()