Home
last modified time | relevance | path

Searched refs:mAspectRatio (Results 1 – 2 of 2) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/view/
DFixedAspectRatioImageView.java32 private final Rational mAspectRatio; field in FixedAspectRatioImageView
39 mAspectRatio = Rational.parseRational( in FixedAspectRatioImageView()
56 height = (int) (width / mAspectRatio.floatValue()); in onMeasure()
59 width = (int) (height * mAspectRatio.floatValue()); in onMeasure()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DFixedAspectSurfaceView.java43 private float mAspectRatio; field in FixedAspectSurfaceView
69 mAspectRatio = aspect; in setAspectRatio()
114 if (boxAspectRatio > mAspectRatio) { in onMeasure()
136 width = (int) (height * mAspectRatio); in onMeasure()
138 height = (int) (width / mAspectRatio); in onMeasure()