Home
last modified time | relevance | path

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

/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 …]
DMonthListView.java35 private static float mScale = 0; field in MonthListView
84 if (mScale == 0) { in init()
85 mScale = c.getResources().getDisplayMetrics().density; in init()
86 if (mScale != 1) { in init()
87 MIN_VELOCITY_FOR_FLING *= mScale; in init()
88 MULTIPLE_MONTH_VELOCITY_THRESHOLD *= mScale; in init()
89 FLING_VELOCITY_DIVIDER *= mScale; in init()
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/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/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java111 protected float mScale; field in TiledImageRenderer
243 && mScale == scale) { in setPosition()
248 mScale = scale; in setPosition()
271 mLevel = Utils.clamp(Utils.floorLog2(1f / mScale), 0, mLevelCount); in layoutTiles()
278 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
279 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
280 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale); in layoutTiles()
281 fromLevel = mScale * (1 << mLevel) > 0.75f ? mLevel - 1 : mLevel; in layoutTiles()
285 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles()
286 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/Calendar/src/com/android/calendar/agenda/
DAgendaAdapter.java51 private float mScale; field in AgendaAdapter
97 if (mScale == 0) { in AgendaAdapter()
98 mScale = mResources.getDisplayMetrics().density; in AgendaAdapter()
99 if (mScale != 1) { in AgendaAdapter()
100 COLOR_CHIP_ALL_DAY_HEIGHT *= mScale; in AgendaAdapter()
101 COLOR_CHIP_HEIGHT *= mScale; in AgendaAdapter()
/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/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java37 private float mScale = 1.0f; field in PointCloud
162 mScale = scale; in setScale()
166 return mScale; in getScale()
206 canvas.scale(mScale, mScale, mCenterX, mCenterY); in draw()
/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/filtershow/imageshow/
DImageTinyPlanet.java49 private float mScale = 100;
58 mScale = mTinyPlanetRep.getValue();
65 mScale *= detector.getScaleFactor();
66 value = (int) (mScale);
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
DLetterTileDrawable.java67 private float mScale = 1.0f; field in LetterTileDrawable
117 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawBitmap()
151 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile()
226 mScale = scale; in setScale()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSimpleAdapter.java78 private static float mScale = 0; field in SelectCalendarsSimpleAdapter
108 if (mScale == 0) { in SelectCalendarsSimpleAdapter()
109 mScale = mRes.getDisplayMetrics().density; in SelectCalendarsSimpleAdapter()
110 BOTTOM_ITEM_HEIGHT *= mScale; in SelectCalendarsSimpleAdapter()
111 NORMAL_ITEM_HEIGHT *= mScale; in SelectCalendarsSimpleAdapter()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java102 private static float mScale = 0; // Used for supporting different screen densities field in DayView
695 if (mScale == 0) { in DayView()
697 mScale = mResources.getDisplayMetrics().density; in DayView()
698 if (mScale != 1) { in DayView()
699 SINGLE_ALLDAY_HEIGHT *= mScale; in DayView()
700 ALLDAY_TOP_MARGIN *= mScale; in DayView()
701 MAX_HEIGHT_OF_ONE_ALLDAY_EVENT *= mScale; in DayView()
703 NORMAL_FONT_SIZE *= mScale; in DayView()
704 GRID_LINE_LEFT_MARGIN *= mScale; in DayView()
705 HOURS_TOP_MARGIN *= mScale; in DayView()
[all …]
DEventInfoFragment.java313 private static float mScale = 0; // Used for supporting different screen densities field in EventInfoFragment
647 if (mScale == 0) { in EventInfoFragment()
648 mScale = context.getResources().getDisplayMetrics().density; in EventInfoFragment()
649 if (mScale != 1) { in EventInfoFragment()
650 mCustomAppIconSize *= mScale; in EventInfoFragment()
652 DIALOG_TOP_MARGIN *= mScale; in EventInfoFragment()
/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/UnifiedEmail/src/com/android/mail/browse/
DConversationContainer.java105 private float mScale; field in ConversationContainer
470 mScale = mWebView.getScale(); in positionOverlays()
471 } else if (mScale == 0) { in positionOverlays()
472 mScale = mWebView.getInitialScale(); in positionOverlays()
475 mScale); in positionOverlays()
775 return (int) (webPx * mScale); in webPxToScreenPx()