Home
last modified time | relevance | path

Searched refs:scaleX (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DTiledTexture.java266 RectF src, float x0, float y0, float x, float y, float scaleX, in mapRect() argument
268 output.set(x + (src.left - x0) * scaleX, in mapRect()
270 x + (src.right - x0) * scaleX, in mapRect()
280 float scaleX = (float) width / mWidth; in drawMixed() local
287 mapRect(dest, src, 0, 0, x, y, scaleX, scaleY); in drawMixed()
299 float scaleX = (float) width / mWidth; in draw() local
306 mapRect(dest, src, 0, 0, x, y, scaleX, scaleY); in draw()
321 float scaleX = target.width() / source.width(); in draw() local
330 mapRect(dest, src, x0, y0, x, y, scaleX, scaleY); in draw()
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DFlipDrawable.java142 final float scaleX; in draw() local
145 scaleX = 1; in draw()
148 scaleX = 1; in draw()
156 scaleX = distFraction * multiplier; in draw()
161 canvas.scale(scaleX, 1, bounds.exactCenterX(), bounds.exactCenterY()); in draw()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DThumbnailDrawable.java126 float scaleX; in updateMatrix() local
135 scaleX = (float) bounds.width() / thumbnail.getHeight(); in updateMatrix()
138 scaleX = (float) bounds.width() / thumbnail.getWidth(); in updateMatrix()
142 mMatrix.postScale(scaleX, scaleY); in updateMatrix()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollPreviewFragment.java311 float scaleX = (float) viewWidth / mPreviewSize.getWidth(); in configureTransform() local
315 float smaller = Math.min(scaleX, scaleY); in configureTransform()
316 scaleX = scaleX / smaller; in configureTransform()
325 mTextureView.setScaleX(scaleX * scale.getFloat()); in configureTransform()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DFaceEnrollPreviewFragment.java311 float scaleX = (float) viewWidth / mPreviewSize.getWidth(); in configureTransform() local
315 float smaller = Math.min(scaleX, scaleY); in configureTransform()
316 scaleX = scaleX / smaller; in configureTransform()
325 mTextureView.setScaleX(scaleX * scale.getFloat()); in configureTransform()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
DPawAnswerHint.java218 Animator scaleX = ObjectAnimator.ofFloat(target, View.SCALE_X, scaleBegin, scaleEnd); in createUniformScaleAnimator() local
220 scaleX.setDuration(duration); in createUniformScaleAnimator()
222 scaleX.setInterpolator(interpolator); in createUniformScaleAnimator()
225 set.play(scaleX).with(scaleY).after(delay); in createUniformScaleAnimator()
DDotAnswerHint.java266 Animator scaleX = ObjectAnimator.ofFloat(target, View.SCALE_X, scaleBegin, scaleEnd); in createUniformScaleAnimator() local
268 scaleX.setDuration(duration); in createUniformScaleAnimator()
270 scaleX.setInterpolator(interpolator); in createUniformScaleAnimator()
273 set.play(scaleX).with(scaleY).after(delay); in createUniformScaleAnimator()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifInterface.java290 int scaleX = 1; field in ExifInterface.OrientationParams
299 params.scaleX = -1; in getOrientationParams()
317 params.scaleX = -1; in getOrientationParams()
322 params.scaleX = -1; in getOrientationParams()
/packages/apps/Camera2/src/com/android/camera/
DAnimationManager.java52 float scaleX = ((float) parentView.getWidth()) / ((float) view.getWidth()); in startCaptureAnimation() local
54 float scale = scaleX > scaleY ? scaleX : scaleY; in startCaptureAnimation()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrCamera.java328 float scaleX = 1.0f; in setTransformationMatrix() local
331 scaleY = scaleX / ratioPreview; in setTransformationMatrix()
333 scaleX = scaleY / ratioPreview; in setTransformationMatrix()
338 matrix.setScale(scaleX, scaleY); in setTransformationMatrix()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java333 float scaleX = 1.0f; in setTransformationMatrix() local
336 scaleY = scaleX / ratioPreview; in setTransformationMatrix()
338 scaleX = scaleY / ratioPreview; in setTransformationMatrix()
343 matrix.setScale(scaleX, scaleY); in setTransformationMatrix()
/packages/apps/Launcher3/src/com/android/launcher3/
DShortcutAndWidgetContainer.java154 float scaleX = profile.appWidgetScale.x; in onLayout() local
157 lahv.setScaleToFit(Math.min(scaleX, scaleY)); in onLayout()
158 lahv.setTranslationForCentering(-(lp.width - (lp.width * scaleX)) / 2.0f, in onLayout()
DPagedView.java1640 float scaleX = getScaleX(); in getVisibleChildrenRange() local
1641 if (scaleX < 1 && scaleX > 0) { in getVisibleChildrenRange()
1643 visibleLeft = mid - ((mid - visibleLeft) / scaleX); in getVisibleChildrenRange()
1644 visibleRight = mid + ((visibleRight - mid) / scaleX); in getVisibleChildrenRange()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java442 final float scaleX = wordView.getTextScaleX(); in layoutWord() local
444 wordView.setTextScaleX(scaleX); in layoutWord()
585 final float scaleX = getTextScaleX(text, maxWidth, paint); in getEllipsizedTextWithSettingScaleX() local
586 if (scaleX >= MIN_TEXT_XSCALE) { in getEllipsizedTextWithSettingScaleX()
587 paint.setTextScaleX(scaleX); in getEllipsizedTextWithSettingScaleX()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DPropertyListBuilder.java26 public PropertyListBuilder scaleX(float value) { in scaleX() method in PropertyListBuilder
40 return scaleX(value).scaleY(value); in scale()
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSpeedDialAdapter.java282 .scaleX(IN_REMOVE_VIEW_SCALE)
295 .scaleX(1)
314 .scaleX(0)
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
DVideoScale.java54 float scaleX = scaleWidth; in scaleVideoAndFillView() local
57 scaleHeight = viewWidth / viewHeight * scaleX; in scaleVideoAndFillView()
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewAnimationTestActivity.java134 mWebView.animate().scaleX(.5f).scaleY(.5f); in runScale()
136 mWebView.animate().scaleX(1f).scaleY(1f); in runScale()
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java377 final float scaleX = viewWrapper.prevWidth / (float) view.getWidth(); in trySlideAttachmentView() local
380 if (xOffset == 0 && yOffset == 0 && scaleX == 1 && scaleY == 1) { in trySlideAttachmentView()
388 animationSet.addAnimation(new ScaleAnimation(scaleX, 1, scaleY, 1)); in trySlideAttachmentView()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java237 float scaleX, float scaleY, int animationEndStyle, Runnable onFinishRunnable, in animateViewIntoPosition() argument
244 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition()
388 float scaleX = finalScaleX * percent + initialScaleX * (1 - percent); in animateView()
406 mDropView.setScaleX(scaleX); in animateView()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActivity.java263 float scaleX = decor.getWidth() / maxX; in onGenericMotionEvent() local
265 float x = event.getX() * scaleX; in onGenericMotionEvent()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java624 float scaleX = (float) mPreview.getWidth() / mImageWidth; in drawTile() local
626 source.set(tx * scaleX, ty * scaleY, (tx + size) * scaleX, in drawTile()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMainKeyboardView.java834 final float scaleX = maxTextWidth / textWidth; in fitsTextIntoWidth() local
835 if (scaleX < MINIMUM_XSCALE_OF_LANGUAGE_NAME) { in fitsTextIntoWidth()
839 paint.setTextScaleX(scaleX); in fitsTextIntoWidth()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java615 float scaleX = (float) mScreenNail.getWidth() / mImageWidth; in drawTile() local
617 source.set(tx * scaleX, ty * scaleY, (tx + size) * scaleX, in drawTile()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java624 float scaleX = (float) mPreview.getWidth() / mImageWidth; in drawTile() local
626 source.set(tx * scaleX, ty * scaleY, (tx + size) * scaleX, in drawTile()

12