Home
last modified time | relevance | path

Searched refs:mDensity (Results 1 – 8 of 8) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DButteryProgressBar.java56 private final float mDensity; field in ButteryProgressBar
86 mDensity = c.getResources().getDisplayMetrics().density; in ButteryProgressBar()
94 Math.round(DEFAULT_BAR_HEIGHT_DP * mDensity)); in ButteryProgressBar()
97 Math.round(DEFAULT_DETENT_WIDTH_DP * mDensity)); in ButteryProgressBar()
128 final float widthMultiplier = w / mDensity / BASE_WIDTH_DP; in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DConfigMonitor.java36 private final int mDensity; field in ConfigMonitor
43 mDensity = getDensity(config); in ConfigMonitor()
49 if (mFontScale != config.fontScale || mDensity != getDensity(config)) { in onReceive()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DInputSmoother.java38 private final float mDensity; field in InputSmoother
46 mDensity = context.getResources().getDisplayMetrics().density; in InputSmoother()
95 final float distanceDp = totalDistancePx / mDensity; in getSmoothedVelocity()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationWebView.java141 private final float mDensity; field in ConversationWebView
165 mDensity = r.getDisplayMetrics().density; in ConversationWebView()
228 return (int) ((getWidth() - sideMarginPx * 2) / mDensity); in getWidthInDp()
244 scale = mDensity; in getInitialScale()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java85 protected float mDensity; field in PagedView
244 mDensity = getResources().getDisplayMetrics().density; in init()
246 mFlingThresholdVelocity = (int) (FLING_THRESHOLD_VELOCITY * mDensity); in init()
247 mMinFlingVelocity = (int) (MIN_FLING_VELOCITY * mDensity); in init()
248 mMinSnapVelocity = (int) (MIN_SNAP_VELOCITY * mDensity); in init()
DAppsCustomizePagedView.java1407 v.setCameraDistance(mDensity * CAMERA_DISTANCE); in screenScrolled()
DWorkspace.java430 mFlingThresholdVelocity = (int) (FLING_THRESHOLD_VELOCITY * mDensity); in initWorkspace()
1249 cl.setCameraDistance(mDensity * mCameraDistance);
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java95 protected float mDensity; field in PagedView
246 mDensity = getResources().getDisplayMetrics().density; in init()
248 mFlingThresholdVelocity = (int) (FLING_THRESHOLD_VELOCITY * mDensity); in init()
249 mMinFlingVelocity = (int) (MIN_FLING_VELOCITY * mDensity); in init()
250 mMinSnapVelocity = (int) (MIN_SNAP_VELOCITY * mDensity); in init()