/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | PreviewPager.java | 91 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/ |
D | ResourceUtils.java | 187 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/ |
D | DensityPreference.java | 54 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/ |
D | DensityPreference.java | 54 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/ |
D | SendUi.java | 612 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/ |
D | PermissionActivity.java | 636 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/ |
D | CameraDeviceReport.java | 384 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/ |
D | FilmstripDataAdapter.java | 115 public void suggestViewSizeBound(int widthPixels, int heightPixels); in suggestViewSizeBound() argument
|
/packages/apps/Gallery/src/com/android/camera/ |
D | PhotoAppWidgetConfigure.java | 56 int maxDimension = Math.max(display.heightPixels, display.widthPixels); in onCreate()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | GestureSandboxActivity.java | 104 List.of(new Rect(0, 0, metrics.widthPixels, metrics.heightPixels))); in disableSystemGestures()
|
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPopupMenu.java | 69 int screenWidth = Resources.getSystem().getDisplayMetrics().widthPixels; in measureContentWidth()
|
D | WalletCardCarousel.java | 107 mScreenWidth = Math.min(metrics.widthPixels, metrics.heightPixels); in WalletCardCarousel()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpBitmapFetch.java | 111 sMaxSize = Math.max(metrics.heightPixels, metrics.widthPixels); in configureForContext()
|
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/ |
D | VisibleBoundsSimulator.java | 107 int screenWidth = displayMetrics.widthPixels; in applyDisplayOverlay()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureFloatingTextDrawingPreview.java | 77 mDisplayWidth = mainKeyboardViewAttr.getResources().getDisplayMetrics().widthPixels; in GesturePreviewTextParams()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorPickerDialog.java | 52 int width = metrics.widthPixels*8/10; in ColorPickerDialog()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | ViewPagerTabs.java | 94 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
|
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPanelViewControllerTest.java | 563 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/ |
D | ViewPagerTabs.java | 291 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | PaletteListView.java | 91 return displayMetrics.widthPixels; in getScreenWidth()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 978 screenWidth = displayMetrics.widthPixels; in chooseBestPictureSize() 982 screenHeight = displayMetrics.widthPixels; in chooseBestPictureSize()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | ImagePrintActivity.java | 241 mDisplayMetrics.widthPixels * 1000 / mediaSize.getWidthMils(), in onLayout()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacUiService.java | 109 mScreenWidth = mDisplayMetrics.widthPixels; in onCreate()
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | OptionSelectorController.java | 238 availableWidth = metrics.widthPixels; in initOptions()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/ |
D | GridFragment.java | 137 mScreenAspectRatio = (float) dm.heightPixels / dm.widthPixels; in onCreateView()
|