Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DTouchTargetEnforcer.java71 int minTargetPx = (int) Math.ceil(dpToPx(MIN_TARGET_DP)); in enforce() local
72 int deltaHeight = Math.max(0, minTargetPx - target.getHeight()); in enforce()
73 int deltaWidth = Math.max(0, minTargetPx - target.getWidth()); in enforce()
79 Rect bounds = createNewBounds(target, minTargetPx, deltaWidth, deltaHeight); in enforce()
100 private Rect createNewBounds(View target, int minTargetPx, int deltaWidth, int deltaHeight) { in createNewBounds() argument
112 int deltaHeightRemaining = minTargetPx - (result.bottom - result.top); in createNewBounds()
116 int deltaWidthRemaining = minTargetPx - (result.right - result.left); in createNewBounds()