HomeSort by relevance Sort by last modified time
    Searched refs:bitmapWidth (Results 1 - 25 of 30) sorted by null

1 2

  /frameworks/base/libs/hwui/
Patch.h 42 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height,
62 float bitmapWidth, uint32_t& quadCount);
Patch.cpp 38 Patch::Patch(const float bitmapWidth, const float bitmapHeight, float width, float height,
80 const float fixed = bitmapWidth - stretchSize;
124 bitmapWidth, quadCount);
135 generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX, width, bitmapWidth,
148 float bitmapWidth, uint32_t& quadCount) {
167 float u2 = std::max(0.0f, stepX - uOffset) / bitmapWidth;
168 u1 += uOffset / bitmapWidth;
175 u1 = stepX / bitmapWidth;
180 if (previousStepX != bitmapWidth) {
PatchCache.h 56 const Patch* get(const uint32_t bitmapWidth, const uint32_t bitmapHeight,
87 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight,
91 , mBitmapWidth(bitmapWidth)
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);
  /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,
127 displayScale = Math.min((float) bitmapWidth / srcWidthPts,
133 displayScale = (float) bitmapWidth / dstWidthPts;
141 matrix.postTranslate(bitmapWidth - srcWidthPts * displayScale, 0);
153 clip.right = (int) (bitmapWidth - paddingRightPts * 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) {
97 crop.left *= bitmapWidth;
99 crop.right *= bitmapWidth;
107 public static void findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) {
108 crop.left /= bitmapWidth;
110 crop.right /= bitmapWidth;
  /frameworks/support/compat/src/main/java/androidx/core/app/
SharedElementCallback.java 189 int bitmapWidth = Math.round(screenBounds.width());
192 if (bitmapWidth > 0 && bitmapHeight > 0) {
193 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
194 bitmapWidth = (int) (bitmapWidth * scale);
202 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
224 int bitmapWidth = (int) (width * 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;
83 bitmapWidth = previewSize;
87 bitmapWidth = viewWidth;
91 Bitmap preview = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
  /packages/apps/Launcher3/src/com/android/launcher3/widget/
WidgetImageView.java 94 float bitmapWidth = mBitmap.getWidth();
96 final float scale = bitmapWidth > myWidth ? myWidth / bitmapWidth : 1;
97 float scaledWidth = bitmapWidth * scale;
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
RedEyeFilter.java 154 int bitmapWidth = mWidth / 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 194 final int bitmapWidth = bitmap.getWidth();
201 if (bitmapWidth > 0 && bitmapHeight > 0 &&
206 (float) descriptor.desiredWidth / bitmapWidth,
208 final int targetWidth = (int) (bitmapWidth * targetScale);
212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) {
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
ImageRequestTest.java 71 final int bitmapWidth = imageResource.getBitmap().getWidth();
73 assertEquals(options.getValue().outWidth, bitmapWidth);
101 final int bitmapWidth = imageResource.getBitmap().getWidth();
103 assertTrue(bitmapWidth >= DOWNSAMPLE_IMAGE_SIZE &&
105 (bitmapWidth <= DOWNSAMPLE_IMAGE_SIZE * 4 ||
  /frameworks/base/core/java/android/transition/
TransitionUtils.java 128 int bitmapWidth = (int) (width * scale);
138 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
174 int bitmapWidth = Math.round(bounds.width());
176 if (bitmapWidth > 0 && bitmapHeight > 0) {
177 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
178 bitmapWidth *= scale;
184 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight);
  /frameworks/support/transition/src/main/java/androidx/transition/
TransitionUtils.java 111 int bitmapWidth = Math.round(bounds.width());
113 if (bitmapWidth > 0 && bitmapHeight > 0) {
114 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
115 bitmapWidth = Math.round(bitmapWidth * scale);
123 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight);
130 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
  /frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
TestUtils.java 57 final int bitmapWidth = view.getWidth();
61 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
151 int bitmapWidth, int bitmapHeight, @ColorInt int color,
153 int[] rowPixels = new int[bitmapWidth];
155 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1);
156 for (int column = 0; column < bitmapWidth; column++) {
164 + bitmapWidth + "," + bitmapHeight + ") found "
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
GeometryMathUtils.java 429 private static Matrix getFullGeometryMatrix(GeometryHolder holder, int bitmapWidth,
431 float centerX = bitmapWidth / 2f;
440 public static Matrix getFullGeometryToScreenMatrix(GeometryHolder holder, int bitmapWidth,
443 int bw = bitmapWidth;
445 bh = bitmapWidth;
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 113 final int bitmapWidth = bitmap.getWidth();
117 if (drawableWidth > bitmapWidth
118 && bitmapWidth < VIEWBOX_WIDTH * MAX_CACHED_BITMAP_SCALE) {
251 int bitmapWidth = bitmap.getWidth();
253 float scaleX = drawableBounds.width() / (float) bitmapWidth;
261 canvas.scale(scaleY / scaleX, 1f, SCALE_FOCUS_X * bitmapWidth, 0f);
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 65 final int bitmapWidth = view.getWidth();
69 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
214 final int bitmapWidth = bitmap.getWidth();
216 final int[] rowPixels = new int[bitmapWidth];
224 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1);
234 + bitmapWidth + "," + bitmapHeight + ") found "
  /frameworks/ex/framesequence/src/android/support/rastermill/
FrameSequenceDrawable.java 409 final int bitmapWidth = getIntrinsicWidth();
411 final float scaleX = 1.0f * bounds.width() / bitmapWidth;
426 (bitmapWidth - scaledDiameterX) / 2.0f,
428 (bitmapWidth + scaledDiameterX) / 2.0f,
  /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
PageContentRepository.java 361 final int bitmapWidth;
365 public RenderSpec(int bitmapWidth, int bitmapHeight,
367 this.bitmapWidth = bitmapWidth;
388 if (bitmapWidth != other.bitmapWidth) {
403 return bitmap.getWidth() == bitmapWidth
409 int result = bitmapWidth;
590 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight
838 final int bitmapSizeInBytes = mRenderSpec.bitmapWidth
    [all...]
  /frameworks/base/core/java/com/android/internal/graphics/palette/
Palette.java 900 final int bitmapWidth = bitmap.getWidth();
902 final int[] pixels = new int[bitmapWidth * bitmapHeight];
903 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
    [all...]
  /frameworks/support/palette/src/main/java/androidx/palette/graphics/
Palette.java 885 final int bitmapWidth = bitmap.getWidth();
887 final int[] pixels = new int[bitmapWidth * bitmapHeight];
888 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
902 System.arraycopy(pixels, ((row + mRegion.top) * bitmapWidth) + mRegion.left,
    [all...]

Completed in 395 milliseconds

1 2