Home
last modified time | relevance | path

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

1234

/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrYuvLuminanceSource.java27 private int mWidth; field in QrYuvLuminanceSource
33 mWidth = width; in QrYuvLuminanceSource()
46 int inputOffset = top * mWidth + left; in crop()
48 if (left + crop_width > mWidth || top + crop_height > mHeight) { in crop()
54 inputOffset += mWidth; in crop()
64 if (row == null || row.length < mWidth) { in getRow()
65 row = new byte[mWidth]; in getRow()
67 System.arraycopy(mYuvData, y * mWidth, row, 0, mWidth); in getRow()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrYuvLuminanceSource.java27 private int mWidth; field in QrYuvLuminanceSource
33 mWidth = width; in QrYuvLuminanceSource()
46 int inputOffset = top * mWidth + left; in crop()
48 if (left + crop_width > mWidth || top + crop_height > mHeight) { in crop()
54 inputOffset += mWidth; in crop()
64 if (row == null || row.length < mWidth) { in getRow()
65 row = new byte[mWidth]; in getRow()
67 System.arraycopy(mYuvData, y * mWidth, row, 0, mWidth); in getRow()
/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/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/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()
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()
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()
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/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/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/Launcher3/src/com/android/launcher3/views/
DRecyclerViewFastScroller.java59 return scrollBar.mWidth;
86 private int mWidth; field in RecyclerViewFastScroller
140 mWidth = mMinWidth = res.getDimensionPixelSize(R.dimen.fastscroll_track_min_width); in RecyclerViewFastScroller()
197 if (mWidth == width) { in setTrackWidth()
200 mWidth = width; in setTrackWidth()
306 float halfW = mWidth / 2; in onDraw()
308 mWidth, mWidth, mTrackPaint); in onDraw()
325 return mWidth + mThumbPadding + mThumbPadding; in getScrollThumbRadius()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
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()
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()
/packages/services/BuiltInPrintService/src/com/android/bips/render/
DPdfRenderService.java174 private final int mWidth; field in PdfRenderService.RenderThread
185 mWidth = width; in RenderThread()
192 mRowsPerStripe = MAX_BYTES_PER_CHUNK / mWidth / 4; in RenderThread()
193 mBuffer = ByteBuffer.allocate(mWidth * mRowsPerStripe * 4); in RenderThread()
210 bitmap = Bitmap.createBitmap(mWidth, mRowsPerStripe, Bitmap.Config.ARGB_8888); in run()
246 int alphaPixelSize = mWidth * rows * 4; in writeRgb()
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java55 int mWidth; field in BitmapRegionTileSource
72 mWidth = mDecoder.getWidth(); in BitmapRegionTileSource()
93 mWidth, mHeight, in BitmapRegionTileSource()
106 return mWidth; in getImageWidth()
161 mOverlapRegion.set(0, 0, mWidth, mHeight); in getTileWithoutReusingBitmap()
191 float scale = (float) targetSize / Math.max(mWidth, mHeight); in decodePreview()

1234