Home
last modified time | relevance | path

Searched refs:getHeight (Results 1 – 25 of 582) sorted by relevance

12345678910>>...24

/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
DBitmapUtils.java54 if (bm == null || (bm.getHeight() == height && bm.getWidth() == width)) { in scaleBitmap()
58 float heightScale = (float) height / bm.getHeight(); in scaleBitmap()
63 int scaleHeight = (int) Math.ceil(bm.getHeight() * scale); in scaleBitmap()
85 if (bitmap.getWidth() == bitmap.getHeight()) { in squareCropBitmap()
89 int size = Math.min(bitmap.getWidth(), bitmap.getHeight()); in squareCropBitmap()
96 int y = size < bitmap.getHeight() ? (bitmap.getHeight() - size ) / 2 : 0; in squareCropBitmap()
98 Rect dstRect = new Rect(0, 0, output.getWidth(), output.getHeight()); in squareCropBitmap()
107 bitmap.getHeight(), Config.ARGB_8888);
111 Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
116 canvas.drawCircle(bitmap.getWidth() / 2, bitmap.getHeight() / 2,
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java126 Bitmap a = Bitmap.createBitmap(b.getWidth(), b.getHeight(), Bitmap.Config.ALPHA_8); in convertToAlphaMask()
229 reflectRotation, master.getOriginalBounds(), getWidth(), getHeight()); in getImageToScreenMatrix()
233 m.postScale(scaleFactor, scaleFactor, getWidth() / 2.0f, getHeight() / 2.0f); in getImageToScreenMatrix()
261 getHeight() - 2*mShadowMargin); in onDraw()
298 float dx = (getHeight() - getWidth()) / 2f; in onDraw()
299 if (getWidth() > getHeight()) { in onDraw()
300 dx = - (getWidth() - getHeight()) / 2f; in onDraw()
303 canvas.rotate(180, getWidth()/2, getHeight()/2); in onDraw()
305 canvas.rotate(90, getWidth()/2, getHeight()/2); in onDraw()
308 canvas.rotate(270, getWidth()/2, getHeight()/2); in onDraw()
[all …]
DImageCrop.java234 int height = image.getHeight(); in forceStateConsistency()
265 mImageBounds.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); in onDraw()
270 bitmap.getWidth(), bitmap.getHeight(), canvas.getWidth(), canvas.getHeight()); in onDraw()
274 bitmap.getWidth(), bitmap.getHeight(), canvas.getWidth(), canvas.getHeight()); in onDraw()
291 int delta = Math.min(canvas.getWidth(), canvas.getHeight()) / 4; in onDraw()
313 bitmap.getHeight()); in onDraw()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DDragController.java144 formula.setPivotY(formula.getHeight() - formula.getPaddingBottom()); in animateViews()
147 result.setPivotY(result.getHeight() - result.getPaddingBottom()); in animateViews()
268 + mDisplayResult.getHeight() - result.getHeight() in initializeFormulaTranslationY()
317 return -mToolbar.getHeight() * (1f - yFraction) in getDateTranslationY()
319 - mDisplayFormula.getHeight() /getFormulaScale(yFraction) * (1f - yFraction); in getDateTranslationY()
347 + mDisplayResult.getHeight() - result.getHeight() in initializeFormulaTranslationY()
405 return -mToolbar.getHeight() * (1f - yFraction) in getDateTranslationY()
422 mDisplayHeight = mToolbar.getHeight() + mDisplayResult.getHeight() in initializeDisplayHeight()
423 + mDisplayFormula.getHeight(); in initializeDisplayHeight()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java349 mMaximumPortraitHeaderHeight = mIsTwoPanel ? getHeight() in initialize()
353 mMaximumHeaderTextSize = mTitleAndPhoneticNameView.getHeight(); in initialize()
354 mMaximumFullNameViewHeight = mFullNameView.getHeight(); in initialize()
367 mMaximumHeaderHeight = getHeight(); in initialize()
538 EdgeEffectCompat.onPull(mEdgeGlowBottom, delta / getHeight(), in onTouchEvent()
691 final float heightRatio = (float) transparentHeight / getHeight(); in getTransparentHeightRatio()
722 - (getHeight() - getTransparentViewHeight()) + 1; in scrollUpForEntranceAnimation()
854 return getHeight() + getScroll_ignoreOversizedHeaderForSnapping() in getScrollUntilOffBottom()
893 final int height = getHeight(); in draw()
951 if (velocity < 0 && mTransparentView.getHeight() <= 0) { in fling()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java195 mBitmapDisplayed.getBitmap().getHeight()); in center()
205 int viewHeight = getHeight(); in center()
211 deltaY = getHeight() - rect.bottom; in center()
261 float viewHeight = getHeight(); in getProperBaseMatrix()
264 float h = bitmap.getHeight(); in getProperBaseMatrix()
302 float fh = (float) mBitmapDisplayed.getHeight() / (float) mThisHeight; in maxZoom()
342 float cy = getHeight() / 2F; in zoomTo()
349 float cy = getHeight() / 2F; in zoomToPoint()
372 float cy = getHeight() / 2F; in zoomIn()
384 float cy = getHeight() / 2F; in zoomOut()
DRotateBitmap.java61 int cy = mBitmap.getHeight() / 2; in getRotateMatrix()
64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); in getRotateMatrix()
73 public int getHeight() { in getHeight() method in RotateBitmap
77 return mBitmap.getHeight(); in getHeight()
83 return mBitmap.getHeight(); in getWidth()
DUtil.java68 (float) b.getWidth() / 2, (float) b.getHeight() / 2); in rotate()
71 b, 0, 0, b.getWidth(), b.getHeight(), m, true); in rotate()
157 int deltaY = source.getHeight() - targetHeight; in transform()
175 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform()
190 float bitmapHeightF = source.getHeight(); in transform()
215 source.getWidth(), source.getHeight(), scaler, true); in transform()
225 int dy1 = Math.max(0, b1.getHeight() - targetHeight); in transform()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java111 int y = canvas.getHeight() - 2*mMargin; in drawText()
182 getHeight() - mTextSize - 2*mMargin); in computeBitmapBounds()
185 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth()/2, getHeight()); in computeBitmapBounds()
187 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, getHeight()); in computeBitmapBounds()
206 m.setRectToRect(new RectF(0, 0, mBitmap.getWidth(), mBitmap.getHeight()), in onDraw()
210 float scaleHeight = mBitmapBounds.height() / (float) mBitmap.getHeight(); in onDraw()
213 float dy = (mBitmapBounds.height() - (mBitmap.getHeight() * scale)) / 2f; in onDraw()
227 float start = getHeight() - 2 * mMargin - 2 * mTextSize; in onDraw()
228 float end = getHeight(); in onDraw()
DAction.java162 int minSide = Math.min(destination.getWidth(), destination.getHeight()); in drawCenteredImage()
164 float scaleFactor = minSide / (float) Math.min(source.getWidth(), source.getHeight()); in drawCenteredImage()
167 float dy = (destination.getHeight() - source.getHeight() * scaleFactor) / 2.0f; in drawCenteredImage()
194 …s.drawBitmap(mOverlayBitmap, new Rect(0, 0, mOverlayBitmap.getWidth(), mOverlayBitmap.getHeight()), in available()
195 new Rect(0, 0, mImage.getWidth(), mImage.getHeight()), new Paint()); in available()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java37 if (bm == null || (bm.getHeight() == height && bm.getWidth() == width)) { in scaleBitmap()
42 if (bm.getHeight() > height) { in scaleBitmap()
43 heightScale = (float) height / bm.getHeight(); in scaleBitmap()
51 int scaleHeight = (int) Math.ceil(bm.getHeight() * scale); in scaleBitmap()
84 if (bm.getHeight() < height || bm.getWidth() < width) { in cropBitmap()
88 bm.getWidth(), bm.getHeight(), width, height)); in cropBitmap()
93 int y =(bm.getHeight() - height) / 2; in cropBitmap()
DBitmapDownloader.java262 key.getCacheKey(), key.getBitmapConfig(), bitmap.getHeight()); in addBitmapToMemoryCache()
268 if (currentBitmap.getWidth() >= bitmap.getWidth() && currentBitmap.getHeight() in addBitmapToMemoryCache()
269 >= bitmap.getHeight()) { in addBitmapToMemoryCache()
281 if (key.getHeight() != BitmapWorkerOptions.MAX_IMAGE_DIMENSION_PX) { in getBitmapFromMemCache()
284 getBucketKey(key.getCacheKey(), key.getBitmapConfig(), key.getHeight()); in getBitmapFromMemCache()
293 if (bitmap.getHeight() >= key.getHeight()) { in getBitmapFromMemCache()
303 if (SIZE_BUCKET[i] >= key.getHeight()) { in getBitmapFromMemCache()
/packages/apps/DevCamera/src/com/android/devcamera/
DApi2Camera.java203 mCameraInfoCache.getYuvStream1Size().getHeight(), in InitializeAllTheThings()
211 mCameraInfoCache.getYuvStream1Size().getHeight(), in InitializeAllTheThings()
219 mCameraInfoCache.getDepthCloudSize().getHeight(), in InitializeAllTheThings()
228 mCameraInfoCache.getYuvStream2Size().getHeight(), in InitializeAllTheThings()
262 mCameraInfoCache.getRawStreamSize().getHeight(), in InitializeAllTheThings()
409 " x " + mCameraInfoCache.getPreviewSize().getHeight()); in startCaptureSession()
413 " x " + mCameraInfoCache.getYuvStream1Size().getHeight()); in startCaptureSession()
423 " x " + mCameraInfoCache.getYuvStream2Size().getHeight()); in startCaptureSession()
434 " x " + mCameraInfoCache.getRawStreamSize().getHeight()); in startCaptureSession()
440 " x " + mCameraInfoCache.getJpegStreamSize().getHeight()); in startCaptureSession()
[all …]
DCameraInfoCache.java200 float activeHeightFraction = activeArraySize.height() / (float) pixelArraySize.getHeight(); in getFieldOfView()
208 2 * Math.atan(physicalSize.getHeight() * activeHeightFraction / 2 / focalLength)); in getFieldOfView()
219 if (sizes[j].getHeight() * sizes[j].getWidth() > area) { in returnLargestSize()
220 area = sizes[j].getHeight() * sizes[j].getWidth(); in returnLargestSize()
236 return (mActiveArea.height() - mLargestYuvSize.getHeight()) / 2; in faceOffsetY()
256 float aspect = mLargestYuvSize.getWidth() / mLargestYuvSize.getHeight(); in getPreviewSize()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DLogoUtilsTest.java43 assertEquals(15, newBitmap.getHeight()); in testPartiallyResizedBitmap()
57 assertEquals(8, newBitmap.getHeight()); in testPartiallyResizedElongatedBitmap()
69 assertEquals(8, newBitmap.getHeight()); in testResizeBitmapKeepRatio()
79 assertEquals(32, newBitmap.getHeight()); in testResizeBitmapNoScalingNeeded()
87 assertEquals(10, newBitmap.getHeight()); in testResizeBitmapNoIntegerRatio()
129 assertEquals(b1.getHeight(), b2.getHeight()); in assertBitmapEquals()
131 for (int y = 0; y < b1.getHeight(); y++) { in assertBitmapEquals()
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DForwardingImageProxy.java67 public int getHeight() { in getHeight() method in ForwardingImageProxy
68 return mImpl.getHeight(); in getHeight()
108 .add("height", getHeight()) in toString()
123 otherImage.getHeight() == getHeight() && in equals()
129 return Objects.hashCode(getFormat(), getWidth(), getHeight(), getTimestamp()); in hashCode()
DAndroidImageProxy.java107 mHeight = mImage.getHeight(); in AndroidImageProxy()
166 public int getHeight() { in getHeight() method in AndroidImageProxy
210 .add("height", getHeight()) in toString()
225 otherImage.getHeight() == getHeight() && in equals()
231 return Objects.hashCode(getFormat(), getWidth(), getHeight(), getTimestamp()); in hashCode()
/packages/apps/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java46 int getHeight(); in getHeight() method
72 public int getHeight() { in getHeight() method in SimpleBitmapRegionDecoderWrapper
73 return mDecoder.getHeight(); in getHeight()
97 public int getHeight() { in getHeight() method in DumbBitmapRegionDecoder
98 return mBuffer.getHeight(); in getHeight()
151 int height = mDecoder.getHeight(); in loadInBackground()
308 mHeight = mDecoder.getHeight(); in BitmapRegionTileSource()
316 preview.getWidth() <= GL_SIZE_LIMIT && preview.getHeight() <= GL_SIZE_LIMIT) { in BitmapRegionTileSource()
324 preview == null ? -1 : preview.getHeight())); in BitmapRegionTileSource()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java130 mBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight()); in DragView()
131 setDragRegion(new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight())); in DragView()
192 setMeasuredDimension(mBitmap.getWidth(), mBitmap.getHeight()); in onMeasure()
206 size.set((int)(mBitmap.getWidth() * getScaleX()), (int)(mBitmap.getHeight() * getScaleY())); in provideDragShadowMetrics()
209 final float yGrowth = mBitmap.getHeight() * (getScaleY() - 1); in provideDragShadowMetrics()
228 float sY = (mBitmap.getHeight() * 1.0f) / mCrossFadeBitmap.getHeight(); in onDraw()
320 lp.height = mBitmap.getHeight(); in show()
/packages/apps/TV/src/com/android/tv/util/
DBitmapUtils.java61 final double bmRatio = bm.getHeight() / (double) bm.getWidth(); in calculateNewSize()
65 rect.bottom = Math.round((float) bm.getHeight() * maxWidth / bm.getWidth()); in calculateNewSize()
67 rect.right = Math.round((float) bm.getWidth() * maxHeight / bm.getHeight()); in calculateNewSize()
76 calculateInSampleSize(bm.getWidth(), bm.getHeight(), maxWidth, maxHeight)); in createScaledBitmapInfo()
239 || size.bottom >= bitmap.getHeight() * 2); in needToReload()
251 return needToReload(other.bitmap.getWidth(), other.bitmap.getHeight()); in needToReload()
257 + ", h=" + bitmap.getHeight() + ")"; in toString()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java150 + (int) ((scale * preview.getHeight() - preview.getHeight()) / 2); in startDrag()
163 int height = mPreviewBitmap.getHeight(); in createDragOutline()
171 Rect src = new Rect(0, 0, mPreviewBitmap.getWidth(), mPreviewBitmap.getHeight()); in createDragOutline()
191 Rect src = new Rect(0, 0, mPreviewBitmap.getWidth(), mPreviewBitmap.getHeight()); in createDragOutline()
193 (h - blurSizeOutline) / (float) mPreviewBitmap.getHeight()); in createDragOutline()
195 int scaledHeight = (int) (scaleFactor * mPreviewBitmap.getHeight()); in createDragOutline()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java206 if (bitmap != null && bitmap.getWidth() != 0 && bitmap.getHeight() != 0) { in doneLoadBitmap()
207 RectF imgBounds = new RectF(0, 0, bitmap.getWidth(), bitmap.getHeight()); in doneLoadBitmap()
309 RectF photo = new RectF(0, 0, mOriginalBitmap.getWidth(), mOriginalBitmap.getHeight()); in startFinishOutput()
325 || currentBitmap.getWidth() == 0 || currentBitmap.getHeight() == 0 in startBitmapIO()
453 ret.getHeight(), m, true); in doInBackground()
518 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in doInBackground()
537 crop.getHeight(), m, true); in doInBackground()
618 RectF imageBounds = new RectF(0, 0, image.getWidth(), image.getHeight()); in getCroppedImage()
630 if (image == null || image.getWidth() == 0 || image.getHeight() == 0 || max_size < 16) { in getDownsampledBitmap()
640 image.getHeight() >> shifts, true); in getDownsampledBitmap()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DProgressSpinner.java42 mHeight = Math.max(mOuter.getHeight(), mInner.getHeight()); in ProgressSpinner()
49 public int getHeight() { in getHeight() method in ProgressSpinner
75 mOuter.draw(canvas, -mOuter.getWidth() / 2, -mOuter.getHeight() / 2); in draw()
77 mInner.draw(canvas, -mInner.getWidth() / 2, -mInner.getHeight() / 2); in draw()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModuleUtil.java73 if (s.getHeight() <= MAX_ASPECT_HEIGHT) { in getOptimalPreviewSize()
81 if (s.getHeight() <= MAX_ASPECT_HEIGHT) { in getOptimalPreviewSize()
82 camera1Sizes.add(new Size(s.getWidth(), s.getHeight())); in getOptimalPreviewSize()
96 if (s.getWidth() == optimal.getWidth() && s.getHeight() == optimal.getHeight()) { in getOptimalPreviewSize()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DCachingPipeline.java179 Log.v(LOGTAG,"setOriginal, size " + bitmap.getWidth() + " x " + bitmap.getHeight()); in setOriginal()
325 … Log.v(LOGTAG, "after update, req bitmap (" + bitmap.getWidth() + "x" + bitmap.getHeight() in render()
327 + mResizedOriginalBitmap.getHeight()); in render()
360 float minSize = Math.min(source.getWidth(), source.getHeight()); in render()
365 float dy = (iconBounds.height() - (source.getHeight() * scale))/2.0f; in render()
448 bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) { in prepareRenderscriptAllocations()
464 || bitmap.getHeight() != mHeight) { in prepareRenderscriptAllocations()
466 mHeight = bitmap.getHeight(); in prepareRenderscriptAllocations()

12345678910>>...24