Home
last modified time | relevance | path

Searched refs:density (Results 1 – 7 of 7) sorted by relevance

/appcompat/appcompat-resources/src/main/java/androidx/appcompat/widget/
DResourcesWrapper.java159 public Drawable getDrawableForDensity(int id, int density) throws NotFoundException { in getDrawableForDensity() argument
163 return ResourcesCompat.getDrawableForDensity(mResources, id, density, null); in getDrawableForDensity()
168 public Drawable getDrawableForDensity(int id, int density, Theme theme) { in getDrawableForDensity() argument
169 return ResourcesCompat.getDrawableForDensity(mResources, id, density, theme); in getDrawableForDensity()
237 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) in getValueForDensity() argument
239 mResources.getValueForDensity(id, density, outValue, resolveRefs); in getValueForDensity()
/appcompat/appcompat/src/main/java/androidx/appcompat/view/menu/
DMenuPopupHelper.java281 final float density = mContext.getResources().getDisplayMetrics().density; in showPopup() local
282 final int halfSize = (int) (TOUCH_EPICENTER_SIZE_DP * density / 2); in showPopup()
DActionMenuItemView.java80 final float density = res.getDisplayMetrics().density; in ActionMenuItemView() local
81 mMaxIconSize = (int) (MAX_ICON_SIZE * density + 0.5f); in ActionMenuItemView()
/appcompat/appcompat/src/main/java/androidx/appcompat/widget/
DActionMenuView.java86 final float density = context.getResources().getDisplayMetrics().density; in ActionMenuView() local
87 mMinCellSize = (int) (MIN_CELL_SIZE * density); in ActionMenuView()
88 mGeneratedItemPadding = (int) (GENERATED_ITEM_PADDING * density); in ActionMenuView()
DButtonBarLayout.java138 + (int) (PEEK_BUTTON_DP * getResources().getDisplayMetrics().density); in onMeasure()
DSwitchCompat.java250 mTextPaint.density = res.getDisplayMetrics().density; in SwitchCompat()
DActionMenuPresenter.java130 mMinCellSize = (int) (ActionMenuView.MIN_CELL_SIZE * res.getDisplayMetrics().density); in initForMenu()