Home
last modified time | relevance | path

Searched refs:bitmapWidth (Results 1 – 21 of 21) sorted by relevance

/frameworks/support/compat/java/android/support/v4/app/
DSharedElementCallback.java189 int bitmapWidth = Math.round(screenBounds.width()); in onCaptureSharedElementSnapshot() local
192 if (bitmapWidth > 0 && bitmapHeight > 0) { in onCaptureSharedElementSnapshot()
193 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in onCaptureSharedElementSnapshot()
194 bitmapWidth = (int) (bitmapWidth * scale); in onCaptureSharedElementSnapshot()
202 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in onCaptureSharedElementSnapshot()
224 int bitmapWidth = (int) (width * scale); in createDrawableBitmap() local
226 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createDrawableBitmap()
233 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight); in createDrawableBitmap()
/frameworks/base/core/java/android/transition/
DTransitionUtils.java129 int bitmapWidth = (int) (width * scale); in createDrawableBitmap() local
141 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight); in createDrawableBitmap()
173 int bitmapWidth = Math.round(bounds.width()); in createViewBitmap() local
175 if (bitmapWidth > 0 && bitmapHeight > 0) { in createViewBitmap()
176 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in createViewBitmap()
177 bitmapWidth *= scale; in createViewBitmap()
183 node.setLeftTopRightBottom(0, 0, bitmapWidth, bitmapHeight); in createViewBitmap()
185 final DisplayListCanvas canvas = node.start(bitmapWidth, bitmapHeight); in createViewBitmap()
189 bitmap = ThreadedRenderer.createHardwareBitmap(node, bitmapWidth, bitmapHeight); in createViewBitmap()
/frameworks/base/libs/hwui/
DPatch.cpp38 Patch::Patch(const float bitmapWidth, const float bitmapHeight, in Patch() argument
81 const float fixed = bitmapWidth - stretchSize; in Patch()
125 width, bitmapWidth, quadCount); in Patch()
137 width, bitmapWidth, quadCount); in Patch()
149 float width, float bitmapWidth, uint32_t& quadCount) { in generateRow() argument
168 float u2 = std::max(0.0f, stepX - uOffset) / bitmapWidth; in generateRow()
169 u1 += uOffset / bitmapWidth; in generateRow()
176 u1 = stepX / bitmapWidth; in generateRow()
181 if (previousStepX != bitmapWidth) { in generateRow()
DPatchCache.h56 const Patch* get(const uint32_t bitmapWidth, const uint32_t bitmapHeight,
91 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, in PatchDescription()
93 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), in PatchDescription()
DPatch.h42 Patch(const float bitmapWidth, const float bitmapHeight,
63 float width, float bitmapWidth, uint32_t& quadCount);
DPatchCache.cpp226 const Patch* PatchCache::get( const uint32_t bitmapWidth, const uint32_t bitmapHeight, in get() argument
229 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get()
233 Patch* newMesh = new Patch(bitmapWidth, bitmapHeight, in get()
/frameworks/support/transition/src/android/support/transition/
DTransitionUtils.java83 int bitmapWidth = Math.round(bounds.width()); in createViewBitmap() local
85 if (bitmapWidth > 0 && bitmapHeight > 0) { in createViewBitmap()
86 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in createViewBitmap()
87 bitmapWidth = (int) (bitmapWidth * scale); in createViewBitmap()
91 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createViewBitmap()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DRedEyeFilter.java154 int bitmapWidth = mWidth / 2; in createRedEyeFrame() local
157 … Bitmap redEyeBitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createRedEyeFrame()
160 mRadius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(bitmapWidth, bitmapHeight)); in createRedEyeFrame()
163 mCanvas.drawCircle(mCenters[i] * bitmapWidth, mCenters[i + 1] * bitmapHeight, in createRedEyeFrame()
167 FrameFormat format = ImageFormat.create(bitmapWidth, bitmapHeight, in createRedEyeFrame()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtils.java56 final int bitmapWidth = view.getWidth(); in getCombinedBackgroundBitmap() local
60 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, in getCombinedBackgroundBitmap()
150 int bitmapWidth, int bitmapHeight, @ColorInt int color, in assertAllPixelsOfColor() argument
152 int[] rowPixels = new int[bitmapWidth]; in assertAllPixelsOfColor()
154 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1); in assertAllPixelsOfColor()
155 for (int column = 0; column < bitmapWidth; column++) { in assertAllPixelsOfColor()
163 + bitmapWidth + "," + bitmapHeight + ") found " in assertAllPixelsOfColor()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DGlifPatternDrawable.java115 final int bitmapWidth = bitmap.getWidth(); in draw() local
119 if (drawableWidth > bitmapWidth in draw()
120 && bitmapWidth < VIEWBOX_WIDTH * MAX_CACHED_BITMAP_SCALE) { in draw()
260 int bitmapWidth = bitmap.getWidth(); in scaleCanvasToBounds() local
262 float scaleX = drawableBounds.width() / (float) bitmapWidth; in scaleCanvasToBounds()
270 canvas.scale(scaleY / scaleX, 1f, SCALE_FOCUS_X * bitmapWidth, 0f); in scaleCanvasToBounds()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
127 displayScale = Math.min((float) bitmapWidth / srcWidthPts, in renderPage()
133 displayScale = (float) bitmapWidth / dstWidthPts; in renderPage()
141 matrix.postTranslate(bitmapWidth - srcWidthPts * displayScale, 0); in renderPage()
153 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale); in renderPage()
160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight); in renderPage()
DIPdfRenderer.aidl29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java361 final int bitmapWidth; field in PageContentRepository.RenderSpec
365 public RenderSpec(int bitmapWidth, int bitmapHeight, in RenderSpec() argument
367 this.bitmapWidth = bitmapWidth; in RenderSpec()
388 if (bitmapWidth != other.bitmapWidth) { in equals()
403 return bitmap.getWidth() == bitmapWidth in hasSameSize()
409 int result = bitmapWidth; in hashCode()
590 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight in startPreload()
838 final int bitmapSizeInBytes = mRenderSpec.bitmapWidth in onPreExecute()
877 Bitmap bitmap = Bitmap.createBitmap(mRenderSpec.bitmapWidth, in onPreExecute()
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable21.java53 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument
55 Gravity.apply(gravity, bitmapWidth, bitmapHeight, in gravityCompatApply()
/frameworks/support/core-utils/java/android/support/v4/graphics/drawable/
DRoundedBitmapDrawableFactory.java55 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument
57 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight, in gravityCompatApply()
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java409 final int bitmapWidth = getIntrinsicWidth(); in draw() local
411 final float scaleX = 1.0f * bounds.width() / bitmapWidth; in draw()
426 (bitmapWidth - scaledDiameterX) / 2.0f, in draw()
428 (bitmapWidth + scaledDiameterX) / 2.0f, in draw()
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
DPalette.java877 final int bitmapWidth = bitmap.getWidth();
879 final int[] pixels = new int[bitmapWidth * bitmapHeight];
880 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
894 System.arraycopy(pixels, ((row + mRegion.top) * bitmapWidth) + mRegion.left,
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java900 final int bitmapWidth = bitmap.getWidth();
902 final int[] pixels = new int[bitmapWidth * bitmapHeight];
903 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
917 System.arraycopy(pixels, ((row + mRegion.top) * bitmapWidth) + mRegion.left,
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java817 int bitmapWidth = bitmap.getWidth(); in scaleDownIfNecessary() local
819 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) { in scaleDownIfNecessary()
820 float scale = Math.min((float) maxWidth / bitmapWidth, in scaleDownIfNecessary()
822 bitmap = Bitmap.createScaledBitmap(bitmap, (int) (scale * bitmapWidth), in scaleDownIfNecessary()
/frameworks/base/libs/hwui/font/
DFont.cpp207 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) { in drawCachedGlyphBitmap() argument
223 for (uint32_t cacheY = startY, bitmapY = dstY * bitmapWidth; cacheY < endY; in drawCachedGlyphBitmap()
224 cacheY += srcStride, bitmapY += bitmapWidth) { in drawCachedGlyphBitmap()
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java218 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument