Home
last modified time | relevance | path

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

/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
DFixedAspectSurfaceView.java44 private float mAspectRatio; field in FixedAspectSurfaceView
70 mAspectRatio = aspect; in setAspectRatio()
115 if (boxAspectRatio > mAspectRatio) { in onMeasure()
137 width = (int) (height * mAspectRatio); in onMeasure()
139 height = (int) (width / mAspectRatio); in onMeasure()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustration.java53 private float mAspectRatio = 0.0f; field in Illustration
77 mAspectRatio = a.getFloat(R.styleable.SuwIllustration_suwAspectRatio, 0.0f); in init()
124 mAspectRatio = aspectRatio; in setAspectRatio()
137 if (mAspectRatio != 0.0f) { in onMeasure()
139 int illustrationHeight = (int) (parentWidth / mAspectRatio); in onMeasure()
159 if (mAspectRatio != 0f) { in onLayout()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
DSurfaceTargetFilter.java75 private float mAspectRatio = 1.f; field in SurfaceTargetFilter
151 if (currentAspectRatio != mAspectRatio) { in process()
152 …LogVerbose) Log.v(TAG, "New aspect ratio: " + currentAspectRatio +", previously: " + mAspectRatio); in process()
153 mAspectRatio = currentAspectRatio; in process()
204 float relativeAspectRatio = screenAspectRatio / mAspectRatio; in updateTargetRect()
DSurfaceRenderFilter.java68 private float mAspectRatio = 1.f; field in SurfaceRenderFilter
159 if (currentAspectRatio != mAspectRatio) { in process()
160 …LogVerbose) Log.v(TAG, "New aspect ratio: " + currentAspectRatio +", previously: " + mAspectRatio); in process()
161 mAspectRatio = currentAspectRatio; in process()
236 float relativeAspectRatio = screenAspectRatio / mAspectRatio; in updateTargetRect()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DSurfaceTextureTarget.java91 private float mAspectRatio = 1.f; field in SurfaceTextureTarget
217 if (currentAspectRatio != mAspectRatio) { in process()
220 ", previously: " + mAspectRatio + ". Thread: " + Thread.currentThread()); in process()
222 mAspectRatio = currentAspectRatio; in process()
270 float relativeAspectRatio = screenAspectRatio / mAspectRatio; in updateTargetRect()
274 ", frame AR: " + mAspectRatio + ", relative AR: " + relativeAspectRatio); in updateTargetRect()