/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | CircleView.kt | 47 private var mCenterX: Float variable 58 mCenterX = a.getDimension(R.styleable.CircleView_centerX, 0.0f) 87 canvas.drawCircle(mCenterX, mCenterY, radius, mCirclePaint) in onDraw() 135 invalidate(mCenterX, mCenterY, radius) in setFillColor() 148 val oldCenterX = mCenterX in setCenterX() 150 mCenterX = centerX in setCenterX() 176 invalidate(mCenterX, oldCenterY, radius) in setCenterY() 177 invalidate(mCenterX, centerY, radius) in setCenterY() 199 invalidate(mCenterX, mCenterY, oldRadius) in setRadius() 201 invalidate(mCenterX, mCenterY, radius) in setRadius() [all …]
|
D | CircleView.java | 77 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/ |
D | PreviewOverlay.java | 297 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()
|
D | ProgressOverlay.java | 33 private int mCenterX; field in ProgressOverlay 48 mCenterX = (right - left) / 2; in onLayout() 69 mProgressRenderer.onDraw(canvas, mCenterX, mCenterY); in onDraw()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 127 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/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlWheel.java | 75 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()
|
D | ZoomControlWheel.java | 58 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()
|
D | IndicatorControlWheelContainer.java | 44 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/ |
D | CropView.java | 40 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/ |
D | OrientedBitmapDrawable.java | 37 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/ |
D | EclipseControl.java | 33 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()
|
D | ImageTinyPlanet.java | 39 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/ |
D | TileImageView.java | 110 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/ |
D | TiledImageRenderer.java | 108 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/ |
D | TiledImageRenderer.java | 108 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/Camera2/src/com/android/camera/ui/focus/ |
D | FocusRingRenderer.java | 57 private int mCenterX; field in FocusRingRenderer 95 mCenterX = value; in setCenterX() 99 return mCenterX; in getCenterX()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | SoundLevels.java | 44 private int mCenterX; field in SoundLevels 125 mCenterX = getWidth() / 2; in onDraw() 141 canvas.drawCircle(mCenterX, mCenterY, radius * mMaximumLevelSize, mPrimaryLevelPaint); in onDraw()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieRenderer.java | 95 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()
|