Home | History | Annotate | Download | only in testingcamera2

Lines Matching refs:width

31  * requested aspect ratio. This can happen if both the width and the height are exactly
32 * determined by the layout. To avoid this, ensure that either the height or the width is
41 * Desired width/height ratio
60 * @param aspect the desired width/height ratio in the current UI orientation. Must be a
76 int width = MeasureSpec.getSize(widthMeasureSpec);
91 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height
94 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width
97 // Need to fit into box <= [width, height] in size.
100 float boxAspectRatio = width / (float) height;
109 // Maximize width, heightSpec is UNSPECIFIED
116 // with width == height == 0
123 width = (int) (height * mAspectRatio);
125 height = (int) (width / mAspectRatio);
128 // Override width/height if needed for EXACTLY and AT_MOST specs
129 width = View.resolveSizeAndState(width, widthMeasureSpec, 0);
133 setMeasuredDimension(width, height);