Home
last modified time | relevance | path

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

1234

/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/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()
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()
184 mDotX = (float) (mBorder + (mHeight - 2 * mBorder) * Math.toRadians(hue) / (Math.PI * 2)); in updateDot()
185 mDotY = (float) ((1 - sat) * (mHeight - 2 * mBorder) + mBorder); in updateDot()
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()
DColorSVRectView.java57 private int mHeight; field in ColorSVRectView
149 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); in onTouchEvent()
152 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
157 float value = (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
171 mHeight = h; in onSizeChanged()
186 mDotX = (float) (mBorder + (mHeight - 2 * mBorder) * sat); in updateDot()
187 mDotY = (float) ((1 - val) * (mHeight - 2 * mBorder) + mBorder); in updateDot()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java55 private int mHeight = 0; field in TextureViewHelper
99 if (mWidth != width || mHeight != height || mOrientation != rotation) { in onLayoutChange()
101 mHeight = height; in onLayoutChange()
120 mPreviewArea.set(0, 0, mWidth, mHeight); in clearTransform()
193 RectF previewRect = new RectF(0, 0, mWidth, mHeight);
221 mPreviewArea.set(0, 0, mWidth, mHeight);
249 if (mAspectRatio == MATCH_SCREEN || mAspectRatio < 0 || mWidth == 0 || mHeight == 0) {
257 matrix = info.getPreviewTransform(mOrientation, new RectF(0, 0, mWidth, mHeight),
304 RectF area = new RectF(0, 0, mWidth, mHeight);
335 listener.onPreviewAreaChanged(new RectF(0, 0, mWidth, mHeight));
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DBitmapWorkerOptions.java47 private int mHeight; field in BitmapWorkerOptions
64 private int mHeight; field in BitmapWorkerOptions.Builder
71 mHeight = MAX_IMAGE_DIMENSION_PX; in Builder()
86 final int largestDim = Math.max(mWidth, mHeight); in build()
90 mHeight *= scale; in build()
95 options.mHeight = mHeight; in build()
133 mHeight = height; in height()
173 return mHeight; in getHeight()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DDividedImageCanvas.java56 private int mHeight; field in DividedImageCanvas
106 sb.append(mHeight); in toString()
188 h = mHeight; in getDesiredDimensions()
193 h = mHeight; in getDesiredDimensions()
200 h = mHeight; in getDesiredDimensions()
205 h = mHeight / 2; in getDesiredDimensions()
211 h = mHeight / 2; in getDesiredDimensions()
248 final int height = mHeight; in addOrClearDivisionImage()
413 if (mWidth == width && mHeight == height) { in setDimensions()
419 mHeight = height; in setDimensions()
[all …]
DLeaveBehindItem.java55 private int mHeight; field in LeaveBehindItem
118 mHeight = height; in bind()
162 return new LeaveBehindData(getData(), mUndoOp, mHeight); in getLeaveBehindData()
175 final ObjectAnimator height = ObjectAnimator.ofInt(this, "animatedHeight", mHeight, 0); in startShrinkAnimation()
176 setMinimumHeight(mHeight); in startShrinkAnimation()
285 MeasureSpec.makeMeasureSpec(mHeight, MeasureSpec.EXACTLY)); in onMeasure()
/packages/apps/Launcher2/src/com/android/launcher2/
DFastBitmapDrawable.java31 private int mHeight; field in FastBitmapDrawable
39 mHeight = mBitmap.getHeight(); in FastBitmapDrawable()
41 mWidth = mHeight = 0; in FastBitmapDrawable()
83 return mHeight; in getIntrinsicHeight()
93 return mHeight; in getMinimumHeight()
100 mHeight = mBitmap.getHeight(); in setBitmap()
102 mWidth = mHeight = 0; in setBitmap()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
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()
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()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeekView.java136 protected int mHeight = DEFAULT_HEIGHT; field in SimpleWeekView
220 mHeight = params.get(VIEW_PARAMS_HEIGHT); in setWeekParams()
221 if (mHeight < MIN_HEIGHT) { in setWeekParams()
222 mHeight = MIN_HEIGHT; in setWeekParams()
414 r.bottom = mHeight - 1; in drawBackground()
430 int y = ((mHeight + MINI_DAY_NUMBER_TEXT_SIZE) / 2) - DAY_SEPARATOR_WIDTH; in drawWeekNums()
476 r.bottom = mHeight - 1; in drawDaySeparators()
489 canvas.drawLine(x, 0, x, mHeight, p); in drawDaySeparators()
520 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), mHeight); in onMeasure() local
/packages/apps/Music/src/com/android/music/
DTouchInterceptor.java64 private int mHeight; field in TouchInterceptor
139 mHeight = getHeight(); in onInterceptTouchEvent()
141 mUpperBound = Math.min(y - touchSlop, mHeight / 3); in onInterceptTouchEvent()
142 mLowerBound = Math.max(y + touchSlop, mHeight * 2 /3); in onInterceptTouchEvent()
195 if (y >= mHeight / 3) { in adjustScrollBounds()
196 mUpperBound = mHeight / 3; in adjustScrollBounds()
198 if (y <= mHeight * 2 / 3) { in adjustScrollBounds()
199 mLowerBound = mHeight * 2 / 3; in adjustScrollBounds()
342 speed = y > (mHeight + mLowerBound) / 2 ? 16 : 4; in onTouchEvent()
/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()
DSlotView.java408 private int mHeight; field in SlotView.Layout
501 int rows = (mWidth > mHeight) ? mSpec.rowsLand : mSpec.rowsPort; in initLayoutParameters()
503 mSlotHeight = Math.max(1, (mHeight - (rows - 1) * mSlotGap) / rows); in initLayoutParameters()
513 initLayoutParameters(mWidth, mHeight, mSlotWidth, mSlotHeight, padding); in initLayoutParameters()
517 initLayoutParameters(mHeight, mWidth, mSlotHeight, mSlotWidth, padding); in initLayoutParameters()
526 mHeight = height; in setSize()
543 int endRow = (position + mHeight + mSlotHeight + mSlotGap - 1) / in updateVisibleSlotRange()
615 int limit = WIDE ? mContentLength - mWidth : mContentLength - mHeight; in getScrollLimit()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallTypeIconsView.java47 private int mHeight; field in CallTypeIconsView
61 mHeight = 0; in clear()
70 mHeight = Math.max(mHeight, drawable.getIntrinsicHeight()); in add()
83 mHeight = Math.max(mHeight, mResources.videoCall.getIntrinsicHeight()); in setShowVideo()
128 setMeasuredDimension(mWidth, mHeight); in onMeasure()
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
DGalaxyRS.java41 private int mHeight; field in GalaxyRS
61 mHeight = height; in init()
149 mHeight = h; in updateProjectionMatrices()
151 proj.loadOrthoWindow(mWidth, mHeight); in updateProjectionMatrices()
152 Matrix4f projNorm = getProjectionNormalized(mWidth, mHeight); in updateProjectionMatrices()
164 proj.loadOrthoWindow(mWidth, mHeight); in createProgramVertex()
171 updateProjectionMatrices(mWidth, mHeight); in createProgramVertex()
270 mHeight = height; in resize()
/packages/apps/Browser/src/com/android/browser/view/
DPieListView.java47 mHeight = mChildHeight * mAdapter.getCount(); in layout()
49 mTop = Math.max(anchorY - mHeight / 2, 0); in layout()
50 if (mTop + mHeight > pHeight) { in layout()
51 mTop = pHeight - mHeight; in layout()
69 canvas.drawRect(mLeft, mTop, mLeft + mWidth, mTop + mHeight, mBgPaint); in draw()
79 final int ix = (y - mTop) * mViews.size() / mHeight; in findChildAt()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java100 private final int mHeight; field in Key
201 mHeight = height - verticalGap; in Key()
240 mHeight = rowHeight - params.mVerticalGap; in Key()
390 mHeight = key.mHeight; in Key()
424 key.mHeight, in computeHashCode()
451 && o.mHeight == mHeight in equalsInternal()
779 return mHeight; in getHeight()
854 final int bottom = top + mHeight; in squaredDistanceToEdge()
DKeyboardId.java68 public final int mHeight; field in KeyboardId
83 mHeight = params.mKeyboardHeight; in KeyboardId()
101 id.mHeight, in computeHashCode()
121 && other.mHeight == mHeight in equals()
181 mWidth, mHeight, in toString()
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java56 int mHeight; field in BitmapRegionTileSource
73 mHeight = mDecoder.getHeight(); in BitmapRegionTileSource()
93 mWidth, mHeight, in BitmapRegionTileSource()
111 return mHeight; in getImageHeight()
161 mOverlapRegion.set(0, 0, mWidth, mHeight); in getTileWithoutReusingBitmap()
191 float scale = (float) targetSize / Math.max(mWidth, mHeight); in decodePreview()
/packages/apps/Mms/src/com/android/mms/model/
DImageModel.java67 private int mHeight; field in ImageModel
94 mHeight = uriImage.getHeight(); in initModelFromUri()
107 mHeight = uriImage.getHeight(); in decodeImageBounds()
110 Log.v(TAG, "Image bounds: " + mWidth + "x" + mHeight); in decodeImageBounds()
131 return mHeight; in getHeight()
156 byte[] data = UriImage.getResizedImageData(mWidth, mHeight, in createBitmap()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoCarousel.java59 private int mHeight; field in PhotoCarousel
212 if (width < mWidth && height < mHeight) { in setScaleType()
279 mHeight = bottom - top; in onLayout()
282 mOrientation = (mWidth > mHeight ? LANDSCAPE : PORTRAIT); in onLayout()
284 mLongSide = (int) Math.max(mWidth, mHeight); in onLayout()
285 mShortSide = (int) Math.min(mWidth, mHeight); in onLayout()

1234