Home
last modified time | relevance | path

Searched refs:widthPixels (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DPreviewPager.java91 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager()
101 mScreenAspectRatio = dm.heightPixels > dm.widthPixels in PreviewPager()
102 ? (float) dm.heightPixels / dm.widthPixels in PreviewPager()
103 : (float) dm.widthPixels / dm.heightPixels; in PreviewPager()
157 public void forceCardWidth(int widthPixels) { in forceCardWidth() argument
162 int hPadding = (mViewPager.getWidth() - widthPixels) / 2; in forceCardWidth()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java187 return dm.widthPixels; in getDefaultKeyboardWidth()
217 R.fraction.config_min_keyboard_height, dm.widthPixels, dm.widthPixels); in getDefaultKeyboardHeight()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DDensityPreference.java54 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in getCurrentSwDp()
78 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in onDialogClosed()
/packages/apps/Settings/src/com/android/settings/display/
DDensityPreference.java54 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in getCurrentSwDp()
78 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in onDialogClosed()
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java612 float smallestWidth = (float)Math.min(mDisplayMetrics.widthPixels, in createScreenshot()
622 Rect crop = new Rect(0, statusBarHeight, mDisplayMetrics.widthPixels, in createScreenshot()
624 if (mDisplayMetrics.widthPixels < mDisplayMetrics.heightPixels) { in createScreenshot()
/packages/providers/MediaProvider/src/com/android/providers/media/
DPermissionActivity.java636 final Size size = new Size(res.getDisplayMetrics().widthPixels, in Description()
637 res.getDisplayMetrics().widthPixels); in Description()
684 this.maxSize = Math.max(metrics.widthPixels, metrics.heightPixels); in Resizer()
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java384 Log.v(TAG, "screen width pixels = " + metrics.widthPixels); in printDisplayInfo()
388 Log.v(TAG, "real screen width pixels = " + metrics.widthPixels); in printDisplayInfo()
/packages/apps/Camera2/src/com/android/camera/filmstrip/
DFilmstripDataAdapter.java115 public void suggestViewSizeBound(int widthPixels, int heightPixels); in suggestViewSizeBound() argument
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetConfigure.java56 int maxDimension = Math.max(display.heightPixels, display.widthPixels); in onCreate()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DGestureSandboxActivity.java104 List.of(new Rect(0, 0, metrics.widthPixels, metrics.heightPixels))); in disableSystemGestures()
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPopupMenu.java69 int screenWidth = Resources.getSystem().getDisplayMetrics().widthPixels; in measureContentWidth()
DWalletCardCarousel.java107 mScreenWidth = Math.min(metrics.widthPixels, metrics.heightPixels); in WalletCardCarousel()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpBitmapFetch.java111 sMaxSize = Math.max(metrics.heightPixels, metrics.widthPixels); in configureForContext()
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/
DVisibleBoundsSimulator.java107 int screenWidth = displayMetrics.widthPixels; in applyDisplayOverlay()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureFloatingTextDrawingPreview.java77 mDisplayWidth = mainKeyboardViewAttr.getResources().getDisplayMetrics().widthPixels; in GesturePreviewTextParams()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorPickerDialog.java52 int width = metrics.widthPixels*8/10; in ColorPickerDialog()
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabs.java94 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPanelViewControllerTest.java563 int width = mContext.getResources().getDisplayMetrics().widthPixels; in onCardClicked_startsIntent()
590 int width = mContext.getResources().getDisplayMetrics().widthPixels; in onSingleTapUp_doesNotdismissWallet()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java291 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
/packages/apps/Settings/src/com/android/settings/accessibility/
DPaletteListView.java91 return displayMetrics.widthPixels; in getScreenWidth()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java978 screenWidth = displayMetrics.widthPixels; in chooseBestPictureSize()
982 screenHeight = displayMetrics.widthPixels; in chooseBestPictureSize()
/packages/services/BuiltInPrintService/src/com/android/bips/
DImagePrintActivity.java241 mDisplayMetrics.widthPixels * 1000 / mediaSize.getWidthMils(), in onLayout()
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacUiService.java109 mScreenWidth = mDisplayMetrics.widthPixels; in onCreate()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java238 availableWidth = metrics.widthPixels; in initOptions()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/
DGridFragment.java137 mScreenAspectRatio = (float) dm.heightPixels / dm.widthPixels; in onCreateView()

12