/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ClassifierTest.java | 39 DisplayMetrics displayMetrics = new DisplayMetrics(); in setup() local 40 displayMetrics.xdpi = 100; in setup() 41 displayMetrics.ydpi = 100; in setup() 42 displayMetrics.widthPixels = 1000; in setup() 43 displayMetrics.heightPixels = 1000; in setup() 44 mDataProvider = new FalsingDataProvider(displayMetrics); in setup()
|
D | FalsingDataProviderTest.java | 47 DisplayMetrics displayMetrics = new DisplayMetrics(); in setup() local 48 displayMetrics.xdpi = 100; in setup() 49 displayMetrics.ydpi = 100; in setup() 50 displayMetrics.widthPixels = 1000; in setup() 51 displayMetrics.heightPixels = 1000; in setup() 52 mDataProvider = new FalsingDataProvider(displayMetrics); in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | FalsingDataProvider.java | 53 public FalsingDataProvider(DisplayMetrics displayMetrics) { in FalsingDataProvider() argument 54 mXdpi = displayMetrics.xdpi; in FalsingDataProvider() 55 mYdpi = displayMetrics.ydpi; in FalsingDataProvider() 56 mWidthPixels = displayMetrics.widthPixels; in FalsingDataProvider() 57 mHeightPixels = displayMetrics.heightPixels; in FalsingDataProvider()
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetProviderInfo.java | 438 public void updateDimensions(DisplayMetrics displayMetrics) { in updateDimensions() argument 440 minWidth = TypedValue.complexToDimensionPixelSize(minWidth, displayMetrics); in updateDimensions() 441 minHeight = TypedValue.complexToDimensionPixelSize(minHeight, displayMetrics); in updateDimensions() 442 minResizeWidth = TypedValue.complexToDimensionPixelSize(minResizeWidth, displayMetrics); in updateDimensions() 443 minResizeHeight = TypedValue.complexToDimensionPixelSize(minResizeHeight, displayMetrics); in updateDimensions()
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/ |
D | DimensionConsistencyTest.java | 62 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in dp2Px() local 63 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
D | GlifDimensionTest.java | 109 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in dp2Px() local 110 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | HumanInteractionClassifier.java | 63 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in HumanInteractionClassifier() local 69 mDpi = (displayMetrics.xdpi + displayMetrics.ydpi) / 2.0f; in HumanInteractionClassifier()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyboardShortcutKeysLayout.java | 156 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in getHorizontalVerticalSpacing() local 158 TypedValue.COMPLEX_UNIT_DIP, 4, displayMetrics); in getHorizontalVerticalSpacing()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | ButtonFooterMixinTest.java | 169 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in dp2Px() local 170 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LinearSmoothScroller.java | 161 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument 162 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
|
D | MessagingLayout.java | 125 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in onFinishInflate() local 126 int size = Math.max(displayMetrics.widthPixels, displayMetrics.heightPixels); in onFinishInflate()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/ |
D | QuaresActivity.kt | 135 val dp = resources.displayMetrics.density in checkVictory() 154 val dp = resources.displayMetrics.density in loadPuzzle() 266 it.textSize = 14f * context.resources.displayMetrics.density in <lambda>()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | BrushPropertyDrawable.kt | 36 _size = (24 * context.resources.displayMetrics.density).toInt()
|
/frameworks/base/core/java/android/widget/ |
D | CalendarViewLegacyDelegate.java | 302 DisplayMetrics displayMetrics = mDelegator.getResources().getDisplayMetrics(); in CalendarViewLegacyDelegate() local 304 UNSCALED_WEEK_MIN_VISIBLE_HEIGHT, displayMetrics); in CalendarViewLegacyDelegate() 306 UNSCALED_LIST_SCROLL_TOP_OFFSET, displayMetrics); in CalendarViewLegacyDelegate() 308 UNSCALED_BOTTOM_BUFFER, displayMetrics); in CalendarViewLegacyDelegate() 310 UNSCALED_SELECTED_DATE_VERTICAL_BAR_WIDTH, displayMetrics); in CalendarViewLegacyDelegate() 312 UNSCALED_WEEK_SEPARATOR_LINE_WIDTH, displayMetrics); in CalendarViewLegacyDelegate()
|
D | Editor.java | 3317 final DisplayMetrics displayMetrics = mTextView.getResources().getDisplayMetrics(); in measureContent() local 3319 View.MeasureSpec.makeMeasureSpec(displayMetrics.widthPixels, in measureContent() 3321 View.MeasureSpec.makeMeasureSpec(displayMetrics.heightPixels, in measureContent() 3348 final DisplayMetrics displayMetrics = mTextView.getResources().getDisplayMetrics(); in updatePosition() local 3351 displayMetrics.widthPixels - width + mClippingLimitRight, positionX); in updatePosition() 3761 final DisplayMetrics displayMetrics = mTextView.getResources().getDisplayMetrics(); in measureContent() local 3763 displayMetrics.widthPixels, View.MeasureSpec.AT_MOST); in measureContent() 3765 displayMetrics.heightPixels, View.MeasureSpec.AT_MOST); in measureContent() 3815 final DisplayMetrics displayMetrics = mTextView.getResources().getDisplayMetrics(); in clipVertically() local 3816 return Math.min(positionY, displayMetrics.heightPixels - height); in clipVertically()
|
D | TextView.java | 1691 final DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); local 1697 displayMetrics); 1704 displayMetrics); 1762 final DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in setAutoSizeTextTypeWithDefaults() local 1766 displayMetrics); in setAutoSizeTextTypeWithDefaults() 1770 displayMetrics); in setAutoSizeTextTypeWithDefaults() 1818 final DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in setAutoSizeTextTypeUniformWithConfiguration() local 1820 unit, autoSizeMinTextSize, displayMetrics); in setAutoSizeTextTypeUniformWithConfiguration() 1822 unit, autoSizeMaxTextSize, displayMetrics); in setAutoSizeTextTypeUniformWithConfiguration() 1824 unit, autoSizeStepGranularity, displayMetrics); in setAutoSizeTextTypeUniformWithConfiguration() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | ThemedBatteryDrawable.kt | 155 val density = context.resources.displayMetrics.density in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerShellCommand.java | 2074 PrintWriter pw, Configuration config, DisplayMetrics displayMetrics) { 2079 displayMetrics.widthPixels); 2081 displayMetrics.heightPixels); 2086 pw.print("stable-width-px: "); pw.println(displayMetrics.widthPixels); 2087 pw.print("stable-height-px: "); pw.println(displayMetrics.heightPixels);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskStack.java | 771 final DisplayMetrics displayMetrics = displayContent.getDisplayMetrics(); in getStackOutset() local 776 displayMetrics) * 2); in getStackOutset()
|
D | WindowManagerService.java | 6572 static int dipToPixel(int dip, DisplayMetrics displayMetrics) { in dipToPixel() argument 6573 return (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, displayMetrics); in dipToPixel()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 1940 final DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in dipToPx() local 1941 return (int) (displayMetrics.density * dip + 0.5f); in dipToPx()
|