Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/side-less/com/android/adservices/common/
DAndroidDevicePropertiesHelperTest.java39 private void expectScreenSizeMatch(ScreenSize screenSize, boolean isLargeScreen) { in expectScreenSizeMatch() argument
42 isLargeScreen, screenSize) in expectScreenSizeMatch()
43 .that(AndroidDevicePropertiesHelper.matchScreenSize(screenSize, isLargeScreen)) in expectScreenSizeMatch()
47 private void expectScreenSizeNotMatch(ScreenSize screenSize, boolean isLargeScreen) { in expectScreenSizeNotMatch() argument
50 isLargeScreen, screenSize) in expectScreenSizeNotMatch()
51 .that(AndroidDevicePropertiesHelper.matchScreenSize(screenSize, isLargeScreen)) in expectScreenSizeNotMatch()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockHostView.kt31 val screenSize = ScreenSizeCalculator.getInstance().getScreenSize(display) in onMeasure() constant
32 previewRatio = measuredWidth / screenSize.x.toFloat() in onMeasure()
46 val screenSize = ScreenSizeCalculator.getInstance().getScreenSize(display) in measureChildWithMargins() constant
49 MeasureSpec.makeMeasureSpec(screenSize.x, EXACTLY), in measureChildWithMargins()
51 MeasureSpec.makeMeasureSpec(screenSize.y, EXACTLY), in measureChildWithMargins()
DClockViewFactoryImpl.kt44 val screenSize: Point, in <lambda>() constant in com.android.customization.picker.clock.ui.view.ClockViewFactoryImpl
237 val top = (screenSize.y / 2 - targetHeight / 2 + largeClockTopMargin / 2) in <lambda>()
238 return Rect(0, top, screenSize.x, (top + targetHeight)) in <lambda>()
252 return Rect(getSmallClockStartPadding(), topMargin, screenSize.x, topMargin + targetHeight) in <lambda>()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/
DDisplayInfoFragment.java57 Point screenSize = new Point(); in onStart() local
58 getActivity().getWindowManager().getDefaultDisplay().getSize(screenSize); in onStart()
60 addTextView("window size(px): " + screenSize.x + " x " + screenSize.y); in onStart()
80 + convertPixelsToDp(screenSize.x, getContext()) in onStart()
81 + " x " + convertPixelsToDp(screenSize.y, getContext())); in onStart()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DScreenSizeCalculator.java81 final Point screenSize = getScreenSize(windowManager.getDefaultDisplay()); in getScreenAspectRatio() local
82 return (float) screenSize.y / screenSize.x; in getScreenAspectRatio()
91 final Point screenSize = getScreenSize(windowManager.getDefaultDisplay()); in getScreenHeight() local
92 return screenSize.y; in getScreenHeight()
DSizeCalculator.java266 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize( in getPreviewCornerRadius() local
270 / ((float) screenSize.x / previewWidth); in getPreviewCornerRadius()
DWallpaperCropUtils.java303 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(display); in calculateCropRect() local
306 return calculateCropRect(context, screenSize, defaultCropSize, rawWallpaperSize, in calculateCropRect()
/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/src/com/android/quickstep/util/unfold/
DUnfoldAnimationBuilder.kt79 screenSize: Point, in <lambda>()
89 val distanceFromScreenCenterToViewCenter = screenSize.x / 2 - viewCenterX in <lambda>()
99 val distanceFromScreenCenterToViewCenter = screenSize.y / 2 - viewCenterY in <lambda>()
117 screenSize: Point, in <lambda>()
124 addChildrenAnimation(cellLayout.shortcutsAndWidgets, isVerticalFold, screenSize, anim) in <lambda>()
/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/
DPermissionUtils.kt50 val screenSize = in isAutomotive() constant
53 return when (screenSize) { in isAutomotive()
59 Log.e(TAG, "Unknown screen size: $screenSize") in isAutomotive()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DAndroidDevicePropertiesHelper.java24 public static boolean matchScreenSize(ScreenSize screenSize, boolean isLargeScreenDevice) { in matchScreenSize() argument
25 if (screenSize.equals(LARGE_SCREEN)) { in matchScreenSize()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java146 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(display); in setIndividualWallpaper() local
147 asset.decodeBitmap(screenSize.x, screenSize.y, new BitmapReceiver() { in setIndividualWallpaper()
310 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(croppingDisplay); in cropAndSetWallpaperBitmapInRotationStatic() local
314 WallpaperCropUtils.calculateMinZoom(wallpaperSize, screenSize); in cropAndSetWallpaperBitmapInRotationStatic()
317 wallpaperSize, WallpaperCropUtils.calculateVisibleRect(wallpaperSize, screenSize)); in cropAndSetWallpaperBitmapInRotationStatic()
322 int offsetX = Math.max(0, -(screenSize.x / 2 - scaledCenter.x)); in cropAndSetWallpaperBitmapInRotationStatic()
323 int offsetY = Math.max(0, -(screenSize.y / 2 - scaledCenter.y)); in cropAndSetWallpaperBitmapInRotationStatic()
326 wallpaperSize, defaultCropSurfaceSize, screenSize, offsetX, in cropAndSetWallpaperBitmapInRotationStatic()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DOrientationTouchTransformerTest.java291 private DisplayController.Info createDisplayInfo(Size screenSize, int rotation) { in createDisplayInfo() argument
292 Point displaySize = new Point(screenSize.getWidth(), screenSize.getHeight()); in createDisplayInfo()
307 private float generateTouchRegionHeight(Size screenSize, int rotation) { in generateTouchRegionHeight() argument
308 float height = screenSize.getHeight(); in generateTouchRegionHeight()
310 height = screenSize.getWidth(); in generateTouchRegionHeight()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java369 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize(defaultDisplay); in loadPreviewImage()
371 WallpaperCropUtils.calculateVisibleRect(dimensions, screenSize); in loadPreviewImage()
372 if (cropHints != null && cropHints.containsKey(screenSize)) { in loadPreviewImage()
374 cropHints.get(screenSize), screenSize, RtlUtils.isRtl(activity)); in loadPreviewImage()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java408 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize( in testClickSetWallpaper_CropsAndScalesWallpaper()
410 int maxDim = Math.max(screenSize.x, screenSize.y); in testClickSetWallpaper_CropsAndScalesWallpaper()
467 Point screenSize = ScreenSizeCalculator.getInstance().getScreenSize( in testSetsDefaultWallpaperZoomAndScroll() local
484 defaultCropSurfaceSize, screenSize, true /* alignStart */, false /* isRtl */); in testSetsDefaultWallpaperZoomAndScroll()
/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()