Home
last modified time | relevance | path

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

12345

/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/android/
DImsMediaPauseImageSource.cpp70 mWidth = width; in Initialize()
92 if (JpegWidth != mWidth || JpegHeight != mHeight) in Initialize()
165 if (mWidth == 1920 && mHeight == 1080) in getImageFilePath()
167 else if (mWidth == 1080 && mHeight == 1920) in getImageFilePath()
169 else if (mWidth == 1280 && mHeight == 720) in getImageFilePath()
171 else if (mWidth == 720 && mHeight == 1280) in getImageFilePath()
173 else if (mWidth == 640 && mHeight == 480) in getImageFilePath()
175 else if (mWidth == 480 && mHeight == 640) in getImageFilePath()
177 else if (mWidth == 352 && mHeight == 288) in getImageFilePath()
179 else if (mWidth == 288 && mHeight == 352) in getImageFilePath()
[all …]
/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/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/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/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DRenderInputParcel.java31 private int mWidth = 0; field in RenderInputParcel
62 this.mWidth = width; in RenderInputParcel()
74 return mWidth; in getWidth()
103 dest.writeInt(mWidth); in writeToParcel()
124 this.mWidth = width; in RenderInputParcel()
153 private int mWidth; field in RenderInputParcel.Builder
169 mWidth = value; in setWidth()
202 mWidth = 0; in build()
211 mWidth, in build()
DRenderInput.java35 private int mWidth = 0; field in RenderInput
83 this.mWidth = width; in RenderInput()
95 return mWidth; in getWidth()
128 && mWidth == that.mWidth in equals()
140 _hash = 31 * _hash + mWidth; in hashCode()
/packages/apps/Camera2/src/com/android/camera/
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()
DTextureViewHelper.java54 private int mWidth = 0; field in TextureViewHelper
109 if (mWidth != width || mHeight != height || mOrientation != rotation) { in onLayoutChange()
110 mWidth = width; in onLayoutChange()
130 mPreviewArea.set(0, 0, mWidth, mHeight); in clearTransform()
202 RectF previewRect = new RectF(0, 0, mWidth, mHeight);
231 mPreviewArea.set(0, 0, mWidth, mHeight);
295 transform.preRotate(270, mWidth / 2, mHeight / 2);
299 transform.preRotate(180, mWidth / 2, mHeight / 2);
303 transform.preRotate(90, mWidth / 2, mHeight / 2);
334 if (mAspectRatio == MATCH_SCREEN || mAspectRatio < 0 || mWidth == 0 || mHeight == 0) {
[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()
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()
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()
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/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DIconInfo.java43 private final int mWidth; field in IconInfo
51 mWidth = width; in IconInfo()
84 return mWidth; in getWidth()
113 return mWidth == that.mWidth in equals()
122 return Objects.hash(mWidth, mHeight, mLanguage, mIconType, mFileName); in hashCode()
128 + "Width=" + mWidth in toString()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
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()
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()
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/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/nodes/
DIVideoRendererNode.cpp46 mWidth = 0; in IVideoRendererNode()
85 mVideoRenderer->SetResolution(mWidth, mHeight); in Start()
139 mWidth = pConfig->getResolutionWidth(); in SetConfig()
155 mWidth == pConfig->getResolutionWidth() && mHeight == pConfig->getResolutionHeight() && in IsSameConfig()
273 mCallback->SendEvent(kImsMediaEventResolutionChanged, mWidth, mHeight); in ProcessData()
674 if ((nWidth != 0 && nWidth != mWidth) || (nHeight != 0 && nHeight != mHeight)) in CheckResolution()
676 IMLOGD4("[CheckResolution] resolution change[%dx%d] to [%dx%d]", mWidth, mHeight, nWidth, in CheckResolution()
678 mWidth = nWidth; in CheckResolution()
722 if (mWidth > mHeight) // landscape in NotifyPeerDimensionChanged()
730 mCallback->SendEvent(kImsMediaEventResolutionChanged, mWidth, mHeight); in NotifyPeerDimensionChanged()
[all …]
/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()
DFadeTexture.java31 private final int mWidth; field in FadeTexture
37 mWidth = width; in FadeTexture()
46 draw(canvas, x, y, mWidth, mHeight); in draw()
56 return mWidth; in getWidth()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java107 private int mWidth; field in MessagePartData
164 mWidth = width; in MessagePartData()
244 mWidth = cursor.getInt(INDEX_WIDTH); in bind()
255 if (mWidth != UNSPECIFIED_SIZE) { in populate()
256 values.put(PartColumns.WIDTH, mWidth); in populate()
282 insert.bindLong(INDEX_WIDTH, mWidth); in getInsertStatement()
337 return mWidth; in getWidth()
367 mWidth = in.readInt(); in MessagePartData()
378 dest.writeInt(mWidth); in writeToParcel()
393 return mWidth == lhs.mWidth && mHeight == lhs.mHeight && in equals()
[all …]
/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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/statusicon/ui/
DTextDrawable.java43 private final int mWidth; field in TextDrawable
48 mWidth = width; in TextDrawable()
62 super.setBounds(left, top, left + mWidth, top + mHeight); in setBounds()
63 mView.measure(mWidth, mHeight); in setBounds()
64 mView.layout(left, top, left + mWidth, top + mHeight); in setBounds()
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DSizeD.java27 private final double mWidth; field in SizeD
33 mWidth = width; in SizeD()
49 return mWidth; in getWidth()
63 out.writeDouble(mWidth); in writeToParcel()

12345