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

1 2

  /frameworks/base/libs/hwui/
Patch.h 42 Patch(const float bitmapWidth, const float bitmapHeight,
63 float width, float bitmapWidth, uint32_t& quadCount);
Patch.cpp 38 Patch::Patch(const float bitmapWidth, const float bitmapHeight,
81 const float fixed = bitmapWidth - stretchSize;
125 width, bitmapWidth, quadCount);
137 width, bitmapWidth, quadCount);
149 float width, float bitmapWidth, uint32_t& quadCount) {
168 float u2 = std::max(0.0f, stepX - uOffset) / bitmapWidth;
169 u1 += uOffset / bitmapWidth;
176 u1 = stepX / bitmapWidth;
181 if (previousStepX != bitmapWidth) {
PatchCache.h 59 const uint32_t bitmapWidth, const uint32_t bitmapHeight,
98 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight,
100 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight),
PatchCache.cpp 240 const uint32_t bitmapWidth, const uint32_t bitmapHeight,
243 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch);
248 Patch* newMesh = new Patch(bitmapWidth, bitmapHeight,
  /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/core-utils/api21/android/support/v4/graphics/drawable/
RoundedBitmapDrawable21.java 51 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,
53 Gravity.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;
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 48 final int bitmapWidth = view.getWidth();
52 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
168 int bitmapWidth, int bitmapHeight, @ColorInt int color,
170 int[] rowPixels = new int[bitmapWidth];
172 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1);
173 for (int column = 0; column < bitmapWidth; column++) {
200 + bitmapWidth + "," + bitmapHeight + ") found ["
  /frameworks/base/core/java/android/transition/
TransitionUtils.java 127 int bitmapWidth = (int) (width * scale);
129 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
136 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
157 int bitmapWidth = Math.round(bounds.width());
159 if (bitmapWidth > 0 && bitmapHeight > 0) {
160 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
161 bitmapWidth *= scale;
165 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
  /frameworks/support/compat/java/android/support/v4/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 *= 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);
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
TestUtils.java 51 final int bitmapWidth = view.getWidth();
55 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
145 int bitmapWidth, int bitmapHeight, @ColorInt int color,
147 int[] rowPixels = new int[bitmapWidth];
149 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1);
150 for (int column = 0; column < bitmapWidth; column++) {
158 + bitmapWidth + "," + bitmapHeight + ") found "
  /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/support/core-utils/java/android/support/v4/graphics/drawable/
RoundedBitmapDrawableFactory.java 55 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,
57 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight,
  /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 114 final int bitmapWidth = bitmap.getWidth();
118 if (drawableWidth > bitmapWidth
119 && bitmapWidth < VIEWBOX_WIDTH * MAX_CACHED_BITMAP_SCALE) {
259 int bitmapWidth = bitmap.getWidth();
261 float scaleX = drawableBounds.width() / (float) bitmapWidth;
269 canvas.scale(scaleY / scaleX, 1f, SCALE_FOCUS_X * bitmapWidth, 0f);
  /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
PageContentRepository.java 338 final int bitmapWidth;
342 public RenderSpec(int bitmapWidth, int bitmapHeight,
344 this.bitmapWidth = bitmapWidth;
365 if (bitmapWidth != other.bitmapWidth) {
380 return bitmap.getWidth() == bitmapWidth
386 int result = bitmapWidth;
532 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight
775 final int bitmapSizeInBytes = mRenderSpec.bitmapWidth
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
HolographicOutlineHelper.java 165 int bitmapWidth = (int) (rect.width() * view.getScaleX());
167 if (bitmapHeight <= 0 || bitmapWidth <= 0) {
171 int key = (bitmapWidth << 16) | bitmapHeight;
174 cache = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
  /frameworks/base/libs/hwui/utils/
NinePatchImpl.cpp 178 const int bitmapWidth = bitmap.width();
191 int numFixedXPixelsRemaining = bitmapWidth - numStretchyXPixelsRemaining;
252 i <= numXDivs && src.fLeft < bitmapWidth;
256 src.fRight = bitmapWidth;
  /frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
Palette.java 879 final int bitmapWidth = bitmap.getWidth();
881 final int[] pixels = new int[bitmapWidth * bitmapHeight];
882 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
896 System.arraycopy(pixels, ((row + mRegion.top) * bitmapWidth) + mRegion.left,
    [all...]
  /packages/apps/Camera2/src/com/android/camera/
MultiToggleImageButton.java 404 int bitmapWidth = (width*2) + ((mParentSize - width)/2);
406 bitmap = Bitmap.createBitmap(bitmapWidth, height, Bitmap.Config.ARGB_8888);
  /frameworks/base/libs/hwui/font/
Font.cpp 207 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) {
223 for (uint32_t cacheY = startY, bitmapY = dstY * bitmapWidth; cacheY < endY;
224 cacheY += srcStride, bitmapY += bitmapWidth) {
  /frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/
RoundedBitmapDrawable.java 216 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,

Completed in 622 milliseconds

1 2