Home
last modified time | relevance | path

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

/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java381 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSize() local
401 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
403 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
411 minDiff = Double.MAX_VALUE; in getOptimalPreviewSize()
413 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
415 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java535 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSizeIndex() local
553 if (heightDiff < minDiff) { in getOptimalPreviewSizeIndex()
555 minDiff = heightDiff; in getOptimalPreviewSizeIndex()
556 } else if (heightDiff == minDiff) { in getOptimalPreviewSizeIndex()
561 minDiff = heightDiff; in getOptimalPreviewSizeIndex()
569 minDiff = Double.MAX_VALUE; in getOptimalPreviewSizeIndex()
572 if (Math.abs(size.getHeight() - targetHeight) < minDiff) { in getOptimalPreviewSizeIndex()
574 minDiff = Math.abs(size.getHeight() - targetHeight); in getOptimalPreviewSizeIndex()