/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 | 52 double density = 160.0d * metrics.density; in testScreenConfiguration() local 53 assertTrue("Screen density must be at least 100 dpi: " + density, density >= 100.0d); in testScreenConfiguration() 71 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/tests/leanbackjank/app/src/android/cts/jank/leanback/ |
D | Utils.java | 79 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel() local 80 return Math.round((float) dp * density); in convertDpToPixel()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | DisplayInfoActivity.java | 44 int width = Math.round(dm.widthPixels / dm.density); in onCreate() 45 int height = Math.round(dm.heightPixels / dm.density); in onCreate()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ThemeHostTest.java | 109 final String density = getDensityBucketForDevice(mDevice); in setUp() local 110 final String zipFile = String.format("/%s.zip", density); in setUp() 288 final int density; in getDensityBucketForDevice() local 290 density = Integer.parseInt(device.getProperty(densityProp)); in getDensityBucketForDevice() 295 switch (density) { in getDensityBucketForDevice() 315 return "" + density; in getDensityBucketForDevice()
|
/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/hostsidetests/theme/ |
D | run_theme_capture_device.py | 102 density = device.getDensity() 103 resName = CTS_THEME_dict[density]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollViewTest.java | 74 final float density = getActivity().getResources().getDisplayMetrics().density; in setUp() local 75 mItemWidth = (int) (ITEM_WIDTH_DPI * density + 0.5f); in setUp() 76 mItemHeight = (int) (ITEM_HEIGHT_DPI * density + 0.5f); in setUp() 77 mPageWidth = (int) (PAGE_WIDTH_DPI * density + 0.5f); in setUp() 78 mPageHeight = (int) (PAGE_HEIGHT_DPI * density + 0.5f); in setUp() 524 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 | 759 int layoutSize = (int)(50 * mContext.getResources().getDisplayMetrics().density);
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | raytrace.js | 386 density: 0.5, property 388 initialize : function(colorEven, colorOdd, reflection, transparency, gloss, density) { argument 394 this.density = density; 399 var t = this.wrapUp(u * this.density) * this.wrapUp(v * this.density);
|
D | box2d.js | 185 …eateFixture2=function(a,c){if(c===undefined)c=0;var g=new aa;g.shape=a;g.density=c;return this.Cre… 225 this.m_isSensor=g.isSensor;this.m_shape=g.shape.Copy();this.m_density=g.density};S.prototype.Destro… 226 …xtureDef=function(){this.userData=this.shape=null;this.friction=0.2;this.density=this.restitution=… 308 …ntroller.b2Controller.apply(this,arguments);this.normal=new K(0,-1);this.density=this.offset=0;thi… 309 …k;if(!(Y<Number.MIN_VALUE)){k=this.gravity.GetNegative();k.Multiply(this.density*Y);L.ApplyForce(k… 501 fd.density = 0.0; 521 fd.density = 5.0;
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 195 assertTrue(SCALE_DENSITY_LOWER_BOUND <= outMetrics.density in testGetMetrics() 196 && outMetrics.density <= SCALE_DENSITY_UPPER_BOUND); in testGetMetrics()
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | DeviceInfoInstrument.java | 92 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 | 1949 getInstrumentation().getTargetContext().getResources().getDisplayMetrics().density;
|