/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
IPdfRenderer.aidl | 29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight,
|
PdfManipulationService.java | 105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, 128 (float) bitmapHeight / srcHeightPts); 131 displayScale = (float) bitmapHeight / dstHeightPts; 154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); 160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight);
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/ |
RoundedBitmapDrawable21.java | 54 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, 56 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
|
RoundedBitmapDrawableFactory.java | 60 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, 62 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight,
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
FilterCropRepresentation.java | 96 public static void findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) { 98 crop.top *= bitmapHeight; 100 crop.bottom *= bitmapHeight; 107 public static void findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) { 109 crop.top /= bitmapHeight; 111 crop.bottom /= bitmapHeight;
|
/frameworks/support/compat/src/main/java/androidx/core/app/ |
SharedElementCallback.java | 190 int bitmapHeight = Math.round(screenBounds.height()); 192 if (bitmapWidth > 0 && bitmapHeight > 0) { 193 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); 195 bitmapHeight = (int) (bitmapHeight * scale); 202 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); 225 int bitmapHeight = (int) (height * scale); 226 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); 233 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
LivePreviewWidgetCell.java | 79 final int bitmapWidth, bitmapHeight; 84 bitmapHeight = (int) (viewHeight * scale); 88 bitmapHeight = viewHeight; 91 Bitmap preview = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
RedEyeFilter.java | 155 int bitmapHeight = mHeight / 2; 157 Bitmap redEyeBitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); 160 mRadius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(bitmapWidth, bitmapHeight)); 163 mCanvas.drawCircle(mCenters[i] * bitmapWidth, mCenters[i + 1] * bitmapHeight, 167 FrameFormat format = ImageFormat.create(bitmapWidth, bitmapHeight,
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
DecodedImageResource.java | 195 final int bitmapHeight = bitmap.getHeight(); 201 if (bitmapWidth > 0 && bitmapHeight > 0 && 207 (float) descriptor.desiredHeight / bitmapHeight); 209 final int targetHeight = (int) (bitmapHeight * targetScale); 212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) {
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
ImageRequestTest.java | 72 final int bitmapHeight = imageResource.getBitmap().getHeight(); 74 assertEquals(options.getValue().outHeight, bitmapHeight); 102 final int bitmapHeight = imageResource.getBitmap().getHeight(); 104 bitmapHeight >= DOWNSAMPLE_IMAGE_SIZE && 106 bitmapHeight <= DOWNSAMPLE_IMAGE_SIZE * 4));
|
/frameworks/base/core/java/android/transition/ |
TransitionUtils.java | 129 int bitmapHeight = (int) (height * scale); 138 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight); 175 int bitmapHeight = Math.round(bounds.height()); 176 if (bitmapWidth > 0 && bitmapHeight > 0) { 177 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); 179 bitmapHeight *= scale; 184 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight);
|
/frameworks/support/transition/src/main/java/androidx/transition/ |
TransitionUtils.java | 112 int bitmapHeight = Math.round(bounds.height()); 113 if (bitmapWidth > 0 && bitmapHeight > 0) { 114 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); 116 bitmapHeight = Math.round(bitmapHeight * scale); 123 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight); 130 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
|
/frameworks/base/libs/hwui/ |
PatchCache.h | 56 const Patch* get(const uint32_t bitmapWidth, const uint32_t bitmapHeight, 87 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, 92 , mBitmapHeight(bitmapHeight)
|
Patch.h | 42 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height,
|
Patch.cpp | 38 Patch::Patch(const float bitmapWidth, const float bitmapHeight, float width, float height, 92 const float fixed = bitmapHeight - stretchSize; 119 float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight; 120 v1 += vOffset / bitmapHeight; 128 v1 = stepY / bitmapHeight; 133 if (previousStepY != bitmapHeight) {
|
PatchCache.cpp | 226 const Patch* PatchCache::get(const uint32_t bitmapWidth, const uint32_t bitmapHeight, 229 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); 234 new Patch(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, sIdentity, patch);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
GeometryMathUtils.java | 430 int bitmapHeight) { 432 float centerY = bitmapHeight / 2f; 441 int bitmapHeight, int viewWidth, int viewHeight) { 442 int bh = bitmapHeight; 446 bw = bitmapHeight; 450 float s = Math.min(viewWidth / (float) bitmapWidth, viewHeight / (float) bitmapHeight); 451 Matrix m = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); 457 public static RectF getTrueCropRect(GeometryHolder holder, int bitmapWidth, int bitmapHeight) { 459 FilterCropRepresentation.findScaledCrop(r, bitmapWidth, bitmapHeight); 462 Matrix m1 = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
GlifPatternDrawable.java | 114 final int bitmapHeight = bitmap.getHeight(); 120 } else if (drawableHeight > bitmapHeight 121 && bitmapHeight < VIEWBOX_HEIGHT * MAX_CACHED_BITMAP_SCALE) { 252 int bitmapHeight = bitmap.getHeight(); 254 float scaleY = drawableBounds.height() / (float) bitmapHeight; 265 canvas.scale(1f, scaleX / scaleY, 0f, SCALE_FOCUS_Y * bitmapHeight);
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/ |
TestUtils.java | 58 final int bitmapHeight = view.getHeight(); 61 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, 151 int bitmapWidth, int bitmapHeight, @ColorInt int color, 154 for (int row = 0; row < bitmapHeight; row++) { 164 + bitmapWidth + "," + bitmapHeight + ") found "
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
FrameSequenceDrawable.java | 410 final int bitmapHeight = getIntrinsicHeight(); 412 final float scaleY = 1.0f * bounds.height() / bitmapHeight; 427 (bitmapHeight - scaledDiameterY) / 2.0f, 429 (bitmapHeight + scaledDiameterY) / 2.0f);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
PageContentRepository.java | 362 final int bitmapHeight; 365 public RenderSpec(int bitmapWidth, int bitmapHeight, 368 this.bitmapHeight = bitmapHeight; 385 if (bitmapHeight != other.bitmapHeight) { 404 && bitmap.getHeight() == bitmapHeight; 410 result = 31 * result + bitmapHeight; 590 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight 839 * mRenderSpec.bitmapHeight * BYTES_PER_PIXEL [all...] |
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
TaskThumbnailView.java | 273 float bitmapHeight = Math.max((rotate ? thumbnailWidth : thumbnailHeight) 275 if (Math.round(bitmapHeight) < getMeasuredHeight()) { 276 mClipBottom = bitmapHeight;
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
TestUtils.java | 66 final int bitmapHeight = view.getHeight(); 69 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, 215 final int bitmapHeight = bitmap.getHeight(); 234 + bitmapWidth + "," + bitmapHeight + ") found "
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
Icon.java | 854 int bitmapHeight = bitmap.getHeight(); 855 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) { 857 (float) maxHeight / bitmapHeight); 860 Math.max(1, (int) (scale * bitmapHeight)), [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
MultiToggleImageButton.java | 395 int bitmapHeight = (height*2) + ((mParentSize - height)/2); 397 bitmap = Bitmap.createBitmap(width, bitmapHeight, Bitmap.Config.ARGB_8888);
|