Home
last modified time | relevance | path

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

/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 …]
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()
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/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSimpleAdapter.java68 private static float mScale = 0; field in SelectCalendarsSimpleAdapter
94 if (mScale == 0) { in SelectCalendarsSimpleAdapter()
95 mScale = mRes.getDisplayMetrics().density; in SelectCalendarsSimpleAdapter()
96 SELECTED_COLOR_CHIP_SIZE *= mScale; in SelectCalendarsSimpleAdapter()
97 UNSELECTED_COLOR_CHIP_SIZE *= mScale; in SelectCalendarsSimpleAdapter()
98 COLOR_CHIP_LEFT_MARGIN *= mScale; in SelectCalendarsSimpleAdapter()
99 COLOR_CHIP_RIGHT_MARGIN *= mScale; in SelectCalendarsSimpleAdapter()
100 COLOR_CHIP_TOP_OFFSET *= mScale; in SelectCalendarsSimpleAdapter()
101 BOTTOM_ITEM_HEIGHT *= mScale; in SelectCalendarsSimpleAdapter()
102 NORMAL_ITEM_HEIGHT *= mScale; in SelectCalendarsSimpleAdapter()
/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.java114 protected float mScale; field in TileImageView
176 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in notifyModelInvalidated()
184 if (changeSize) layoutTiles(mCenterX, mCenterY, mScale, mRotation); in onLayout()
338 center.x = Math.round(viewW / 2f + distW * mScale); in getImageCenter()
339 center.y = Math.round(viewH / 2f + distH * mScale); in getImageCenter()
344 && mScale == scale && mRotation == rotation) return false; in setPosition()
347 mScale = scale; in setPosition()
389 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in prepareTextures()
421 float length = size * mScale; in render()
433 Math.round(mImageWidth * mScale), in render()
[all …]
/packages/apps/Settings/src/com/android/settings/
DBatteryInfo.java40 private TextView mScale; field in BatteryInfo
86 mScale.setText("" + intent.getIntExtra("scale", 0));
154 mScale = (TextView)findViewById(R.id.scale); in onResume()
/packages/apps/Nfc/src/com/android/nfc/
DFireflyRenderer.java374 float mScale; field in FireflyRenderer.Firefly
385 mScale = 1.5f; in reset()
413 gl.glScalef(mScale, mScale, 0); in draw()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java102 private static float mScale = 0; // Used for supporting different screen densities field in DayView
693 if (mScale == 0) { in DayView()
695 mScale = mResources.getDisplayMetrics().density; in DayView()
696 if (mScale != 1) { in DayView()
697 SINGLE_ALLDAY_HEIGHT *= mScale; in DayView()
698 ALLDAY_TOP_MARGIN *= mScale; in DayView()
699 MAX_HEIGHT_OF_ONE_ALLDAY_EVENT *= mScale; in DayView()
701 NORMAL_FONT_SIZE *= mScale; in DayView()
702 GRID_LINE_LEFT_MARGIN *= mScale; in DayView()
703 HOURS_TOP_MARGIN *= mScale; in DayView()
[all …]
DEventInfoFragment.java259 private static float mScale = 0; // Used for supporting different screen densities field in EventInfoFragment
507 if (mScale == 0) { in EventInfoFragment()
508 mScale = context.getResources().getDisplayMetrics().density; in EventInfoFragment()
509 if (mScale != 1) { in EventInfoFragment()
510 mCustomAppIconSize *= mScale; in EventInfoFragment()
512 DIALOG_TOP_MARGIN *= mScale; in EventInfoFragment()
DAllInOneActivity.java99 private static float mScale = 0; field in AllInOneActivity
/packages/apps/Browser/src/com/android/browser/
DPhoneUi.java445 private float mScale; field in PhoneUi.AnimScreen
456 mScale = 1.0f; in AnimScreen()
513 mScale = sf; in setScaleFactor()
520 return mScale; in getScaleFactor()