/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/ |
D | QrDecorateView.java | 75 getResources().getDisplayMetrics()); in QrDecorateView() 78 CORNER_RADIUS - CORNER_STROKE_WIDTH, getResources().getDisplayMetrics()); in QrDecorateView() 133 CORNER_LINE_LENGTH, getResources().getDisplayMetrics()) / 2; in calculateFramePos() 135 CORNER_STROKE_WIDTH, getResources().getDisplayMetrics()); in calculateFramePos()
|
/frameworks/base/tests/InputScreenshotTest/src/android/input/screenshot/ |
D | LayoutPreview.kt | 29 600.0F, context.getResources().getDisplayMetrics()).roundToInt() in createLayoutPreview() 31 200.0F, context.getResources().getDisplayMetrics()).roundToInt() in createLayoutPreview()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationBoundResourceCacheTest.java | 91 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); in testVoidConfigChange() 114 res.getDisplayMetrics()); in testEffectiveConfigChange() 139 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); in testConfigChangeMultipleResources() 141 res.getDisplayMetrics()); in testConfigChangeMultipleResources() 177 .complexToDimension(staticValues[i].data, res.getDisplayMetrics()); in testConfigChangeMultipleThemes() 182 res.getDisplayMetrics()); in testConfigChangeMultipleThemes()
|
D | ResourcesManagerTest.java | 109 protected DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments daj) { in setUp() 334 activityResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 336 activityResources.getDisplayMetrics().heightPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 338 defaultDisplayResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 340 defaultDisplayResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 347 activityResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 349 activityResources.getDisplayMetrics().heightPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 351 defaultDisplayResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources() 353 defaultDisplayResources.getDisplayMetrics().widthPixels); in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NotificationMaxHeightFrameLayout.java | 77 final float factor = Math.max(1.0f, context.getResources().getDisplayMetrics().scaledDensity in getFontScaledHeight() 78 / context.getResources().getDisplayMetrics().density); in getFontScaledHeight()
|
D | ViewGroupFader.java | 119 parent.getResources().getDisplayMetrics().widthPixels, in provideBounds() 120 parent.getResources().getDisplayMetrics().heightPixels); in provideBounds()
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | ResourcesManagerPerfTest.java | 140 public void getDisplayMetrics() { in getDisplayMetrics() method in ResourcesManagerPerfTest 152 resourcesManager.getDisplayMetrics(); in getDisplayMetrics() 153 resourcesManager.getDisplayMetrics(); in getDisplayMetrics()
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
D | TestWallpaper.java | 107 tpaint.density = getResources().getDisplayMetrics().density; in onCreate() 110 tpaint.setTextSize(18 * getResources().getDisplayMetrics().scaledDensity); in onCreate() 111 tpaint.setShadowLayer(4 * getResources().getDisplayMetrics().density, 0, 0, 0xff000000); in onCreate() 115 mPadding = (int)(16 * getResources().getDisplayMetrics().density); in onCreate()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Font.java | 165 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile() 189 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset() 213 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | ExitDesktopTaskTransitionHandlerTest.java | 92 doReturn(mDisplayMetrics).when(mResources).getDisplayMetrics(); in setUp() 93 when(mResources.getDisplayMetrics()) in setUp() 94 .thenReturn(getContext().getResources().getDisplayMetrics()); in setUp()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | SlowNestedRecyclerViewActivity.java | 53 innerItemWidth = (int) (resources.getDisplayMetrics().widthPixels / 3.3f); in SizeData() 55 headerHeight = (int) (resources.getDisplayMetrics().heightPixels * 0.5f); in SizeData() 81 final float density = parent.getResources().getDisplayMetrics().density; in onCreateViewHolder()
|
/frameworks/base/core/java/android/accessibilityservice/util/ |
D | AccessibilityUtils.java | 123 resources.getDisplayMetrics())); in getScreenWidthPixels() 137 resources.getDisplayMetrics())); in getScreenHeightPixels()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsPopupMenu.java | 95 int parentWidth = res.getSystem().getDisplayMetrics().widthPixels; in show() 96 float parentDensity = res.getSystem().getDisplayMetrics().density; in show()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationUtils.java | 74 float factor = Math.max(1.0f, context.getResources().getDisplayMetrics().scaledDensity / in getFontScaledHeight() 75 context.getResources().getDisplayMetrics().density); in getFontScaledHeight()
|
/frameworks/base/core/java/android/inputmethodservice/navigationbar/ |
D | NavigationBarUtils.java | 40 return (int) TypedValue.applyDimension(COMPLEX_UNIT_DIP, dpValue, res.getDisplayMetrics()); in dpToPx()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipDisplayLayoutState.java | 72 : new Point(dpToPx(screenEdgeInsetsDp.getWidth(), res.getDisplayMetrics()), in reloadResources() 73 dpToPx(screenEdgeInsetsDp.getHeight(), res.getDisplayMetrics())); in reloadResources()
|
/frameworks/base/core/java/android/hardware/input/ |
D | KeyboardLayoutPreviewDrawable.java | 421 KEY_PADDING_IN_DP, context.getResources().getDisplayMetrics()); in ResourceProvider() 423 KEYBOARD_PADDING_IN_DP, context.getResources().getDisplayMetrics()); in ResourceProvider() 425 KEY_RADIUS_IN_DP, context.getResources().getDisplayMetrics()); in ResourceProvider() 427 KEYBOARD_RADIUS_IN_DP, context.getResources().getDisplayMetrics()); in ResourceProvider() 429 context.getResources().getDisplayMetrics()); in ResourceProvider() 431 TEXT_PADDING_IN_DP, context.getResources().getDisplayMetrics()); in ResourceProvider()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | SelectablePreference.java | 33 context.getResources().getDisplayMetrics()); in SelectablePreference()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/tv/ |
D | TvSplitMenuController.java | 88 mContext.getResources().getDisplayMetrics().widthPixels, in addSplitMenuViewToSystemWindows() 89 mContext.getResources().getDisplayMetrics().heightPixels, in addSplitMenuViewToSystemWindows()
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | BitmapView.java | 38 mDensity = getResources().getDisplayMetrics().density; in BitmapView()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | RotationActivity.java | 39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f); in dipToPx()
|
D | DrawIntoHwBitmapActivity.java | 43 p.setTextSize(20 * getResources().getDisplayMetrics().density); in createBitmap()
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/ |
D | DimensionConsistencyTest.java | 62 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in dp2Px()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ |
D | PeopleStoryIconFactory.java | 56 mIconBitmapSize = (int) (iconSizeDp * mContext.getResources().getDisplayMetrics().density); in PeopleStoryIconFactory() 57 mDensity = mContext.getResources().getDisplayMetrics().density; in PeopleStoryIconFactory()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/ |
D | TestHelper.java | 108 DisplayMetrics dm = mContext.getResources().getDisplayMetrics(); in build() 230 DisplayMetrics metrics = activity.getResources().getDisplayMetrics(); in initBackground()
|