Home
last modified time | relevance | path

Searched refs:density (Results 1 – 23 of 23) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java78 int density = mDisplayMetrics.densityDpi; in testMinimumMemory() local
85 density, supports64Bit, screenSize, watch)); in testMinimumMemory()
90 } else if (lessThanDpi(density, DENSITY_HIGH, screenSize, in testMinimumMemory()
92 lessThanDpi(density, DENSITY_MEDIUM, screenSize, SCREENLAYOUT_SIZE_LARGE) || in testMinimumMemory()
93 lessThanDpi(density, DENSITY_LOW, screenSize, SCREENLAYOUT_SIZE_XLARGE)) { in testMinimumMemory()
100 } else if (greaterThanDpi(density, DENSITY_560, screenSize, in testMinimumMemory()
102 greaterThanDpi(density, DENSITY_400, screenSize, SCREENLAYOUT_SIZE_LARGE) || in testMinimumMemory()
103 greaterThanDpi(density, DENSITY_XHIGH, screenSize, SCREENLAYOUT_SIZE_XLARGE)) { in testMinimumMemory()
110 } else if (greaterThanDpi(density, DENSITY_400, screenSize, in testMinimumMemory()
112 greaterThanDpi(density, DENSITY_XHIGH, screenSize, SCREENLAYOUT_SIZE_LARGE) || in testMinimumMemory()
[all …]
/cts/tools/utils/
Drm_dup_holo_imgs.py42 for density in densities:
43 portDir = getDirName(density, sw, False)
44 landDir = getDirName(density, sw, True)
61 def getDirName(density, sw, land): argument
67 return name + density
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java54 double density = 160.0d * metrics.density; in testScreenConfiguration() local
55 assertTrue("Screen density must be at least 100 dpi: " + density, density >= 100.0d); in testScreenConfiguration()
73 assertEquals(metrics.density, in testScreenConfiguration()
DConfigurationScreenLayoutTest.java104 int longSize = (int) (max / metrics.density); in reduceScreenLayout()
105 int shortSize = (int) (min / metrics.density); in reduceScreenLayout()
/cts/tests/tests/util/src/android/util/cts/
DDisplayMetricsTest.java40 assertTrue((0.1 <= outMetrics.density) && (outMetrics.density <= 4)); in testDisplayMetricsOp()
52 assertTrue((0.1 <= metrics.density) && (metrics.density <= 4)); in testDisplayMetricsOp()
DTypedValueTest.java39 dm.density = 1.1f; in testComplexToDimension()
81 dm.density = 1.1f; in testComplexToDimensionPixelSize()
130 dm.density = 1.1f; in testApplyDimension()
137 assertEquals(10 * dm.density, TypedValue in testApplyDimension()
196 dm.density = 1.1f; in testGetDimension()
/cts/libs/deviceutil/src/android/cts/util/
DWidgetTestUtils.java103 Assert.assertEquals(expected * context.getResources().getDisplayMetrics().density, in assertScaledPixels()
109 float density = context.getResources().getDisplayMetrics().density; in convertDipToPixels() local
110 return Math.round(density * dip); in convertDipToPixels()
/cts/hostsidetests/theme/
Drun_theme_capture_device.py101 density = device.getDensity()
102 if CTS_THEME_dict.has_key(density):
103 resName = CTS_THEME_dict[density]
105 resName = str(density) + "dpi"
/cts/hostsidetests/theme/src/android/theme/cts/
DThemeHostTest.java111 final String density = getDensityBucketForDevice(mDevice); in setUp() local
112 final String zipFile = String.format("/%s.zip", density); in setUp()
253 final int density; in getDensityBucketForDevice() local
255 density = Integer.parseInt(device.getProperty(densityProp)); in getDensityBucketForDevice()
260 switch (density) { in getDensityBucketForDevice()
276 return density + "dpi"; in getDensityBucketForDevice()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java79 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel() local
80 return Math.round((float) dp * density); in convertDpToPixel()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DIProjectionService.aidl25 void startRendering(in Surface surface, int width, int height, int density, int viewType); in startRendering() argument
DProjectionService.java77 final int density, in startRendering() argument
85 mDisplay = manager.createVirtualDisplay(DISPLAY_NAME, width, height, density, in startRendering()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java395 void setTargetDensity(NinePatchDrawable dr, int density); in setTargetDensity() argument
461 public void setTargetDensity(NinePatchDrawable dr, int density) { in testSetTargetDensity()
462 dr.setTargetDensity(density); in testSetTargetDensity()
472 public void setTargetDensity(NinePatchDrawable dr, int density) { in testSetTargetDensity_Canvas()
474 c.setDensity(density); in testSetTargetDensity_Canvas()
485 public void setTargetDensity(NinePatchDrawable dr, int density) { in testSetTargetDensity_DisplayMetrics()
487 dm.densityDpi = density; in testSetTargetDensity_DisplayMetrics()
DScaleDrawableTest.java438 final int bitmapSize = Math.round(48f * res.getDisplayMetrics().density); in testInflate()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DScreenDeviceInfo.java43 store.addResult("density", metrics.density); in collectDeviceInfo()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollViewTest.java78 final float density = getActivity().getResources().getDisplayMetrics().density; in setUp() local
79 mItemWidth = (int) (ITEM_WIDTH_DPI * density + 0.5f); in setUp()
80 mItemHeight = (int) (ITEM_HEIGHT_DPI * density + 0.5f); in setUp()
81 mPageWidth = (int) (PAGE_WIDTH_DPI * density + 0.5f); in setUp()
82 mPageHeight = (int) (PAGE_HEIGHT_DPI * density + 0.5f); in setUp()
701 int orgRectSize = (int)(10 * getActivity().getResources().getDisplayMetrics().density);
DAdapterViewTest.java219 float density = mActivity.getResources().getDisplayMetrics().density; in testAccessVisiblePosition() local
220 int bottom = (int) (LAYOUT_HEIGHT * density * fontScale); in testAccessVisiblePosition()
DGridViewTest.java836 int layoutSize = (int)(50 * mContext.getResources().getDisplayMetrics().density); in getView()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java226 assertTrue(SCALE_DENSITY_LOWER_BOUND <= outMetrics.density
227 && outMetrics.density <= SCALE_DENSITY_UPPER_BOUND);
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java98 addResult(SCREEN_DENSITY, metrics.density); in onStart()
/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java131 mMetrics.density = (((float)value)/((float)DisplayMetrics.DENSITY_DEFAULT)); in setProperty()
132 mMetrics.noncompatDensity = mMetrics.density; in setProperty()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java2031 getInstrumentation().getTargetContext().getResources().getDisplayMetrics().density;
/cts/tools/dex-tools/dex/
Dclasses.out.dex80916 public float density