Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java231 float scaleFactor = master.getScaleFactor(); in getImageToScreenMatrix() local
233 m.postScale(scaleFactor, scaleFactor, getWidth() / 2.0f, getHeight() / 2.0f); in getImageToScreenMatrix()
644 float scaleFactor = MasterImage.getImage().getScaleFactor(); in onTouchEvent() local
645 if (scaleFactor > 1 && (!ENABLE_ZOOMED_COMPARISON || event.getPointerCount() == 2)) { in onTouchEvent()
646 float translateX = (mTouch.x - mTouchDown.x) / scaleFactor; in onTouchEvent()
647 float translateY = (mTouch.y - mTouchDown.y) / scaleFactor; in onTouchEvent()
677 float scaleFactor = MasterImage.getImage().getScaleFactor(); in onTouchEvent() local
679 constrainTranslation(translation, scaleFactor); in onTouchEvent()
724 float scaleFactor = MasterImage.getImage().getScaleFactor(); in applyTranslationConstraints() local
728 constrainTranslation(translation, scaleFactor); in applyTranslationConstraints()
[all …]
DMasterImage.java631 float scaleFactor = getScaleFactor(); in getImageToScreenMatrix() local
633 m.postScale(scaleFactor, scaleFactor, mImageShowSize.x / 2.0f, mImageShowSize.y / 2.0f); in getImageToScreenMatrix()
731 public void setScaleFactor(float scaleFactor) { in setScaleFactor() argument
735 if (scaleFactor == mScaleFactor) { in setScaleFactor()
738 mScaleFactor = scaleFactor; in setScaleFactor()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterChanSat.java67 protected void createFilter(android.content.res.Resources res, float scaleFactor, in createFilter() argument
69 createFilter(res, scaleFactor, quality, getInPixelsAllocation()); in createFilter()
73 protected void createFilter(android.content.res.Resources res, float scaleFactor, in createFilter() argument
90 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
96 Bitmap ret = super.apply(bitmap, scaleFactor, quality); in apply()
DImageFilterGrad.java77 protected void createFilter(android.content.res.Resources res, float scaleFactor, in createFilter() argument
79 createFilter(res, scaleFactor, quality, getInPixelsAllocation()); in createFilter()
83 protected void createFilter(android.content.res.Resources res, float scaleFactor, in createFilter() argument
100 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
106 Bitmap ret = super.apply(bitmap, scaleFactor, quality); in apply()
DImageFilterSharpen.java64 protected void createFilter(android.content.res.Resources res, float scaleFactor, in createFilter() argument
72 float scaleFactor = getEnvironment().getScaleFactor(); in computeKernel() local
73 float p1 = mParameters.getValue() * scaleFactor; in computeKernel()
DImageFilterRS.java42 float scaleFactor, int quality); in createFilter() argument
45 float scaleFactor, int quality, Allocation in) {} in createFilter() argument
111 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
130 createFilter(rsc, scaleFactor, quality); in apply()
DImageFilterVignette.java79 protected void createFilter(Resources res, float scaleFactor, int quality) { in createFilter() argument
130 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
144 Bitmap ret = super.apply(bitmap, scaleFactor, quality); in apply()
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
DImageFilterShadows.java47 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
DImageFilterVibrance.java46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
DImageFilterContrast.java48 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
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
DVideoScale.java40 float scaleFactor = viewWidth / videoWidth; in scaleVideoAndFillView() local
41 float desiredScaledHeight = videoHeight * scaleFactor; in scaleVideoAndFillView()
45 float scaleFactor = viewHeight / videoHeight; in scaleVideoAndFillView() local
46 float desiredScaledWidth = videoWidth * scaleFactor; in scaleVideoAndFillView()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DAction.java164 float scaleFactor = minSide / (float) Math.min(source.getWidth(), source.getHeight()); in drawCenteredImage() local
166 float dx = (destination.getWidth() - source.getWidth() * scaleFactor) / 2.0f; in drawCenteredImage()
167 float dy = (destination.getHeight() - source.getHeight() * scaleFactor) / 2.0f; in drawCenteredImage()
172 m.setScale(scaleFactor, scaleFactor); in drawCenteredImage()
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/
DgenPCLm.cpp878 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage()
879 numFullScanlinesToInject * scaleFactor, yAnchor * scaleFactor); in writePDFGrammarPage()
902 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage()
903 numPartialScanlinesToInject * scaleFactor, yAnchor * scaleFactor); in writePDFGrammarPage()
940 sprintf(str, "%d 0 0 %d 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage()
941 numLinesLeft * scaleFactor, yAnchor * scaleFactor); in writePDFGrammarPage()
945 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, newH * scaleFactor, in writePDFGrammarPage()
946 0 * scaleFactor); in writePDFGrammarPage()
949 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage()
950 currStripHeight * scaleFactor, yAnchor * scaleFactor); in writePDFGrammarPage()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java215 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap() local
217 if (scaleFactor < 1.0f || cropLeft != 0 || cropTop != 0 || originalHasAlpha) { in getNormalizedBitmap()
218 final int newWidth = (int) (cropWidth * scaleFactor); in getNormalizedBitmap()
219 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DGridTileDrawable.java48 float scaleFactor = (mCellSize * ICON_SCALE) / PATH_SIZE; in onBoundsChange() local
49 mScaleMatrix.setScale(scaleFactor, scaleFactor); in onBoundsChange()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DProcessingService.java94 public void postHighresRenderingRequest(ImagePreset preset, float scaleFactor, in postHighresRenderingRequest() argument
100 request.setScaleFactor(scaleFactor); in postHighresRenderingRequest()
107 public void postFullresRenderingRequest(ImagePreset preset, float scaleFactor, in postFullresRenderingRequest() argument
113 request.setScaleFactor(scaleFactor); in postFullresRenderingRequest()
DFilterEnvironment.java86 public void setScaleFactor(float scaleFactor) { in setScaleFactor() argument
87 mScaleFactor = scaleFactor; in setScaleFactor()
DRenderingRequest.java174 public void setScaleFactor(float scaleFactor) { in setScaleFactor() argument
175 mScaleFactor = scaleFactor; in setScaleFactor()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java166 float scaleFactor = Math.min((w - blurSizeOutline) / (float) preview.getWidth(), in convertPreviewToAlphaBitmap() local
168 int scaledWidth = (int) (scaleFactor * preview.getWidth()); in convertPreviewToAlphaBitmap()
169 int scaledHeight = (int) (scaleFactor * preview.getHeight()); in convertPreviewToAlphaBitmap()
/packages/apps/PermissionController/src/android/support/wearable/view/
DCircledImageView.java350 final float scaleFactor = Math.min(1f, in onLayout() local
359 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth); in onLayout()
360 final int drawableHeight = Math.round(scaleFactor * nativeDrawableHeight); in onLayout()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DExportDialog.java161 float scaleFactor = mExportWidth / (float) mOriginalBounds.width(); in onClick() local
164 true, mSeekBar.getProgress(), scaleFactor, false); in onClick()

12