HomeSort by relevance Sort by last modified time
    Searched defs:targetRatio (Results 1 - 3 of 3) sorted by null

  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CameraPreview.java 269 double targetRatio = (double) w / h;
280 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;
  /development/samples/HoneycombGallery/src/com/example/android/hcgallery/
CameraFragment.java 288 double targetRatio = (double) w / h;
300 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
CropView.java 432 float targetRatio = mAspectRatio == UNSPECIFIED
437 if (targetRatio > 1) {
438 h = w / targetRatio;
440 w = h * targetRatio;
487 float targetRatio = mAspectRatio * mImageHeight / mImageWidth;
488 if (r.width() / r.height() > targetRatio) {
489 float height = r.width() / targetRatio;
496 float width = r.height() * targetRatio;
503 if (r.width() / r.height() > targetRatio) {
504 float width = r.height() * targetRatio;
    [all...]

Completed in 58 milliseconds