Home | History | Annotate | Download | only in testingcamera2

Lines Matching refs:height

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
77 int height = MeasureSpec.getSize(heightMeasureSpec);
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;
112 // Maximize height, widthSpec is UNSPECIFIED
116 // with width == height == 0
117 // but arbitrarily scale height anyway
123 width = (int) (height * mAspectRatio);
125 height = (int) (width / mAspectRatio);
128 // Override width/height if needed for EXACTLY and AT_MOST specs
130 height = View.resolveSizeAndState(height, heightMeasureSpec, 0);
133 setMeasuredDimension(width, height);