Home
last modified time | relevance | path

Searched refs:mHeight (Results 1 – 25 of 108) sorted by relevance

12345

/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/android/
DImsMediaPauseImageSource.cpp71 mHeight = height; 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 …]
DImsMediaVideoSource.cpp42 mHeight = 0; in ImsMediaVideoSource()
98 mHeight = height; in SetResolution()
127 if (mWidth > mHeight) in SetDeviceOrientation()
171 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_HEIGHT, mHeight); in Start()
192 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, mWidth * mHeight * 10); in Start()
215 mImageReaderSurface = CreateImageReader(mWidth, mHeight); in Start()
236 if (mWidth != width || mHeight != height || width > mCodecStride) in Start()
296 mPauseImageSource.Initialize(mWidth, mHeight, mCodecStride); in Start()
392 if (mWidth > mHeight) // landscape mode, copy without rotate in onCameraFrame()
438 width, height, mWidth, mHeight, buffCapacity); in onCameraFrame()
/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java37 private final int mHeight; field in AspectRatio
45 mHeight = height; in AspectRatio()
68 return mHeight; in getHeight()
76 return (float) mWidth / (float) mHeight; in toFloat()
88 if (mHeight != that.mHeight) 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/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorCompareView.java45 private float mHeight; field in ColorCompareView
99 if (x> mWidth-2*mHeight) { in onTouchEvent()
115 mHeight = h; in onSizeChanged()
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()
134 mRegion.lineTo(0, mHeight); in updatePaint()
142 canvas.drawRect(mBorder, 0, mWidth, mHeight, mCheckPaint); in onDraw()
DColorValueView.java42 private float mHeight; field in ColorValueView
98 if (mDotY > mHeight - mBorder) { in onTouchEvent()
99 mDotY = mHeight - mBorder; in onTouchEvent()
101 mHSVO[2] = (mDotY - mBorder) / (mHeight - mBorder * 2); in onTouchEvent()
113 float pos = mHSVO[2] * (mHeight - mBorder * 2); in setupButton()
126 mHeight = h; in onSizeChanged()
139 Shader sg = new LinearGradient(mBorder, mBorder, mBorder, mHeight - mBorder, color1, color2, in updatePaint()
148 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mBarPaint1); in onDraw()
149 canvas.drawLine(mDotX, mDotY, mDotX, mHeight - mBorder, mLinePaint2); in onDraw()
DColorRectView.java63 private int mHeight; field in ColorRectView
101 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); in onTouchEvent()
104 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
109 double hue = Math.PI * 2 * (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
123 mHeight = h; in onSizeChanged()
152 0, mBorder, 0, mHeight - mBorder, colors, null, Shader.TileMode.CLAMP); in setUpColorPanel()
155 0, mBorder, 0, mHeight - mBorder, colors2, null, Shader.TileMode.CLAMP); in setUpColorPanel()
167 rect.bottom = mHeight - mBorder; in onDraw()
183 mDotX = (float) (mBorder + (mHeight - 2 * mBorder) * Math.toRadians(hue) / (Math.PI * 2)); in updateDot()
184 mDotY = (float) ((1 - sat) * (mHeight - 2 * mBorder) + mBorder); in updateDot()
DColorSVRectView.java57 private int mHeight; field in ColorSVRectView
148 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); in onTouchEvent()
151 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
156 float value = (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
170 mHeight = h; in onSizeChanged()
185 mDotX = (float) (mBorder + (mHeight - 2 * mBorder) * sat); in updateDot()
186 mDotY = (float) ((1 - val) * (mHeight - 2 * mBorder) + mBorder); in updateDot()
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DRenderInputParcel.java34 private int mHeight = 0; field in RenderInputParcel
63 this.mHeight = height; in RenderInputParcel()
82 return mHeight; in getHeight()
104 dest.writeInt(mHeight); in writeToParcel()
125 this.mHeight = height; in RenderInputParcel()
154 private int mHeight; field in RenderInputParcel.Builder
180 mHeight = value; in setHeight()
205 mHeight = 0; in build()
212 mHeight, in build()
DRenderInput.java38 private int mHeight = 0; field in RenderInput
84 this.mHeight = height; in RenderInput()
103 return mHeight; in getHeight()
129 && mHeight == that.mHeight in equals()
141 _hash = 31 * _hash + mHeight; in hashCode()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeTransitionView.java75 private int mHeight = 0; field in ModeTransitionView
125 mShadePath.addRect(0, mHeight - getScrollDistance(), mWidth, mHeight, in updateShade()
135 if (shadeHeight < mHeight / 2 || mHeight == 0) { in updateShade()
138 int alpha = ((int) shadeHeight - mHeight / 2) * ALPHA_FULLY_OPAQUE in updateShade()
139 / (mHeight / 2); in updateShade()
156 scrollDistance = Math.min(scrollDistance, mHeight); in setScrollDistance()
160 scrollDistance = Math.max(scrollDistance, -mHeight); in setScrollDistance()
196 mHeight = bottom - top; in onLayout()
198 mIconRect.set(mWidth / 2 - mIconSize / 2, mHeight / 2 - mIconSize / 2, in onLayout()
199 mWidth / 2 + mIconSize / 2, mHeight / 2 + mIconSize / 2); in onLayout()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DIconInfo.java44 private final int mHeight; field in IconInfo
52 mHeight = height; in IconInfo()
88 return mHeight; in getHeight()
114 && mHeight == that.mHeight in equals()
122 return Objects.hash(mWidth, mHeight, mLanguage, mIconType, mFileName); in hashCode()
129 + ", Height=" + mHeight in toString()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java55 private int mHeight = 0; field in TextureViewHelper
109 if (mWidth != width || mHeight != height || mOrientation != rotation) { in onLayoutChange()
111 mHeight = height; 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/ui/
DSurfaceTextureScreenNail.java38 private int mWidth, mHeight; field in SurfaceTextureScreenNail
47 mExtTexture.setSize(mWidth, mHeight); in acquireSurfaceTexture()
49 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight); in acquireSurfaceTexture()
87 mHeight = height; in setSize()
92 mExtTexture.setSize(mWidth, mHeight); in resizeTexture()
93 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight); in resizeTexture()
104 return mHeight; in getHeight()
DTiledScreenNail.java49 private int mHeight; field in TiledScreenNail
57 mHeight = bitmap.getHeight(); in TiledScreenNail()
82 mHeight = Math.round(scale * height); in setSize()
101 mHeight = newer.mHeight; in combine()
127 return mHeight; in getHeight()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/nodes/
DIVideoRendererNode.cpp47 mHeight = 0; in IVideoRendererNode()
85 mVideoRenderer->SetResolution(mWidth, mHeight); in Start()
140 mHeight = pConfig->getResolutionHeight(); 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()
679 mHeight = nHeight; in CheckResolution()
722 if (mWidth > mHeight) // landscape in NotifyPeerDimensionChanged()
730 mCallback->SendEvent(kImsMediaEventResolutionChanged, mWidth, mHeight); in NotifyPeerDimensionChanged()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DHeightRecord.java34 private final Length mHeight; field in HeightRecord
90 mHeight = height; in HeightRecord()
97 return mHeight; in getHeight()
126 private final Length mHeight; field in HeightRecord.Builder
139 mHeight = height; in Builder()
164 return new HeightRecord(mMetadata, mTime, mZoneOffset, mHeight, true); in buildWithoutValidation()
172 return new HeightRecord(mMetadata, mTime, mZoneOffset, mHeight, false); in build()
194 recordInternal.setHeight(mHeight.getInMeters()); in toRecordInternal()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DColorTexture.java26 private int mHeight; field in ColorTexture
31 mHeight = 1; in ColorTexture()
36 draw(canvas, x, y, mWidth, mHeight); in draw()
51 mHeight = height; in setSize()
61 return mHeight; in getHeight()
DFadeTexture.java32 private final int mHeight; field in FadeTexture
38 mHeight = height; in FadeTexture()
46 draw(canvas, x, y, mWidth, mHeight); in draw()
61 return mHeight; in getHeight()
DTiledTexture.java62 private final int mHeight; field in TiledTexture
125 mHeight = height + 2 * BORDER_SIZE; in setSize()
204 mHeight = bitmap.getHeight(); in TiledTexture()
208 for (int y = 0, h = mHeight; y < h; y += CONTENT_SIZE) { in TiledTexture()
215 Math.min(CONTENT_SIZE, mHeight - y)); in TiledTexture()
281 float scaleY = (float) height / mHeight; in drawMixed()
300 float scaleY = (float) height / mHeight; in draw()
344 return mHeight; in getHeight()
349 draw(canvas, x, y, mWidth, mHeight); in draw()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java108 private int mHeight; field in MessagePartData
165 mHeight = height; in MessagePartData()
245 mHeight = cursor.getInt(INDEX_HEIGHT); in bind()
258 if (mHeight != UNSPECIFIED_SIZE) { in populate()
259 values.put(PartColumns.HEIGHT, mHeight); in populate()
283 insert.bindLong(INDEX_HEIGHT, mHeight); in getInsertStatement()
341 return mHeight; in getHeight()
368 mHeight = in.readInt(); in MessagePartData()
379 dest.writeInt(mHeight); in writeToParcel()
393 return mWidth == lhs.mWidth && mHeight == lhs.mHeight && in equals()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DImagePersistTask.java42 private int mHeight; field in ImagePersistTask
62 mHeight = height; in ImagePersistTask()
101 Assert.equals(mHeight, bitmap.getWidth()); in doInBackgroundTimed()
102 clippedWidth = (int) (mHeight * mHeightPercent); in doInBackgroundTimed()
106 Assert.equals(mHeight, bitmap.getHeight()); in doInBackgroundTimed()
108 clippedHeight = (int) (mHeight * mHeightPercent); in doInBackgroundTimed()
113 mHeight = clippedHeight; in doInBackgroundTimed()
166 mCallback.onMediaReady(mOutputUri, ContentType.IMAGE_JPEG, mWidth, mHeight); in onPostExecute()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DHeightRecordInternal.java31 private double mHeight; field in HeightRecordInternal
34 return mHeight; in getHeight()
40 this.mHeight = height; in setHeight()
54 mHeight = parcel.readDouble(); in populateInstantRecordFrom()
59 parcel.writeDouble(mHeight); in populateInstantRecordTo()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/statusicon/ui/
DTextDrawable.java44 private final int mHeight; field in TextDrawable
49 mHeight = height; 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.java28 private final double mHeight; field in SizeD
34 mHeight = height; in SizeD()
53 return mHeight; in getHeight()
64 out.writeDouble(mHeight); in writeToParcel()
/packages/apps/Settings/src/com/android/settings/applications/
DSpacePreference.java35 private int mHeight; field in SpacePreference
53 mHeight = a.getDimensionPixelSize(0, 0); in SpacePreference()
58 mHeight = height; in setHeight()
65 LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, mHeight); in onBindViewHolder()

12345