/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageShow.java | 232 float scaleFactor = primary.getScaleFactor(); in getImageToScreenMatrix() local 234 m.postScale(scaleFactor, scaleFactor, getWidth() / 2.0f, getHeight() / 2.0f); in getImageToScreenMatrix() 646 float scaleFactor = PrimaryImage.getImage().getScaleFactor(); in onTouchEvent() local 647 if (scaleFactor > 1 && (!ENABLE_ZOOMED_COMPARISON || event.getPointerCount() == 2)) { in onTouchEvent() 648 float translateX = (mTouch.x - mTouchDown.x) / scaleFactor; in onTouchEvent() 649 float translateY = (mTouch.y - mTouchDown.y) / scaleFactor; in onTouchEvent() 679 float scaleFactor = PrimaryImage.getImage().getScaleFactor(); in onTouchEvent() local 681 constrainTranslation(translation, scaleFactor); in onTouchEvent() 726 float scaleFactor = PrimaryImage.getImage().getScaleFactor(); in applyTranslationConstraints() local 730 constrainTranslation(translation, scaleFactor); in applyTranslationConstraints() [all …]
|
D | PrimaryImage.java | 631 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/Dialer/java/com/android/incallui/videosurface/impl/ |
D | VideoScale.java | 40 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/ |
D | Action.java | 164 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/ |
D | genPCLm.cpp | 877 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage() 878 numFullScanlinesToInject * scaleFactor, yAnchor * scaleFactor); in writePDFGrammarPage() 901 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage() 902 numPartialScanlinesToInject * scaleFactor, yAnchor * scaleFactor); in writePDFGrammarPage() 939 sprintf(str, "%d 0 0 %d 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage() 940 numLinesLeft * scaleFactor, yAnchor * scaleFactor); in writePDFGrammarPage() 944 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, newH * scaleFactor, in writePDFGrammarPage() 945 0 * scaleFactor); in writePDFGrammarPage() 948 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage() 949 currStripHeight * scaleFactor, yAnchor * scaleFactor); in writePDFGrammarPage() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoProcessor.java | 215 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/ |
D | GridTileDrawable.java | 46 float scaleFactor = (mCellSize - 2 * SPACE_BETWEEN_ICONS) / PATH_SIZE; in onBoundsChange() local 47 mScaleMatrix.setScale(scaleFactor, scaleFactor); in onBoundsChange()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | ProcessingService.java | 94 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()
|
D | FilterEnvironment.java | 86 public void setScaleFactor(float scaleFactor) { in setScaleFactor() argument 87 mScaleFactor = scaleFactor; in setScaleFactor()
|
D | RenderingRequest.java | 174 public void setScaleFactor(float scaleFactor) { in setScaleFactor() argument 175 mScaleFactor = scaleFactor; in setScaleFactor()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterBorder.java | 67 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument 71 float scale2 = scaleFactor * 2.0f; in apply()
|
D | ImageFilterEdge.java | 42 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterShadows.java | 47 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterVibrance.java | 46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterNegative.java | 34 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterContrast.java | 48 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterExposure.java | 46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterSaturated.java | 47 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterWBalance.java | 53 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterBwFilter.java | 48 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
D | ImageFilterHue.java | 50 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingItemDragHelper.java | 233 float scaleFactor = Math.min((w - blurSizeOutline) / (float) preview.getWidth(), in convertPreviewToAlphaBitmap() local 235 int scaledWidth = (int) (scaleFactor * preview.getWidth()); in convertPreviewToAlphaBitmap() 236 int scaledHeight = (int) (scaleFactor * preview.getHeight()); in convertPreviewToAlphaBitmap()
|
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletCardCarousel.java | 233 float scaleFactor = Math.max(UNSELECTED_CARD_SCALE, 1f - Math.abs(position)); in updateCardView() local 235 cardView.setScaleX(scaleFactor); in updateCardView() 236 cardView.setScaleY(scaleFactor); in updateCardView()
|
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | CircledImageView.java | 350 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/ |
D | ExportDialog.java | 161 float scaleFactor = mExportWidth / (float) mOriginalBounds.width(); in onClick() local 164 true, mSeekBar.getProgress(), scaleFactor, false); in onClick()
|