Searched refs:bitmapWidth (Results 1 - 15 of 15) 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 displayScale = Math.min((float) bitmapWidth / srcWidthPts,
134 displayScale = (float) bitmapWidth / dstWidthPts;
142 matrix.postTranslate(bitmapWidth - srcWidthPts * displayScale, 0);
154 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale);
161 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/libs/hwui/
H A DPatch.h58 TextureVertex* createMesh(const float bitmapWidth, const float bitmapHeight,
60 TextureVertex* createMesh(const float bitmapWidth, const float bitmapHeight,
66 float width, float bitmapWidth, uint32_t& quadCount);
H A DPatch.cpp50 TextureVertex* Patch::createMesh(const float bitmapWidth, const float bitmapHeight, argument
53 return createMesh(bitmapWidth, bitmapHeight, width, height, mapper, patch);
56 TextureVertex* Patch::createMesh(const float bitmapWidth, const float bitmapHeight, argument
101 const float fixed = bitmapWidth - stretchSize;
145 width, bitmapWidth, quadCount);
157 width, bitmapWidth, quadCount);
173 float width, float bitmapWidth, uint32_t& quadCount) {
192 float u2 = fmax(0.0f, stepX - uOffset) / bitmapWidth;
193 u1 += uOffset / bitmapWidth;
200 u1 = stepX / bitmapWidth;
171 generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, float y1, float y2, float v1, float v2, float stretchX, float rescaleX, float width, float bitmapWidth, uint32_t& quadCount) argument
[all...]
H A DPatchCache.h58 const uint32_t bitmapWidth, const uint32_t bitmapHeight,
97 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, argument
99 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight),
H A DPatchCache.cpp242 const uint32_t bitmapWidth, const uint32_t bitmapHeight,
245 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch);
254 vertices = newMesh->createMesh(bitmapWidth, bitmapHeight,
257 vertices = newMesh->createMesh(bitmapWidth, bitmapHeight,
241 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/base/core/java/android/transition/
H A DTransitionUtils.java127 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/v4/java/android/support/v4/app/
H A DSharedElementCallback.java170 int bitmapWidth = Math.round(screenBounds.width());
173 if (bitmapWidth > 0 && bitmapHeight > 0) {
174 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
175 bitmapWidth *= scale;
183 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
205 int bitmapWidth = (int) (width * scale);
207 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
214 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DRedEyeFilter.java154 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,
/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.java337 final int bitmapWidth; field in class:PageContentRepository.RenderSpec
341 public RenderSpec(int bitmapWidth, int bitmapHeight, argument
343 this.bitmapWidth = bitmapWidth;
364 if (bitmapWidth != other.bitmapWidth) {
379 return bitmap.getWidth() == bitmapWidth
385 int result = bitmapWidth;
526 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight
768 final int bitmapSizeInBytes = mRenderSpec.bitmapWidth
[all...]
/frameworks/base/core/jni/android/graphics/
H A DNinePatchImpl.cpp188 const int bitmapWidth = bitmap.width(); local
198 int numFixedXPixelsRemaining = bitmapWidth - numStretchyXPixelsRemaining;
259 i <= numXDivs && src.fLeft < bitmapWidth;
263 src.fRight = bitmapWidth;
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java213 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
/frameworks/base/libs/hwui/font/
H A DFont.cpp213 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) {
229 for (uint32_t cacheY = startY, bitmapY = dstY * bitmapWidth; cacheY < endY;
230 cacheY += srcStride, bitmapY += bitmapWidth) {
212 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument

Completed in 8413 milliseconds