Home
last modified time | relevance | path

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

12

/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/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java356 if (mScale != 1) { in initView()
357 TOP_PADDING_MONTH_NUMBER *= mScale; in initView()
358 TOP_PADDING_WEEK_NUMBER *= mScale; in initView()
359 SIDE_PADDING_MONTH_NUMBER *= mScale; in initView()
360 SIDE_PADDING_WEEK_NUMBER *= mScale; in initView()
361 SPACING_WEEK_NUMBER *= mScale; in initView()
362 TEXT_SIZE_MONTH_NUMBER *= mScale; in initView()
363 TEXT_SIZE_EVENT *= mScale; in initView()
364 TEXT_SIZE_EVENT_TITLE *= mScale; in initView()
365 TEXT_SIZE_MORE_EVENTS *= mScale; in initView()
[all …]
DSimpleWeekView.java108 protected static float mScale = 0; field in SimpleWeekView
183 if (mScale == 0) { in SimpleWeekView()
184 mScale = context.getResources().getDisplayMetrics().density; in SimpleWeekView()
185 if (mScale != 1) { in SimpleWeekView()
186 DEFAULT_HEIGHT *= mScale; in SimpleWeekView()
187 MIN_HEIGHT *= mScale; in SimpleWeekView()
188 MINI_DAY_NUMBER_TEXT_SIZE *= mScale; in SimpleWeekView()
189 MINI_TODAY_NUMBER_TEXT_SIZE *= mScale; in SimpleWeekView()
190 MINI_TODAY_OUTLINE_WIDTH *= mScale; in SimpleWeekView()
191 WEEK_NUM_MARGIN_BOTTOM *= mScale; in SimpleWeekView()
[all …]
DSimpleWeeksAdapter.java86 protected static float mScale = 0; field in SimpleWeeksAdapter
107 if (mScale == 0) { in SimpleWeeksAdapter()
108 mScale = context.getResources().getDisplayMetrics().density; in SimpleWeeksAdapter()
109 if (mScale != 1) { in SimpleWeeksAdapter()
110 WEEK_7_OVERHANG_HEIGHT *= mScale; in SimpleWeeksAdapter()
DSimpleDayPickerFragment.java102 private static float mScale = 0; field in SimpleDayPickerFragment
184 if (mScale == 0) { in onAttach()
185 mScale = activity.getResources().getDisplayMetrics().density; in onAttach()
186 if (mScale != 1) { in onAttach()
187 WEEK_MIN_VISIBLE_HEIGHT *= mScale; in onAttach()
188 BOTTOM_BUFFER *= mScale; in onAttach()
189 LIST_TOP_OFFSET *= mScale; in onAttach()
/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/WallpaperPicker/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/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/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/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java68 float mScale = 1f; field in PreviewBackground
195 return (int) (mScale * getRadius()); in getScaledRadius()
211 return (mScale - 1f) / (ACCEPT_SCALE_FACTOR - 1f); in getScaleProgress()
340 float originalScale = mScale; in drawLeaveBehind()
341 mScale = 0.5f; in drawLeaveBehind()
347 mScale = originalScale; in drawLeaveBehind()
389 final float scale0 = mScale; in animateScale()
405 mScale = prog * scale1 + (1 - prog) * scale0; in animateScale()
/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/Calendar/src/com/android/calendar/
DDayView.java102 private static float mScale = 0; // Used for supporting different screen densities field in DayView
685 if (mScale == 0) { in DayView()
687 mScale = mResources.getDisplayMetrics().density; in DayView()
688 if (mScale != 1) { in DayView()
689 SINGLE_ALLDAY_HEIGHT *= mScale; in DayView()
690 ALLDAY_TOP_MARGIN *= mScale; in DayView()
691 MAX_HEIGHT_OF_ONE_ALLDAY_EVENT *= mScale; in DayView()
693 NORMAL_FONT_SIZE *= mScale; in DayView()
694 GRID_LINE_LEFT_MARGIN *= mScale; in DayView()
695 HOURS_TOP_MARGIN *= mScale; in DayView()
[all …]
DEventInfoFragment.java253 private static float mScale = 0; // Used for supporting different screen densities field in EventInfoFragment
352 if (mScale == 0) { in EventInfoFragment()
353 mScale = context.getResources().getDisplayMetrics().density; in EventInfoFragment()
354 if (mScale != 1) { in EventInfoFragment()
355 mCustomAppIconSize *= mScale; in EventInfoFragment()
357 DIALOG_TOP_MARGIN *= mScale; in EventInfoFragment()
/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/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/WallpaperPicker2/src/com/android/wallpaper/util/
DFullScreenAnimation.java59 private float mScale; field in FullScreenAnimation
282 mWorkspaceHeight + Math.round(mFullScreenButtonsTranslation / mScale))); in setWorkspaceVisibility()
369 mScale = Math.max( in startAnimation()
408 float fromBottom = toFullScreen ? 0 : mFullScreenButtonsTranslation / mScale; in startAnimation()
409 float toBottom = toFullScreen ? mFullScreenButtonsTranslation / mScale : 0; in startAnimation()
424 float scale = toFullScreen ? mScale : 1f; in startAnimation()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestWallpaperPersister.java54 private float mScale; field in TestWallpaperPersister
70 mScale = -1.0f; in TestWallpaperPersister()
93 mScale = scale; in setIndividualWallpaper()
216 return mScale; in getScale()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java61 private float mScale = 1.0f; field in LetterTileDrawable
141 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas()
168 sTextPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile()
235 mScale = scale; in setScale()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/shared/
DLetterTileDrawable.java70 private float mScale = 1.0f; field in LetterTileDrawable
146 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas()
176 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile()
248 mScale = scale; in setScale()
/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/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/Nfc/src/com/android/nfc/beam/
DFireflyRenderer.java375 float mScale; field in FireflyRenderer.Firefly
386 mScale = 1.5f; in reset()
414 gl.glScalef(mScale, mScale, 0); in draw()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskThumbnailView.java260 canvas.scale(mFullscreenParams.mScale, mFullscreenParams.mScale); in onDraw()
DTaskView.java1214 float scale = mFullscreenParams.mScale; in getOutline()
1494 public float mScale = 1; field in FullscreenDrawParams
1524 mScale = previewWidth / (previewWidth + currentInsetsLeft + currentInsetsRight); in setProgress()

12