/aosp12/packages/apps/Dialer/java/com/android/dialer/widget/ |
H A 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()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | BigCache.java | 43 final int screenWidth = windowBounds.width(); in onCreate() local 49 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight)); in onCreate() 55 final int height = 2 * (cacheSize / 2) / screenWidth; in onCreate() 56 large.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, height)); in onCreate()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | WeightedLinearLayout.java | 59 final int screenWidth = metrics.widthPixels; in onMeasure() local 60 final boolean isPortrait = screenWidth < metrics.heightPixels; in onMeasure() 74 final int weightedMin = (int) (screenWidth * widthWeightMin); in onMeasure() 75 final int weightedMax = (int) (screenWidth * widthWeightMin); in onMeasure()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
H A D | PerimeterPathGuide.java | 86 int edgeInset, int screenWidth, int screenHeight) { in PerimeterPathGuide() argument 88 mDeviceWidthPx = screenWidth; in PerimeterPathGuide() 205 int screenWidth = mDeviceWidthPx; in computeRegions() local 227 screenWidth = mDeviceHeightPx; in computeRegions() 258 bottomPath.lineTo(screenWidth - getPhysicalCornerRadius(screenBottomRight), in computeRegions() 263 topPath.moveTo(screenWidth - getPhysicalCornerRadius(screenTopRight), mEdgeInset); in computeRegions() 268 rightPath.moveTo(screenWidth - mEdgeInset, in computeRegions() 270 rightPath.lineTo(screenWidth - mEdgeInset, getPhysicalCornerRadius(screenTopRight)); in computeRegions()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | MediaArtworkProcessorTest.kt | 40 private var screenWidth = 0 regex 51 screenWidth = point.x 69 assertThat(background.width).isLessThan(screenWidth)
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | RenderDrawable.java | 124 int screenWidth = hardwareConfig.getScreenWidth(); in renderImage() local 129 w = screenWidth; in renderImage() 131 } else if (w > screenWidth || h > screenHeight) { in renderImage() 135 double scale = Math.min((double) screenWidth / w, (double) screenHeight / h); in renderImage()
|
/aosp12/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
H A 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()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
H A D | RecentsOrientedState.java | 521 float screenWidth, float screenHeight, Matrix out) { in postDisplayRotation() argument 527 out.postTranslate(0, screenWidth); in postDisplayRotation() 531 out.postTranslate(screenHeight, screenWidth); in postDisplayRotation() 544 float screenWidth, float screenHeight, Matrix out) { in preDisplayRotation() argument 550 out.postTranslate(screenWidth, 0); in preDisplayRotation() 554 out.postTranslate(screenHeight, screenWidth); in preDisplayRotation()
|
/aosp12/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/ |
H A D | RemoteHardwareConfig.java | 52 private RemoteHardwareConfig(int screenWidth, int screenHeight, Density density, float xdpi, in RemoteHardwareConfig() argument 55 mScreenWidth = screenWidth; in RemoteHardwareConfig()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/ |
H A D | TvBottomSheetActivity.java | 60 int screenWidth = metrics.widthPixels; in onCreate() local 65 windowParams.width = screenWidth - marginPx * 2; in onCreate()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
H A D | ScreenMediaRecorder.java | 190 private int[] getSupportedSize(final int screenWidth, final int screenHeight, int refreshRate) in getSupportedSize() argument 204 int screenWidthAligned = screenWidth; in getSupportedSize() 227 double scale = Math.min(((double) width / screenWidth), in getSupportedSize() 230 int scaledWidth = (int) (screenWidth * scale); in getSupportedSize()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/ |
H A D | VisibleBoundsSimulator.java | 107 int screenWidth = displayMetrics.widthPixels; in applyDisplayOverlay() local 136 params.width = (int) (overlayWidth == 0 ? screenWidth : overlayHeight); in applyDisplayOverlay()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | FloatingActionButtonController.java | 72 public void setScreenWidth(int screenWidth) { in setScreenWidth() argument 73 mScreenWidth = screenWidth; in setScreenWidth()
|
/aosp12/frameworks/base/packages/SettingsLib/IllustrationPreference/src/com/android/settingslib/widget/ |
H A D | IllustrationPreference.java | 114 final int screenWidth = getContext().getResources().getDisplayMetrics().widthPixels; in onBindViewHolder() local 119 lp.width = screenWidth < screenHeight ? screenWidth : screenHeight; in onBindViewHolder()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
H A D | PortraitPagedViewHandler.java | 476 int screenWidth = dp.widthPx; in getFinalSplitPlaceholderBounds() local 477 out1.set(0, 0, screenWidth, screenHeight / 2 - splitDividerSize); in getFinalSplitPlaceholderBounds() 478 out2.set(0, screenHeight / 2 + splitDividerSize, screenWidth, screenHeight); in getFinalSplitPlaceholderBounds() 486 float postRotateScale = (float) screenHeight / screenWidth; in getFinalSplitPlaceholderBounds() 490 mTmpMatrix.postTranslate(pinToRight ? screenHeight : 0, pinToRight ? 0 : screenWidth); in getFinalSplitPlaceholderBounds()
|
/aosp12/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
H A D | CropView.java | 198 float screenWidth = getWidth() / mRenderer.scale; in setParallaxOffset() local 199 mCenterX = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left; in setParallaxOffset()
|
/aosp12/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | Transform.java | 113 public void setScreenWidth(double screenWidth) { in setScreenWidth() argument 114 mViewMatrix.setScreenWidth(screenWidth); in setScreenWidth()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | SystemGesturesPointerEventListener.java | 77 int screenWidth; field in SystemGesturesPointerEventListener 92 screenWidth = info.logicalWidth; in onDisplayInfoChanged() 310 if (fromX >= screenWidth - mSwipeStartThreshold.right in detectSwipe()
|
/aosp12/frameworks/base/tools/aapt2/test/ |
H A D | Builders.h | 263 ConfigDescriptionBuilder& setScreenWidth(uint16_t screenWidth) { in setScreenWidth() argument 264 config_.screenWidth = screenWidth; in setScreenWidth()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A 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()
|
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
H A D | Display.java | 31 public static float screenWidth(Activity activity) { in screenWidth() method in Display
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
H A 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()
|
/aosp12/frameworks/base/libs/androidfw/ |
H A D | ConfigDescription.cpp | 514 out->screenWidth = out->SCREENWIDTH_ANY; in parseScreenSize() 538 out->screenWidth = w; in parseScreenSize() 955 if (screenWidth || o.screenWidth) return (!o.screenWidth); in HasHigherPrecedenceThan()
|
/aosp12/packages/apps/Dialer/java/com/android/contacts/common/list/ |
H A D | ViewPagerTabs.java | 291 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick() local 299 (screenPos[0] + width / 2) - screenWidth / 2, in onLongClick()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/ |
H A D | GrantPermissionsViewHandlerImpl.java | 106 int screenWidth = metrics.widthPixels; in updateWindowAttributes() local 113 outLayoutParams.width = screenWidth - marginSidePx * 2; in updateWindowAttributes()
|