/cts/tests/tests/util/src/android/util/cts/ |
D | TypedValueTest.java | 52 DisplayMetrics dm = new DisplayMetrics(); in testComplexToDimension() local 53 dm.density = 1.1f; in testComplexToDimension() 54 dm.heightPixels = 100; in testComplexToDimension() 55 dm.scaledDensity = 2.1f; in testComplexToDimension() 56 dm.xdpi = 200f; in testComplexToDimension() 57 dm.ydpi = 300f; in testComplexToDimension() 59 & TypedValue.COMPLEX_UNIT_MASK, TypedValue.complexToFloat(10), dm); in testComplexToDimension() 61 assertEquals(expected, TypedValue.complexToDimension(10, dm), 0.0f); in testComplexToDimension() 62 assertEquals((int)expected, TypedValue.complexToDimensionPixelOffset(10, dm)); in testComplexToDimension() 97 DisplayMetrics dm = new DisplayMetrics(); in testComplexToDimensionPixelSize() local [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | FeatureTest.java | 120 DisplayMetrics dm = new DisplayMetrics(); in getScreenSizeInInches() local 121 mWindowManager.getDefaultDisplay().getMetrics(dm); in getScreenSizeInInches() 122 double widthInInchesSquared = Math.pow(dm.widthPixels/dm.xdpi,2); in getScreenSizeInInches() 123 double heightInInchesSquared = Math.pow(dm.heightPixels/dm.ydpi,2); in getScreenSizeInInches()
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ExternalStorageTest.java | 105 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in testDownloadManager() local 109 dm.enqueue(new Request(source).setDestinationUri(Uri.fromFile(target))); in testDownloadManager() 119 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in testDownloadManagerPackage() local 129 final long id = dm.enqueue(new Request(source).setDestinationUri(Uri.fromFile(target))); in testDownloadManagerPackage() 134 dm.remove(id); in testDownloadManagerPackage() 188 final DownloadManager dm = getContext().getSystemService(DownloadManager.class); in assertSuccessfulDownload() local 192 cursor = dm.query(new Query().setFilterById(id)); in assertSuccessfulDownload()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecDecoderSurfaceTest.java | 62 final DisplayMetrics dm = mActivityRule.getActivity().getResources().getDisplayMetrics(); in setScreenParams() local 63 if (noStretch && width <= dm.widthPixels && height <= dm.heightPixels) { in setScreenParams() 67 int a = dm.widthPixels * height / width; in setScreenParams() 68 if (a <= dm.heightPixels) { in setScreenParams() 69 lp.width = dm.widthPixels; in setScreenParams() 72 lp.width = dm.heightPixels * width / height; in setScreenParams() 73 lp.height = dm.heightPixels; in setScreenParams() 76 assertTrue(lp.width <= dm.widthPixels); in setScreenParams() 77 assertTrue(lp.height <= dm.heightPixels); in setScreenParams()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/ |
D | DownloadManagerTest.java | 88 DownloadManager dm = in runDownloadManagerTest() local 104 long id = dm.enqueue(new DownloadManager.Request(destination)); in runDownloadManagerTest() 114 dm.remove(id); in runDownloadManagerTest() 181 DownloadManager dm = in assertSuccessfulDownload() local 184 cursor = dm.query(new DownloadManager.Query().setFilterById(id)); in assertSuccessfulDownload()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ActivityManagerGetConfigTests.java | 369 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()
|
D | WindowTest.java | 330 DisplayMetrics dm = new DisplayMetrics(); in verifyDecorView() local 331 mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm); in verifyDecorView() 332 int screenWidth = dm.widthPixels; in verifyDecorView() 333 int screenHeight = dm.heightPixels; in verifyDecorView()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ResourcesTest.java | 82 final DisplayMetrics dm = new DisplayMetrics(); in testResources() local 83 dm.setToDefaults(); in testResources() 85 final Resources r = new Resources(am, dm, cfg); in testResources() 245 final DisplayMetrics dm = new DisplayMetrics(); in createNewResources() local 246 dm.setToDefaults(); in createNewResources() 249 return new Resources(new AssetManager(), dm, cfg); in createNewResources()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | LogicalCameraDeviceTest.java | 1190 DisplayMetrics dm = new DisplayMetrics(); in getScreenSizeInInches() local 1191 mWindowManager.getDefaultDisplay().getMetrics(dm); in getScreenSizeInInches() 1192 double widthInInchesSquared = Math.pow(dm.widthPixels/dm.xdpi,2); in getScreenSizeInInches() 1193 double heightInInchesSquared = Math.pow(dm.heightPixels/dm.ydpi,2); in getScreenSizeInInches()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 258 final DisplayManager dm = 260 testGetMetrics(dm);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | NinePatchDrawableTest.java | 524 DisplayMetrics dm = new DisplayMetrics(); in testSetTargetDensity_DisplayMetrics() local 525 dm.densityDpi = density; in testSetTargetDensity_DisplayMetrics() 526 dr.setTargetDensity(dm); in testSetTargetDensity_DisplayMetrics()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | ScrollingMovementMethodTest.java | 663 final DisplayMetrics dm = mActivity.getResources().getDisplayMetrics(); in testHorizontalMovement() local 664 final int width = (int) (LITTLE_SPACE * dm.scaledDensity); in testHorizontalMovement()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsBehaviorTests.java | 282 final DisplayManager dm = mTargetContext.getSystemService(DisplayManager.class); in setUp() local 283 final Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in setUp()
|
/cts/tests/tests/media/assets/hls_variant/165340/ |
D | 20.ts | 85 �� 0x�ܤ��t���p@+���������(�M�����Q���f�dm�`Co��!���i�p,ÝL c�L��X�:�h@���G�@`… 462 ���cTM ̝���{"S|�Ozf;���]�Ó�����)r��w�TV�dm��Y�~l�T��/��&���Ȳ]�������m7|��� �Kz��}�6aTG���w2J…
|
D | 07.ts | 41 ����@0%7~��|��`a�;��&�����ܻX�����G���#۷���dΠ��j��dm o�e��}�|E<���
|
D | 02.ts | 497 …y�Xhu")Ky���BF\��A|PǠ�T$�a��$���F��G S аNi+�:+|@�0�G��C#�W��dm&��3�N���0?� ���…
|
D | 04.ts | 599 )�X����A'ˈi�|q�0lE|���2��J+�qP�T=dm�rjC��f�}�`N%�5D�;��m2�����������eL Q��X� �V (UkD��…
|
D | 05.ts | 687 ۾^��}_�������U�y�~`��dm=�L�ֱ3ń�|S>k��Y�Т��v����� u�W\J��u��� �g+6�I�x�sq֭��}�WS���*�A�…
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 504 final DisplayManager dm = mContext.getSystemService(DisplayManager.class); in touchAndCancelOnDisplayCenter() local 506 dm.getDisplay(displayId).getRectSize(bounds); in touchAndCancelOnDisplayCenter()
|
/cts/tests/tests/media/assets/hls_variant/387360/ |
D | 19.ts | 471 u�p�L^�5�ɿ���Q0ׯt9$*������;�~%�\~N�^1�/�� �5�g�A���dm�S��e�S[h ����l��6�^�6�b����1��… 1213 �f�+ٝ\*��Z$���iC0>�HZ'�E�Űj�E���Y��6�����>|�"����g�*��)��mg���C���1����1���dm�gm�7*=s…
|
/cts/tests/tests/media/assets/hls_variant/344388/ |
D | 01.ts | 186 �&j�❧dm���Ϣh[4Tx>Y��Wz�h`0�(��W�==��3s��G6B�eX�5��`���AyBH�|��1p��r�����C���U��Q����4…
|
D | 20.ts | 176 …�@Cy��A%rBhw��6�;)�7���a����q�*;xBk��NhZQ�W�t���8 ����d�������pHv�dm����9��Z��tgʟ�:C�=��…
|
D | 19.ts | 290 G�Fa�!�!`�?�U�c�CUƅ�o����n��(�ߔ)�5�䔅!�P����w�3}A��S�92�dm��j�u'�>E�
|
D | 12.ts | 841 ty�����)�;+P��y��S�9]/��o���3:W:�z2Sׅ���|$�j7/%��I���9�{�dm{�60�I
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 7947 final DisplayMetrics dm = mActivity.getResources().getDisplayMetrics(); in testAutoSizeUniform_equivalentConfigurations() local 7968 TypedValue.applyDimension(unit, minTextSize, dm)); in testAutoSizeUniform_equivalentConfigurations() 7973 TypedValue.applyDimension(unit, maxTextSize, dm)); in testAutoSizeUniform_equivalentConfigurations() 7978 assertEquals(Math.round(TypedValue.applyDimension(unit, granularity, dm)), in testAutoSizeUniform_equivalentConfigurations()
|