Lines Matching refs:ratio
397 // Try to find an size match aspect ratio and size
399 double ratio = (double) size.width / size.height;
400 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;
407 // Cannot find the one match the aspect ratio. This should not happen.
410 Log.w(TAG, "No preview size match the aspect ratio");
422 // Returns the largest picture size which matches the given aspect ratio.
431 // Try to find a size matches aspect ratio and has the largest width
433 double ratio = (double) size.width / size.height;
434 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;
440 // Cannot find one that matches the aspect ratio. This should not happen.
443 Log.w(TAG, "No picture size match the aspect ratio");