/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageShow.java | 231 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 …]
|
D | MasterImage.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/Mms/src/com/android/mms/ui/ |
D | UriImage.java | 277 float scaleFactor = 1.F; in getResizedImageData() local 278 while ((outWidth * scaleFactor > widthLimit) || (outHeight * scaleFactor > heightLimit)) { in getResizedImageData() 279 scaleFactor *= .75F; in getResizedImageData() 288 ", initialScaleFactor=" + scaleFactor + in getResizedImageData() 349 int scaledWidth = (int)(outWidth * scaleFactor); in getResizedImageData() 350 int scaledHeight = (int)(outHeight * scaleFactor); in getResizedImageData() 402 + " with smaller scale factor, cur scale factor: " + scaleFactor); in getResizedImageData() 408 + " width=" + outWidth * scaleFactor in getResizedImageData() 409 + " height=" + outHeight * scaleFactor in getResizedImageData() 410 + " scaleFactor=" + scaleFactor in getResizedImageData() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterChanSat.java | 67 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()
|
D | ImageFilterGrad.java | 77 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()
|
D | ImageFilterRS.java | 42 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()
|
D | ImageFilterSharpen.java | 64 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()
|
D | ImageFilterVignette.java | 79 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()
|
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 | 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 | ImageFilterNegative.java | 34 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 | ImageFilterSaturated.java | 47 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { in apply() argument
|
/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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoProcessor.java | 222 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap() local 224 if (scaleFactor < 1.0f || cropLeft != 0 || cropTop != 0 || originalHasAlpha) { in getNormalizedBitmap() 225 final int newWidth = (int) (cropWidth * scaleFactor); in getNormalizedBitmap() 226 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap()
|
/packages/apps/Browser/src/com/android/browser/ |
D | PhoneUi.java | 300 float scaleFactor = width / (float) mContentView.getWidth(); in showNavScreen() local 316 1f, scaleFactor); in showNavScreen() 391 float scaleFactor = mContentView.getWidth() / (float) width; in hideNavScreen() local 392 int toBottom = toTop + (int) (height * scaleFactor); in hideNavScreen() 413 1f, scaleFactor); in hideNavScreen()
|
/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/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 912 float scaleFactor = Math.min(1f, ((float) MAX_LOGO_IMAGE_SIZE) / in doInBackground() local 914 if (scaleFactor < 1f) { in doInBackground() 916 (int) (bitmap.getWidth() * scaleFactor), in doInBackground() 917 (int) (bitmap.getHeight() * scaleFactor), false); in doInBackground()
|
/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()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 2500 private void setPivotsForZoom(View view, float scaleFactor) { in setPivotsForZoom() argument 2785 final float scaleFactor = (float) in hideAppsCustomizeHelper() local 2800 setPivotsForZoom(fromView, scaleFactor); in hideAppsCustomizeHelper() 2807 scaleX(scaleFactor).scaleY(scaleFactor). in hideAppsCustomizeHelper()
|