Home
last modified time | relevance | path

Searched refs:mCenterX (Results 1 – 21 of 21) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/widget/
DCircleView.java77 private float mCenterX; field in CircleView
96 mCenterX = a.getDimension(R.styleable.CircleView_centerX, 0.0f); in CircleView()
128 canvas.drawCircle(mCenterX, mCenterY, mRadius, mCirclePaint); in onDraw()
185 invalidate(mCenterX, mCenterY, mRadius); in setFillColor()
198 final float oldCenterX = mCenterX; in setCenterX()
200 mCenterX = centerX; in setCenterX()
226 invalidate(mCenterX, oldCenterY, mRadius); in setCenterY()
227 invalidate(mCenterX, centerY, mRadius); in setCenterY()
256 invalidate(mCenterX, mCenterY, oldRadius); in setRadius()
258 invalidate(mCenterX, mCenterY, radius); in setRadius()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DPreviewOverlay.java297 private int mCenterX; field in PreviewOverlay.ZoomProcessor
327 mCenterX = (r + l) / 2; in layout()
341 canvas.drawLine(mCenterX + mInnerRadius * (float) Math.cos(mFingerAngle), in draw()
343 mCenterX + mOuterRadius * (float) Math.cos(mFingerAngle), in draw()
345 canvas.drawLine(mCenterX - mInnerRadius * (float) Math.cos(mFingerAngle), in draw()
347 mCenterX - mOuterRadius * (float) Math.cos(mFingerAngle), in draw()
353 canvas.drawLine(mCenterX + mInnerRadius * (float) Math.cos(mFingerAngle), in draw()
355 mCenterX + zoomRadius * (float) Math.cos(mFingerAngle), in draw()
357 canvas.drawLine(mCenterX - mInnerRadius * (float) Math.cos(mFingerAngle), in draw()
359 mCenterX - zoomRadius * (float) Math.cos(mFingerAngle), in draw()
DProgressOverlay.java33 private int mCenterX; field in ProgressOverlay
48 mCenterX = (right - left) / 2; in onLayout()
69 mProgressRenderer.onDraw(canvas, mCenterX, mCenterY); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterVignetteRepresentation.java33 private float mCenterX = .5f; field in FilterVignetteRepresentation
74 mCenterX = rep.mCenterX; in useParametersFrom()
95 return getName() + " : " + mCenterX + ", " + mCenterY + " radius: " + mRadiusX; in toString()
113 mCenterX = centerX; in setCenter()
119 return mCenterX; in getCenterX()
154 return mCenterX != Float.NaN; in isCenterSet()
190 writer.value(mCenterX); in serializeRepresentation()
217 mCenterX = (float) sreader.nextDouble(); in deSerializeRepresentation()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java127 private int mCenterX = -1; field in FilmstripView
907 final int nearestBufferIndex = findTheNearestView(mCenterX); in stepIfNeeded()
975 if (currentItem.getAdapterIndex() == 0 && mCenterX < currentItem.getCenterX()) { in clampCenterX()
979 && mCenterX > currentItem.getCenterX()) { in clampCenterX()
985 mCenterX = currentItem.getCenterX(); in clampCenterX()
1034 * ((float) Math.abs(mCenterX - currentViewCenter)) in scrollCurrentItemToCenter()
1074 curr.layoutWithTranslationX(mDrawArea, mCenterX, mScale); in translateLeftViewItem()
1079 curr.setTranslationX(translate * (mCenterX - currCenterX) / in translateLeftViewItem()
1112 if (mCenterX <= prevCenterX) { in fadeAndScaleRightViewItem()
1120 ((float) mCenterX - prevCenterX) / (currCenterX - prevCenterX); in fadeAndScaleRightViewItem()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPillRevealOutlineProvider.java29 private int mCenterX; field in PillRevealOutlineProvider
44 mCenterX = x; in PillRevealOutlineProvider()
58 int centerToEdge = Math.max(mCenterX, mPillRect.width() - mCenterX); in setProgress()
62 mOutline.left = Math.max(mPillRect.left, mCenterX - currentSize); in setProgress()
64 mOutline.right = Math.min(mPillRect.right, mCenterX + currentSize); in setProgress()
DCircleRevealOutlineProvider.java21 private int mCenterX; field in CircleRevealOutlineProvider
33 mCenterX = x; in CircleRevealOutlineProvider()
48 mOutline.left = (int) (mCenterX - mOutlineRadius); in setProgress()
50 mOutline.right = (int) (mCenterX + mOutlineRadius); in setProgress()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java75 private int mCenterX, mCenterY; field in IndicatorControlWheel
259 double dx = event.getX() - mCenterX; in dispatchTouchEvent()
337 mCenterX = right - left - Util.dpToPixel( in onLayout()
360 int x = mCenterX + (int)(mWheelRadius * Math.cos(radian)); in onLayout()
456 mBackgroundRect.set(mCenterX - innerR, mCenterY - innerR, in onDraw()
457 mCenterX + innerR, mCenterY + innerR); in onDraw()
460 mBackgroundRect.set(mCenterX - outerR, mCenterY - outerR, in onDraw()
461 mCenterX + outerR, mCenterY + outerR); in onDraw()
482 mBackgroundRect.set((float)(mCenterX - mShutterButtonRadius), in onDraw()
484 (float)(mCenterX + mShutterButtonRadius), in onDraw()
DZoomControlWheel.java58 private int mCenterX, mCenterY; field in ZoomControlWheel
91 double dx = event.getX() - mCenterX; in dispatchTouchEvent()
126 int x = mCenterX + (int)(mWheelRadius * Math.cos(radian)); in layoutIcon()
146 mCenterX = right - left - Util.dpToPixel( in onLayout()
162 mBackgroundRect.set((float) (mCenterX - radius), (float) (mCenterY - radius), in drawArc()
163 (float) (mCenterX + radius), (float) (mCenterY + radius)); in drawArc()
DIndicatorControlWheelContainer.java44 private int mCenterX, mCenterY; field in IndicatorControlWheelContainer
74 double dx = event.getX() - mCenterX; in dispatchTouchEvent()
106 mCenterX = right - left - Util.dpToPixel(FULL_WHEEL_RADIUS); in onLayout()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DCropView.java40 private float mCenterX, mCenterY; field in CropView
93 rendererCenter[0] = mCenterX - initialCenterX; in getEdgesHelper()
138 mCenterX = mRenderer.centerX; in setTileSource()
199 mCenterX = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left; in setParallaxOffset()
216 mCenterX += Math.ceil(edges.left / scale); in moveToLeft()
221 mRenderer.centerX = Math.round(mCenterX); in updateCenter()
287 mCenterX += point[0]; in onTouchEvent()
322 mCenterX += adjustment[0]; in onTouchEvent()
/packages/apps/Messaging/src/com/android/messaging/ui/
DOrientedBitmapDrawable.java37 private int mCenterX; field in OrientedBitmapDrawable
85 mCenterX = mDstRect.centerX(); in draw()
89 matrix.setRotate(mOrientationParams.rotation, mCenterX, mCenterY); in draw()
99 canvas.scale(mOrientationParams.scaleX, mOrientationParams.scaleY, mCenterX, mCenterY); in draw()
100 canvas.rotate(mOrientationParams.rotation, mCenterX, mCenterY); in draw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java33 private float mCenterX = Float.NaN; field in EclipseControl
73 mCenterX = x; in setCenter()
302 paintRadius(canvas, mCenterX, mCenterY, mRadiusX, mRadiusY); in draw()
303 fillHandles(canvas, mCenterX, mCenterY, mRadiusX, mRadiusY); in draw()
304 paintPoint(canvas, mCenterX, mCenterY); in draw()
308 return Float.isNaN(mCenterX); in isUndefined()
DImageTinyPlanet.java39 private float mCenterX = 0; field in ImageTinyPlanet
95 float dX1 = mTouchCenterX - mCenterX; in getCurrentTouchAngle()
97 float dX2 = mCurrentX - mCenterX; in getCurrentTouchAngle()
111 mCenterX = getWidth() / 2; in onTouchEvent()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java110 protected int mCenterX; field in TileImageView
187 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in notifyModelInvalidated()
195 if (changeSize) layoutTiles(mCenterX, mCenterY, mScale, mRotation); in onLayout()
341 distW = mImageWidth / 2 - mCenterX; in getImageCenter()
345 distH = mImageWidth / 2 - mCenterX; in getImageCenter()
355 if (mCenterX == centerX && mCenterY == centerY in setPosition()
357 mCenterX = centerX; in setPosition()
400 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in prepareTextures()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java108 protected int mCenterX; field in TiledImageRenderer
241 if (mCenterX == centerX && mCenterY == centerY in setPosition()
245 mCenterX = centerX; in setPosition()
277 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
284 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles()
293 getRange(range[i - fromLevel], mCenterX, mCenterY, i, mRotation); in layoutTiles()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java108 protected int mCenterX; field in TiledImageRenderer
241 if (mCenterX == centerX && mCenterY == centerY in setPosition()
245 mCenterX = centerX; in setPosition()
277 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
284 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles()
293 getRange(range[i - fromLevel], mCenterX, mCenterY, i, mRotation); in layoutTiles()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java93 private int mCenterX; field in PieRenderer
212 setCenter(mCenterX, mCenterY); in showInCenter()
621 mCenterX = (r - l) / 2; in layout()
623 mFocusX = mCenterX; in layout()
627 setCenter(mCenterX, mCenterY); in layout()
768 mFocusX = mCenterX; in run()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java95 private int mCenterX; field in PieRenderer
210 setCenter(mCenterX, mCenterY); in showInCenter()
622 mCenterX = (r - l) / 2; in layout()
624 mFocusX = mCenterX; in layout()
628 setCenter(mCenterX, mCenterY); in layout()
775 mFocusX = mCenterX; in run()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DSoundLevels.java44 private int mCenterX; field in SoundLevels
125 mCenterX = getWidth() / 2; in onDraw()
141 canvas.drawCircle(mCenterX, mCenterY, radius * mMaximumLevelSize, mPrimaryLevelPaint); in onDraw()
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DFocusRingRenderer.java57 private int mCenterX; field in FocusRingRenderer
95 mCenterX = value; in setCenterX()
99 return mCenterX; in getCenterX()