Home
last modified time | relevance | path

Searched refs:mWidth (Results 1 – 25 of 75) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java36 private final int mWidth; field in AspectRatio
44 mWidth = width; in AspectRatio()
72 return mWidth; in getWidth()
76 return (float) mWidth / (float) mHeight; in toFloat()
90 if (mWidth != that.mWidth) in equals()
98 return Objects.hashCode(mWidth, mHeight); in hashCode()
110 return of(mHeight, mWidth); in transpose()
154 return this.mWidth * other.mHeight > other.mWidth * this.mHeight; in isWiderThan()
164 return this.mWidth * other.mHeight < other.mWidth * this.mHeight; in isTallerThan()
177 int cropHeight = area.width() * mHeight / mWidth; in getLargestCenterCrop()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DManualLayoutFrame.java25 private int mWidth; field in ManualLayoutFrame
33 mWidth = 0; in onConfigurationChanged()
38 if (mWidth != 0) { in onMeasure()
39 int newWidth = mWidth; in onMeasure()
43 newWidth = Math.min(mWidth, MeasureSpec.getSize(widthMeasureSpec)); in onMeasure()
49 if (newWidth != mWidth) { in onMeasure()
50 mWidth = newWidth; in onMeasure()
52 widthMeasureSpec = MeasureSpec.makeMeasureSpec(mWidth, MeasureSpec.EXACTLY); in onMeasure()
55 if (mWidth == 0) { in onMeasure()
56 mWidth = getMeasuredWidth(); in onMeasure()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java53 private int mWidth = 0; field in TextureViewHelper
108 if (mWidth != width || mHeight != height || mOrientation != rotation) { in onLayoutChange()
109 mWidth = width; in onLayoutChange()
129 mPreviewArea.set(0, 0, mWidth, mHeight); in clearTransform()
201 RectF previewRect = new RectF(0, 0, mWidth, mHeight);
230 mPreviewArea.set(0, 0, mWidth, mHeight);
294 transform.preRotate(270, mWidth / 2, mHeight / 2);
298 transform.preRotate(180, mWidth / 2, mHeight / 2);
302 transform.preRotate(90, mWidth / 2, mHeight / 2);
333 if (mAspectRatio == MATCH_SCREEN || mAspectRatio < 0 || mWidth == 0 || mHeight == 0) {
[all …]
DPanoProgressBar.java44 private float mWidth; field in PanoProgressBar
103 mWidth = w; in onSizeChanged()
105 mDrawBounds.set(0, 0, mWidth, mHeight); in onSizeChanged()
124 mLeftMostProgress = mWidth; in setRightIncreasing()
125 mRightMostProgress = mWidth; in setRightIncreasing()
126 mProgressOffset = mWidth; in setRightIncreasing()
144 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress()
146 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress()
182 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java94 private int mWidth; field in MessagePartData
151 mWidth = width; in MessagePartData()
231 mWidth = cursor.getInt(INDEX_WIDTH); in bind()
242 if (mWidth != UNSPECIFIED_SIZE) { in populate()
243 values.put(PartColumns.WIDTH, mWidth); in populate()
269 insert.bindLong(INDEX_WIDTH, mWidth); in getInsertStatement()
324 return mWidth; in getWidth()
349 mWidth = in.readInt(); in MessagePartData()
360 dest.writeInt(mWidth); in writeToParcel()
375 return mWidth == lhs.mWidth && mHeight == lhs.mHeight && in equals()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlBar.java40 private int mWidth; field in ZoomControlBar
64 pos = mWidth - mTotalIconWidth - x; in getSliderPosition()
75 mWidth = w; in onSizeChanged()
78 mSliderLength = mWidth - (2 * mTotalIconWidth); in onSizeChanged()
83 if (!isEnabled() || (mWidth == 0)) return false; in dispatchTouchEvent()
129 mBar.layout(mTotalIconWidth, 0, mWidth - mTotalIconWidth, height); in onLayout()
141 mZoomOut.layout(mWidth - mIconWidth, 0, mWidth, height); in onLayout()
145 mZoomIn.layout(mWidth - mIconWidth, 0, mWidth, height); in onLayout()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorCompareView.java40 private float mWidth; field in ColorCompareView
99 if (x> mWidth-2*mHeight) { in onTouchEvent()
114 mWidth = w; in onSizeChanged()
125 mOrigRegion.moveTo(mWidth, 0); in updatePaint()
126 mOrigRegion.lineTo(mWidth, mHeight); in updatePaint()
127 mOrigRegion.lineTo(mWidth - mHeight * 2, mHeight); in updatePaint()
128 mOrigRegion.lineTo(mWidth - mHeight, 0); in updatePaint()
132 mRegion.lineTo(mWidth - mHeight, 0); in updatePaint()
133 mRegion.lineTo(mWidth - mHeight * 2, mHeight); in updatePaint()
142 canvas.drawRect(mBorder, 0, mWidth, mHeight, mCheckPaint); in onDraw()
DColorSaturationView.java41 private float mWidth; field in ColorSaturationView
115 if (mDotX > mWidth - mBorder) { in onTouchEvent()
116 mDotX = mWidth - mBorder; in onTouchEvent()
118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
131 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
143 mWidth = w; in onSizeChanged()
159 mBorder, mBorder, mWidth - mBorder, mBorder, in updatePaint()
169 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mCheckPaint); in onDraw()
170 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mBarPaint1); in onDraw()
171 canvas.drawLine(mDotX, mDotY, mWidth - mBorder, mDotY, mLinePaint1); in onDraw()
DColorBrightnessView.java41 private float mWidth; field in ColorBrightnessView
115 if (mDotX > mWidth - mBorder) { in onTouchEvent()
116 mDotX = mWidth - mBorder; in onTouchEvent()
118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
131 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
143 mWidth = w; in onSizeChanged()
160 mBorder, mBorder, mWidth - mBorder, mBorder, in updatePaint()
170 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mCheckPaint); in onDraw()
171 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mBarPaint1); in onDraw()
172 canvas.drawLine(mDotX, mDotY, mWidth - mBorder, mDotY, mLinePaint1); in onDraw()
DColorOpacityView.java41 private float mWidth; field in ColorOpacityView
120 if (mDotX > mWidth - mBorder) { in onTouchEvent()
121 mDotX = mWidth - mBorder; in onTouchEvent()
123 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
136 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
148 mWidth = w; in onSizeChanged()
161 mBorder, mBorder, mWidth - mBorder, mBorder, color1, color2, Shader.TileMode.CLAMP); in updatePaint()
170 canvas.drawRect(mBorder, 0, mWidth - mBorder, mHeight, mCheckPaint); in onDraw()
171 canvas.drawRect(mBorder, 0, mWidth - mBorder, mHeight, mBarPaint1); in onDraw()
172 canvas.drawLine(mDotX, mDotY, mWidth - mBorder, mDotY, mLinePaint1); in onDraw()
DColorHueView.java40 private float mWidth; field in ColorHueView
130 if (mDotX > mWidth - mBorder) { in onTouchEvent()
131 mDotX = mWidth - mBorder; in onTouchEvent()
133 mHSVO[0] = 360 * (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
148 float pos = mHSVO[0] / 360 * (mWidth - mBorder * 2); in setupButton()
160 mWidth = w; in onSizeChanged()
173 mRect.right = mWidth - mBorder; in onDraw()
180 canvas.drawLine(mDotX, mDotY, mWidth - mBorder, mDotY, mLinePaint1); in onDraw()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapWorkerOptions.java41 private int mWidth; field in BitmapWorkerOptions
58 private int mWidth; field in BitmapWorkerOptions.Builder
65 mWidth = MAX_IMAGE_DIMENSION_PX; in Builder()
81 final int largestDim = Math.max(mWidth, mHeight); in build()
84 mWidth *= scale; in build()
89 options.mWidth = mWidth; in build()
119 mWidth = width; in width()
164 return mWidth; in getWidth()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoProgressBar.java41 private float mWidth; field in PanoProgressBar
98 mWidth = w; in onSizeChanged()
100 mDrawBounds.set(0, 0, mWidth, mHeight); in onSizeChanged()
119 mLeftMostProgress = mWidth; in setRightIncreasing()
120 mRightMostProgress = mWidth; in setRightIncreasing()
121 mProgressOffset = mWidth; in setRightIncreasing()
139 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress()
141 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress()
177 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java86 private int mWidth; field in EdgeEffect
151 mWidth = width; in setSize()
321 if (mWidth < mMinWidth) { in draw()
323 int glowLeft = (mWidth - mMinWidth)/2; in draw()
324 mGlow.setBounds(glowLeft, 0, mWidth - glowLeft, glowBottom); in draw()
327 mGlow.setBounds(0, 0, mWidth, glowBottom); in draw()
335 if (mWidth < mMinWidth) { in draw()
337 int edgeLeft = (mWidth - mMinWidth)/2; in draw()
338 mEdge.setBounds(edgeLeft, 0, mWidth - edgeLeft, edgeBottom); in draw()
341 mEdge.setBounds(0, 0, mWidth, edgeBottom); in draw()
DSurfaceTextureScreenNail.java38 private int mWidth, mHeight; field in SurfaceTextureScreenNail
47 mExtTexture.setSize(mWidth, mHeight); in acquireSurfaceTexture()
49 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight); in acquireSurfaceTexture()
86 mWidth = width; in setSize()
92 mExtTexture.setSize(mWidth, mHeight); in resizeTexture()
93 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight); in resizeTexture()
99 return mWidth; in getWidth()
DPaper.java33 private int mWidth; field in Paper
37 distance /= mWidth; // make it relative to width in overScroll()
46 velocity /= mWidth; // make it relative to width in edgeReached()
65 mWidth = width; in setSize()
75 float x = screenX + mWidth / 4; in getTransform()
76 int range = 3 * mWidth / 2; in getTransform()
DTiledScreenNail.java48 private int mWidth; field in TiledScreenNail
56 mWidth = bitmap.getWidth(); in TiledScreenNail()
81 mWidth = Math.round(scale * width); in setSize()
100 mWidth = newer.mWidth; in combine()
122 return mWidth; in getWidth()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeekView.java134 protected int mWidth; field in SimpleWeekView
369 int dayStart = mShowWeekNum ? (mWidth - mPadding * 2) / mNumCells + mPadding : mPadding; in getDayFromLocation()
370 if (x < dayStart || x > mWidth - mPadding) { in getDayFromLocation()
374 int dayPosition = (int) ((x - dayStart) * mNumDays / (mWidth - dayStart - mPadding)); in getDayFromLocation()
419 r.right = mWidth - mPadding; in drawBackground()
441 int x = (mWidth - mPadding * 2) / divisor + mPadding; in drawWeekNums()
458 int x = (2 * i + 1) * (mWidth - mPadding * 2) / (divisor) + mPadding; in drawWeekNums()
488 int x = (mWidth - mPadding * 2) / mNumCells + mPadding; in drawDaySeparators()
495 mWidth = w; in onSizeChanged()
511 mSelectedLeft = selectedPosition * (mWidth - mPadding * 2) / mNumCells in updateSelectionPositions()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DFastBitmapDrawable.java30 private int mWidth; field in FastBitmapDrawable
38 mWidth = mBitmap.getWidth(); in FastBitmapDrawable()
41 mWidth = mHeight = 0; in FastBitmapDrawable()
78 return mWidth; in getIntrinsicWidth()
88 return mWidth; in getMinimumWidth()
99 mWidth = mBitmap.getWidth(); in setBitmap()
102 mWidth = mHeight = 0; in setBitmap()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DImagePersistTask.java41 private int mWidth; field in ImagePersistTask
61 mWidth = width; in ImagePersistTask()
100 Assert.equals(mWidth, bitmap.getHeight()); in doInBackgroundTimed()
103 clippedHeight = mWidth; in doInBackgroundTimed()
105 Assert.equals(mWidth, bitmap.getWidth()); in doInBackgroundTimed()
107 clippedWidth = mWidth; in doInBackgroundTimed()
112 mWidth = clippedWidth; in doInBackgroundTimed()
166 mCallback.onMediaReady(mOutputUri, ContentType.IMAGE_JPEG, mWidth, mHeight); in onPostExecute()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DImagePersistTask.java43 private int mWidth; field in ImagePersistTask
61 mWidth = width; in ImagePersistTask()
92 mCallback.onMediaReady(result.getResult(), "image/jpeg", mWidth, mHeight); in onPostExecute() local
112 Assert.checkState(mWidth == bitmap.getHeight()); in writeClippedBitmap()
115 clippedHeight = mWidth; in writeClippedBitmap()
117 Assert.checkState(mWidth == bitmap.getWidth()); in writeClippedBitmap()
119 clippedWidth = mWidth; in writeClippedBitmap()
124 mWidth = clippedWidth; in writeClippedBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/
DBaseRecyclerViewFastScrollBar.java44 return scrollBar.mWidth;
69 private int mWidth; field in BaseRecyclerViewFastScrollBar
105mWidth = mMinWidth = res.getDimensionPixelSize(R.dimen.container_fastscroll_thumb_min_width); in BaseRecyclerViewFastScrollBar()
147 if (mWidth == width) { in setTrackWidth()
154 mWidth = width; in setTrackWidth()
162 int smallWidth = mIsRtl ? mWidth : -mWidth; in updateThumbPath()
269 int thumbWidth = mIsRtl ? mWidth : -mWidth; in draw()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DTiledTexture.java61 private final int mWidth; field in TiledTexture
124 mWidth = width + 2 * BORDER_SIZE; in setSize()
203 mWidth = bitmap.getWidth(); in TiledTexture()
207 for (int x = 0, w = mWidth; x < w; x += CONTENT_SIZE) { in TiledTexture()
214 Math.min(CONTENT_SIZE, mWidth - x), in TiledTexture()
280 float scaleX = (float) width / mWidth; in drawMixed()
299 float scaleX = (float) width / mWidth; in draw()
339 return mWidth; in getWidth()
349 draw(canvas, x, y, mWidth, mHeight); in draw()
DColorTexture.java25 private int mWidth; field in ColorTexture
30 mWidth = 1; in ColorTexture()
36 draw(canvas, x, y, mWidth, mHeight); in draw()
50 mWidth = width; in setSize()
56 return mWidth; in getWidth()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java101 private final int mWidth; field in Key
218 mWidth = width - horizontalGap; in Key()
272 mWidth = Math.round(keyWidth - horizontalGapFloat); in Key()
425 mWidth = key.mWidth; in Key()
470 key.mWidth, in computeHashCode()
497 && o.mWidth == mWidth in equalsInternal()
834 return mWidth; in getWidth()
887 return (attrs == null) ? mWidth in getDrawWidth()
888 : mWidth - attrs.mVisualInsetsLeft - attrs.mVisualInsetsRight; in getDrawWidth()
942 final int right = left + mWidth; in squaredDistanceToEdge()

123