Searched refs:centerY (Results 1 - 25 of 67) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/ui/
H A DProgressRenderer.java85 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 DCountDownView.java114 mRemainingSecondsView.setTranslationY(mPreviewArea.centerY() - textHeight / 2);
/packages/apps/Camera/src/com/android/camera/
H A DSwitchAnimManager.java80 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 DImageRedEye.java121 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 DImageShow.java394 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 Dproximity_info.cpp139 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 DCropDrawingUtils.java76 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 DCropMath.java143 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 DHighlightingFragment.java89 final int centerY = view.getHeight() / 2;
90 highlight.setHotspot(centerX, centerY);
/packages/apps/Camera/src/com/android/camera/drawable/
H A DTextDrawable.java56 bounds.centerX(), bounds.centerY(), mPaint);
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
H A DLetterTileDrawable.java121 (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 DMainKeyboardAccessibilityDelegate.java212 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 DCropView.java103 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 DAnimationManager.java57 int centerY = view.getTop() + view.getHeight() / 2;
64 parentView.getHeight() / 2 - centerY, 0f)
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSlideshowView.java147 float centerY = viewHeight / 2 + mMovingVector.y * mProgress;
149 canvas.translate(centerX, centerY);
H A DTileImageView.java206 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 DPhotoView.java690 && 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 DLauncherAnimUtils.java132 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 DCheckableContactFlipDrawable.java165 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mPaint);
172 bounds.centerY() - CHECKMARK.getHeight() / 2);
H A DContactDrawable.java161 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 DImageViewTouchBase.java307 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 DTiledImageView.java65 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 DTiledImageView.java65 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 DTransitionImageView.java193 mUnclipCenterYDiff = dstUnclipRect.centerY() - mSrcUnclipRect.centerY();
228 float unclipCenterY = mSrcUnclipRect.centerY() + mUnclipCenterYDiff * mProgress;
/packages/apps/Camera2/src/com/android/camera/drawable/
H A DTextDrawable.java87 bounds.centerX(), bounds.centerY(), mPaint);

Completed in 1622 milliseconds

123