Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DStraightenFilter.java47 private int mWidth = 0; field in StraightenFilter
97 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
98 mWidth = inputFormat.getWidth(); in process()
123 Point p0 = new Point(-cosTheta * mWidth + sinTheta * mHeight, in updateParameters()
124 -sinTheta * mWidth - cosTheta * mHeight); in updateParameters()
126 Point p1 = new Point(cosTheta * mWidth + sinTheta * mHeight, in updateParameters()
127 sinTheta * mWidth - cosTheta * mHeight); in updateParameters()
129 Point p2 = new Point(-cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
130 -sinTheta * mWidth + cosTheta * mHeight); in updateParameters()
132 Point p3 = new Point(cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
[all …]
DLomoishFilter.java39 private int mWidth = 0; field in LomoishFilter
154 if (mWidth > mHeight) { in initParameters()
156 scale[1] = ((float) mHeight) / mWidth; in initParameters()
158 scale[0] = ((float) mWidth) / mHeight; in initParameters()
167 mProgram.setHostValue("stepsizeX", 1.0f / mWidth); in initParameters()
187 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
188 mWidth = inputFormat.getWidth(); in process()
DCropRectFilter.java50 private int mWidth = 0; field in CropRectFilter
83 updateSourceRect(mWidth, mHeight); in fieldPortValueUpdated()
105 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
120 mWidth = width; in updateSourceRect()
131 ((ShaderProgram) mProgram).setSourceRect((float) mXorigin / mWidth, in updateSourceRect()
133 (float) mOutputWidth / mWidth, in updateSourceRect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DCircularCornerPathRenderer.java29 private final int mWidth; field in CircularCornerPathRenderer
37 mWidth = width; in CircularCornerPathRenderer()
50 mPath.moveTo(mWidth - mCornerRadiusBottom, mHeight); in getCornerPath()
51 mPath.arcTo(mWidth - mCornerRadiusBottom * 2, mHeight - mCornerRadiusBottom * 2, in getCornerPath()
52 mWidth, mHeight, 90, -90, true); in getCornerPath()
55 mPath.moveTo(mWidth, mCornerRadiusTop); in getCornerPath()
56 mPath.arcTo(mWidth - mCornerRadiusTop * 2, 0, mWidth, mCornerRadiusTop * 2, 0, -90, in getCornerPath()
/frameworks/base/core/java/android/hardware/camera2/params/
DMeteringRectangle.java76 private final int mWidth; field in MeteringRectangle
94 mWidth = checkArgumentNonnegative(width, "width must be nonnegative"); in MeteringRectangle()
118 mWidth = checkArgumentNonnegative(dimensions.getWidth(), "width must be nonnegative"); in MeteringRectangle()
139 mWidth = checkArgumentNonnegative(rect.width(), "rect.width must be nonnegative"); in MeteringRectangle()
168 return mWidth; in getWidth()
206 return new Size(mWidth, mHeight); in getSize()
217 return new Rect(mX, mY, mX + mWidth, mY + mHeight); in getRect()
245 && mWidth == other.mWidth in equals()
255 return HashCodeHelpers.hashCode(mX, mY, mWidth, mHeight, mWeight); in hashCode()
267 return String.format("(x:%d, y:%d, w:%d, h:%d, wt:%d)", mX, mY, mWidth, mHeight, mWeight); in toString()
DInputConfiguration.java30 private final int mWidth; field in InputConfiguration
50 mWidth = width; in InputConfiguration()
61 return mWidth; in getWidth()
100 if (otherInputConfig.getWidth() == mWidth && in equals()
113 return HashCodeHelpers.hashCode(mWidth, mHeight, mFormat); in hashCode()
126 return String.format("InputConfiguration(w:%d, h:%d, format:%d)", mWidth, mHeight, mFormat); in toString()
DStreamConfigurationDuration.java58 mWidth = checkArgumentPositive(width, "width must be positive"); in StreamConfigurationDuration()
82 return mWidth; in getWidth()
100 return new Size(mWidth, mHeight); in getSize()
131 mWidth == other.mWidth && in equals()
143 return HashCodeHelpers.hashCode(mFormat, mWidth, mHeight, in hashCode()
148 private final int mWidth; field in StreamConfigurationDuration
DStreamConfiguration.java63 mWidth = checkArgumentPositive(width, "width must be positive"); in StreamConfiguration()
87 return mWidth; in getWidth()
105 return new Size(mWidth, mHeight); in getSize()
152 mWidth == other.mWidth && in equals()
164 return HashCodeHelpers.hashCode(mFormat, mWidth, mHeight, mInput ? 1 : 0); in hashCode()
168 protected int mWidth; field in StreamConfiguration
DHighSpeedVideoConfiguration.java59 mWidth = checkArgumentPositive(width, "width must be positive"); in HighSpeedVideoConfiguration()
62 mSize = new Size(mWidth, mHeight); in HighSpeedVideoConfiguration()
73 return mWidth; in getWidth()
148 return mWidth == other.mWidth && in equals()
162 return HashCodeHelpers.hashCode(mWidth, mHeight, mFpsMin, mFpsMax); in hashCode()
165 private final int mWidth; field in HighSpeedVideoConfiguration
/frameworks/base/core/java/android/util/
DSize.java32 mWidth = width; in Size()
41 return mWidth; in getWidth()
74 return mWidth == other.mWidth && mHeight == other.mHeight; in equals()
86 return mWidth + "x" + mHeight; in toString()
147 return mHeight ^ ((mWidth << (Integer.SIZE / 2)) | (mWidth >>> (Integer.SIZE / 2))); in hashCode()
150 private final int mWidth; field in Size
DSizeF.java43 mWidth = checkArgumentFinite(width, "width"); in SizeF()
52 return mWidth; in getWidth()
84 return mWidth == other.mWidth && mHeight == other.mHeight; in equals()
96 return mWidth + "x" + mHeight; in toString()
159 return Float.floatToIntBits(mWidth) ^ Float.floatToIntBits(mHeight); in hashCode()
162 private final float mWidth; field in SizeF
/frameworks/native/libs/input/
DTouchVideoFrame.cpp23 mHeight(height), mWidth(width),mData(std::move(data)), mTimestamp(timestamp) { in TouchVideoFrame()
28 && mWidth == rhs.mWidth in operator ==()
36 uint32_t TouchVideoFrame::getWidth() const { return mWidth; } in getWidth()
67 for (size_t j = 0; j < mWidth; j++) { in rotateQuarterTurn()
73 iRotated = mWidth - j - 1; in rotateQuarterTurn()
77 rotated[indexRotated] = mData[i * mWidth + j]; in rotateQuarterTurn()
81 std::swap(mHeight, mWidth); in rotateQuarterTurn()
96 std::swap(mData[i], mData[mHeight * mWidth - 1 - i]); in rotate180()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DShape.java37 private float mWidth; field in Shape
44 return mWidth; in getWidth()
79 if (mWidth != width || mHeight != height) { in resize()
80 mWidth = width; in resize()
130 return Float.compare(shape.mWidth, mWidth) == 0 in equals()
136 return Objects.hash(mWidth, mHeight); in hashCode()
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h31 RectangleLineWidth(float width) : mWidth(width) {} in RectangleLineWidth()
34 float getAt(size_t) const override { return mWidth; } in getAt()
35 float getMin() const override { return mWidth; } in getMin()
38 float mWidth;
48 mWidth(width), in ConstantRun()
61 mWidth); in getMetrics()
67 return std::make_pair(mWidth, MinikinRect()); in getBounds()
87 return mWidth * (range.getLength() + extraCharForHyphen); in measureHyphenPiece()
97 float mWidth; variable
104 float mWidth; member
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java59 private int mWidth; field in LayoutTest
70 mWidth = 11; in setup()
78 new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testConstructor()
89 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText()
93 layout = new MockLayout(null, mTextPaint, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testGetText()
99 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint()
104 layout = new MockLayout(LAYOUT_TEXT, null, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testGetPaint()
130 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testIncreaseWidthTo()
149 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetHeight()
156 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetAlignment()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DCpuVideoTrackDecoder.java50 private final int mWidth; field in CpuVideoTrackDecoder
61 mWidth = format.getInteger(MediaFormat.KEY_WIDTH); in CpuVideoTrackDecoder()
104 int outputWidth = mWidth; in copyFrameDataTo()
108 outputHeight = mWidth; in copyFrameDataTo()
118 convertImage(mDecodedBuffer, outBytes, mColorFormat, mWidth, mHeight); in copyFrameDataTo()
121 mUnrotatedBytes = ByteBuffer.allocateDirect(mWidth * mHeight * 4); in copyFrameDataTo()
124 convertImage(mDecodedBuffer, mUnrotatedBytes, mColorFormat, mWidth, mHeight); in copyFrameDataTo()
145 rowStride = mWidth; in copyRotate()
148 offset = (mWidth - 1) * mHeight; in copyRotate()
158 offset = mWidth * mHeight - 1; in copyRotate()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DDrawingTestHelper.java62 private final int mWidth; field in DrawingTestHelper
68 mWidth = width; in DrawingTestHelper()
77 MeasureSpec.makeMeasureSpec(mWidth, MeasureSpec.EXACTLY), in drawView()
79 view.layout(0, 0, mWidth, mHeight); in drawView()
84 int[] out = new int[mWidth * mHeight]; in getPixels()
85 mBitmap.getPixels(out, 0, mWidth, 0, 0, mWidth, mHeight); in getPixels()
/frameworks/layoutlib/bridge/src/android/view/shadow/
DAmbientShadowConfig.java24 private final int mWidth; field in AmbientShadowConfig
42 mWidth = builder.mWidth; in AmbientShadowConfig()
48 return mWidth; in getWidth()
108 private int mWidth; field in AmbientShadowConfig.Builder
137 mWidth = width; in setSize()
DSpotShadowConfig.java24 private final int mWidth; field in SpotShadowConfig
44 mWidth = builder.mWidth; in SpotShadowConfig()
64 return mWidth; in getWidth()
137 private int mWidth; field in SpotShadowConfig.Builder
167 mWidth = width; in setSize()
/frameworks/base/core/java/android/app/
DVr2dDisplayProperties.java49 private final int mWidth; field in Vr2dDisplayProperties
62 mWidth = width; in Vr2dDisplayProperties()
80 + "mWidth=" + mWidth in toString()
109 dest.writeInt(mWidth); in writeToParcel()
130 mWidth = source.readInt(); in Vr2dDisplayProperties()
148 return mWidth; in getWidth()
197 private int mWidth = -1; field in Vr2dDisplayProperties.Builder
209 mWidth = width; in setDimensions()
253 return new Vr2dDisplayProperties(mWidth, mHeight, mDpi, mAddedFlags, mRemovedFlags); in build()
/frameworks/opt/net/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()
/frameworks/base/core/jni/android/graphics/
DPicture.cpp27 mWidth = src->width(); in Picture()
35 mWidth = 0; in Picture()
42 mWidth = 0; in Picture()
49 mWidth = width; in beginRecording()
63 return mWidth; in width()
78 newPict->mWidth = cullRect.width(); in CreateFromStream()
113 SkCanvas* canvas = reRecorder.beginRecording(mWidth, mHeight, NULL, 0); in makePartialCopy()
/frameworks/av/camera/include/camera/camera2/
DOutputConfiguration.h81 mWidth == other.mWidth &&
99 if (mWidth != other.mWidth) {
100 return mWidth < other.mWidth;
131 int mWidth; variable
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DPortableFloatMap.java16 private int mWidth; field in PortableFloatMap
49 mWidth = Integer.parseInt(widthLine); in PortableFloatMap()
55 final int bytesPerRow = mBytesPerPixel * mWidth; in PortableFloatMap()
65 byte[] row = new byte[mBytesPerPixel * mWidth]; in PortableFloatMap()
88 float[] array = new float[mWidth * mHeight];
94 int getWidth() { return mWidth; }
/frameworks/base/telephony/java/android/telephony/ims/
DRcsFileTransferCreationParams.java36 private int mWidth; field in RcsFileTransferCreationParams
87 return mWidth; in getWidth()
137 mWidth = builder.mWidth; in RcsFileTransferCreationParams()
154 private int mWidth; field in RcsFileTransferCreationParams.Builder
233 mWidth = width; in setWidth()
320 mWidth = in.readInt(); in RcsFileTransferCreationParams()
353 dest.writeInt(mWidth); in writeToParcel()

1234567891011