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

123

/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
H A DManualLayoutFrame.java25 private int mWidth; field in class:ManualLayoutFrame
33 mWidth = 0;
38 if (mWidth != 0) {
39 int newWidth = mWidth;
43 newWidth = Math.min(mWidth, MeasureSpec.getSize(widthMeasureSpec));
49 if (newWidth != mWidth) {
50 mWidth = newWidth;
52 widthMeasureSpec = MeasureSpec.makeMeasureSpec(mWidth, MeasureSpec.EXACTLY);
55 if (mWidth == 0) {
56 mWidth
[all...]
/packages/apps/Camera2/src/com/android/camera/util/
H A DAspectRatio.java36 private final int mWidth; field in class:AspectRatio
44 mWidth = width;
72 return mWidth;
76 return (float) mWidth / (float) mHeight;
90 if (mWidth != that.mWidth)
98 return Objects.hashCode(mWidth, mHeight);
110 return of(mHeight, mWidth);
151 // this.mWidth other.mWidth
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DColorTexture.java25 private int mWidth; field in class:ColorTexture
30 mWidth = 1;
36 draw(canvas, x, y, mWidth, mHeight);
50 mWidth = width;
56 return mWidth;
H A DFadeTexture.java31 private final int mWidth; field in class:FadeTexture
37 mWidth = width;
46 draw(canvas, x, y, mWidth, mHeight);
56 return mWidth;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DFastBitmapDrawable.java30 private int mWidth; field in class:FastBitmapDrawable
38 mWidth = mBitmap.getWidth();
41 mWidth = mHeight = 0;
78 return mWidth;
88 return mWidth;
99 mWidth = mBitmap.getWidth();
102 mWidth = mHeight = 0;
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
H A DSizeD.java27 private final double mWidth; field in class:SizeD
33 mWidth = width;
49 return mWidth;
63 out.writeDouble(mWidth);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DZoomControlBar.java40 private int mWidth; field in class:ZoomControlBar
64 pos = mWidth - mTotalIconWidth - x;
75 mWidth = w;
78 mSliderLength = mWidth - (2 * mTotalIconWidth);
83 if (!isEnabled() || (mWidth == 0)) return false;
129 mBar.layout(mTotalIconWidth, 0, mWidth - mTotalIconWidth, height);
141 mZoomOut.layout(mWidth - mIconWidth, 0, mWidth, height);
145 mZoomIn.layout(mWidth - mIconWidth, 0, mWidth, heigh
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSurfaceTextureScreenNail.java38 private int mWidth, mHeight; field in class:SurfaceTextureScreenNail
47 mExtTexture.setSize(mWidth, mHeight);
49 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight);
86 mWidth = width;
92 mExtTexture.setSize(mWidth, mHeight);
93 setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight);
99 return mWidth;
H A DProgressSpinner.java30 private final int mWidth; field in class:ProgressSpinner
41 mWidth = Math.max(mOuter.getWidth(), mInner.getWidth());
46 return mWidth;
73 canvas.translate(x + mWidth / 2, y + mHeight / 2);
H A DPaper.java33 private int mWidth; field in class:Paper
37 distance /= mWidth; // make it relative to width
46 velocity /= mWidth; // make it relative to width
65 mWidth = width;
73 // range int [-1/4, 5/4]*mWidth. So if part of the thumbnail is outside
75 float x = screenX + mWidth / 4;
76 int range = 3 * mWidth / 2;
H A DTiledScreenNail.java48 private int mWidth; field in class:TiledScreenNail
56 mWidth = bitmap.getWidth();
81 mWidth = Math.round(scale * width);
100 mWidth = newer.mWidth;
122 return mWidth;
/packages/apps/Camera2/src/com/android/camera/
H A DPanoProgressBar.java44 private float mWidth; field in class:PanoProgressBar
103 mWidth = w;
105 mDrawBounds.set(0, 0, mWidth, mHeight);
124 mLeftMostProgress = mWidth;
125 mRightMostProgress = mWidth;
126 mProgressOffset = mWidth;
144 mProgress = progress * mWidth / mMaxProgress + mProgressOffset;
146 mProgress = Math.min(mWidth, Math.max(0, mProgress));
182 r = Math.min(mProgress + mIndicatorWidth, mWidth);
H A DTextureViewHelper.java53 private int mWidth = 0; field in class:TextureViewHelper
108 if (mWidth != width || mHeight != height || mOrientation != rotation) {
109 mWidth = width;
129 mPreviewArea.set(0, 0, mWidth, mHeight);
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
[all...]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DBitmapWorkerOptions.java41 private int mWidth; field in class:BitmapWorkerOptions
58 private int mWidth; field in class:BitmapWorkerOptions.Builder
65 mWidth = MAX_IMAGE_DIMENSION_PX;
81 final int largestDim = Math.max(mWidth, mHeight);
84 mWidth *= scale;
89 options.mWidth = mWidth;
119 mWidth = width;
164 return mWidth;
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoProgressBar.java41 private float mWidth; field in class:PanoProgressBar
98 mWidth = w;
100 mDrawBounds.set(0, 0, mWidth, mHeight);
119 mLeftMostProgress = mWidth;
120 mRightMostProgress = mWidth;
121 mProgressOffset = mWidth;
139 mProgress = progress * mWidth / mMaxProgress + mProgressOffset;
141 mProgress = Math.min(mWidth, Math.max(0, mProgress));
177 r = Math.min(mProgress + mIndicatorWidth, mWidth);
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/
H A DWeekButton.java25 private static int mWidth; field in class:WeekButton
40 mWidth = w;
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/
H A DFrameBuffer.cpp14 mWidth = 0;
62 mWidth = width;
91 return mWidth;
H A DFrameBuffer.h28 int mWidth; member in class:FrameBuffer
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
H A DColorBrightnessView.java41 private float mWidth; field in class:ColorBrightnessView
115 if (mDotX > mWidth - mBorder) {
116 mDotX = mWidth - mBorder;
118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2);
131 float pos = mHSVO[3] * (mWidth - mBorder * 2);
143 mWidth = w;
160 mBorder, mBorder, mWidth - mBorder, mBorder,
170 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mCheckPaint);
171 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mBarPaint1);
172 canvas.drawLine(mDotX, mDotY, mWidth
[all...]
H A DColorCompareView.java40 private float mWidth; field in class:ColorCompareView
99 if (x> mWidth-2*mHeight) {
114 mWidth = w;
125 mOrigRegion.moveTo(mWidth, 0);
126 mOrigRegion.lineTo(mWidth, mHeight);
127 mOrigRegion.lineTo(mWidth - mHeight * 2, mHeight);
128 mOrigRegion.lineTo(mWidth - mHeight, 0);
132 mRegion.lineTo(mWidth - mHeight, 0);
133 mRegion.lineTo(mWidth - mHeight * 2, mHeight);
142 canvas.drawRect(mBorder, 0, mWidth, mHeigh
[all...]
H A DColorOpacityView.java41 private float mWidth; field in class:ColorOpacityView
120 if (mDotX > mWidth - mBorder) {
121 mDotX = mWidth - mBorder;
123 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2);
136 float pos = mHSVO[3] * (mWidth - mBorder * 2);
148 mWidth = w;
161 mBorder, mBorder, mWidth - mBorder, mBorder, color1, color2, Shader.TileMode.CLAMP);
170 canvas.drawRect(mBorder, 0, mWidth - mBorder, mHeight, mCheckPaint);
171 canvas.drawRect(mBorder, 0, mWidth - mBorder, mHeight, mBarPaint1);
172 canvas.drawLine(mDotX, mDotY, mWidth
[all...]
H A DColorSaturationView.java41 private float mWidth; field in class:ColorSaturationView
115 if (mDotX > mWidth - mBorder) {
116 mDotX = mWidth - mBorder;
118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2);
131 float pos = mHSVO[3] * (mWidth - mBorder * 2);
143 mWidth = w;
159 mBorder, mBorder, mWidth - mBorder, mBorder,
169 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mCheckPaint);
170 canvas.drawRect(mBorder, mBorder, mWidth - mBorder, mHeight - mBorder, mBarPaint1);
171 canvas.drawLine(mDotX, mDotY, mWidth
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
H A DJPEGOutputStream.java26 private int mWidth = 0; field in class:JPEGOutputStream
60 mWidth = width;
91 int flag = setup(out, mWidth, mHeight, mFormat, mQuality);
/packages/apps/Car/Dialer/src/com/android/car/dialer/
H A DCallTypeIconsView.java40 private int mWidth; field in class:CallTypeIconsView
58 mWidth = 0;
67 mWidth += drawable.getIntrinsicWidth() + mResources.iconMargin;
101 setMeasuredDimension(mWidth, mHeight);
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DMessagePartData.java94 private int mWidth; field in class:MessagePartData
151 mWidth = width;
231 mWidth = cursor.getInt(INDEX_WIDTH);
242 if (mWidth != UNSPECIFIED_SIZE) {
243 values.put(PartColumns.WIDTH, mWidth);
269 insert.bindLong(INDEX_WIDTH, mWidth);
324 return mWidth;
349 mWidth = in.readInt();
360 dest.writeInt(mWidth);
375 return mWidth
[all...]

Completed in 1232 milliseconds

123