Home
last modified time | relevance | path

Searched refs:screenSize (Results 1 – 13 of 13) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java114 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(display); in setIndividualWallpaper() local
115 asset.decodeBitmap(screenSize.x, screenSize.y, new BitmapReceiver() { in setIndividualWallpaper()
147 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(display); in setIndividualWallpaperWithPosition() local
165 wallpaper, asset, dimensions, screenSize, callback); in setIndividualWallpaperWithPosition()
171 wallpaper, asset, dimensions, screenSize, callback); in setIndividualWallpaperWithPosition()
177 asset.decodeBitmap(screenSize.x, screenSize.y, new BitmapReceiver() { in setIndividualWallpaperWithPosition()
181 screenSize /* stretchSize */, in setIndividualWallpaperWithPosition()
207 Point dimensions, Point screenSize, SetWallpaperCallback callback) { in setIndividualWallpaperWithCenterPosition() argument
208 if (dimensions.x >= screenSize.x && dimensions.y >= screenSize.y) { in setIndividualWallpaperWithCenterPosition()
210 (dimensions.x - screenSize.x) / 2, in setIndividualWallpaperWithCenterPosition()
[all …]
DWallpaperSetter.java90 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(defaultDisplay); in setCurrentWallpaper()
92 WallpaperCropUtils.calculateVisibleRect(dimensions, screenSize); in setCurrentWallpaper()
93 float wallpaperScale = WallpaperCropUtils.calculateMinZoom(dimensions, screenSize); in setCurrentWallpaper()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/displayinfo/
DDisplayInfoFragment.java57 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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DLockScreenPreviewer.java73 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()
DPreviewPager.java124 Point screenSize = ScreenSizeCalculator.getInstance() in PreviewPager() local
126 mScreenAspectRatio = (float) screenSize.y / screenSize.x; in PreviewPager()
134 mViewPager.setPageMargin(screenSize.x / 2); in PreviewPager()
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/quickstep/
DOrientationTouchTransformerTest.java295 private DisplayController.Info createDisplayInfo(ScreenSize screenSize, int rotation) { in createDisplayInfo() argument
300 Point p = new Point(screenSize.mWidth, screenSize.mHeight); in createDisplayInfo()
302 p.set(screenSize.mHeight, screenSize.mWidth); in createDisplayInfo()
318 private float generateTouchRegionHeight(ScreenSize screenSize, int rotation) { in generateTouchRegionHeight() argument
319 float height = screenSize.mHeight; in generateTouchRegionHeight()
321 height = screenSize.mWidth; in generateTouchRegionHeight()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DDefaultScrollBar.java436 int screenSize = orientationHelper.getTotalSpace(); in pageDown() local
437 int scrollDistance = screenSize; in pageDown()
450 scrollDistance = Math.min(screenSize, in pageDown()
469 - orientationHelper.getStartAfterPadding() <= screenSize) { in pageDown()
512 int screenSize = orientationHelper.getTotalSpace(); in updatePaginationButtons() local
524 if (screenSize < 2 * touchTargetSize + margin) { in updatePaginationButtons()
535 if (screenSize < 2 * touchTargetSize in updatePaginationButtons()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DScreenSizeCalculator.java82 final Point screenSize = getScreenSize(windowManager.getDefaultDisplay()); in getScreenAspectRatio() local
83 return (float) screenSize.y / screenSize.x; in getScreenAspectRatio()
DFullScreenAnimation.java362 Point screenSize = screenSizeCalculator.getScreenSize(mView.getDisplay()); in startAnimation() local
363 int screenWidth = screenSize.x; in startAnimation()
364 int screenHeight = screenSize.y; in startAnimation()
DWallpaperCropUtils.java289 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(display); in calculateCropRect() local
292 return calculateCropRect(context, screenSize, defaultCropSize, rawWallpaperSize, in calculateCropRect()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java368 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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java291 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(defaultDisplay); in loadPreviewImage()
293 WallpaperCropUtils.calculateVisibleRect(dimensions, screenSize); in loadPreviewImage()
/packages/apps/Dialer/java/com/android/incallui/
DVideoCallPresenter.java1124 Point screenSize = new Point(); in updateRemoteVideoSurfaceDimensions() local
1125 activity.getWindowManager().getDefaultDisplay().getSize(screenSize); in updateRemoteVideoSurfaceDimensions()
1126 getRemoteVideoSurfaceTexture().setSurfaceDimensions(screenSize); in updateRemoteVideoSurfaceDimensions()