Searched refs:minDiff (Results 1 – 7 of 7) 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()
540 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSizeIndex() local558 if (heightDiff < minDiff) { in getOptimalPreviewSizeIndex()560 minDiff = heightDiff; in getOptimalPreviewSizeIndex()561 } else if (heightDiff == minDiff) { in getOptimalPreviewSizeIndex()566 minDiff = heightDiff; in getOptimalPreviewSizeIndex()574 minDiff = Double.MAX_VALUE; in getOptimalPreviewSizeIndex()577 if (Math.abs(size.getHeight() - targetHeight) < minDiff) { in getOptimalPreviewSizeIndex()579 minDiff = Math.abs(size.getHeight() - targetHeight); in getOptimalPreviewSizeIndex()
845 int minDiff = Integer.MAX_VALUE; in computeExpectedPeriod() local848 if (diff < minDiff) { in computeExpectedPeriod()849 minDiff = diff; in computeExpectedPeriod()860 int minDiff = Integer.MAX_VALUE; in computeExpectedPeriod() local864 if (diff < minDiff) { in computeExpectedPeriod()865 minDiff = diff; in computeExpectedPeriod()
170 double minDiff = singleFrameMs / 2000.0; // Half frame time in seconds in computeParams() local173 if ((duration - edgeTime) < minDiff) { in computeParams()
597 float minDiff = Float.MAX_VALUE; in getLauncherDeviceProfile() local600 if (diff < minDiff) { in getLauncherDeviceProfile()601 minDiff = diff; in getLauncherDeviceProfile()
511 int minDiff = Integer.MAX_VALUE; in findBestRegularBucketIndex() local514 if (diff < minDiff) { in findBestRegularBucketIndex()515 minDiff = diff; in findBestRegularBucketIndex()
531 float minDiff = Float.MAX_VALUE; in getDeviceProfile() local536 if (diff < minDiff) { in getDeviceProfile()537 minDiff = diff; in getDeviceProfile()