private static float fuzzAspectRatio(float aspectRatio){
  for (  float desiredAspectRatio : sDesiredAspectRatios) {
    if ((Math.abs(aspectRatio - desiredAspectRatio)) < ASPECT_RATIO_TOLERANCE) {
      return desiredAspectRatio;
    }
  }
  return aspectRatio;
}

private static float fuzzAspectRatio ( float aspectRatio ) { for ( float desiredAspectRatio : sDesiredAspectRatios ) { if ( ( Math . abs ( aspectRatio - desiredAspectRatio ) ) < ASPECT_RATIO_TOLERANCE ) { return desiredAspectRatio ; } } return aspectRatio ; }
take an aspect ratio and squish it into a nearby desired aspect ratio , if possible .
