Home
last modified time | relevance | path

Searched refs:getWidth (Results 1 – 25 of 433) sorted by relevance

12345678910>>...18

/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()
260 getWidth() - 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.java233 int width = image.getWidth(); 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()
312 FilterCropRepresentation.findScaledCrop(mScreenCropBounds, bitmap.getWidth(), in onDraw()
DImageCurves.java209 spline.draw(canvas, Spline.colorForCurve(i), getWidth(), in onDraw()
216 .draw(canvas, Spline.colorForCurve(mCurrentCurveIndex), getWidth(), getHeight(), in onDraw()
238 if (!mDidAddPoint && (delta * getWidth() > 100) in pickControlPoint()
269 if (posX > getWidth() - margin) { in onTouchEvent()
270 posX = getWidth() - margin; in onTouchEvent()
275 posX = (posX - margin) / (getWidth() - 2 * margin); in onTouchEvent()
341 int w = bitmap.getWidth(); in doInBackground()
375 float w = getWidth() - Spline.curveHandleSize(); in drawHistogram()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DHorizontalScrollView.java171 final int rightEdge = getWidth() - mPaddingRight; in getRightFadingEdgeStrength()
244 int childWidth = child.getWidth(); in canScroll()
245 return getWidth() < childWidth + mPaddingLeft + mPaddingRight ; in canScroll()
601 mEdgeGlowLeft.onPull((float) deltaX / getWidth()); in onTouchEvent()
606 mEdgeGlowRight.onPull((float) deltaX / getWidth()); in onTouchEvent()
743 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight; in performAccessibilityAction()
754 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight; in performAccessibilityAction()
797 child.getWidth() - (getWidth() - mPaddingLeft - mPaddingRight)); in getScrollRange()
827 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength; in findFocusableViewInMyBounds()
935 int width = getWidth(); in pageScroll()
[all …]
DZoomControl.java146 final float x = ev.getX() - (getWidth() / 2); in onTouchEvent()
156 mThumbX = (int)((mRadius * Math.cos(alpha)) + (getWidth() / 2)); in onTouchEvent()
160 mThumbX = (int)((mRadius * Math.cos(alpha)) + (getWidth() / 2)); in onTouchEvent()
164 mThumbX = (int)((getWidth() / 2) - (mRadius * Math.cos(alpha))); in onTouchEvent()
168 mThumbX = (int)((getWidth() / 2) - (mRadius * Math.cos(alpha))); in onTouchEvent()
231 if (getWidth() == 0) { // Layout is not yet complete in progressToPosition()
245 mThumbX = (int)((mRadius * Math.cos(alpha)) + (getWidth() / 2)); in progressToPosition()
249 mThumbX = (int)((getWidth() / 2) - (mRadius * Math.cos(alpha))); in progressToPosition()
253 mThumbX = (int)((mRadius * Math.cos(alpha)) + (getWidth() / 2)); in progressToPosition()
257 mThumbX = (int)((getWidth() / 2) - (mRadius * Math.cos(alpha))); in progressToPosition()
DImageViewTouchBase.java183 final int viewWidth = getWidth(); in setImageBitmapResetBase()
264 final float viewWidth = getWidth(); in getProperBaseMatrix()
267 final float w = bitmap.getWidth(); in getProperBaseMatrix()
314 final float fw = (float)mBitmapDisplayed.getWidth() / mThisWidth; in maxZoom()
376 final float cx = getWidth() / 2F; in zoomTo()
390 final float cx = getWidth() / 2F; in zoomToPoint()
431 float cx = getWidth() / 2F; in zoomIn()
453 float cx = getWidth() / 2F; in zoomOut()
483 final RectF rect = new RectF(0, 0, mBitmapDisplayed.getWidth(), in center()
504 int viewWidth = getWidth(); in center()
DMediaItemView.java173 e.getX() >= getWidth() - getPaddingRight() - in onSingleTapConfirmed()
274 final int thumbnailWidth = (thumbnailHeight * mMediaItem.getWidth()) / in getShadowWidth()
359 mThumbnailWidth = (mThumbnailHeight * mMediaItem.getWidth()) / mMediaItem.getHeight(); in onLayoutPerformed()
367 int usableWidth = getWidth() - getPaddingLeft() - getPaddingRight(); in onLayoutPerformed()
412 getPaddingLeft(), getWidth() - getPaddingRight()); in onDraw()
416 getWidth() - getPaddingRight(), in onDraw()
511 getWidth() - getPaddingRight() - in drawAddTransitionIcons()
513 getPaddingTop(), getWidth() - getPaddingRight(), in drawAddTransitionIcons()
529 return (getWidth() - getPaddingLeft() - getPaddingRight() >= in hasSpaceForAddTransitionIcons()
575 } else if (ev.getX() >= getWidth() - getPaddingRight() - in onTouchEvent()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTrimTimeBar.java80 return mTrimStartScrubber.getWidth() * 3 / 4; in trimStartScrubberTipOffset()
84 return mTrimEndScrubber.getWidth() / 4; in trimEndScrubberTipOffset()
97 mScrubberLeft = mPlayedBar.right - mScrubber.getWidth() / 2; in updatePlayedBarAndScrubberFromTime()
106 mScrubberLeft = mProgressBar.left - mScrubber.getWidth() / 2; in updatePlayedBarAndScrubberFromTime()
150 int scrubberRight = startX + scrubber.getWidth(); in inScrubber()
173 int margin = mScrubber.getWidth() / 3; in onLayout()
203 getWidth() - getPaddingRight() - mTimeBounds.width() / 2, in onDraw()
219 mCurrentTime = getScrubberTime(mScrubberLeft, mScrubber.getWidth() / 2); in updateTimeFromPos()
264 mScrubber.getWidth() / 2, in onTouchEvent()
267 mScrubber.getWidth() / 2); in onTouchEvent()
[all …]
DTimeBar.java124 mScrubberLeft = mPlayedBar.right - mScrubber.getWidth() / 2; in update()
154 int scrubberRight = mScrubberLeft + mScrubber.getWidth(); in inScrubber()
161 int half = mScrubber.getWidth() / 2; in clampScrubber()
168 return (int) ((long) (mScrubberLeft + mScrubber.getWidth() / 2 - mProgressBar.left) in getScrubberTime()
179 int margin = mScrubber.getWidth() / 3; in onLayout()
210 getWidth() - getPaddingRight() - mTimeBounds.width() / 2, in onDraw()
226 : mScrubber.getWidth() / 2; in onTouchEvent()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewCoordinates.java124 public int getWidth() { in getWidth() method in ConversationItemViewCoordinates.Config
309 if (config.getWidth() >= mMinListWidthIsSpacious) { in ConversationItemViewCoordinates()
370 final int widthSpec = MeasureSpec.makeMeasureSpec(config.getWidth(), MeasureSpec.EXACTLY); in ConversationItemViewCoordinates()
382 contactImagesWidth = contactImagesView.getWidth(); in ConversationItemViewCoordinates()
393 starWidth = star.getWidth(); in ConversationItemViewCoordinates()
399 sendersWidth = senders.getWidth(); in ConversationItemViewCoordinates()
413 subjectWidth = subject.getWidth(); in ConversationItemViewCoordinates()
421 foldersXEnd = getX(folders) + folders.getWidth(); in ConversationItemViewCoordinates()
446 colorBlockWidth = colorBlock.getWidth(); in ConversationItemViewCoordinates()
467 infoIconXEnd = getX(infoIcon) + infoIcon.getWidth(); in ConversationItemViewCoordinates()
[all …]
/packages/apps/Browser/src/com/android/browser/
DPhoneUi.java290 mAnimScreen.mMain.layout(0, 0, mContentView.getWidth(), in showNavScreen()
294 int fromRight = mContentView.getWidth(); in showNavScreen()
299 int toLeft = (mContentView.getWidth() - width) / 2; in showNavScreen()
303 float scaleFactor = width / (float) mContentView.getWidth(); in showNavScreen()
381 mAnimScreen.mMain.layout(0, 0, mContentView.getWidth(), in hideNavScreen()
387 int toRight = mContentView.getWidth(); in hideNavScreen()
394 float scaleFactor = mContentView.getWidth() / (float) width; in hideNavScreen()
483 if (tbar.getWidth() > 0 && tbar.getEmbeddedHeight() > 0) { in set()
485 || mTitleBarBitmap.getWidth() != tbar.getWidth() in set()
487 mTitleBarBitmap = safeCreateBitmap(tbar.getWidth(), in set()
[all …]
DNavTabScroller.java248 sx = (v.getLeft() + v.getRight() - getWidth()) / 2; in snapToSelected()
276 target = mHorizontal ? -getHeight() : -getWidth(); in animateOut()
278 target = mHorizontal ? getHeight() : getWidth(); in animateOut()
284 int gap = mHorizontal ? v.getWidth() : v.getHeight(); in animateOut()
392 return v.getLeft() + v.getWidth() / 2; in getViewCenter()
400 return getScrollX() + getWidth() / 2; in getScreenCenter()
444 if (Math.abs(diff) > (mHorizontal ? downView.getHeight() : downView.getWidth()) / 2) { in onOrthoDragFinished()
474 return 1 - (float) Math.abs(distance) / (mHorizontal ? v.getHeight() : v.getWidth()); in getAlpha()
514 final int height = mHorizontal ? getWidth() : getHeight(); in onPull()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java102 int x = (int) (canvas.getWidth() - textWidth - 2*mMargin); in drawText()
104 x = (int) ((canvas.getWidth() - textWidth) / 2.0f); in drawText()
181 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, 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()
209 float scaleWidth = mBitmapBounds.width() / (float) mBitmap.getWidth(); in onDraw()
212 float dx = (mBitmapBounds.width() - (mBitmap.getWidth() * scale)) / 2f; in onDraw()
234 startGradient = getWidth()/2; in onDraw()
236 canvas.drawRect(new RectF(startGradient, start, getWidth(), end), mPaint); 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()
166 float dx = (destination.getWidth() - source.getWidth() * scaleFactor) / 2.0f; in drawCenteredImage()
194 …canvas.drawBitmap(mOverlayBitmap, new Rect(0, 0, mOverlayBitmap.getWidth(), mOverlayBitmap.getHeig… in available()
195 new Rect(0, 0, mImage.getWidth(), mImage.getHeight()), new Paint()); in available()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java155 final int viewWidth = getWidth(); in setImageRotateBitmapResetBase()
194 mBitmapDisplayed.getBitmap().getWidth(), in center()
216 int viewWidth = getWidth(); in center()
260 float viewWidth = getWidth(); in getProperBaseMatrix()
263 float w = bitmap.getWidth(); in getProperBaseMatrix()
301 float fw = (float) mBitmapDisplayed.getWidth() / (float) mThisWidth; in maxZoom()
341 float cx = getWidth() / 2F; in zoomTo()
348 float cx = getWidth() / 2F; in zoomToPoint()
371 float cx = getWidth() / 2F; in zoomIn()
383 float cx = getWidth() / 2F; in zoomOut()
DUtil.java68 (float) b.getWidth() / 2, (float) b.getHeight() / 2); in rotate()
71 b, 0, 0, b.getWidth(), b.getHeight(), m, true); in rotate()
156 int deltaX = source.getWidth() - targetWidth; in transform()
174 deltaXHalf + Math.min(targetWidth, source.getWidth()), in transform()
189 float bitmapWidthF = source.getWidth(); in transform()
215 source.getWidth(), source.getHeight(), scaler, true); in transform()
224 int dx1 = Math.max(0, b1.getWidth() - targetWidth); in transform()
DRotateBitmap.java60 int cx = mBitmap.getWidth() / 2; in getRotateMatrix()
64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); in getRotateMatrix()
75 return mBitmap.getWidth(); in getHeight()
81 public int getWidth() { in getWidth() method in RotateBitmap
85 return mBitmap.getWidth(); in getWidth()
/packages/apps/Browser/src/com/android/browser/view/
DScrollerView.java226 final int bottomEdge = getWidth() - mPaddingRight; in getBottomFadingEdgeStrength()
295 return getWidth() < child.getWidth() + mPaddingLeft + mPaddingRight; in canScroll()
912 child.getWidth() - (getWidth() - mPaddingRight - mPaddingLeft)); in getScrollRange()
947 …final int bottomWithoutFadingEdge = top + (mHorizontal ? getWidth() : getHeight()) - fadingEdgeLen… in findFocusableViewInMyBounds()
1219 return !isWithinDeltaOfScreen(descendant, getWidth(), 0); in isOffScreen()
1278 final int width = getWidth() - mPaddingRight - mPaddingLeft; in smoothScrollBy()
1279 final int right = getChildAt(0).getWidth(); in smoothScrollBy()
1357 final int contentWidth = getWidth() - mPaddingRight - mPaddingLeft; in computeHorizontalScrollRange()
1594 int width = getWidth(); in computeScrollDeltaToGetChildRectOnScreenHorizontal()
1606 if (rect.right < getChildAt(0).getWidth()) { in computeScrollDeltaToGetChildRectOnScreenHorizontal()
[all …]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java47 int getWidth(); in getWidth() method
83 public int getWidth() { in getWidth() method in SimpleBitmapRegionDecoderWrapper
84 return mDecoder.getWidth(); in getWidth()
115 public int getWidth() { in getWidth() method in DumbBitmapRegionDecoder
116 return mBuffer.getWidth(); in getWidth()
181 int width = mDecoder.getWidth(); in loadInBackground()
387 mWidth = mDecoder.getWidth(); in BitmapRegionTileSource()
400 if (preview.getWidth() <= GL_SIZE_LIMIT && preview.getHeight() <= GL_SIZE_LIMIT) { in BitmapRegionTileSource()
407 preview.getWidth(), preview.getHeight())); in BitmapRegionTileSource()
512 … float scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight())); in decodePreview()
/packages/apps/Camera2/src/com/android/camera/crop/
DCropActivity.java203 if (bitmap != null && bitmap.getWidth() != 0 && bitmap.getHeight() != 0) { in doneLoadBitmap()
204 RectF imgBounds = new RectF(0, 0, bitmap.getWidth(), bitmap.getHeight()); in doneLoadBitmap()
306 RectF photo = new RectF(0, 0, mOriginalBitmap.getWidth(), mOriginalBitmap.getHeight()); in startFinishOutput()
322 || currentBitmap.getWidth() == 0 || currentBitmap.getHeight() == 0 in startBitmapIO()
449 Bitmap tmp = Bitmap.createBitmap(ret, 0, 0, ret.getWidth(), in doInBackground()
515 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in doInBackground()
533 Bitmap tmp = Bitmap.createBitmap(crop, 0, 0, crop.getWidth(), in doInBackground()
615 RectF imageBounds = new RectF(0, 0, image.getWidth(), image.getHeight()); in getCroppedImage()
627 if (image == null || image.getWidth() == 0 || image.getHeight() == 0 || max_size < 16) { in getDownsampledBitmap()
636 Bitmap ret = Bitmap.createScaledBitmap(image, image.getWidth() >> shifts, in getDownsampledBitmap()
[all …]
/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()
452 Bitmap tmp = Bitmap.createBitmap(ret, 0, 0, ret.getWidth(), in doInBackground()
518 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in doInBackground()
536 Bitmap tmp = Bitmap.createBitmap(crop, 0, 0, crop.getWidth(), 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()
639 Bitmap ret = Bitmap.createScaledBitmap(image, image.getWidth() >> shifts, in getDownsampledBitmap()
[all …]
/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()
326 + " ? resizeOriginal (" + mResizedOriginalBitmap.getWidth() + "x" in render()
352 if (iconBounds.width() > source.getWidth() * 2) { in render()
360 float minSize = Math.min(source.getWidth(), source.getHeight()); in render()
364 float dx = (iconBounds.width() - (source.getWidth() * scale))/2.0f; in render()
448 bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) { in prepareRenderscriptAllocations()
463 if (bitmap.getWidth() != mWidth in prepareRenderscriptAllocations()
465 mWidth = bitmap.getWidth(); in prepareRenderscriptAllocations()
/packages/apps/Launcher2/src/com/android/launcher2/
DHolographicOutlineHelper.java107 int[] srcBuffer = new int[srcDst.getWidth() * srcDst.getHeight()]; in applyExpensiveOutlineWithBlur()
109 0, srcDst.getWidth(), 0, 0, srcDst.getWidth(), srcDst.getHeight()); in applyExpensiveOutlineWithBlur()
117 0, srcDst.getWidth(), 0, 0, srcDst.getWidth(), srcDst.getHeight()); in applyExpensiveOutlineWithBlur()
175 srcDstCanvas.drawRect(0, 0, thickInnerBlur.getWidth(), -thickInnerBlurOffset[1], in applyExpensiveOutlineWithBlur()
/packages/apps/Launcher3/src/com/android/launcher3/
DHolographicOutlineHelper.java115 int[] srcBuffer = new int[srcDst.getWidth() * srcDst.getHeight()]; in applyExpensiveOutlineWithBlur()
117 0, srcDst.getWidth(), 0, 0, srcDst.getWidth(), srcDst.getHeight()); in applyExpensiveOutlineWithBlur()
125 0, srcDst.getWidth(), 0, 0, srcDst.getWidth(), srcDst.getHeight()); in applyExpensiveOutlineWithBlur()
183 srcDstCanvas.drawRect(0, 0, thickInnerBlur.getWidth(), -thickInnerBlurOffset[1], in applyExpensiveOutlineWithBlur()
/packages/apps/Mms/src/com/android/mms/dom/smil/
DSmilRegionElementImpl.java85 int bbw = ((SMILDocument) getOwnerDocument()).getLayout().getRootLayout().getWidth(); in getLeft()
190 public int getWidth() { in getWidth() method in SmilRegionElementImpl
194 ((SMILDocument) getOwnerDocument()).getLayout().getRootLayout().getWidth() : in getWidth()
201 int bbw = ((SMILDocument) getOwnerDocument()).getLayout().getRootLayout().getWidth(); in getWidth()
260 value *= ((SMILDocument) getOwnerDocument()).getLayout().getRootLayout().getWidth(); in parseRegionLength()
278 + ", width=" + getWidth() in toString()

12345678910>>...18