Searched refs:winRatio (Results 1 – 2 of 2) sorted by relevance
370 final double winRatio = getRatio(windowSize.getWidth(), windowSize.getHeight()); in getBestPreviewSize() local376 && (Math.abs(bestChoiceRatio - winRatio) / winRatio > minRatioDiffPercent in getBestPreviewSize()377 || Math.abs(ratio - winRatio) / winRatio <= minRatioDiffPercent)) { in getBestPreviewSize()
395 final double winRatio = getRatio(windowSize.getWidth(), windowSize.getHeight()); in getBestPreviewSize() local401 && (Math.abs(bestChoiceRatio - winRatio) / winRatio > minRatioDiffPercent in getBestPreviewSize()402 || Math.abs(ratio - winRatio) / winRatio <= minRatioDiffPercent)) { in getBestPreviewSize()