/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | LowRamDeviceTest.java | 78 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/ |
D | rm_dup_holo_imgs.py | 42 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/ |
D | ConfigurationTest.java | 54 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()
|
D | ConfigurationScreenLayoutTest.java | 104 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/ |
D | DisplayMetricsTest.java | 40 assertTrue((0.1 <= outMetrics.density) && (outMetrics.density <= 4)); in testDisplayMetricsOp() 52 assertTrue((0.1 <= metrics.density) && (metrics.density <= 4)); in testDisplayMetricsOp()
|
D | TypedValueTest.java | 39 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/ |
D | WidgetTestUtils.java | 103 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/ |
D | run_theme_capture_device.py | 101 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/ |
D | ThemeHostTest.java | 111 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/ |
D | Utils.java | 79 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/ |
D | IProjectionService.aidl | 25 void startRendering(in Surface surface, int width, int height, int density, int viewType); in startRendering() argument
|
D | ProjectionService.java | 77 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/ |
D | NinePatchDrawableTest.java | 395 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()
|
D | ScaleDrawableTest.java | 438 final int bitmapSize = Math.round(48f * res.getDisplayMetrics().density); in testInflate()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | ScreenDeviceInfo.java | 43 store.addResult("density", metrics.density); in collectDeviceInfo()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollViewTest.java | 78 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);
|
D | AdapterViewTest.java | 219 float density = mActivity.getResources().getDisplayMetrics().density; in testAccessVisiblePosition() local 220 int bottom = (int) (LAYOUT_HEIGHT * density * fontScale); in testAccessVisiblePosition()
|
D | GridViewTest.java | 836 int layoutSize = (int)(50 * mContext.getResources().getDisplayMetrics().density); in getView()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 226 assertTrue(SCALE_DENSITY_LOWER_BOUND <= outMetrics.density 227 && outMetrics.density <= SCALE_DENSITY_UPPER_BOUND);
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | DeviceInfoInstrument.java | 98 addResult(SCREEN_DENSITY, metrics.density); in onStart()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 131 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/ |
D | WebViewTest.java | 2031 getInstrumentation().getTargetContext().getResources().getDisplayMetrics().density;
|
/cts/tools/dex-tools/dex/ |
D | classes.out.dex | 80916 public float density
|