/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
H A D | DefaultWallpaperPersister.java | 120 asset.decodeBitmap(screenSize.x, screenSize.y, new BitmapReceiver() { in setIndividualWallpaper() 182 asset.decodeBitmap(screenSize.x, screenSize.y, new BitmapReceiver() { in setIndividualWallpaperWithPosition() 186 screenSize /* stretchSize */, in setIndividualWallpaperWithPosition() 213 if (dimensions.x >= screenSize.x && dimensions.y >= screenSize.y) { in setIndividualWallpaperWithCenterPosition() 215 (dimensions.x - screenSize.x) / 2, in setIndividualWallpaperWithCenterPosition() 216 (dimensions.y - screenSize.y) / 2, in setIndividualWallpaperWithCenterPosition() 219 asset.decodeBitmapRegion(cropRect, screenSize.x, screenSize.y, false, in setIndividualWallpaperWithCenterPosition() 251 float scale = Math.max((float) screenSize.x / dimensions.x, in setIndividualWallpaperWithCenterCropPosition() 252 (float) screenSize.y / dimensions.y); in setIndividualWallpaperWithCenterCropPosition() 259 (scaledImageWidth - screenSize.x) / 2, in setIndividualWallpaperWithCenterCropPosition() [all …]
|
H A D | WallpaperSetter.java | 93 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(defaultDisplay); in setCurrentWallpaper() 95 WallpaperCropUtils.calculateVisibleRect(dimensions, screenSize); in setCurrentWallpaper() 96 float wallpaperScale = WallpaperCropUtils.calculateMinZoom(dimensions, screenSize); in setCurrentWallpaper()
|
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/displayinfo/ |
H A D | DisplayInfoFragment.java | 57 Point screenSize = new Point(); in onStart() local 58 getActivity().getWindowManager().getDefaultDisplay().getSize(screenSize); in onStart() 59 addTextView("window size(px): " + screenSize.x + " x " + screenSize.y); in onStart() 79 + convertPixelsToDp(screenSize.x, getContext()) in onStart() 80 + " x " + convertPixelsToDp(screenSize.y, getContext())); in onStart()
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
H A D | LockScreenPreviewer.java | 73 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(defaultDisplay); in LockScreenPreviewer() local 88 makeMeasureSpec(screenSize.x, EXACTLY), in LockScreenPreviewer() 89 makeMeasureSpec(screenSize.y, EXACTLY)); in LockScreenPreviewer() 90 contentView.layout(0, 0, screenSize.x, screenSize.y); in LockScreenPreviewer() 93 float scale = cardHeight > 0 ? (float) cardHeight / screenSize.y in LockScreenPreviewer() 94 : (float) cardWidth / screenSize.x; in LockScreenPreviewer()
|
H A D | PreviewPager.java | 124 Point screenSize = ScreenSizeCalculator.getInstance() in PreviewPager() local 126 mScreenAspectRatio = (float) screenSize.y / screenSize.x; in PreviewPager() 134 mViewPager.setPageMargin(screenSize.x / 2); in PreviewPager()
|
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/animation/ |
H A D | UnfoldMoveFromCenterAnimator.kt | 48 private val screenSize = Point() regex 60 windowManager.defaultDisplay.getSize(screenSize) 124 val distanceFromScreenCenterToViewCenter = screenSize.x / 2 - viewCenterX 128 val distanceFromScreenCenterToViewCenter = screenSize.y / 2 - viewCenterY
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
H A D | GlobalActionsColumnLayout.java | 140 int screenSize; in shouldSnapToPowerButton() local 145 screenSize = getMeasuredHeight(); in shouldSnapToPowerButton() 148 screenSize = getMeasuredWidth(); in shouldSnapToPowerButton() 150 return dialogSize + offsetSize < screenSize; in shouldSnapToPowerButton()
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
H A D | ScreenSizeCalculator.java | 82 final Point screenSize = getScreenSize(windowManager.getDefaultDisplay()); in getScreenAspectRatio() local 83 return (float) screenSize.y / screenSize.x; in getScreenAspectRatio()
|
H A D | FullScreenAnimation.java | 366 Point screenSize = screenSizeCalculator.getScreenSize(mView.getDisplay()); in startAnimation() local 367 int screenWidth = screenSize.x; in startAnimation() 368 int screenHeight = screenSize.y; in startAnimation()
|
H A D | SizeCalculator.java | 232 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize( in getPreviewCornerRadius() local 236 / ((float) screenSize.x / previewWidth); in getPreviewCornerRadius()
|
H A D | WallpaperCropUtils.java | 290 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(display); in calculateCropRect() local 293 return calculateCropRect(context, screenSize, defaultCropSize, rawWallpaperSize, in calculateCropRect()
|
/aosp12/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
H A D | OrientationTouchTransformerTest.java | 299 private DisplayController.Info createDisplayInfo(ScreenSize screenSize, int rotation) { in createDisplayInfo() argument 304 Point p = new Point(screenSize.mWidth, screenSize.mHeight); in createDisplayInfo() 306 p.set(screenSize.mHeight, screenSize.mWidth); in createDisplayInfo() 322 private float generateTouchRegionHeight(ScreenSize screenSize, int rotation) { in generateTouchRegionHeight() argument 323 float height = screenSize.mHeight; in generateTouchRegionHeight() 325 height = screenSize.mWidth; in generateTouchRegionHeight()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/ |
H A D | DefaultScrollBar.java | 440 int screenSize = orientationHelper.getTotalSpace(); in pageDown() local 441 int scrollDistance = screenSize; in pageDown() 454 scrollDistance = Math.min(screenSize, in pageDown() 473 - orientationHelper.getStartAfterPadding() <= screenSize) { in pageDown() 519 int screenSize = orientationHelper.getTotalSpace(); in updatePaginationButtons() local 531 if (screenSize < 2 * touchTargetSize + margin) { in updatePaginationButtons() 545 if (screenSize < 2 * touchTargetSize in updatePaginationButtons()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
H A D | DefaultScrollBar.java | 447 int screenSize = orientationHelper.getTotalSpace(); in pageDown() local 448 int scrollDistance = screenSize; in pageDown() 461 scrollDistance = Math.min(screenSize, in pageDown() 480 - orientationHelper.getStartAfterPadding() <= screenSize) { in pageDown() 526 int screenSize = orientationHelper.getTotalSpace(); in updatePaginationButtons() local 538 if (screenSize < 2 * touchTargetSize + margin) { in updatePaginationButtons() 552 if (screenSize < 2 * touchTargetSize in updatePaginationButtons()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
H A D | WindowMagnificationControllerTest.java | 175 final int screenSize = mContext.getResources().getDimensionPixelSize( in enableWindowMagnification_LargeScreen_windowSizeIsConstrained() local 177 mWindowManager.setWindowBounds(new Rect(0, 0, screenSize, screenSize)); in enableWindowMagnification_LargeScreen_windowSizeIsConstrained() 188 final int halfScreenSize = screenSize / 2; in enableWindowMagnification_LargeScreen_windowSizeIsConstrained() 350 final int screenSize = mContext.getResources().getDimensionPixelSize( in screenSizeIsChangedToLarge_enabled_windowSizeIsConstrained() local 352 mWindowManager.setWindowBounds(new Rect(0, 0, screenSize, screenSize)); in screenSizeIsChangedToLarge_enabled_windowSizeIsConstrained() 358 final int halfScreenSize = screenSize / 2; in screenSizeIsChangedToLarge_enabled_windowSizeIsConstrained()
|
/aosp12/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaDisplayList.cpp | 68 static bool intersects(const SkISize screenSize, const Matrix4& mat, const SkRect& bounds) { in intersects() argument 88 return SkRect::Make(screenSize).intersects(SkRect::MakeLTRB(minX, minY, maxX, maxY)); in intersects() 157 if (intersects(info.screenSize, totalMatrix, bounds)) { in prepareListAndChildren()
|
/aosp12/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/ |
H A D | RemoteHardwareConfig.java | 53 float ydpi, ScreenSize screenSize, ScreenOrientation orientation, in RemoteHardwareConfig() argument 60 mScreenSize = screenSize; in RemoteHardwareConfig()
|
/aosp12/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/ |
H A D | PreviewActivityTest.java | 368 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize( in testClickSetWallpaper_CropsAndScalesWallpaper() 370 int maxDim = Math.max(screenSize.x, screenSize.y); in testClickSetWallpaper_CropsAndScalesWallpaper() 415 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize( in testSetsDefaultWallpaperZoomAndScroll() local 432 defaultCropSurfaceSize, screenSize, true /* alignStart */, false /* isRtl */); in testSetsDefaultWallpaperZoomAndScroll()
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | RenderAction.java | 341 ScreenSize screenSize = hardwareConfig.getScreenSize(); in getConfiguration() local 342 if (screenSize != null) { in getConfiguration() 343 switch (screenSize) { in getConfiguration()
|
/aosp12/frameworks/base/libs/hwui/ |
H A D | TreeInfo.cpp | 28 , screenSize(canvasContext.getNextFrameSize()) {} in TreeInfo()
|
H A D | TreeInfo.h | 99 const SkISize screenSize; variable
|
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
H A D | WindowMagnificationGestureHandler.java | 159 final Point screenSize = mTempPoint; in handleShortcutTriggered() local 161 toggleMagnification(screenSize.x / 2.0f, screenSize.y / 2.0f); in handleShortcutTriggered()
|
/aosp12/frameworks/base/native/android/ |
H A D | configuration.cpp | 194 void AConfiguration_setScreenSize(AConfiguration* config, int32_t screenSize) { in AConfiguration_setScreenSize() argument 196 | (screenSize&ResTable_config::MASK_SCREENSIZE); in AConfiguration_setScreenSize()
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
H A D | Asset.java | 291 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(defaultDisplay); in loadPreviewImage() 293 WallpaperCropUtils.calculateVisibleRect(dimensions, screenSize); in loadPreviewImage()
|
/aosp12/frameworks/native/include/android/ |
H A D | configuration.h | 636 void AConfiguration_setScreenSize(AConfiguration* config, int32_t screenSize);
|