Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/
DPictureInPictureParams.java41 private Rational mAspectRatio; field in PictureInPictureParams.Builder
59 mAspectRatio = aspectRatio; in setAspectRatio()
113 PictureInPictureParams params = new PictureInPictureParams(mAspectRatio, mUserActions, in build()
123 private Rational mAspectRatio; field in PictureInPictureParams
146 mAspectRatio = new Rational(in.readInt(), in.readInt()); in PictureInPictureParams()
160 mAspectRatio = aspectRatio; in PictureInPictureParams()
171 mAspectRatio = otherArgs.mAspectRatio; in copyOnlySet()
187 if (mAspectRatio != null) { in getAspectRatio()
188 return mAspectRatio.floatValue(); in getAspectRatio()
195 return mAspectRatio; in getAspectRatioRational()
[all …]
DPictureInPictureArgs.java39 private Rational mAspectRatio; field in PictureInPictureArgs.Builder
57 mAspectRatio = aspectRatio; in setAspectRatio()
104 PictureInPictureArgs args = new PictureInPictureArgs(mAspectRatio, mUserActions, in build()
114 private Rational mAspectRatio; field in PictureInPictureArgs
156 mAspectRatio = new Rational(in.readInt(), in.readInt()); in PictureInPictureArgs()
169 mAspectRatio = aspectRatio; in PictureInPictureArgs()
181 mAspectRatio = new Rational((int) (aspectRatio * 1000000000), 1000000000); in setAspectRatio()
216 mAspectRatio = otherArgs.mAspectRatio; in copyOnlySet()
231 if (mAspectRatio != null) { in getAspectRatio()
232 return mAspectRatio.floatValue(); in getAspectRatio()
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
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/rs/tests/java_api/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/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustrationVideoView.java66 protected float mAspectRatio = 1.0f; // initial guess until we know field in IllustrationVideoView
101 if (height < width * mAspectRatio) { in onMeasure()
103 width = (int) (height / mAspectRatio); in onMeasure()
106 height = (int) (width * mAspectRatio); in onMeasure()
312 if (Float.compare(mAspectRatio, aspectRatio) != 0) { in onPrepared()
313 mAspectRatio = aspectRatio; in onPrepared()
/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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawable.java104 private final float mAspectRatio; field in BluetoothDeviceLayerDrawable.BatteryMeterDrawable
113 mAspectRatio = resources.getFraction(R.fraction.bt_battery_ratio_fraction, 1, 1); in BatteryMeterDrawable()
124 return mAspectRatio; in getAspectRatio()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingImageMessage.java57 private float mAspectRatio; field in MessagingImageMessage
117 mAspectRatio = ((float) mDrawable.getIntrinsicWidth()) / intrinsicHeight; in setMessage()
152 int width = (int) Math.max(getActualWidth(), getActualHeight() * mAspectRatio); in onDraw()
153 int height = (int) (width / mAspectRatio); in onDraw()
265 return (int) (getHeight() * mAspectRatio);
/frameworks/base/services/core/java/com/android/server/wm/
DPinnedStackController.java98 private float mAspectRatio = -1f; field in PinnedStackController
177 mAspectRatio = mDefaultAspectRatio; in PinnedStackController()
407 if (Float.compare(mAspectRatio, aspectRatio) != 0) { in setAspectRatio()
408 mAspectRatio = aspectRatio; in setAspectRatio()
418 return mAspectRatio; in getAspectRatio()
503 if (isValidPictureInPictureAspectRatio(mAspectRatio)) { in notifyMovementBoundsChanged()
504 transformBoundsToAspectRatio(normalBounds, mAspectRatio, in notifyMovementBoundsChanged()
609 pw.println(prefix + " mAspectRatio=" + mAspectRatio); in dump()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt8739 Landroid/app/PictureInPictureArgs$Builder;->mAspectRatio:Landroid/util/Rational;
8755 Landroid/app/PictureInPictureArgs;->mAspectRatio:Landroid/util/Rational;
8762 Landroid/app/PictureInPictureParams$Builder;->mAspectRatio:Landroid/util/Rational;
8773 Landroid/app/PictureInPictureParams;->mAspectRatio:Landroid/util/Rational;