Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/
DPictureInPictureParams.java45 private Rational mAspectRatio; field in PictureInPictureParams.Builder
77 mAspectRatio = original.mAspectRatio; in Builder()
97 mAspectRatio = aspectRatio; in setAspectRatio()
273 PictureInPictureParams params = new PictureInPictureParams(mAspectRatio, in build()
285 private Rational mAspectRatio; field in PictureInPictureParams
351 mAspectRatio = readRationalFromParcel(in); in PictureInPictureParams()
383 mAspectRatio = aspectRatio; in PictureInPictureParams()
400 this(other.mAspectRatio, other.mExpandedAspectRatio, other.mUserActions, other.mCloseAction, in PictureInPictureParams()
412 mAspectRatio = otherArgs.mAspectRatio; in copyOnlySet()
450 if (mAspectRatio != null) { in getAspectRatioFloat()
[all …]
/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/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/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/core/java/com/android/internal/widget/
DMessagingImageMessage.java56 private float mAspectRatio; field in MessagingImageMessage
117 mAspectRatio = ((float) mDrawable.getIntrinsicWidth()) / intrinsicHeight; in setMessage()
164 int width = (int) Math.max((Math.min(getHeight(), getActualHeight()) * mAspectRatio), in onDraw()
166 int height = (int) Math.max((Math.min(getWidth(), getActualWidth()) / mAspectRatio), in onDraw()
168 height = (int) Math.max(height, width / mAspectRatio); in onDraw()
262 / mAspectRatio);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawable.java105 private final float mAspectRatio; field in BluetoothDeviceLayerDrawable.BatteryMeterDrawable
114 mAspectRatio = resources.getFraction(R.fraction.bt_battery_ratio_fraction, 1, 1); in BatteryMeterDrawable()
125 return mAspectRatio; in getAspectRatio()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipBoundsState.java84 private float mAspectRatio; field in PipBoundsState
301 if (Float.compare(mAspectRatio, aspectRatio) != 0) { in setAspectRatio()
302 mAspectRatio = aspectRatio; in setAspectRatio()
304 callback.accept(mAspectRatio); in setAspectRatio()
311 return mAspectRatio; in getAspectRatio()
541 onAspectRatioChangedCallback.accept(mAspectRatio); in addOnAspectRatioChangedCallback()
670 pw.println(innerPrefix + "mAspectRatio=" + mAspectRatio); in dump()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt8198 Landroid/app/PictureInPictureArgs$Builder;->mAspectRatio:Landroid/util/Rational;
8214 Landroid/app/PictureInPictureArgs;->mAspectRatio:Landroid/util/Rational;
8221 Landroid/app/PictureInPictureParams$Builder;->mAspectRatio:Landroid/util/Rational;
8232 Landroid/app/PictureInPictureParams;->mAspectRatio:Landroid/util/Rational;