/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | ProgressRenderer.java | 85 public void onDraw(Canvas canvas, int centerX, int centerY) { argument 89 mArcBounds = new RectF(centerX - mProgressRadius, centerY - mProgressRadius, centerX 91 centerY + mProgressRadius); 93 canvas.drawCircle(centerX, centerY, mProgressRadius, mProgressBasePaint);
|
H A D | CountDownView.java | 114 mRemainingSecondsView.setTranslationY(mPreviewArea.centerY() - textHeight / 2);
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | SwitchAnimManager.java | 80 float centerY = y + height / 2f; 85 int previewY = Math.round(centerY - previewHeight / 2); 105 int reviewY = Math.round(centerY - reviewHeight / 2); 125 float centerY = y + height / 2f; 135 int reviewY = Math.round(centerY - reviewHeight / 2);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ImageRedEye.java | 121 canvas.drawLine(fullRect.left, fullRect.centerY(), 122 fullRect.right, fullRect.centerY(), paint); 127 float dy = fullRect.centerY() - dh / 2; 132 canvas.drawLine(drawRect.left, drawRect.centerY(), 133 drawRect.right, drawRect.centerY(), paint); 134 canvas.drawCircle(drawRect.centerX(), drawRect.centerY(),
|
H A D | ImageShow.java | 394 float centerY = dp.centerY(); 439 canvas.rotate(master.getAnimRotationValue(), centerX, centerY); 440 canvas.scale(finalScale, finalScale, centerX, centerY); 456 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); 458 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); 460 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); 462 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); 466 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); 468 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
H A D | proximity_info.cpp | 139 const float centerY = static_cast<float>(getKeyCenterYOfKeyIdG(keyId, y, isGeometric)); local 142 return ProximityInfoUtils::getSquaredDistanceFloat(centerX, centerY, touchX, touchY) 234 int centerY; local 236 centerY = mCenterYsG[keyId]; 238 centerY = static_cast<int>(mSweetSpotCenterYsG[keyId]); 240 centerY = static_cast<int>(mSweetSpotCenterYs[keyId]); 243 centerY + mKeyHeights[keyId] > KEYBOARD_HEIGHT && centerY < referencePointY) { 249 return centerY;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropDrawingUtils.java | 76 float centerX, float centerY) { 78 int top = (int) centerY - indicatorSize / 2; 107 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.centerY()); 110 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.centerY()); 120 float cy = cropBounds.centerY(); 176 dst.setRotate(rotation, image.centerX(), image.centerY()); 182 boolean rot = dst.preRotate(rotation, image.centerX(), image.centerY()); 75 drawIndicator(Canvas canvas, Drawable indicator, int indicatorSize, float centerX, float centerY) argument
|
H A D | CropMath.java | 143 m.setRotate(rot, bound.centerX(), bound.centerY()); 176 float centY = r.centerY(); 199 r.top = r.centerY() - finalH / 2;
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | HighlightingFragment.java | 89 final int centerY = view.getHeight() / 2; 90 highlight.setHotspot(centerX, centerY);
|
/packages/apps/Camera/src/com/android/camera/drawable/ |
H A D | TextDrawable.java | 56 bounds.centerX(), bounds.centerY(), mPaint);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/ |
H A D | LetterTileDrawable.java | 121 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), 123 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); 140 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); 159 bounds.centerY() + mOffset * bounds.height() + sRect.height() / 2,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | MainKeyboardAccessibilityDelegate.java | 212 final int y = key.getHitBox().centerY(); 229 final int y = key.getHitBox().centerY(); 250 final int y = key.getHitBox().centerY(); 267 final int y = key.getHitBox().centerY();
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
H A D | CropView.java | 103 float centerY = (height / 2f - rendererCenter[1] + (imageHeight - height) / 2f) 107 float topEdge = centerY - imageHeight / 2f * scale; 108 float bottomEdge = centerY + imageHeight / 2f * scale; 140 mCenterY = mRenderer.centerY; 212 mRenderer.centerY = Math.round(mCenterY);
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | AnimationManager.java | 57 int centerY = view.getTop() + view.getHeight() / 2; 64 parentView.getHeight() / 2 - centerY, 0f)
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | SlideshowView.java | 147 float centerY = viewHeight / 2 + mMovingVector.y * mProgress; 149 canvas.translate(centerX, centerY);
|
H A D | TileImageView.java | 206 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { argument 224 getRange(range, centerX, centerY, mLevel, scale, rotation); 226 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); 232 mOffsetY = Math.round(height / 2f - centerY * scale); 240 getRange(range[i - fromLevel], centerX, centerY, i, rotation); 355 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { argument 356 if (mCenterX == centerX && mCenterY == centerY 359 mCenterY = centerY; 362 layoutTiles(centerX, centerY, scale, rotation); 420 int centerX = getWidth() / 2, centerY [all...] |
H A D | PhotoView.java | 690 && filmRatio == 1f && r.centerY() != viewH / 2; 723 float offset = (float) (r.centerY() - viewH / 2) / viewH; 754 int centerY = (int) (imageH / 2f + (viewH / 2f - cy) / scale + 0.5f); 757 int inverseY = imageH - centerY; 760 case 0: x = centerX; y = centerY; break; 761 case 90: x = centerY; y = inverseX; break; 825 && filmRatio == 1f && r.centerY() != h / 2; 829 int cy = r.centerY(); 842 float offset = (float) (r.centerY() - h / 2) / h; 1110 int centerY [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | LauncherAnimUtils.java | 132 int centerY, float startRadius, float endRadius) { 134 centerY, startRadius, endRadius); 131 createCircularReveal(View view, int centerX, int centerY, float startRadius, float endRadius) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
H A D | CheckableContactFlipDrawable.java | 165 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mPaint); 172 bounds.centerY() - CHECKMARK.getHeight() / 2);
|
H A D | ContactDrawable.java | 161 canvas.drawCircle(bounds.centerX(), bounds.centerY(), radius, mBorderPaint); 187 bounds.centerY() + sRect.height() / 2, sPaint); 202 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, paint);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageViewTouchBase.java | 307 protected void zoomTo(float scale, float centerX, float centerY) { argument 315 mSuppMatrix.postScale(deltaScale, deltaScale, centerX, centerY); 321 final float centerY, final float durationMs) { 331 zoomTo(target, centerX, centerY); 320 zoomTo(final float scale, final float centerX, final float centerY, final float durationMs) argument
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
H A D | TiledImageView.java | 65 int centerX, centerY; field in class:TiledImageView.ImageRendererWrapper 160 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0; 276 mRenderer.centerY = swap ? cx : cy; 305 mRenderer.image.setPosition(mRenderer.centerX, mRenderer.centerY,
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
H A D | TiledImageView.java | 65 public int centerX, centerY; field in class:TiledImageView.ImageRendererWrapper 172 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0; 288 mRenderer.centerY = swap ? cx : cy; 317 mRenderer.image.setPosition(mRenderer.centerX, mRenderer.centerY,
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | TransitionImageView.java | 193 mUnclipCenterYDiff = dstUnclipRect.centerY() - mSrcUnclipRect.centerY(); 228 float unclipCenterY = mSrcUnclipRect.centerY() + mUnclipCenterYDiff * mProgress;
|
/packages/apps/Camera2/src/com/android/camera/drawable/ |
H A D | TextDrawable.java | 87 bounds.centerX(), bounds.centerY(), mPaint);
|