Home | History | Annotate | Download | only in testingcamera2

Lines Matching refs:aspect

28  * A SurfaceView that maintains its aspect ratio to be a desired target value.
31 * requested aspect ratio. This can happen if both the width and the height are exactly
34 * the dimension that is best adjusted to maintain the aspect ratio.</p>
48 // Get initial aspect ratio from custom attributes
58 * Set the desired aspect ratio for this view.
60 * @param aspect the desired width/height ratio in the current UI orientation. Must be a
63 public void setAspectRatio(float aspect) {
64 if (aspect <= 0) {
65 throw new IllegalArgumentException("Aspect ratio must be positive");
67 mAspectRatio = aspect;
79 // General goal: Adjust dimensions to maintain the requested aspect ratio as much
98 // Maximize the View's area while maintaining aspect ratio
102 // Box is wider than requested aspect; pillarbox
105 // Box is narrower than requested aspect; letterbox