Searched refs:minDiff (Results 1 – 3 of 3) sorted by relevance
381 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSize() local401 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()
535 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSizeIndex() local553 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()
177 double minDiff = singleFrameMs / 2000.0; // Half frame time in seconds in build() local180 if ((duration - edgeTime) < minDiff) { in build()