HomeSort by relevance Sort by last modified time
    Searched full:bitmapwidth (Results 1 - 25 of 34) sorted by null

1 2

  /packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
LivePreviewWidgetCell.java 80 final int bitmapWidth, bitmapHeight;
84 bitmapWidth = previewSize;
88 bitmapWidth = viewWidth;
92 Bitmap preview = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
  /frameworks/base/core/java/android/transition/
TransitionUtils.java 127 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/core-utils/api21/android/support/v4/graphics/drawable/
RoundedBitmapDrawable21.java 53 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,
55 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
ImageRequestTest.java 71 final int bitmapWidth = imageResource.getBitmap().getWidth();
73 assertEquals(options.getValue().outWidth, bitmapWidth);
101 final int bitmapWidth = imageResource.getBitmap().getWidth();
103 assertTrue(bitmapWidth >= DOWNSAMPLE_IMAGE_SIZE &&
105 (bitmapWidth <= DOWNSAMPLE_IMAGE_SIZE * 4 ||
  /frameworks/base/libs/hwui/
Patch.cpp 38 Patch::Patch(const float bitmapWidth, const float bitmapHeight,
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) {
Patch.h 42 Patch(const float bitmapWidth, const float bitmapHeight,
63 float width, float bitmapWidth, uint32_t& quadCount);
PatchCache.h 56 const Patch* get(const uint32_t bitmapWidth, const uint32_t bitmapHeight,
91 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight,
93 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight),
PatchCache.cpp 226 const Patch* PatchCache::get( const uint32_t bitmapWidth, const uint32_t bitmapHeight,
229 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch);
233 Patch* newMesh = new Patch(bitmapWidth, bitmapHeight,
  /packages/apps/Launcher3/src/com/android/launcher3/widget/
WidgetImageView.java 94 float bitmapWidth = mBitmap.getWidth();
96 final float scale = bitmapWidth > myWidth ? myWidth / bitmapWidth : 1;
97 float scaledWidth = bitmapWidth * scale;
  /frameworks/support/transition/src/android/support/transition/
TransitionUtils.java 83 int bitmapWidth = Math.round(bounds.width());
85 if (bitmapWidth > 0 && bitmapHeight > 0) {
86 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
87 bitmapWidth = (int) (bitmapWidth * scale);
91 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
FilterCropRepresentation.java 96 public static void findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) {
97 crop.left *= bitmapWidth;
99 crop.right *= bitmapWidth;
107 public static void findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) {
108 crop.left /= bitmapWidth;
110 crop.right /= bitmapWidth;
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
GeometryMathUtils.java 429 private static Matrix getFullGeometryMatrix(GeometryHolder holder, int bitmapWidth,
431 float centerX = bitmapWidth / 2f;
440 public static Matrix getFullGeometryToScreenMatrix(GeometryHolder holder, int bitmapWidth,
443 int bw = bitmapWidth;
445 bh = bitmapWidth;
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 154 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,
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DecodedImageResource.java 194 final int bitmapWidth = bitmap.getWidth();
201 if (bitmapWidth > 0 && bitmapHeight > 0 &&
206 (float) descriptor.desiredWidth / bitmapWidth,
208 final int targetWidth = (int) (bitmapWidth * targetScale);
212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) {
  /external/pdfium/core/fpdfapi/page/
cpdf_image.cpp 161 int32_t BitmapWidth = pBitmap->GetWidth();
163 if (BitmapWidth < 1 || BitmapHeight < 1)
170 pDict->SetNewFor<CPDF_Number>("Width", BitmapWidth);
214 dest_pitch = (BitmapWidth + 7) / 8;
243 dest_pitch = BitmapWidth;
247 dest_pitch = BitmapWidth * 3;
300 for (int32_t column = 0; column < BitmapWidth; column++) {
318 m_Width = BitmapWidth;
  /frameworks/support/core-utils/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,
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);
  /packages/apps/Launcher3/src/com/android/launcher3/graphics/
HolographicOutlineHelper.java 163 int bitmapWidth = (int) (rect.width() * scaleX);
165 if (bitmapHeight <= 0 || bitmapWidth <= 0) {
169 int key = (bitmapWidth << 16) | bitmapHeight;
172 cache = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ALPHA_8);
191 int resultWidth = bitmapWidth + extraSize;
  /frameworks/support/compat/java/android/support/v4/app/
SharedElementCallback.java 189 int bitmapWidth = Math.round(screenBounds.width());
192 if (bitmapWidth > 0 && bitmapHeight > 0) {
193 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
194 bitmapWidth = (int) (bitmapWidth * scale);
202 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
224 int bitmapWidth = (int) (width * scale);
226 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
233 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
GlifPatternDrawable.java 115 final int bitmapWidth = bitmap.getWidth();
119 if (drawableWidth > bitmapWidth
120 && bitmapWidth < VIEWBOX_WIDTH * MAX_CACHED_BITMAP_SCALE) {
260 int bitmapWidth = bitmap.getWidth();
262 float scaleX = drawableBounds.width() / (float) bitmapWidth;
270 canvas.scale(scaleY / scaleX, 1f, SCALE_FOCUS_X * bitmapWidth, 0f);
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
TestUtils.java 56 final int bitmapWidth = view.getWidth();
60 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
150 int bitmapWidth, int bitmapHeight, @ColorInt int color,
152 int[] rowPixels = new int[bitmapWidth];
154 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1);
155 for (int column = 0; column < bitmapWidth; column++) {
163 + bitmapWidth + "," + bitmapHeight + ") found "
  /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
PageContentRepository.java 358 final int bitmapWidth;
362 public RenderSpec(int bitmapWidth, int bitmapHeight,
364 this.bitmapWidth = bitmapWidth;
385 if (bitmapWidth != other.bitmapWidth) {
400 return bitmap.getWidth() == bitmapWidth
406 int result = bitmapWidth;
587 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight
835 final int bitmapSizeInBytes = mRenderSpec.bitmapWidth
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 65 final int bitmapWidth = view.getWidth();
69 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
214 final int bitmapWidth = bitmap.getWidth();
216 final int[] rowPixels = new int[bitmapWidth];
224 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1);
234 + bitmapWidth + "," + bitmapHeight + ") found "
  /frameworks/ex/framesequence/src/android/support/rastermill/
FrameSequenceDrawable.java 409 final int bitmapWidth = getIntrinsicWidth();
411 final float scaleX = 1.0f * bounds.width() / bitmapWidth;
426 (bitmapWidth - scaledDiameterX) / 2.0f,
428 (bitmapWidth + scaledDiameterX) / 2.0f,

Completed in 717 milliseconds

1 2