Home
last modified time | relevance | path

Searched refs:dm (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/util/src/android/util/cts/
DTypedValueTest.java49 DisplayMetrics dm = new DisplayMetrics(); in testComplexToDimension() local
50 dm.density = 1.1f; in testComplexToDimension()
51 dm.heightPixels = 100; in testComplexToDimension()
52 dm.scaledDensity = 2.1f; in testComplexToDimension()
53 dm.xdpi = 200f; in testComplexToDimension()
54 dm.ydpi = 300f; in testComplexToDimension()
56 & TypedValue.COMPLEX_UNIT_MASK, TypedValue.complexToFloat(10), dm); in testComplexToDimension()
58 assertEquals(expected, TypedValue.complexToDimension(10, dm), 0.0f); in testComplexToDimension()
59 assertEquals((int)expected, TypedValue.complexToDimensionPixelOffset(10, dm)); in testComplexToDimension()
94 DisplayMetrics dm = new DisplayMetrics(); in testComplexToDimensionPixelSize() local
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DFeatureTest.java118 DisplayMetrics dm = new DisplayMetrics(); in getScreenSizeInInches() local
119 mWindowManager.getDefaultDisplay().getMetrics(dm); in getScreenSizeInInches()
120 double widthInInchesSquared = Math.pow(dm.widthPixels/dm.xdpi,2); in getScreenSizeInInches()
121 double heightInInchesSquared = Math.pow(dm.heightPixels/dm.ydpi,2); in getScreenSizeInInches()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DExternalStorageTest.java105 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in testDownloadManager() local
110 dm.enqueue(new Request(source).setDestinationUri(Uri.fromFile(target))); in testDownloadManager()
120 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in testDownloadManagerPackage() local
130 final long id = dm.enqueue(new Request(source).setDestinationUri(Uri.fromFile(target))); in testDownloadManagerPackage()
135 dm.remove(id); in testDownloadManagerPackage()
189 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in assertSuccessfulDownload() local
193 cursor = dm.query(new Query().setFilterById(id)); in assertSuccessfulDownload()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/
DDownloadManagerTest.java89 DownloadManager dm = in runDownloadManagerTest() local
105 long id = dm.enqueue(new DownloadManager.Request(destination)); in runDownloadManagerTest()
115 dm.remove(id); in runDownloadManagerTest()
182 DownloadManager dm = in assertSuccessfulDownload() local
185 cursor = dm.query(new DownloadManager.Query().setFilterById(id)); in assertSuccessfulDownload()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerGetConfigTests.java295 private void checkDeviceConfig(DisplayManager dm, DeviceConfigurationProto deviceConfig) { in checkDeviceConfig() argument
296 Point stableSize = dm.getStableDisplaySize(); in checkDeviceConfig()
368 DisplayManager dm = mContext.getSystemService(DisplayManager.class); in testDeviceConfig() local
369 Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in testDeviceConfig()
374 checkDeviceConfig(dm, globalConfig.device); in testDeviceConfig()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java73 final DisplayMetrics dm = new DisplayMetrics(); in testResources() local
74 dm.setToDefaults(); in testResources()
76 final Resources r = new Resources(am, dm, cfg); in testResources()
236 final DisplayMetrics dm = new DisplayMetrics(); in createNewResources() local
237 dm.setToDefaults(); in createNewResources()
240 return new Resources(new AssetManager(), dm, cfg); in createNewResources()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java258 final DisplayManager dm =
260 testGetMetrics(dm);
/cts/tests/tests/view/src/android/view/cts/
DWindowTest.java328 DisplayMetrics dm = new DisplayMetrics(); in verifyDecorView() local
329 mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm); in verifyDecorView()
330 int screenWidth = dm.widthPixels; in verifyDecorView()
331 int screenHeight = dm.heightPixels; in verifyDecorView()
DViewTest.java3582 DisplayManager dm = (DisplayManager) mActivity.getApplicationContext().getSystemService( in testGetWindowVisibleDisplayFrame() local
3584 Display d = dm.getDisplay(Display.DEFAULT_DISPLAY); in testGetWindowVisibleDisplayFrame()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java512 DisplayMetrics dm = new DisplayMetrics(); in testSetTargetDensity_DisplayMetrics() local
513 dm.densityDpi = density; in testSetTargetDensity_DisplayMetrics()
514 dr.setTargetDensity(dm); in testSetTargetDensity_DisplayMetrics()
/cts/tests/tests/text/src/android/text/method/cts/
DScrollingMovementMethodTest.java652 final DisplayMetrics dm = mActivity.getResources().getDisplayMetrics(); in testHorizontalMovement() local
653 final int width = (int) (LITTLE_SPACE * dm.scaledDensity); in testHorizontalMovement()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java7588 final DisplayMetrics dm = mActivity.getResources().getDisplayMetrics(); in testAutoSizeUniform_equivalentConfigurations() local
7609 TypedValue.applyDimension(unit, minTextSize, dm)); in testAutoSizeUniform_equivalentConfigurations()
7614 TypedValue.applyDimension(unit, maxTextSize, dm)); in testAutoSizeUniform_equivalentConfigurations()
7619 assertEquals(Math.round(TypedValue.applyDimension(unit, granularity, dm)), in testAutoSizeUniform_equivalentConfigurations()
/cts/tests/tests/media/assets/
Dsegment000001.ts2752 ��%H���G��b���@77`����D�*�J5:T�����n068�������N��+8>7�`�g�� dm0?hxL-��^]C��l^�������@…