Searched refs:screenWidthPx (Results 1 – 7 of 7) sorted by relevance
37 fun getFlingToDismissTargetWidth(screenWidthPx: Int) = when { in getFlingToDismissTargetWidth()38 screenWidthPx >= 2000 -> FLING_TO_DISMISS_TARGET_WIDTH_LARGE in getFlingToDismissTargetWidth()39 screenWidthPx >= 1500 -> FLING_TO_DISMISS_TARGET_WIDTH_MEDIUM in getFlingToDismissTargetWidth()
382 int screenWidthPx = mLayout.getContext().getResources().getDisplayMetrics().widthPixels; in prepareForBubbleDrag() local384 getFlingToDismissTargetWidth(screenWidthPx)); in prepareForBubbleDrag()
863 int screenWidthPx = mLayout.getResources().getDisplayMetrics().widthPixels;865 getFlingToDismissTargetWidth(screenWidthPx));
50 val screenWidthPx = displayMetrics.widthPixels in createFloatingSurfaceAnimationSpec() constant55 val maxTranslationXByScale = (screenWidthPx - screenWidthPx * minScale) / 2 in createFloatingSurfaceAnimationSpec()
33 val screenWidthPx = displayMetrics.widthPixels in <lambda>() constant34 val minScale = 1 - MAX_SCALE_DELTA_DP.dpToPx(displayMetrics) / screenWidthPx in <lambda>()
85 private void applyProportionalLayout(int screenWidthPx, int screenHeightPx) { in applyProportionalLayout() argument94 screenWidthPx), in applyProportionalLayout()97 screenWidthPx), in applyProportionalLayout()
138 fun calculateGravity(coordinates: LayoutCoordinates, screenWidthPx: Float): Int { in calculateGravity()140 val rootBottomCenter: Float = screenWidthPx / 2 in calculateGravity()