Home
last modified time | relevance | path

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

1234

/packages/apps/DeskClock/src/com/android/alarmclock/
DWidgetUtils.java59 float density = res.getDisplayMetrics().density; in getScaleRatio() local
60 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); in getScaleRatio()
63 if (minHeight > 0 && (density * minHeight) in getScaleRatio()
89 float density = res.getDisplayMetrics().density; in getHeightScaleRatio() local
94 float ratio = ((density * minHeight) - lblBox) in getHeightScaleRatio()
126 float density = res.getDisplayMetrics().density; in showList() local
132 return ((density * height) > neededSize); in showList()
/packages/apps/Launcher2/src/com/android/launcher2/
DAppWidgetResizeFrame.java135 final float density = mLauncher.getResources().getDisplayMetrics().density; in AppWidgetResizeFrame() local
136 mBackgroundPadding = (int) Math.ceil(density * BACKGROUND_PADDING); in AppWidgetResizeFrame()
353 final float density = launcher.getResources().getDisplayMetrics().density; in getWidgetSizeRanges() local
360 int landWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges()
361 int landHeight = (int) ((spanY * cellHeight + (spanY - 1) * heightGap) / density); in getWidgetSizeRanges()
368 int portWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges()
369 int portHeight = (int) ((spanY * cellHeight + (spanY - 1) * heightGap) / density); in getWidgetSizeRanges()
DUtilities.java238 final float density = metrics.density; in initStatics() local
243 sBlurPaint.setMaskFilter(new BlurMaskFilter(5 * density, BlurMaskFilter.Blur.NORMAL)); in initStatics()
DDragController.java156 float density = r.getDisplayMetrics().density; in DragController() local
158 (int) (r.getInteger(R.integer.config_flingToDeleteMinVelocity) * density); in DragController()
DAppsCustomizePagedView.java569 float density = getResources().getDisplayMetrics().density; in getDefaultOptionsForWidget() local
570 int xPaddingDips = (int) ((padding.left + padding.right) / density); in getDefaultOptionsForWidget()
571 int yPaddingDips = (int) ((padding.top + padding.bottom) / density); in getDefaultOptionsForWidget()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java132 final float density = mLauncher.getResources().getDisplayMetrics().density; in AppWidgetResizeFrame() local
133 mBackgroundPadding = (int) Math.ceil(density * BACKGROUND_PADDING); in AppWidgetResizeFrame()
350 final float density = launcher.getResources().getDisplayMetrics().density; in getWidgetSizeRanges() local
357 int landWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges()
358 int landHeight = (int) ((spanY * cellHeight + (spanY - 1) * heightGap) / density); in getWidgetSizeRanges()
365 int portWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges()
366 int portHeight = (int) ((spanY * cellHeight + (spanY - 1) * heightGap) / density); in getWidgetSizeRanges()
DDragController.java152 float density = r.getDisplayMetrics().density; in DragController() local
154 (int) (r.getInteger(R.integer.config_flingToDeleteMinVelocity) * density); in DragController()
DAppsCustomizePagedView.java488 float density = launcher.getResources().getDisplayMetrics().density; in getDefaultOptionsForWidget() local
489 int xPaddingDips = (int) ((padding.left + padding.right) / density); in getDefaultOptionsForWidget()
490 int yPaddingDips = (int) ((padding.top + padding.bottom) / density); in getDefaultOptionsForWidget()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherActivityInfoCompatV16.java55 public Drawable getIcon(int density) { in getIcon() argument
66 d = resources.getDrawableForDensity(mActivityInfo.getIconResource(), density); in getIcon()
74 d = resources.getDrawableForDensity(android.R.mipmap.sym_def_app_icon, density); in getIcon()
96 public Drawable getBadgedIcon(int density) { in getBadgedIcon() argument
97 return getIcon(density); in getBadgedIcon()
DLauncherActivityInfoCompatVL.java45 public Drawable getIcon(int density) { in getIcon() argument
46 return mLauncherActivityInfo.getIcon(density); in getIcon()
57 public Drawable getBadgedIcon(int density) { in getBadgedIcon() argument
58 return mLauncherActivityInfo.getBadgedIcon(density); in getBadgedIcon()
DLauncherActivityInfoCompat.java31 public abstract Drawable getIcon(int density); in getIcon() argument
34 public abstract Drawable getBadgedIcon(int density); in getBadgedIcon() argument
/packages/apps/Browser/src/com/android/browser/
DBreadCrumbView.java94 float density = mContext.getResources().getDisplayMetrics().density; in init() local
95 mDividerPadding = DIVIDER_PADDING * density; in init()
96 mCrumbPadding = (int) (CRUMB_PADDING * density); in init()
DBookmarkUtils.java136 private static Bitmap getIconBackground(Context context, BookmarkIconType type, int density) { in getIconBackground() argument
141 R.mipmap.ic_launcher_shortcut_browser_bookmark, density); in getIconBackground()
150 R.mipmap.ic_launcher_browser, density); in getIconBackground()
/packages/apps/Settings/src/com/android/settings/accessibility/
DPresetPreference.java58 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem() local
59 previewText.setTextSize(DEFAULT_FONT_SIZE * density); in onBindListItem()
DEdgeTypePreference.java61 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem() local
62 preview.setTextSize(DEFAULT_FONT_SIZE * density); in onBindListItem()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DShortcutIntentBuilder.java362 final float density = r.getDisplayMetrics().density; in generatePhoneNumberIcon() local
406 dst.set(iconWidth - ((int) (20 * density)), -1, in generatePhoneNumberIcon()
407 iconWidth, ((int) (19 * density))); in generatePhoneNumberIcon()
/packages/apps/Settings/src/com/android/settings/
DDisplay.java70 mDisplayMetrics.density = metrics.density; in onCreate()
99 mDisplayMetrics.scaledDensity = mDisplayMetrics.density * in updateFontScale()
DAppWidgetPickActivity.java103 final int density = res.getDisplayMetrics().densityDpi; in createItem() local
105 switch (density) { in createItem()
119 iconDensity = (int)((density*0.75f)+.5f); in createItem()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTimeBar.java98 float textSizeInPx = metrics.density * TEXT_SIZE_IN_DP; in TimeBar()
108 mScrubberPadding = (int) (metrics.density * SCRUBBER_PADDING_IN_DP); in TimeBar()
110 mVPaddingInPx = (int) (metrics.density * V_PADDING_IN_DP); in TimeBar()
/packages/apps/Dialer/src/com/android/dialer/widget/
DOverlappingPaneLayout.java227 final float density = context.getResources().getDisplayMetrics().density; in OverlappingPaneLayout() local
228 mOverhangSize = (int) (DEFAULT_OVERHANG_SIZE * density + 0.5f); in OverlappingPaneLayout()
235 mDragHelper.setMinVelocity(MIN_FLING_VELOCITY * density); in OverlappingPaneLayout()
DViewDragHelper.java392 final float density = context.getResources().getDisplayMetrics().density; in ViewDragHelper() local
393 mEdgeSize = (int) (EDGE_SIZE * density + 0.5f); in ViewDragHelper()
/packages/apps/Settings/src/com/android/settings/widget/
DChartGridView.java172 paint.density = res.getDisplayMetrics().density; in makeLabel()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeableListView.java91 float densityScale = getResources().getDisplayMetrics().density; in SwipeableListView()
101 float densityScale = getResources().getDisplayMetrics().density; in onConfigurationChanged()
/packages/apps/Camera2/src/com/android/camera/ui/
DSwitch.java117 mTextPaint.density = dm.density; in Switch()
/packages/apps/Camera/src/com/android/camera/ui/
DSwitch.java124 mTextPaint.density = dm.density; in Switch()

1234