Home
last modified time | relevance | path

Searched refs:mScale (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/folder/
DPreviewBackgroundTest.java60 mPreviewBackground.mScale = REST_SCALE; in setUp()
72 assertEquals("Scale not changed.", mPreviewBackground.mScale, HOVER_SCALE, EPSILON); in testAnimateScale_restToHovered()
86 assertEquals("Scale changed.", mPreviewBackground.mScale, REST_SCALE, EPSILON); in testAnimateScale_restToNotHovered()
94 mPreviewBackground.mScale = HOVER_SCALE; in testAnimateScale_hoveredToHovered()
101 assertEquals("Scale changed.", mPreviewBackground.mScale, HOVER_SCALE, EPSILON); in testAnimateScale_hoveredToHovered()
109 mPreviewBackground.mScale = HOVER_SCALE; in testAnimateScale_hoveredToRest()
117 assertEquals("Scale not changed.", mPreviewBackground.mScale, REST_SCALE, EPSILON); in testAnimateScale_hoveredToRest()
132 assertEquals("Scale changed.", mPreviewBackground.mScale, ACCEPT_SCALE_FACTOR, EPSILON); in testAnimateScale_restToAccept()
147 assertEquals("Scale changed.", mPreviewBackground.mScale, REST_SCALE, EPSILON); in testAnimateScale_restToRest()
155 mPreviewBackground.mScale = ACCEPT_SCALE_FACTOR; in testAnimateScale_acceptToRest()
[all …]
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java125 private float mScale; field in FilmstripView
270 return mView.getTranslationY() / mFilmstrip.mScale; in getTranslationY()
275 return mView.getTranslationX() / mFilmstrip.mScale; in getTranslationX()
280 mView.setTranslationY(transY * mFilmstrip.mScale); in setTranslationY()
285 mView.setTranslationX(transX * mFilmstrip.mScale); in setTranslationX()
392 setTranslationX(getTranslationX() + transX * mFilmstrip.mScale); in translateXScaledBy()
614 mScale = 1.0f; in init()
737 mListener.onZoomAtIndexChanged(index, mScale); in zoomAtIndexChanged()
1074 curr.layoutWithTranslationX(mDrawArea, mCenterX, mScale); in translateLeftViewItem()
1152 (mScale - FILM_STRIP_SCALE) / (FULL_SCREEN_SCALE - FILM_STRIP_SCALE)); in layoutViewItems()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cube/
DCubeRenderer.java32 private float mScale = 1.0f; field in CubeRenderer
68 gl.glScalef(mScale, mScale, mScale); in onDrawFrame()
79 mScale *= 1.02f; in onDrawFrame()
80 if (mScale > 4.0f) { in onDrawFrame()
81 mScale = 1.0f; in onDrawFrame()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.kt283 if (mScale != 1f) { in initView()
284 TOP_PADDING_MONTH_NUMBER *= mScale.toInt() in initView()
285 TOP_PADDING_WEEK_NUMBER *= mScale.toInt() in initView()
286 SIDE_PADDING_MONTH_NUMBER *= mScale.toInt() in initView()
287 SIDE_PADDING_WEEK_NUMBER *= mScale.toInt() in initView()
288 SPACING_WEEK_NUMBER *= mScale.toInt() in initView()
289 TEXT_SIZE_MONTH_NUMBER *= mScale.toInt() in initView()
290 TEXT_SIZE_EVENT *= mScale.toInt() in initView()
291 TEXT_SIZE_EVENT_TITLE *= mScale.toInt() in initView()
292 TEXT_SIZE_MORE_EVENTS *= mScale.toInt() in initView()
[all …]
DSimpleWeekView.kt533 @JvmStatic protected var mScale = 0f variable
546 if (mScale == 0f) {
547 mScale = context.getResources().getDisplayMetrics().density
548 if (mScale != 1f) {
549 DEFAULT_HEIGHT *= mScale.toInt()
550 MIN_HEIGHT *= mScale.toInt()
551 MINI_DAY_NUMBER_TEXT_SIZE *= mScale.toInt()
552 MINI_TODAY_NUMBER_TEXT_SIZE *= mScale.toInt()
553 MINI_TODAY_OUTLINE_WIDTH *= mScale.toInt()
554 WEEK_NUM_MARGIN_BOTTOM *= mScale.toInt()
[all …]
DSimpleWeeksAdapter.kt296 protected var mScale = 0f variable
305 if (mScale == 0f) {
306 mScale = context.getResources().getDisplayMetrics().density
307 if (mScale != 1f) {
308 WEEK_7_OVERHANG_HEIGHT *= mScale.toInt()
DSimpleDayPickerFragment.kt164 if (mScale == 0f) { in onAttach()
165 mScale = activity.getResources().getDisplayMetrics().density in onAttach()
166 if (mScale != 1f) { in onAttach()
167 WEEK_MIN_VISIBLE_HEIGHT *= mScale.toInt() in onAttach()
168 BOTTOM_BUFFER *= mScale.toInt() in onAttach()
169 LIST_TOP_OFFSET *= mScale.toInt() in onAttach()
609 private var mScale = 0f variable
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DFastBitmapDrawable.java66 return fastBitmapDrawable.mScale;
71 fastBitmapDrawable.mScale = value;
76 private float mScale = 1; field in FastBitmapDrawable
101 if (mScale != 1f) { in draw()
104 canvas.scale(mScale, mScale, bounds.exactCenterX(), bounds.exactCenterY()); in draw()
166 mScale = 1; in resetScale()
171 return mScaleAnimation == null ? 1 : mScale; in getAnimatedScale()
234 mScale = 1f; in onStateChange()
/packages/apps/EmergencyInfo/src/com/android/emergency/
DCircleFramedDrawable.java43 private float mScale; field in CircleFramedDrawable
88 mScale = 1f; in CircleFramedDrawable()
96 final float inside = mScale * mSize; in draw()
104 mScale = scale; in setScale()
108 return mScale; in getScale()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java110 protected float mScale; field in TiledImageRenderer
242 && mScale == scale) { in setPosition()
247 mScale = scale; in setPosition()
270 mLevel = Utils.clamp(Utils.floorLog2(1f / mScale), 0, mLevelCount); in layoutTiles()
277 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
279 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale); in layoutTiles()
280 fromLevel = mScale * (1 << mLevel) > 0.75f ? mLevel - 1 : mLevel; in layoutTiles()
284 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles()
285 mOffsetY = Math.round(mViewHeight / 2f - mCenterY * mScale); in layoutTiles()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DCropImage.java75 private boolean mScale; field in CropImage
126 mScale = extras.getBoolean("scale", true); in onCreate()
227 if (mOutputX != 0 && mOutputY != 0 && !mScale) { in onSaveClicked()
288 if (mOutputX != 0 && mOutputY != 0 && mScale) { in onSaveClicked()
418 float mScale = 1F;
427 int r = ((int) (f.eyesDistance() * mScale)) * 2;
429 midPoint.x *= mScale;
430 midPoint.y *= mScale;
506 mScale = 256.0F / mBitmap.getWidth();
509 matrix.setScale(mScale, mScale);
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java80 float mScale = 1f; field in PreviewBackground
213 return (int) (mScale * getRadius()); in getScaledRadius()
229 return mIsHoveredOrAnimating ? 0 : (mScale - 1f) / (ACCEPT_SCALE_FACTOR - 1f); in getAcceptScaleProgress()
364 float originalScale = mScale; in drawLeaveBehind()
365 mScale = 0.5f; in drawLeaveBehind()
371 mScale = originalScale; in drawLeaveBehind()
416 final float startScale = mScale; in animateScale()
436 mScale = prog * endScale + (1 - prog) * startScale; in animateScale()
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DLinearScale.java28 private final float mScale; field in LinearScale
38 mScale = Float.isNaN(scale) ? 0.0f : scale; in LinearScale()
66 return mRangeA + (domainValue - mDomainA) * mScale; in scale()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java112 protected float mScale; field in TileImageView
187 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in notifyModelInvalidated()
195 if (changeSize) layoutTiles(mCenterX, mCenterY, mScale, mRotation); in onLayout()
350 center.x = Math.round(viewW / 2f + distW * mScale); in getImageCenter()
351 center.y = Math.round(viewH / 2f + distH * mScale); in getImageCenter()
356 && mScale == scale && mRotation == rotation) return false; in setPosition()
359 mScale = scale; in setPosition()
400 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in prepareTextures()
432 float length = size * mScale; in render()
444 Math.round(mImageWidth * mScale), in render()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageTinyPlanet.java49 private float mScale = 100;
58 mScale = mTinyPlanetRep.getValue();
65 mScale *= detector.getScaleFactor();
66 value = (int) (mScale);
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DTestWallpaperPersister.java58 private float mScale; field in TestWallpaperPersister
74 mScale = -1.0f; in TestWallpaperPersister()
97 mScale = scale; in setIndividualWallpaper()
203 return mScale; in getScale()
/packages/apps/Contacts/src/com/android/contacts/lettertiles/
DLetterTileDrawable.java71 private float mScale = 1.0f; field in LetterTileDrawable
121 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawBitmap()
159 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile()
235 mScale = scale; in setScale()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.kt3649 private var mScale = 0f // Used for supporting different screen densities variable
3917 if (mScale == 0f) {
3918 mScale = mResources.getDisplayMetrics().density
3919 if (mScale != 1f) {
3920 SINGLE_ALLDAY_HEIGHT *= mScale.toInt()
3921 ALLDAY_TOP_MARGIN *= mScale.toInt()
3922 MAX_HEIGHT_OF_ONE_ALLDAY_EVENT *= mScale.toInt()
3923 NORMAL_FONT_SIZE *= mScale
3924 GRID_LINE_LEFT_MARGIN *= mScale
3925 HOURS_TOP_MARGIN *= mScale.toInt()
[all …]
DEventInfoFragment.kt184 private var mScale = 0f // Used for supporting different screen densities variable
301 if (mScale == 0f) {
302 mScale = context.getResources().getDisplayMetrics().density
303 if (mScale != 1f) {
304 mCustomAppIconSize *= mScale.toInt()
306 DIALOG_TOP_MARGIN *= mScale.toInt()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DSensorMetadata.java45 private float mScale; field in SensorMetadata
90 this.mScale = scale; in SensorMetadata()
264 return String.valueOf(data * mScale + mOffset); in translateData()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarDragController.java693 final FloatProp mScale = new FloatProp(1f, toScale, FAST_OUT_SLOW_IN); in setupReturnDragAnimator()
697 animListener.updateDragShadow(mDx.value, mDy.value, mScale.value, mAlpha.value); in setupReturnDragAnimator()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java1516 FloatProp mScale = new FloatProp(1f, 1f, DECELERATE_1_7); in getFallbackClosingWindowAnimators()
1542 matrix.setScale(mScale.value, mScale.value, in getFallbackClosingWindowAnimators()