Home
last modified time | relevance | path

Searched refs:getScale (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java107 if (getScale() > 1.0f) { in onKeyUp()
250 protected float getScale(Matrix matrix) { in getScale() method in ImageViewTouchBase
254 protected float getScale() { in getScale() method in ImageViewTouchBase
255 return getScale(mSuppMatrix); in getScale()
312 float oldScale = getScale(); in zoomTo()
322 final float incrementPerMs = (scale - getScale()) / durationMs; in zoomTo()
323 final float oldScale = getScale(); in zoomTo()
364 if (getScale() >= mMaxZoom) { in zoomIn()
390 if (getScale(tmp) < 1F) { in zoomOut()
DCropImage.java196 if (mImageView.getScale() == 1F) { in startFaceDetection()
727 if (getScale() == 1F) { in onTouchEvent()
769 zoom = zoom * this.getScale(); in centerBasedOnHighlightView()
772 if ((Math.abs(zoom - getScale()) / zoom) > .1) { in centerBasedOnHighlightView()
DViewImage.java240 float scale = imageView.getScale();
334 if (imageView.getScale() > 1F) {
361 if (imageView.getScale() > 2F) { in onDoubleTap()
1140 if (getScale() <= 1F && event.getEventTime()
1151 if (getScale() <= 1F && event.getEventTime()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DIconNormalizer.java117 private static float getScale(float hullArea, float boundingArea, float fullArea) { in getScale() method in IconNormalizer
156 return getScale(hullArea, hullArea, size * size); in normalizeAdaptiveIcon()
239 public synchronized float getScale(@NonNull Drawable d, @Nullable RectF outBounds, in getScale() method in IconNormalizer
347 return getScale(area, rectArea, width * height); in getScale()
DBaseIconFactory.java304 scale = getNormalizer().getScale(icon, outIconBounds, dr.getIconMask(), outShape); in normalizeAndWrapToAdaptiveIcon()
310 scale = getNormalizer().getScale(icon, outIconBounds, null, null); in normalizeAndWrapToAdaptiveIcon()
315 scale = getNormalizer().getScale(icon, outIconBounds, null, null); in normalizeAndWrapToAdaptiveIcon()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DImagePreviewFragment.java225 mFullResImageView.getScale(), cropRect, mWallpaperScreenSize.x, in setWallpaper()
238 mFullResImageView.getScale() * screenScale, in setWallpaper()
315 mBitmapCropper.cropAndScaleBitmap(mWallpaperAsset, mFullResImageView.getScale(), in recalculateColors()
434 float wallpaperZoom = mFullResImageView.getScale(); in calculateCropRect()
456 if (WallpaperManager.isMultiCropEnabled()) result.scale(1f / mFullResImageView.getScale()); in calculateCropRect()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java394 assertTrue(mWallpaperPersister.getScale() < 0); in testClickSetWallpaper_CropsAndScalesWallpaper()
405 float zoom = imageView.getScale(); in testClickSetWallpaper_CropsAndScalesWallpaper()
406 assertEquals(mWallpaperPersister.getScale(), zoom, FLOAT_ERROR_MARGIN); in testClickSetWallpaper_CropsAndScalesWallpaper()
478 assertEquals(expectedWallpaperZoom, fullResImageView.getScale(), FLOAT_ERROR_MARGIN); in testSetsDefaultWallpaperZoomAndScroll()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DSimpleIconFactory.java274 scale = getScale(icon, null); in createAppBadgedIconBitmap()
431 scale = getScale(icon, outIconBounds); in normalizeAndWrapToAdaptiveIcon()
437 scale = getScale(icon, outIconBounds); in normalizeAndWrapToAdaptiveIcon()
487 private synchronized float getScale(@NonNull Drawable d, @Nullable RectF outBounds) { in getScale() method in SimpleIconFactory
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperConnection.java472 float[] values = getScale(parentSurface); in mirrorAndReparent()
488 private float[] getScale(SurfaceView parentSurface) { in getScale() method in WallpaperConnection
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/wallpaperconnection/
DWallpaperConnectionUtils.kt296 val values = getScale(parentSurface, displayMetrics) in <lambda>()
333 private fun getScale(parentSurface: SurfaceView, displayMetrics: Point): FloatArray { in <lambda>() method
/packages/apps/EmergencyInfo/src/com/android/emergency/
DCircleFramedDrawable.java107 public float getScale() { in getScale() method in CircleFramedDrawable
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonHelper.java525 float scale = getScale(alpha, view); in updateIconAlpha()
531 private float getScale(float alpha, SwipeButtonView icon) { in getScale() method in SwipeButtonHelper
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DTestWallpaperPersister.java202 public float getScale() { in getScale() method in TestWallpaperPersister
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java267 Utilities.scaleRectAboutCenter(bounds, li.getNormalizer().getScale( in setItemInfo()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DFloatingIconView.java464 Utilities.scaleRectAboutCenter(bounds, li.getNormalizer().getScale(drawable, null, in getOffsetForIconBounds()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DRecentsView.java393 view.mRecentsViewData.getScale().setValue(scale);