/frameworks/base/core/java/android/transition/ |
TransitionUtils.java | 128 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/api21/android/support/v4/graphics/drawable/ |
RoundedBitmapDrawable21.java | 51 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, 53 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
ImageRequestTest.java | 72 final int bitmapHeight = imageResource.getBitmap().getHeight(); 74 assertEquals(options.getValue().outHeight, bitmapHeight); 102 final int bitmapHeight = imageResource.getBitmap().getHeight(); 104 bitmapHeight >= DOWNSAMPLE_IMAGE_SIZE && 106 bitmapHeight <= DOWNSAMPLE_IMAGE_SIZE * 4));
|
/external/pdfium/core/src/fpdfapi/fpdf_edit/ |
fpdf_edit_image.cpp | 108 int32_t BitmapHeight = pBitmap->GetHeight(); 109 if (BitmapWidth < 1 || BitmapHeight < 1) { 121 pDict->SetAtInteger("Height", BitmapHeight); 290 pNewBitmap->Create(BitmapWidth, BitmapHeight, FXDIB_Argb); 293 for (int32_t row = 0; row < BitmapHeight; row++) { 322 dest_buf = FX_Alloc2D(uint8_t, dest_pitch, BitmapHeight); 324 dest_pitch * BitmapHeight; // Safe since checked alloc returned. 327 for (int32_t i = 0; i < BitmapHeight; i++) { 338 dest_buf = FX_Alloc2D(uint8_t, dest_pitch, BitmapHeight); 340 dest_pitch * BitmapHeight; // Safe since checked alloc returned [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
FilterCropRepresentation.java | 96 public static void findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) { 98 crop.top *= bitmapHeight; 100 crop.bottom *= bitmapHeight; 107 public static void findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) { 109 crop.top /= bitmapHeight; 111 crop.bottom /= bitmapHeight;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
GeometryMathUtils.java | 430 int bitmapHeight) { 432 float centerY = bitmapHeight / 2f; 441 int bitmapHeight, int viewWidth, int viewHeight) { 442 int bh = bitmapHeight; 446 bw = bitmapHeight; 450 float s = Math.min(viewWidth / (float) bitmapWidth, viewHeight / (float) bitmapHeight); 451 Matrix m = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); 457 public static RectF getTrueCropRect(GeometryHolder holder, int bitmapWidth, int bitmapHeight) { 459 FilterCropRepresentation.findScaledCrop(r, bitmapWidth, bitmapHeight); 462 Matrix m1 = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
RedEyeFilter.java | 155 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,
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
DecodedImageResource.java | 195 final int bitmapHeight = bitmap.getHeight(); 201 if (bitmapWidth > 0 && bitmapHeight > 0 && 207 (float) descriptor.desiredHeight / bitmapHeight); 209 final int targetHeight = (int) (bitmapHeight * targetScale); 212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) {
|
/frameworks/base/libs/hwui/ |
PatchCache.h | 59 const uint32_t bitmapWidth, const uint32_t bitmapHeight, 98 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, 100 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight),
|
Patch.cpp | 38 Patch::Patch(const float bitmapWidth, const float bitmapHeight, 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) {
|
Patch.h | 42 Patch(const float bitmapWidth, const float bitmapHeight,
|
PatchCache.cpp | 240 const uint32_t bitmapWidth, const uint32_t bitmapHeight, 243 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); 248 Patch* newMesh = new Patch(bitmapWidth, bitmapHeight,
|
/frameworks/support/v4/java/android/support/v4/graphics/drawable/ |
RoundedBitmapDrawableFactory.java | 55 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, 57 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight,
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
IPdfRenderer.aidl | 29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight,
|
PdfManipulationService.java | 105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, 128 (float) bitmapHeight / srcHeightPts); 131 displayScale = (float) bitmapHeight / dstHeightPts; 154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); 160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
HolographicOutlineHelper.java | 166 int bitmapHeight = (int) (rect.height() * view.getScaleY()); 167 if (bitmapHeight <= 0 || bitmapWidth <= 0) { 171 int key = (bitmapWidth << 16) | bitmapHeight; 174 cache = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
TestUtils.java | 49 final int bitmapHeight = view.getHeight(); 52 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, 168 int bitmapWidth, int bitmapHeight, @ColorInt int color, 171 for (int row = 0; row < bitmapHeight; row++) { 200 + bitmapWidth + "," + bitmapHeight + ") found ["
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
TestUtils.java | 52 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 ["
|
/frameworks/support/v4/java/android/support/v4/app/ |
SharedElementCallback.java | 191 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/packages/PrintSpooler/src/com/android/printspooler/model/ |
PageContentRepository.java | 339 final int bitmapHeight; 342 public RenderSpec(int bitmapWidth, int bitmapHeight, 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_PIXEL [all...] |
/frameworks/base/libs/hwui/utils/ |
NinePatchImpl.cpp | 179 const int bitmapHeight = bitmap.height(); 196 int numFixedYPixelsRemaining = bitmapHeight - numStretchyYPixelsRemaining; 225 j <= numYDivs && src.fTop < bitmapHeight; 230 src.fBottom = bitmapHeight;
|
/packages/apps/Camera2/src/com/android/camera/ |
MultiToggleImageButton.java | 395 int bitmapHeight = (height*2) + ((mParentSize - height)/2); 397 bitmap = Bitmap.createBitmap(width, bitmapHeight, Bitmap.Config.ARGB_8888);
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
Palette.java | 851 final int bitmapHeight = bitmap.getHeight(); 852 final int[] pixels = new int[bitmapWidth * bitmapHeight]; 853 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight); [all...] |
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
RoundedBitmapDrawable.java | 216 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,
|
/frameworks/base/libs/hwui/font/ |
Font.cpp | 207 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) {
|