/frameworks/support/compat/java/android/support/v4/app/ |
D | SharedElementCallback.java | 189 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 *= 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/libs/hwui/ |
D | Patch.cpp | 38 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()
|
D | PatchCache.h | 59 const uint32_t bitmapWidth, const uint32_t bitmapHeight, 98 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, in PatchDescription() 100 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), in PatchDescription()
|
D | Patch.h | 42 Patch(const float bitmapWidth, const float bitmapHeight, 63 float width, float bitmapWidth, uint32_t& quadCount);
|
D | PatchCache.cpp | 240 const uint32_t bitmapWidth, const uint32_t bitmapHeight, in get() argument 243 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get() 248 Patch* newMesh = new Patch(bitmapWidth, bitmapHeight, in get()
|
/frameworks/base/core/java/android/transition/ |
D | TransitionUtils.java | 127 int bitmapWidth = (int) (width * scale); in createDrawableBitmap() local 129 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createDrawableBitmap() 136 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight); in createDrawableBitmap() 157 int bitmapWidth = Math.round(bounds.width()); in createViewBitmap() local 159 if (bitmapWidth > 0 && bitmapHeight > 0) { in createViewBitmap() 160 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in createViewBitmap() 161 bitmapWidth *= scale; in createViewBitmap() 165 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createViewBitmap()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
D | TestUtils.java | 51 final int bitmapWidth = view.getWidth(); in getCombinedBackgroundBitmap() local 55 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, in getCombinedBackgroundBitmap() 145 int bitmapWidth, int bitmapHeight, @ColorInt int color, in assertAllPixelsOfColor() argument 147 int[] rowPixels = new int[bitmapWidth]; in assertAllPixelsOfColor() 149 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1); in assertAllPixelsOfColor() 150 for (int column = 0; column < bitmapWidth; column++) { in assertAllPixelsOfColor() 158 + bitmapWidth + "," + bitmapHeight + ") found " in assertAllPixelsOfColor()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | RedEyeFilter.java | 154 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | GlifPatternDrawable.java | 114 final int bitmapWidth = bitmap.getWidth(); in draw() local 118 if (drawableWidth > bitmapWidth in draw() 119 && bitmapWidth < VIEWBOX_WIDTH * MAX_CACHED_BITMAP_SCALE) { in draw() 259 int bitmapWidth = bitmap.getWidth(); in scaleCanvasToBounds() local 261 float scaleX = drawableBounds.width() / (float) bitmapWidth; in scaleCanvasToBounds() 269 canvas.scale(scaleY / scaleX, 1f, SCALE_FOCUS_X * bitmapWidth, 0f); in scaleCanvasToBounds()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | PageContentRepository.java | 338 final int bitmapWidth; field in PageContentRepository.RenderSpec 342 public RenderSpec(int bitmapWidth, int bitmapHeight, in RenderSpec() argument 344 this.bitmapWidth = bitmapWidth; in RenderSpec() 365 if (bitmapWidth != other.bitmapWidth) { in equals() 380 return bitmap.getWidth() == bitmapWidth in hasSameSize() 386 int result = bitmapWidth; in hashCode() 532 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight in startPreload() 775 final int bitmapSizeInBytes = mRenderSpec.bitmapWidth in onPreExecute() 814 Bitmap bitmap = Bitmap.createBitmap(mRenderSpec.bitmapWidth, in onPreExecute()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | PdfManipulationService.java | 105 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()
|
D | IPdfRenderer.aidl | 29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
|
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/ |
D | RoundedBitmapDrawable21.java | 51 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument 53 Gravity.apply(gravity, bitmapWidth, bitmapHeight, in gravityCompatApply()
|
/frameworks/support/core-utils/java/android/support/v4/graphics/drawable/ |
D | RoundedBitmapDrawableFactory.java | 55 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument 57 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight, in gravityCompatApply()
|
/frameworks/base/libs/hwui/utils/ |
D | NinePatchImpl.cpp | 178 const int bitmapWidth = bitmap.width(); in Draw() local 191 int numFixedXPixelsRemaining = bitmapWidth - numStretchyXPixelsRemaining; in Draw() 252 i <= numXDivs && src.fLeft < bitmapWidth; in Draw() 256 src.fRight = bitmapWidth; in Draw()
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
D | 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,
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 207 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/ |
D | RoundedBitmapDrawable.java | 216 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument
|