/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 125 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/ |
D | MonthWeekEventsView.java | 356 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 …]
|
D | SimpleWeekView.java | 108 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 …]
|
D | SimpleDayPickerFragment.java | 102 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()
|
D | SimpleWeeksAdapter.java | 86 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()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | FastBitmapDrawable.java | 73 return fastBitmapDrawable.mScale; 78 fastBitmapDrawable.mScale = value; 83 private float mScale = 1; field in FastBitmapDrawable 118 if (mScale != 1f) { in draw() 121 canvas.scale(mScale, mScale, bounds.exactCenterX(), bounds.exactCenterY()); in draw() 167 mScale = scale; in setScale() 172 return mScaleAnimation == null ? 1 : mScale; in getAnimatedScale() 176 return mScale; in getScale() 239 mScale = 1f; in onStateChange()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cube/ |
D | CubeRenderer.java | 32 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/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 110 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/ |
D | CropImage.java | 75 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/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 110 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/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewBackground.java | 64 float mScale = 1f; field in PreviewBackground 170 return (int) (mScale * getRadius()); in getScaledRadius() 186 return (mScale - 1f) / (ACCEPT_SCALE_FACTOR - 1f); in getScaleProgress() 302 float originalScale = mScale; in drawLeaveBehind() 303 mScale = 0.5f; in drawLeaveBehind() 309 mScale = originalScale; in drawLeaveBehind() 346 final float scale0 = mScale; in animateScale() 362 mScale = prog * scale1 + (1 - prog) * scale0; in animateScale()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
D | CircleFramedDrawable.java | 43 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/gallery3d/ui/ |
D | TileImageView.java | 112 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/ |
D | DayView.java | 102 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 …]
|
D | EventInfoFragment.java | 253 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/ |
D | ImageTinyPlanet.java | 49 private float mScale = 100; 58 mScale = mTinyPlanetRep.getValue(); 65 mScale *= detector.getScaleFactor(); 66 value = (int) (mScale);
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestWallpaperPersister.java | 54 private float mScale; field in TestWallpaperPersister 68 mScale = -1.0f; in TestWallpaperPersister() 90 mScale = scale; in setIndividualWallpaper() 210 return mScale; in getScale()
|
/packages/apps/Camera2/src/com/android/camera/ui/motion/ |
D | LinearScale.java | 28 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/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 62 private float mScale = 1.0f; field in LetterTileDrawable 141 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas() 170 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile() 240 mScale = scale; in setScale()
|
/packages/apps/Contacts/src/com/android/contacts/lettertiles/ |
D | LetterTileDrawable.java | 71 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/Nfc/src/com/android/nfc/beam/ |
D | FireflyRenderer.java | 375 float mScale; field in FireflyRenderer.Firefly 386 mScale = 1.5f; in reset() 414 gl.glScalef(mScale, mScale, 0); in draw()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | TaskView.java | 628 float scale = mFullscreenParams.mScale; in getOutline() 860 float mScale = 1; field in TaskView.FullscreenDrawParams 875 mScale = scale; in setScale()
|
D | TaskThumbnailView.java | 213 canvas.scale(mFullscreenParams.mScale, mFullscreenParams.mScale); in onDraw()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | QuickstepAppTransitionManagerImpl.java | 668 FloatProp mScale = new FloatProp(1f, 1f, 0, duration, DEACCEL_1_7); 679 matrix.setScale(mScale.value, mScale.value,
|