Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/
DCropView.java64 private final float mCropTouchMargin; field in CropView
113 mCropTouchMargin = 24 * getResources().getDisplayMetrics().density; in CropView()
366 upper = mCrop.bottom - pixelDistanceToFraction(mCropTouchMargin, in getAllowedValues()
370 lower = mCrop.top + pixelDistanceToFraction(mCropTouchMargin, CropBoundary.TOP); in getAllowedValues()
375 upper = mCrop.right - pixelDistanceToFraction(mCropTouchMargin, CropBoundary.RIGHT); in getAllowedValues()
378 lower = mCrop.left + pixelDistanceToFraction(mCropTouchMargin, CropBoundary.LEFT); in getAllowedValues()
487 if (Math.abs(event.getY() - topPx) < mCropTouchMargin) { in nearestBoundary()
490 if (Math.abs(event.getY() - bottomPx) < mCropTouchMargin) { in nearestBoundary()
494 if (Math.abs(event.getX() - leftPx) < mCropTouchMargin) { in nearestBoundary()
497 if (Math.abs(event.getX() - rightPx) < mCropTouchMargin) { in nearestBoundary()
[all …]