/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/util/ |
D | FullResImageViewUtilTest.kt | 17 val screenWidth = 1080 in getScaleAndCenter_wallpaperSizeSameAsScreen() constant 22 viewSize = Point(screenWidth, screenHeight), in getScaleAndCenter_wallpaperSizeSameAsScreen() 24 displaySize = Point(screenWidth, screenHeight), in getScaleAndCenter_wallpaperSizeSameAsScreen() 42 val screenWidth = 1080 in getScaleAndCenter_wallpaperSizeLargerThanScreen() constant 47 viewSize = Point(screenWidth, screenHeight), in getScaleAndCenter_wallpaperSizeLargerThanScreen() 49 displaySize = Point(screenWidth, screenHeight), in getScaleAndCenter_wallpaperSizeLargerThanScreen() 67 val screenWidth = 1080 in getScaleAndCenter_wallpaperSizeSmallerThanScreen() constant 72 viewSize = Point(screenWidth, screenHeight), in getScaleAndCenter_wallpaperSizeSmallerThanScreen() 74 displaySize = Point(screenWidth, screenHeight), in getScaleAndCenter_wallpaperSizeSmallerThanScreen() 92 val screenWidth = 1080 in getScaleAndCenter_wallpaperSmallerThanScreenEightTimes_getsSameScales() constant [all …]
|
/packages/apps/Dialer/java/com/android/dialer/widget/ |
D | FloatingActionButtonController.java | 44 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/orientation/ |
D | PortraitPagedViewHandler.java | 357 int screenWidth = dp.widthPx; in getInitialSplitPlaceholderBounds() local 362 out.set(0, 0, screenWidth, placeholderHeight + insetSizeAdjustment); in getInitialSplitPlaceholderBounds() 369 int totalHeight = (int) (1.0f * screenHeight / 2 * (screenWidth - 2 * placeholderInset) in getInitialSplitPlaceholderBounds() 370 / screenWidth); in getInitialSplitPlaceholderBounds() 377 float postRotateScale = (float) screenHeight / screenWidth; in getInitialSplitPlaceholderBounds() 380 mTmpMatrix.postTranslate(pinToRight ? screenWidth : 0, pinToRight ? 0 : screenWidth); in getInitialSplitPlaceholderBounds() 391 int totalWidth = (int) (1.0f * screenWidth / 2 * (screenHeight - 2 * placeholderInset) in getInitialSplitPlaceholderBounds() 474 int screenWidth = dp.widthPx; in getFinalSplitPlaceholderBounds() local 475 out1.set(0, 0, screenWidth, screenHeight / 2 - splitDividerSize); in getFinalSplitPlaceholderBounds() 476 out2.set(0, screenHeight / 2 + splitDividerSize, screenWidth, screenHeight); in getFinalSplitPlaceholderBounds() [all …]
|
D | LandscapePagedViewHandler.kt | 350 val screenWidth = dp.widthPx in getDistanceToBottomOfRect() constant 353 (1.0f * screenHeight / 2 * (screenWidth - 2 * placeholderInset) / screenWidth).toInt() in getDistanceToBottomOfRect() 417 val screenWidth = dp.widthPx in getFinalSplitPlaceholderBounds() constant 418 out1.set(0, 0, screenWidth, screenHeight / 2 - splitDividerSize) in getFinalSplitPlaceholderBounds() 419 out2.set(0, screenHeight / 2 + splitDividerSize, screenWidth, screenHeight) in getFinalSplitPlaceholderBounds()
|
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPopupMenu.java | 69 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/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RecentsOrientedState.java | 512 float screenWidth, float screenHeight, Matrix out) { in postDisplayRotation() argument 518 out.postTranslate(0, screenWidth); in postDisplayRotation() 522 out.postTranslate(screenHeight, screenWidth); in postDisplayRotation() 535 float screenWidth, float screenHeight, Matrix out) { in preDisplayRotation() argument 541 out.postTranslate(screenWidth, 0); in preDisplayRotation() 545 out.postTranslate(screenHeight, screenWidth); in preDisplayRotation()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/ |
D | ScrollableScreen.kt | 138 val screenWidth = LocalConfiguration.current.screenWidthDp in Scaffold() constant 140 val scrollContentHorizontalPadding = (screenWidth * 0.052).dp in Scaffold() 141 val titleHorizontalPadding = (screenWidth * 0.0884).dp in Scaffold() 142 val subtitleHorizontalPadding = (screenWidth * 0.0416).dp in Scaffold()
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/ |
D | TvBottomSheetActivity.java | 63 int screenWidth = metrics.widthPixels; in onCreate() local 68 windowParams.width = screenWidth - marginPx * 2; in onCreate()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | FloatingActionButtonController.java | 72 public void setScreenWidth(int screenWidth) { in setScreenWidth() argument 73 mScreenWidth = screenWidth; in setScreenWidth()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityQuickSettingsTooltipWindow.java | 183 final int screenWidth = res.getDisplayMetrics().widthPixels; in getAvailableWindowWidth() local 184 return screenWidth - padding * 2; in getAvailableWindowWidth()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | LauncherBackAnimationController.java | 366 float screenWidth = mStartRect.width(); in updateBackProgress() local 368 float width = Utilities.mapRange(progress, 1, MIN_WINDOW_SCALE) * screenWidth; in updateBackProgress() 369 float height = screenHeight / screenWidth * width; in updateBackProgress() 385 : screenWidth - progress * mWindowScaleMarginX - width; in updateBackProgress()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 391 int screenWidth, int screenHeight) { in getScaleOfScreenResolution() argument 397 if (cropWidth >= screenWidth || cropHeight >= screenHeight) { in getScaleOfScreenResolution() 401 int newWidth = screenWidth; in getScaleOfScreenResolution()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 966 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/Messaging/src/com/android/messaging/ui/ |
D | ViewPagerTabs.java | 94 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick() local 100 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height); in onLongClick()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | Display.java | 31 public static float screenWidth(Activity activity) { in screenWidth() method in Display
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/ |
D | TvMediaOutputDialogActivity.java | 137 int screenWidth = metrics.widthPixels; in onCreate() local 148 lp.horizontalMargin = ((float) marginEndPx) / screenWidth; in onCreate()
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
D | ViewPagerTabs.java | 291 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/ |
D | GrantPermissionsViewHandlerImpl.java | 116 int screenWidth = metrics.widthPixels; in updateWindowAttributes() local 123 outLayoutParams.width = screenWidth - marginSidePx * 2; in updateWindowAttributes()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | PreviewPager.java | 114 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/inspector/ |
D | HeaderView.java | 68 int width = (int) Display.screenWidth((Activity)context); in HeaderView()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/window/ |
D | WindowManagerProxy.java | 427 float screenWidth = config.screenWidthDp * res.getDisplayMetrics().density; in getCurrentBounds() local 430 return new Rect(0, 0, (int) screenWidth, (int) screenHeight); in getCurrentBounds()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DrawerController.java | 86 float width = Display.screenWidth(activity) - Display.actionBarHeight(activity); in calculateDrawerWidth()
|
/packages/apps/Dialer/java/com/android/dialer/app/ |
D | DialtactsActivity.java | 461 int screenWidth = parentLayout.getWidth(); in onCreate() 462 floatingActionButtonController.setScreenWidth(screenWidth); in onCreate()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 772 public DeviceProfile getBestMatch(float screenWidth, float screenHeight, int rotation) { in getBestMatch() argument 777 float diff = Math.abs(profile.widthPx - screenWidth) in getBestMatch()
|