Home
last modified time | relevance | path

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

/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaFragment.java146 int screenWidth = mActivity.getResources().getDisplayMetrics().widthPixels; in onCreateView() local
198 params.width = screenWidth; in onCreateView()
202 listParams.width = screenWidth * 4 / 10; in onCreateView()
205 detailsParams.width = screenWidth - listParams.width; in onCreateView()
/packages/apps/ContactsCommon/src/com/android/contacts/common/widget/
DFloatingActionButtonController.java72 public void setScreenWidth(int screenWidth) { in setScreenWidth() argument
73 mScreenWidth = screenWidth; in setScreenWidth()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java965 int screenWidth; in chooseBestPictureSize() local
977 screenWidth = displayMetrics.widthPixels; in chooseBestPictureSize()
980 screenWidth = displayMetrics.heightPixels; in chooseBestPictureSize()
989 final float scaleFactor = getScaleFactorForMaxAllowedSize(screenWidth, screenHeight, in chooseBestPictureSize()
991 screenWidth *= scaleFactor; in chooseBestPictureSize()
996 screenWidth / (float) screenHeight); in chooseBestPictureSize()
/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/services/Car/car-ui-provider/src/android/car/ui/provider/
DCarUiEntry.java394 int screenWidth = mAppContext.getResources().getDisplayMetrics().widthPixels; in setSearchBoxMode() local
402 if (screenWidth - searchBoxMargin * 2 > maxSearchBoxWidth) { in setSearchBoxMode()
403 searchBoxMarginEnd = (screenWidth - maxSearchBoxWidth) / 2; in setSearchBoxMode()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DViewPagerTabs.java107 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick() local
114 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height); in onLongClick()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DWallpaperCropActivity.java523 float screenWidth = a.mCropView.getWidth() / scale;
524 center.x = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left;
/packages/apps/Dialer/src/com/android/dialer/
DDialtactsActivity.java483 int screenWidth = mParentLayout.getWidth(); in onCreate()
484 mFloatingActionButtonController.setScreenWidth(screenWidth); in onCreate()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java788 final int screenWidth = getMeasuredWidth(); in getVisiblePages() local
803 currPage.getX() - currPage.getPaddingLeft() < getScrollX() + screenWidth) { in getVisiblePages()
/packages/apps/TV/src/com/android/tv/
DMainActivity.java498 int screenWidth = size.x; in onCreate() local
566 mPipView.setFixedSurfaceSize(screenWidth / 2, screenHeight / 2); in onCreate()