Home
last modified time | relevance | path

Searched refs:mRatioHeight (Results 1 – 3 of 3) sorted by relevance

/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DAutoFitTextureView.java29 private int mRatioHeight = 0; field in AutoFitTextureView
55 if (mRatioWidth == width && mRatioHeight == height) { in setAspectRatio()
59 mRatioHeight = height; in setAspectRatio()
68 if (0 == mRatioWidth || 0 == mRatioHeight) { in onMeasure()
71 if (width < height * mRatioWidth / mRatioHeight) { in onMeasure()
72 setMeasuredDimension(width, width * mRatioHeight / mRatioWidth); in onMeasure()
74 setMeasuredDimension(height * mRatioWidth / mRatioHeight, height); in onMeasure()
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DAutoFitTextureView.java29 private int mRatioHeight = 0; field in AutoFitTextureView
56 mRatioHeight = height; in setAspectRatio()
65 if (0 == mRatioWidth || 0 == mRatioHeight) { in onMeasure()
68 if (width < height * mRatioWidth / mRatioHeight) { in onMeasure()
69 setMeasuredDimension(width, width * mRatioHeight / mRatioWidth); in onMeasure()
71 setMeasuredDimension(height * mRatioWidth / mRatioHeight, height); in onMeasure()
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DAutoFitTextureView.java29 private int mRatioHeight = 0; field in AutoFitTextureView
56 mRatioHeight = height; in setAspectRatio()
65 if (0 == mRatioWidth || 0 == mRatioHeight) { in onMeasure()
68 if (width < height * mRatioWidth / mRatioHeight) { in onMeasure()
69 setMeasuredDimension(width, width * mRatioHeight / mRatioWidth); in onMeasure()
71 setMeasuredDimension(height * mRatioWidth / mRatioHeight, height); in onMeasure()