Searched refs:mDensity (Results 1 – 8 of 8) sorted by relevance
56 private final float mDensity; field in ButteryProgressBar86 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()
36 private final int mDensity; field in ConfigMonitor43 mDensity = getDensity(config); in ConfigMonitor()49 if (mFontScale != config.fontScale || mDensity != getDensity(config)) { in onReceive()
38 private final float mDensity; field in InputSmoother46 mDensity = context.getResources().getDisplayMetrics().density; in InputSmoother()95 final float distanceDp = totalDistancePx / mDensity; in getSmoothedVelocity()
141 private final float mDensity; field in ConversationWebView165 mDensity = r.getDisplayMetrics().density; in ConversationWebView()228 return (int) ((getWidth() - sideMarginPx * 2) / mDensity); in getWidthInDp()244 scale = mDensity; in getInitialScale()
85 protected float mDensity; field in PagedView244 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()
1407 v.setCameraDistance(mDensity * CAMERA_DISTANCE); in screenScrolled()
430 mFlingThresholdVelocity = (int) (FLING_THRESHOLD_VELOCITY * mDensity); in initWorkspace()1249 cl.setCameraDistance(mDensity * mCameraDistance);
95 protected float mDensity; field in PagedView246 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()