Home
last modified time | relevance | path

Searched refs:scaleFactor (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java242 float scaleFactor = MasterImage.getImage().getScaleFactor(); in getImageToScreenMatrix() local
244 m.postScale(scaleFactor, scaleFactor, getWidth() / 2.0f, getHeight() / 2.0f); in getImageToScreenMatrix()
299 float scaleFactor = MasterImage.getImage().getScaleFactor(); in onDraw() local
303 scalingMatrix.postScale(scaleFactor, scaleFactor, cx, cy); in onDraw()
321 canvas.scale(scaleFactor, scaleFactor, cx, cy); in onDraw()
350 canvas.scale(scaleFactor, scaleFactor, cx, cy); in onDraw()
595 float scaleFactor = MasterImage.getImage().getScaleFactor(); in onTouchEvent() local
596 if (scaleFactor > 1 && (!ENABLE_ZOOMED_COMPARISON || event.getPointerCount() == 2)) { in onTouchEvent()
597 float translateX = (mTouch.x - mTouchDown.x) / scaleFactor; in onTouchEvent()
598 float translateY = (mTouch.y - mTouchDown.y) / scaleFactor; in onTouchEvent()
[all …]
DMasterImage.java358 float scaleFactor = getScaleFactor(); in getImageToScreenMatrix() local
360 m.postScale(scaleFactor, scaleFactor, mImageShowSize.x/2.0f, mImageShowSize.y/2.0f); in getImageToScreenMatrix()
451 public void setScaleFactor(float scaleFactor) { in setScaleFactor() argument
455 if (scaleFactor == mScaleFactor) { in setScaleFactor()
458 mScaleFactor = scaleFactor; in setScaleFactor()
/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java267 float scaleFactor = 1.F; in getResizedImageData() local
268 while ((outWidth * scaleFactor > widthLimit) || (outHeight * scaleFactor > heightLimit)) { in getResizedImageData()
269 scaleFactor *= .75F; in getResizedImageData()
276 ", initialScaleFactor=" + scaleFactor + in getResizedImageData()
336 int scaledWidth = (int)(outWidth * scaleFactor); in getResizedImageData()
337 int scaledHeight = (int)(outHeight * scaleFactor); in getResizedImageData()
375 + " with smaller scale factor, cur scale factor: " + scaleFactor); in getResizedImageData()
381 + " width=" + outWidth * scaleFactor in getResizedImageData()
382 + " height=" + outHeight * scaleFactor in getResizedImageData()
383 + " scaleFactor=" + scaleFactor in getResizedImageData()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java220 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap() local
222 if (scaleFactor < 1.0f || cropLeft != 0 || cropTop != 0 || originalHasAlpha) { in getNormalizedBitmap()
223 final int newWidth = (int) (cropWidth * scaleFactor); in getNormalizedBitmap()
224 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterRS.java41 float scaleFactor, int quality); in createFilter() argument
44 float scaleFactor, int quality, Allocation in) {} in createFilter() argument
100 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
119 createFilter(rsc, scaleFactor, quality); in apply()
DImageFilterSharpen.java63 protected void createFilter(android.content.res.Resources res, float scaleFactor, in createFilter() argument
71 float scaleFactor = getEnvironment().getScaleFactor(); in computeKernel() local
72 float p1 = mParameters.getValue() * scaleFactor; in computeKernel()
DImageFilterBorder.java67 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
71 float scale2 = scaleFactor * 2.0f; in apply()
DImageFilterEdge.java42 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterNegative.java34 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterExposure.java46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterContrast.java47 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterShadows.java47 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterVibrance.java46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterSaturated.java47 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterWBalance.java52 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterBwFilter.java46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterHue.java49 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterRedEye.java59 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterHighlights.java50 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
/packages/apps/Browser/src/com/android/browser/
DPhoneUi.java303 float scaleFactor = width / (float) mContentView.getWidth(); in showNavScreen() local
319 1f, scaleFactor); in showNavScreen()
394 float scaleFactor = mContentView.getWidth() / (float) width; in hideNavScreen() local
395 int toBottom = toTop + (int) (height * scaleFactor); in hideNavScreen()
416 1f, scaleFactor); in hideNavScreen()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DAudioTrackView.java199 double scaleFactor = 1.0; in setWaveformData() local
201 scaleFactor = 255 / maxGain; in setWaveformData()
208 int smoothedGain = (int)(smoothedGains[i] * scaleFactor); in setWaveformData()
248 double value = (smoothedGains[i] * scaleFactor - minGain) / range; in setWaveformData()
/packages/apps/VideoEditor/src/com/android/videoeditor/
DVideoEditorActivity.java358 final float scaleFactor = detector.getScaleFactor(); in onCreate()
359 final float deltaScaleFactor = scaleFactor - mLastScaleFactor; in onCreate()
361 if (scaleFactor < 1.0f) { in onCreate()
369 } else if (scaleFactor > 1.0f) { in onCreate()
380 mLastScaleFactor = scaleFactor; in onCreate()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DFilterEnvironment.java85 public void setScaleFactor(float scaleFactor) { in setScaleFactor() argument
86 mScaleFactor = scaleFactor; in setScaleFactor()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DRenderingRequest.java147 public void setScaleFactor(float scaleFactor) { in setScaleFactor() argument
148 mScaleFactor = scaleFactor; in setScaleFactor()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java2450 private void setPivotsForZoom(View view, float scaleFactor) { in setPivotsForZoom() argument
2735 final float scaleFactor = (float) in hideAppsCustomizeHelper() local
2750 setPivotsForZoom(fromView, scaleFactor); in hideAppsCustomizeHelper()
2757 scaleX(scaleFactor).scaleY(scaleFactor). in hideAppsCustomizeHelper()

12