Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/ui/
DFilmStripView.java75 private float mScale; field in FilmStripView
678 mScale = 1.0f; in init()
1158 && mScale != FULL_SCREEN_SCALE) { in snapInCenter()
1196 curr.layoutIn(mDrawArea, mCenterX, mScale); in translateLeftViewItem()
1201 / (nextCenterX - currCenterX), mScale); in translateLeftViewItem()
1203 curr.setTranslationX(translate, mScale); in translateLeftViewItem()
1273 (mScale - FILM_STRIP_SCALE) / (FULL_SCREEN_SCALE - FILM_STRIP_SCALE)); in layoutViewItems()
1318 currItem.layoutIn(mDrawArea, mCenterX, mScale); in layoutViewItems()
1319 currItem.setTranslationX(0f, mScale); in layoutViewItems()
1333 currItem.layoutIn(mDrawArea, mCenterX, mScale); 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()
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()
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()
/packages/apps/Camera/src/com/android/camera/
DPreviewGestures.java54 private ScaleGestureDetector mScale; field in PreviewGestures
81 mScale = new ScaleGestureDetector(ctx, this); in PreviewGestures()
140 mScale.onTouchEvent(m); in dispatchTouch()
151 onScaleBegin(mScale); in dispatchTouch()
158 mScale.onTouchEvent(m); in dispatchTouch()
159 if (!mScale.isInProgress() && MotionEvent.ACTION_POINTER_UP == m.getActionMasked()) { in dispatchTouch()
161 onScaleEnd(mScale); in dispatchTouch()
178 mScale.onTouchEvent(m); in dispatchTouch()
179 onScaleBegin(mScale); in dispatchTouch()
181 } else if ((mMode == MODE_ZOOM) && !mScale.isInProgress() in dispatchTouch()
[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/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/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/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java113 protected float mScale; field in TileImageView
188 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in notifyModelInvalidated()
196 if (changeSize) layoutTiles(mCenterX, mCenterY, mScale, mRotation); in onLayout()
351 center.x = Math.round(viewW / 2f + distW * mScale); in getImageCenter()
352 center.y = Math.round(viewH / 2f + distH * mScale); in getImageCenter()
357 && mScale == scale && mRotation == rotation) return false; in setPosition()
360 mScale = scale; in setPosition()
401 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in prepareTextures()
433 float length = size * mScale; in render()
445 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
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/Camera2/src/com/android/camera/
DPreviewGestures.java51 private ScaleGestureDetector mScale; field in PreviewGestures
107 mScale = new ScaleGestureDetector(ctx, this); in PreviewGestures()
151 mScale.onTouchEvent(m); in dispatchTouch()
156 mZoom.onScaleBegin(mScale); in dispatchTouch()
159 mZoom.onScaleEnd(mScale); in dispatchTouch()
173 mScale.onTouchEvent(makeCancelEvent(mDown)); in openPie()
/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/Settings/src/com/android/settings/users/
DCircleFramedDrawable.java51 private float mScale; field in CircleFramedDrawable
116 mScale = 1f; in CircleFramedDrawable()
126 final float inside = mScale * mSize; in draw()
156 mScale = scale; in setScale()
160 return mScale; in getScale()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java38 private float mScale = 1.0f; field in PointCloud
163 mScale = scale; in setScale()
167 return mScale; in getScale()
207 canvas.scale(mScale, mScale, mCenterX, mCenterY); in draw()
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DPointCloud.java38 private float mScale = 1.0f; field in PointCloud
163 mScale = scale; in setScale()
167 return mScale; in getScale()
207 canvas.scale(mScale, mScale, mCenterX, mCenterY); in draw()
/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/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/UnifiedEmail/src/com/android/mail/browse/
DConversationContainer.java112 private float mScale; field in ConversationContainer
468 mScale = mWebView.getScale(); in positionOverlays()
469 } else if (mScale == 0) { in positionOverlays()
470 mScale = mWebView.getInitialScale(); in positionOverlays()
473 mScale); in positionOverlays()
781 return (int) (webPx * mScale); in webPxToScreenPx()
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
DLetterTileDrawable.java71 private float mScale = 1.0f; field in LetterTileDrawable
120 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawBitmap()
147 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile()
219 mScale = scale; in setScale()
/packages/apps/Nfc/src/com/android/nfc/
DFireflyRenderer.java375 float mScale; field in FireflyRenderer.Firefly
386 mScale = 1.5f; in reset()
414 gl.glScalef(mScale, mScale, 0); in draw()
/packages/apps/Settings/src/com/android/settings/
DBatteryInfo.java41 private TextView mScale; field in BatteryInfo
88 mScale.setText("" + intent.getIntExtra("scale", 0));
159 mScale = (TextView)findViewById(R.id.scale); in onResume()
/packages/apps/Browser/src/com/android/browser/
DPhoneUi.java464 private float mScale; field in PhoneUi.AnimScreen
475 mScale = 1.0f; in AnimScreen()
532 mScale = sf; in setScaleFactor()
539 return mScale; in getScaleFactor()