Home
last modified time | relevance | path

Searched refs:targetScale (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DDecodedImageResource.java205 final float targetScale = Math.max( in loadMediaBlocking() local
208 final int targetWidth = (int) (bitmapWidth * targetScale); in loadMediaBlocking()
209 final int targetHeight = (int) (bitmapHeight * targetScale); in loadMediaBlocking()
211 if (targetScale < 1.0f && targetWidth > 0 && targetHeight > 0 && in loadMediaBlocking()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java475 public void zoomIn(float tapX, float tapY, float targetScale) { in zoomIn() argument
484 int x = (int) (-tempX * targetScale + 0.5f); in zoomIn()
485 int y = (int) (-tempY * targetScale + 0.5f); in zoomIn()
487 calculateStableBound(targetScale); in zoomIn()
490 targetScale = Utils.clamp(targetScale, b.mScaleMin, b.mScaleMax); in zoomIn()
492 startAnimation(targetX, targetY, targetScale, ANIM_KIND_ZOOM); in zoomIn()
794 private boolean startAnimation(int targetX, int targetY, float targetScale, in startAnimation() argument
798 changed |= mBoxes.get(0).doAnimation(targetY, targetScale, kind); in startAnimation()
1660 private boolean doAnimation(int targetY, float targetScale, int kind) { in doAnimation() argument
1661 targetScale = clampScale(targetScale); in doAnimation()
[all …]