/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | WidgetUtils.java | 59 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/ |
D | AppWidgetResizeFrame.java | 135 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()
|
D | Utilities.java | 238 final float density = metrics.density; in initStatics() local 243 sBlurPaint.setMaskFilter(new BlurMaskFilter(5 * density, BlurMaskFilter.Blur.NORMAL)); in initStatics()
|
D | DragController.java | 156 float density = r.getDisplayMetrics().density; in DragController() local 158 (int) (r.getInteger(R.integer.config_flingToDeleteMinVelocity) * density); in DragController()
|
D | AppsCustomizePagedView.java | 569 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/ |
D | AppWidgetResizeFrame.java | 132 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()
|
D | DragController.java | 152 float density = r.getDisplayMetrics().density; in DragController() local 154 (int) (r.getInteger(R.integer.config_flingToDeleteMinVelocity) * density); in DragController()
|
D | AppsCustomizePagedView.java | 488 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/ |
D | LauncherActivityInfoCompatV16.java | 55 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()
|
D | LauncherActivityInfoCompatVL.java | 45 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()
|
D | LauncherActivityInfoCompat.java | 31 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/ |
D | BreadCrumbView.java | 94 float density = mContext.getResources().getDisplayMetrics().density; in init() local 95 mDividerPadding = DIVIDER_PADDING * density; in init() 96 mCrumbPadding = (int) (CRUMB_PADDING * density); in init()
|
D | BookmarkUtils.java | 136 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/ |
D | PresetPreference.java | 58 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem() local 59 previewText.setTextSize(DEFAULT_FONT_SIZE * density); in onBindListItem()
|
D | EdgeTypePreference.java | 61 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/ |
D | ShortcutIntentBuilder.java | 362 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/ |
D | Display.java | 70 mDisplayMetrics.density = metrics.density; in onCreate() 99 mDisplayMetrics.scaledDensity = mDisplayMetrics.density * in updateFontScale()
|
D | AppWidgetPickActivity.java | 103 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/ |
D | TimeBar.java | 98 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/ |
D | OverlappingPaneLayout.java | 227 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()
|
D | ViewDragHelper.java | 392 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/ |
D | ChartGridView.java | 172 paint.density = res.getDisplayMetrics().density; in makeLabel()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | SwipeableListView.java | 91 float densityScale = getResources().getDisplayMetrics().density; in SwipeableListView() 101 float densityScale = getResources().getDisplayMetrics().density; in onConfigurationChanged()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | Switch.java | 117 mTextPaint.density = dm.density; in Switch()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | Switch.java | 124 mTextPaint.density = dm.density; in Switch()
|