Searched refs:bitmapHeight (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DIPdfRenderer.aidl29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight,
H A DPdfManipulationService.java105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, argument
128 (float) bitmapHeight / srcHeightPts);
131 displayScale = (float) bitmapHeight / dstHeightPts;
154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale);
160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight);
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java51 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
53 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java128 int bitmapHeight = (int) (height * scale);
129 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
136 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
158 int bitmapHeight = Math.round(bounds.height());
159 if (bitmapWidth > 0 && bitmapHeight > 0) {
160 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
162 bitmapHeight *= scale;
165 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
/frameworks/support/v4/java/android/support/v4/app/
H A DSharedElementCallback.java191 int bitmapHeight = Math.round(screenBounds.height());
193 if (bitmapWidth > 0 && bitmapHeight > 0) {
194 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
196 bitmapHeight *= scale;
203 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
226 int bitmapHeight = (int) (height * scale);
227 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
234 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DRedEyeFilter.java155 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,
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtils.java52 final int bitmapHeight = view.getHeight();
55 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
145 int bitmapWidth, int bitmapHeight, @ColorInt int color,
148 for (int row = 0; row < bitmapHeight; row++) {
177 + bitmapWidth + "," + bitmapHeight + ") found ["
144 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, int bitmapWidth, int bitmapHeight, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument
/frameworks/base/libs/hwui/
H A DPatchCache.h59 const uint32_t bitmapWidth, const uint32_t bitmapHeight,
98 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, argument
100 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight),
H A DPatch.cpp38 Patch::Patch(const float bitmapWidth, const float bitmapHeight, argument
93 const float fixed = bitmapHeight - stretchSize;
120 float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight;
121 v1 += vOffset / bitmapHeight;
129 v1 = stepY / bitmapHeight;
134 if (previousStepY != bitmapHeight) {
H A DPatch.h42 Patch(const float bitmapWidth, const float bitmapHeight,
H A DPatchCache.cpp240 const uint32_t bitmapWidth, const uint32_t bitmapHeight,
243 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch);
248 Patch* newMesh = new Patch(bitmapWidth, bitmapHeight,
239 get(const AssetAtlas::Entry* entry, const uint32_t bitmapWidth, const uint32_t bitmapHeight, const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) argument
/frameworks/support/v4/java/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawableFactory.java55 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
57 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight,
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPageContentRepository.java339 final int bitmapHeight; field in class:PageContentRepository.RenderSpec
342 public RenderSpec(int bitmapWidth, int bitmapHeight, argument
345 this.bitmapHeight = bitmapHeight;
362 if (bitmapHeight != other.bitmapHeight) {
381 && bitmap.getHeight() == bitmapHeight;
387 result = 31 * result + bitmapHeight;
532 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight
776 * mRenderSpec.bitmapHeight * BYTES_PER_PIXE
[all...]
/frameworks/base/libs/hwui/utils/
H A DNinePatchImpl.cpp179 const int bitmapHeight = bitmap.height(); local
196 int numFixedYPixelsRemaining = bitmapHeight - numStretchyYPixelsRemaining;
225 j <= numYDivs && src.fTop < bitmapHeight;
230 src.fBottom = bitmapHeight;
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DPalette.java851 final int bitmapHeight = bitmap.getHeight();
852 final int[] pixels = new int[bitmapWidth * bitmapHeight];
853 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java216 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
/frameworks/base/libs/hwui/font/
H A DFont.cpp207 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) {
206 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument

Completed in 563 milliseconds