Home
last modified time | relevance | path

Searched refs:screenWidth (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/widget/
DFloatingActionButtonController.java44 private int screenWidth; field in FloatingActionButtonController
64 public void setScreenWidth(int screenWidth) { in setScreenWidth() argument
65 this.screenWidth = screenWidth; in setScreenWidth()
129 if (screenWidth == 0) { in align()
178 result = screenWidth / 4; in getTranslationXForAlignment()
182 result = screenWidth / 2 - floatingActionButtonWidth / 2 - floatingActionButtonMarginRight; in getTranslationXForAlignment()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRecentsOrientedState.java520 float screenWidth, float screenHeight, Matrix out) { in postDisplayRotation() argument
526 out.postTranslate(0, screenWidth); in postDisplayRotation()
530 out.postTranslate(screenHeight, screenWidth); in postDisplayRotation()
543 float screenWidth, float screenHeight, Matrix out) { in preDisplayRotation() argument
549 out.postTranslate(screenWidth, 0); in preDisplayRotation()
553 out.postTranslate(screenHeight, screenWidth); in preDisplayRotation()
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPopupMenu.java69 int screenWidth = Resources.getSystem().getDisplayMetrics().widthPixels; in measureContentWidth() local
71 int width = Math.round(screenWidth * 0.5f); in measureContentWidth()
82 int maxWidth = Math.round(screenWidth * 0.9f); in measureContentWidth()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java966 int screenWidth; in chooseBestPictureSize() local
978 screenWidth = displayMetrics.widthPixels; in chooseBestPictureSize()
981 screenWidth = displayMetrics.heightPixels; in chooseBestPictureSize()
990 final float scaleFactor = getScaleFactorForMaxAllowedSize(screenWidth, screenHeight, in chooseBestPictureSize()
992 screenWidth *= scaleFactor; in chooseBestPictureSize()
997 screenWidth / (float) screenHeight); in chooseBestPictureSize()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DCropView.java198 float screenWidth = getWidth() / mRenderer.scale; in setParallaxOffset() local
199 mCenterX = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left; in setParallaxOffset()
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/
DVisibleBoundsSimulator.java107 int screenWidth = displayMetrics.widthPixels; in applyDisplayOverlay() local
136 params.width = (int) (overlayWidth == 0 ? screenWidth : overlayHeight); in applyDisplayOverlay()
/packages/apps/Contacts/src/com/android/contacts/widget/
DFloatingActionButtonController.java72 public void setScreenWidth(int screenWidth) { in setScreenWidth() argument
73 mScreenWidth = screenWidth; in setScreenWidth()
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabs.java94 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick() local
100 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height); in onLongClick()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java291 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick() local
299 (screenPos[0] + width / 2) - screenWidth / 2, in onLongClick()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DGrantPermissionsViewHandlerImpl.java106 int screenWidth = metrics.widthPixels; in updateWindowAttributes() local
113 outLayoutParams.width = screenWidth - marginSidePx * 2; in updateWindowAttributes()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DPreviewPager.java114 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager() local
116 hMargin = Math.max(hMargin, screenWidth/8); in PreviewPager()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDisplay.java31 public static float screenWidth(Activity activity) { in screenWidth() method in Display
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DFullScreenAnimation.java363 int screenWidth = screenSize.x; in startAnimation() local
370 screenWidth / (float) mTouchForwardingLayout.getWidth(), in startAnimation()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DHeaderView.java68 int width = (int) Display.screenWidth((Activity)context); in HeaderView()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDrawerController.java86 float width = Display.screenWidth(activity) - Display.actionBarHeight(activity); in calculateDrawerWidth()
/packages/apps/Dialer/java/com/android/dialer/app/
DDialtactsActivity.java461 int screenWidth = parentLayout.getWidth(); in onCreate()
462 floatingActionButtonController.setScreenWidth(screenWidth); in onCreate()