Searched defs:bitmapWidth (Results 1 - 11 of 11) sorted by relevance

/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/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/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtils.java51 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++) {
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 DPatch.cpp38 Patch::Patch(const float bitmapWidth, const float bitmapHeight, argument
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) {
147 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
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
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),
/frameworks/base/libs/hwui/utils/
H A DNinePatchImpl.cpp178 const int bitmapWidth = bitmap.width(); local
191 int numFixedXPixelsRemaining = bitmapWidth - numStretchyXPixelsRemaining;
252 i <= numXDivs && src.fLeft < bitmapWidth;
256 src.fRight = bitmapWidth;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DPdfManipulationService.java105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, argument
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/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) {
223 for (uint32_t cacheY = startY, bitmapY = dstY * bitmapWidth; cacheY < endY;
224 cacheY += srcStride, bitmapY += bitmapWidth) {
206 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPageContentRepository.java338 final int bitmapWidth; field in class:PageContentRepository.RenderSpec
342 public RenderSpec(int bitmapWidth, int bitmapHeight, argument
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...]

Completed in 315 milliseconds