Home
last modified time | relevance | path

Searched refs:screenWidth (Results 1 – 11 of 11) 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/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/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/ThemePicker/src/com/android/customization/widget/
DPreviewPager.java84 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager() local
86 hMargin = Math.max(hMargin, screenWidth/8); in PreviewPager()
/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/apps/DocumentsUI/src/com/android/documentsui/base/
DDisplay.java31 public static float screenWidth(Activity activity) { in screenWidth() method in Display
/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.java82 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()