/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
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() 194 return mCenterX; in getCenterX() 205 final float oldCenterX = mCenterX; in setCenterX() 207 mCenterX = centerX; in setCenterX() 240 invalidate(mCenterX, oldCenterY, mRadius); in setCenterY() 241 invalidate(mCenterX, centerY, mRadius); in setCenterY() 270 invalidate(mCenterX, mCenterY, oldRadius); in setRadius() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterVignetteRepresentation.java | 33 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/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/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
D | CropView.java | 41 private float mCenterX, mCenterY; field in CropView 94 rendererCenter[0] = mCenterX - initialCenterX; in getEdgesHelper() 139 mCenterX = mRenderer.centerX; in setTileSource() 155 mCenterX = x; in setScaleAndCenter() 213 mCenterX += Math.ceil(edges.left / scale); in moveToLeft() 218 mRenderer.centerX = Math.round(mCenterX); in updateCenter() 223 return new PointF(mCenterX, mCenterY); in getCenter() 288 mCenterX += point[0]; in onTouchEvent() 323 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/LegacyCamera/src/com/android/camera/ui/ |
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 | 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 | 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/Launcher3/src/com/android/launcher3/util/ |
D | RevealOutlineProvider.java | 13 private int mCenterX; field in RevealOutlineProvider 28 mCenterX = x; in RevealOutlineProvider() 39 mOval.left = mCenterX - mCurrentRadius; in setProgress() 41 mOval.right = mCenterX + mCurrentRadius; in setProgress()
|
/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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
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()
|
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()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | PointCloud.java | 34 private float mCenterX; field in PointCloud 131 mCenterX = x; in setCenter() 206 canvas.scale(mScale, mScale, mCenterX, mCenterY); in draw() 211 final float px = point.x + mCenterX; in draw()
|
/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/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/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/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 109 protected int mCenterX; field in TiledImageRenderer 242 if (mCenterX == centerX && mCenterY == centerY in setPosition() 246 mCenterX = centerX; in setPosition() 278 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles() 279 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles() 285 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles() 294 getRange(range[i - fromLevel], mCenterX, mCenterY, i, mRotation); in layoutTiles()
|
/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()
|