Home
last modified time | relevance | path

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

12

/cts/tests/tests/util/src/android/util/cts/
DTypedValueTest.java59 DisplayMetrics dm = new DisplayMetrics(); in testComplexToDimension() local
60 dm.density = 1.1f; in testComplexToDimension()
61 dm.heightPixels = 100; in testComplexToDimension()
62 dm.scaledDensity = 2.1f; in testComplexToDimension()
63 dm.xdpi = 200f; in testComplexToDimension()
64 dm.ydpi = 300f; in testComplexToDimension()
66 & TypedValue.COMPLEX_UNIT_MASK, TypedValue.complexToFloat(10), dm); in testComplexToDimension()
68 assertEquals(expected, TypedValue.complexToDimension(10, dm), 0.0f); in testComplexToDimension()
69 assertEquals((int)expected, TypedValue.complexToDimensionPixelOffset(10, dm)); in testComplexToDimension()
104 DisplayMetrics dm = new DisplayMetrics(); in testComplexToDimensionPixelSize() local
[all …]
/cts/tests/mediapc/src/android/mediapc/cts/
DTestActivity.java93 final DisplayMetrics dm = getResources().getDisplayMetrics(); in setScreenParams() local
94 if (noStretch && width <= dm.widthPixels && height <= dm.heightPixels) { in setScreenParams()
98 int a = dm.widthPixels * height / width; in setScreenParams()
99 if (a <= dm.heightPixels) { in setScreenParams()
100 lp.width = dm.widthPixels; in setScreenParams()
103 lp.width = dm.heightPixels * width / height; in setScreenParams()
104 lp.height = dm.heightPixels; in setScreenParams()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecTestActivity.java99 final DisplayMetrics dm = getResources().getDisplayMetrics(); in setScreenParams() local
100 if (noStretch && width <= dm.widthPixels && height <= dm.heightPixels) { in setScreenParams()
104 int a = dm.widthPixels * height / width; in setScreenParams()
105 if (a <= dm.heightPixels) { in setScreenParams()
106 lp.width = dm.widthPixels; in setScreenParams()
109 lp.width = dm.heightPixels * width / height; in setScreenParams()
110 lp.height = dm.heightPixels; in setScreenParams()
/cts/tests/tests/content/src/android/content/pm/cts/
DFeatureTest.java119 DisplayMetrics dm = new DisplayMetrics(); in getScreenSizeInInches() local
120 mWindowManager.getDefaultDisplay().getMetrics(dm); in getScreenSizeInInches()
121 double widthInInchesSquared = Math.pow(dm.widthPixels/dm.xdpi,2); in getScreenSizeInInches()
122 double heightInInchesSquared = Math.pow(dm.heightPixels/dm.ydpi,2); in getScreenSizeInInches()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DExternalStorageTest.java109 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in testDownloadManager() local
113 dm.enqueue(new Request(source).setDestinationUri(Uri.fromFile(target))); in testDownloadManager()
123 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in testDownloadManagerPackage() local
133 final long id = dm.enqueue(new Request(source).setDestinationUri(Uri.fromFile(target))); in testDownloadManagerPackage()
138 dm.remove(id); in testDownloadManagerPackage()
192 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in assertSuccessfulDownload() local
196 cursor = dm.query(new Query().setFilterById(id)); in assertSuccessfulDownload()
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/testdata/
DREADME.md1 How to generate dex metadata (.dm) with profile for testing
6 zip foo.dm primary.prof
DAndroid.bp53 srcs: ["CtsApkVerityTestApp.dm"],
58 srcs: ["CtsApkVerityTestAppSplit.dm"],
95 out: ["CtsApkVerityTestApp.dm.fsv_sig"],
109 out: ["CtsApkVerityTestAppSplit.dm.fsv_sig"],
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DBaseInstallMultiple.java59 T addDm(File dm) { in addDm() argument
60 return addDm(dm, dm.getName()); in addDm()
63 T addDm(File dm, String dmName) { in addDm() argument
64 mFilesToInstall.add(dm); in addDm()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DTvMaxWindowSizeTests.java67 final DisplayManager dm = mInstrumentation.getContext() in setUp() local
69 requireNonNull(dm); in setUp()
70 final Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in setUp()
/cts/hostsidetests/compilation/
DAndroid.bp120 out: ["CtsCompilationApp.dm"],
139 out: ["AppUsedByOtherApp_1.dm"],
185 out: ["empty_config.dm"],
207 out: ["disable_embedded_profile.dm"],
217 out: ["AppUsedByOtherApp_1_disable_embedded_profile.dm"],
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/
DDownloadManagerTest.java93 DownloadManager dm = mContext.getSystemService(DownloadManager.class); in runDownloadManagerTest() local
108 long id = dm.enqueue(new DownloadManager.Request(destination)); in runDownloadManagerTest()
118 dm.remove(id); in runDownloadManagerTest()
185 DownloadManager dm = mContext.getSystemService(DownloadManager.class); in assertSuccessfulDownload() local
187 cursor = dm.query(new DownloadManager.Query().setFilterById(id)); in assertSuccessfulDownload()
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java170 DisplayMetrics dm = new DisplayMetrics(); in hasVerticalNavBar() local
171 activity.getDisplay().getRealMetrics(dm); in hasVerticalNavBar()
172 return dm.heightPixels == displayFrame.bottom; in hasVerticalNavBar()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DSimulatedVirtualDisplaySession.java62 final DisplayManager dm = context.getSystemService(DisplayManager.class); in create() local
69 final Display[] displays = dm.getDisplays(DISPLAY_CATEGORY_PRESENTATION); in create()
/cts/hostsidetests/input/app/src/android/input/cts/hostside/app/
DEmulateInputDevice.kt54 val dm = DisplayMetrics().also { context.display.getRealMetrics(it) } in <lambda>() constant
55 screenSize = Size(dm.widthPixels, dm.heightPixels) in <lambda>()
/cts/hostsidetests/dexmetadata/host/
DREADME.md55 rm res/CtsDexMetadataSplitApp.dm
56 zip -j res/CtsDexMetadataSplitApp.dm /tmp/primary.prof
/cts/tests/tests/content/src/android/content/wm/cts/
DContextTestBase.java74 final DisplayManager dm = mApplicationContext.getSystemService(DisplayManager.class); in setUp() local
75 mDefaultDisplay = dm.getDisplay(DEFAULT_DISPLAY); in setUp()
/cts/tests/tests/telecom/src/android/telecom/cts/
DEmergencyCallTests.java155 DropBoxManager dm = mContext.getSystemService(DropBoxManager.class); in verifyEmergencyDropBoxEntriesCreatedAndDumped() local
158 entry = dm.getNextEntry(DROPBOX_TAG, entriesAfterTime); in verifyEmergencyDropBoxEntriesCreatedAndDumped()
167 entry = dm.getNextEntry(DROPBOX_TAG, entryTime); in verifyEmergencyDropBoxEntriesCreatedAndDumped()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DActivityManagerGetConfigTests.java369 DisplayManager dm = mContext.getSystemService(DisplayManager.class); in testDeviceConfig() local
370 Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in testDeviceConfig()
383 DisplayManager dm = mContext.getSystemService(DisplayManager.class); in testDeviceConfigWithSecondaryDisplay() local
384 Display display = dm.getDisplay(displayId); in testDeviceConfigWithSecondaryDisplay()
/cts/tests/tests/security/src/android/security/cts/
DWallpaperManagerTest.java102 DisplayManager dm = mContext.getSystemService(DisplayManager.class); in testSetDisplayPadding() local
103 Display primaryDisplay = dm.getDisplay(DEFAULT_DISPLAY); in testSetDisplayPadding()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEmbeddedHierarchyTest.java257 final DisplayManager dm = sInstrumentation.getContext().getSystemService( in getScreenSize() local
259 final Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in getScreenSize()
/cts/tests/tests/car/src/android/car/cts/
DCarDisplayInputLockTest.java168 DisplayManager dm = mContext.getSystemService(DisplayManager.class); in testPassengerDisplayInputLockDoesNotAffectDriverDisplay() local
169 Display driverDisplay = dm.getDisplay(driverDisplayId); in testPassengerDisplayInputLockDoesNotAffectDriverDisplay()
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DCapturedActivity.java239 DisplayManager dm = getSystemService(DisplayManager.class); in runTest() local
240 mVirtualDisplay = dm.createVirtualDisplay("CtsCapturedActivity", in runTest()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java103 final DisplayMetrics dm = new DisplayMetrics(); in testResources() local
104 dm.setToDefaults(); in testResources()
106 final Resources r = new Resources(am, dm, cfg); in testResources()
275 final DisplayMetrics dm = new DisplayMetrics(); in createNewResources() local
276 dm.setToDefaults(); in createNewResources()
279 return new Resources(new AssetManager(), dm, cfg); in createNewResources()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowTest.java372 DisplayMetrics dm = new DisplayMetrics(); in verifyDecorView() local
373 mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm); in verifyDecorView()
374 int screenWidth = dm.widthPixels; in verifyDecorView()
375 int screenHeight = dm.heightPixels; in verifyDecorView()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java1450 DisplayMetrics dm = mContext.getResources().getDisplayMetrics(); in getScreenSizeInInches() local
1451 double widthInInchesSquared = Math.pow(dm.widthPixels/dm.xdpi,2); in getScreenSizeInInches()
1452 double heightInInchesSquared = Math.pow(dm.heightPixels/dm.ydpi,2); in getScreenSizeInInches()

12